-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
28 lines (27 loc) · 1013 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
28 lines (27 loc) · 1013 Bytes
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
import { defineConfig } from 'vitest/config';
/**
* Keep the suite to this checkout's own tests.
*
* `EnterWorktree` and `git worktree add` both put working trees under
* `.claude/worktrees/`, which is *inside* the repository — so vitest's default
* glob walks into them and collects their `test/*.test.ts` as if they were
* ours. With one worktree open here that turned a 14-file, 284-test run into 21
* files and 427 tests, and the count is the harmless half: those files are
* somebody's in-progress branch, so a run can fail on code that is not on this
* branch at all, or pass because a half-finished test on another branch
* happened to cover the thing you just broke.
*
* The default excludes are restated because setting `exclude` replaces them
* rather than adding to them.
*/
export default defineConfig({
test: {
exclude: [
'**/node_modules/**',
'**/dist/**',
'**/cypress/**',
'**/.{idea,git,cache,output,temp}/**',
'**/.claude/**',
],
},
});