-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
36 lines (34 loc) · 1.91 KB
/
Copy pathvitest.config.ts
File metadata and controls
36 lines (34 loc) · 1.91 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
import { fileURLToPath } from "node:url";
import { defineConfig } from "vitest/config";
const fromRoot = (path: string) => fileURLToPath(new URL(path, import.meta.url));
export default defineConfig({
test: {
include: ["packages/**/*.test.ts"],
globals: true,
// Integration files spawn CLIs and tool processes; cap file workers so
// existing timeout budgets detect real hangs instead of host contention.
maxWorkers: 2
},
resolve: {
alias: {
"@submuxhq/codedecay-core": fromRoot("./packages/core/src/index.ts"),
"@submuxhq/codedecay-agent": fromRoot("./packages/agent/src/index.ts"),
"@submuxhq/codedecay-config": fromRoot("./packages/config/src/index.ts"),
"@submuxhq/codedecay-adapters": fromRoot("./packages/adapters/src/index.ts"),
"@submuxhq/codedecay-execution": fromRoot("./packages/execution/src/index.ts"),
"@submuxhq/codedecay-harness": fromRoot("./packages/harness/src/index.ts"),
"@submuxhq/codedecay-knowledge": fromRoot("./packages/knowledge/src/index.ts"),
"@submuxhq/codedecay-llm": fromRoot("./packages/llm/src/index.ts"),
"@submuxhq/codedecay-matchers": fromRoot("./packages/matchers/src/index.ts"),
"@submuxhq/codedecay-mcp": fromRoot("./packages/mcp/src/index.ts"),
"@submuxhq/codedecay-memory": fromRoot("./packages/memory/src/index.ts"),
"@submuxhq/codedecay-redteam": fromRoot("./packages/redteam/src/index.ts"),
"@submuxhq/codedecay-skills": fromRoot("./packages/skills/src/index.ts"),
"@submuxhq/codedecay-test-audit": fromRoot("./packages/test-audit/src/index.ts"),
"@submuxhq/codedecay-tool-adapters": fromRoot("./packages/tool-adapters/src/index.ts"),
"@submuxhq/codedecay-git": fromRoot("./packages/git/src/index.ts"),
"@submuxhq/codedecay-analyzer-js": fromRoot("./packages/analyzer-js/src/index.ts"),
"@submuxhq/codedecay-report": fromRoot("./packages/report/src/index.ts")
}
}
});