Skip to content

Commit 9f4eab1

Browse files
committed
chore: apply PR fixes
1 parent 1dd48a4 commit 9f4eab1

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

.github/workflows/cleanup-atlas-env.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ jobs:
2424
MDB_MCP_API_CLIENT_ID: ${{ secrets.TEST_ATLAS_CLIENT_ID }}
2525
MDB_MCP_API_CLIENT_SECRET: ${{ secrets.TEST_ATLAS_CLIENT_SECRET }}
2626
MDB_MCP_API_BASE_URL: ${{ vars.TEST_ATLAS_BASE_URL }}
27-
run: npm test -- scripts/cleanupAtlasTestLeftovers.test.ts
27+
run: npm run atlas:cleanup

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@
5555
"generate": "./scripts/generate.sh",
5656
"test": "vitest --project eslint-rules --project unit-and-integration --coverage",
5757
"pretest:accuracy": "npm run build",
58-
"test:accuracy": "sh ./scripts/accuracy/runAccuracyTests.sh"
58+
"test:accuracy": "sh ./scripts/accuracy/runAccuracyTests.sh",
59+
"atlas:cleanup": "vitest --project atlas-cleanup"
5960
},
6061
"license": "Apache-2.0",
6162
"devDependencies": {

vitest.config.ts

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ export default defineConfig({
2525
extends: true,
2626
test: {
2727
name: "unit-and-integration",
28-
include: ["tests/**/*.test.ts"],
29-
exclude: [...vitestDefaultExcludes, "tests/accuracy/**"],
28+
include: ["**/*.test.ts"],
29+
exclude: [...vitestDefaultExcludes, "scripts/**", "tests/accuracy/**"],
3030
},
3131
},
3232
{
3333
extends: true,
3434
test: {
3535
name: "accuracy",
36-
include: ["tests/**/accuracy/*.test.ts"],
36+
include: ["**/accuracy/*.test.ts"],
3737
},
3838
},
3939
{
@@ -43,6 +43,13 @@ export default defineConfig({
4343
include: ["eslint-rules/*.test.js"],
4444
},
4545
},
46+
{
47+
extends: true,
48+
test: {
49+
name: "atlas-cleanup",
50+
include: ["scripts/cleanupAtlasTestLeftovers.test.ts"],
51+
},
52+
},
4653
],
4754
},
4855
});

0 commit comments

Comments
 (0)