-
-
Notifications
You must be signed in to change notification settings - Fork 8.5k
Expand file tree
/
Copy pathvitest.mcp.config.ts
More file actions
42 lines (41 loc) · 1.53 KB
/
Copy pathvitest.mcp.config.ts
File metadata and controls
42 lines (41 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
import { defineConfig } from "vitest/config";
import path from "path";
export default defineConfig({
test: {
environment: "node",
globals: true,
pool: "threads",
maxWorkers: 20,
fileParallelism: true,
maxConcurrency: 20,
include: [
"open-sse/mcp-server/__tests__/**/*.test.ts",
"open-sse/services/autoCombo/__tests__/**/*.test.ts",
"open-sse/services/combo/__tests__/**/*.test.ts",
"open-sse/services/__tests__/antigravity-quota-family.test.ts",
// #8890 shipped this suite into a directory no runner collects, so it had
// never executed once (check:test-discovery flags it as a NEW orphan).
"open-sse/services/__tests__/fail-fast-concurrency-gate.test.ts",
"src/lib/memory/__tests__/generic-backend.test.ts",
"tests/unit/autoCombo/**/*.test.ts",
"tests/unit/api/**/*.spec.ts",
"tests/unit/encryption.spec.ts",
"src/shared/components/**/*.test.tsx",
"src/shared/hooks/__tests__/**/*.test.tsx",
"src/app/(dashboard)/**/__tests__/**/*.test.tsx",
],
exclude: ["**/node_modules/**", "**/.git/**"],
coverage: {
reportsDirectory: "coverage",
},
},
resolve: {
alias: {
"@": path.resolve(__dirname, "./src"),
// Mirrors tsconfig paths. Without it, a UI test importing from open-sse
// resolves to undefined instead of failing loudly — which silently made
// every provider look credentialed in the free-tier card tests.
"@omniroute/open-sse": path.resolve(__dirname, "./open-sse"),
},
},
});