-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvitest.config.ts
More file actions
88 lines (86 loc) · 2.36 KB
/
Copy pathvitest.config.ts
File metadata and controls
88 lines (86 loc) · 2.36 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import { defineConfig } from "vitest/config";
/**
* Tests are grouped PER GAME / area so each can run in isolation:
* npm test → every main-tree suite
* npm run test:arena → Arena (sim + netcode) only
* npm run test:members → members-area helpers only
* npm run test:merch → merch/print helpers only
* npm run test:squid → Squid (sim + net + score helpers) only
* npm run test:road → Road Madness sim only
*
* `exclude` drops build output, deps, and — importantly — git worktrees under `.claude/worktrees/*`.
* Those hold OTHER branches' full checkouts; without this, a `vitest run`
* from the main tree also executes those branches' suites and reports their WIP failures here.
*/
const exclude = ["**/node_modules/**", "**/dist/**", "**/.astro/**", "**/.claude/**", "**/.git/**"];
export default defineConfig({
test: {
exclude,
projects: [
{
test: {
name: "arena",
environment: "node",
exclude,
include: ["src/game/arena/**/*.test.ts", "src/game/net/**/*.test.ts", "src/game/audio/**/*.test.ts"],
},
},
{
test: {
name: "members",
environment: "node",
exclude,
include: ["src/lib/members/**/*.test.ts"],
},
},
{
test: {
name: "merch",
environment: "node",
exclude,
include: ["src/lib/merch/**/*.test.ts"],
},
},
{
test: {
name: "overrun",
environment: "node",
exclude,
include: ["src/game/overrun/**/*.test.ts"],
},
},
{
test: {
name: "squid",
environment: "node",
exclude,
include: ["src/game/squid/**/*.test.ts", "src/lib/squid/**/*.test.ts"],
},
},
{
test: {
name: "road-madness",
environment: "node",
exclude,
include: ["src/game/road-madness/**/*.test.ts"],
},
},
{
test: {
name: "rtlab",
environment: "node",
exclude,
include: ["src/lib/rtlab/**/*.test.ts"],
},
},
{
test: {
name: "signal",
environment: "node",
exclude,
include: ["src/lib/signal/**/*.test.ts"],
},
},
],
},
});