Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/code_health.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
MDB_MCP_API_CLIENT_ID: ${{ secrets.TEST_ATLAS_CLIENT_ID }}
MDB_MCP_API_CLIENT_SECRET: ${{ secrets.TEST_ATLAS_CLIENT_SECRET }}
MDB_MCP_API_BASE_URL: ${{ vars.TEST_ATLAS_BASE_URL }}
run: npm test -- --testPathIgnorePatterns "tests/unit" --testPathIgnorePatterns "tests/integration/tools/mongodb" --testPathIgnorePatterns "tests/integration/[^/]+\.ts"
run: npm test -- --exclude "tests/unit/**" --exclude "tests/integration/tools/mongodb/**" --exclude "tests/integration/*.ts"
- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
Expand Down
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp

// List of extensions which should be recommended for users of this workspace.
"recommendations": ["firsttris.vscode-jest-runner", "orta.vscode-jest"],
"recommendations": ["vitest.explorer"],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": []
}
12 changes: 1 addition & 11 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,11 +1 @@
{
"jestrunner.jestCommand": "npm test --",
"jestrunner.debugOptions": {
"runtimeExecutable": "node",
"runtimeArgs": [
"--experimental-vm-modules",
"node_modules/jest/bin/jest.js",
"--coverage"
]
}
}
{}
17 changes: 13 additions & 4 deletions eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import js from "@eslint/js";
import globals from "globals";
import tseslint from "typescript-eslint";
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
import jestPlugin from "eslint-plugin-jest";
import vitestPlugin from "eslint-plugin-vitest";

const testFiles = ["tests/**/*.test.ts", "tests/**/*.ts"];

Expand All @@ -15,14 +15,23 @@ export default defineConfig([
{
files: testFiles,
plugins: {
jest: jestPlugin,
vitest: vitestPlugin,
},
languageOptions: {
globals: {
...globals.node,
...jestPlugin.environments.globals.globals,
},
},
rules: {
...vitestPlugin.configs.recommended.rules,
"vitest/valid-title": "off",
"vitest/expect-expect": [
"error",
{
assertFunctionNames: ["expect", "expectDefined", "verifyMockCalls"],
},
],
},
},
tseslint.configs.recommendedTypeChecked,
{
Expand All @@ -48,7 +57,7 @@ export default defineConfig([
"coverage",
"global.d.ts",
"eslint.config.js",
"jest.config.cjs",
"vitest.config.ts",
"src/types/*.d.ts",
]),
eslintPluginPrettierRecommended,
Expand Down
1 change: 0 additions & 1 deletion global.d.ts

This file was deleted.

22 changes: 0 additions & 22 deletions jest.config.cjs

This file was deleted.

Loading
Loading