-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathvitest.config.ts
More file actions
42 lines (41 loc) · 1.21 KB
/
Copy pathvitest.config.ts
File metadata and controls
42 lines (41 loc) · 1.21 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';
export default defineConfig({
test: {
globals: true,
environment: 'node',
globalSetup: ['tests/setup/global-setup.ts'],
include: ['tests/**/*.test.ts'],
// notes-roundtrip runs under its own DOM-shimmed config (its deps live in
// web/node_modules); exclude it from the node-env base/coverage runs so it
// can't fail to resolve @tiptap/* here.
exclude: ['tests/e2e/**/*.test.ts', 'tests/commands/**/*.test.ts', 'tests/web/notes-roundtrip/**', '**/*.live.test.ts'],
pool: 'forks',
testTimeout: 30_000,
hookTimeout: 30_000,
coverage: {
provider: 'v8',
reporter: ['text', 'lcov'],
include: ['src/**/*.ts'],
exclude: [
'src/**/*.test.ts',
'src/cli.ts',
'src/cli/**',
'src/commands/**',
'src/index.ts',
'src/hooks/**',
'src/utils/terminal.ts',
'src/utils/display.ts',
'src/utils/json-output.ts',
'src/providers/claude-code-session.ts',
'src/agent/model.ts',
'src/core/types.ts',
],
thresholds: {
lines: 70,
functions: 70,
branches: 55,
statements: 70,
},
},
},
});