Skip to content

Commit 3b03327

Browse files
committed
fix: add and fix vitest linting
1 parent 463b6cc commit 3b03327

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

eslint.config.js

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,18 @@ export default defineConfig([
2020
languageOptions: {
2121
globals: {
2222
...globals.node,
23-
...vitestPlugin.environments.globals.globals,
2423
},
2524
},
26-
rules: { ...vitest.configs.recommended.rules },
25+
rules: {
26+
...vitestPlugin.configs.recommended.rules,
27+
"vitest/valid-title": "off",
28+
"vitest/expect-expect": [
29+
"error",
30+
{
31+
assertFunctionNames: ["expect", "expectDefined", "verifyMockCalls"],
32+
},
33+
],
34+
},
2735
},
2836
tseslint.configs.recommendedTypeChecked,
2937
{

tests/integration/tools/atlas/atlasHelpers.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ export function describeWithAtlas(name: string, fn: IntegrationTestFunction) {
2020
};
2121

2222
if (!process.env.MDB_MCP_API_CLIENT_ID?.length || !process.env.MDB_MCP_API_CLIENT_SECRET?.length) {
23+
// eslint-disable-next-line vitest/valid-describe-callback
2324
return describe.skip("atlas", testDefinition);
2425
}
26+
// eslint-disable-next-line vitest/no-identical-title, vitest/valid-describe-callback
2527
return describe("atlas", testDefinition);
2628
}
2729

0 commit comments

Comments
 (0)