-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvitest.config.ts
More file actions
39 lines (38 loc) · 1.4 KB
/
Copy pathvitest.config.ts
File metadata and controls
39 lines (38 loc) · 1.4 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
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: true,
environment: 'node',
exclude: ['dist/**', 'node_modules/**'],
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
exclude: [
'dist',
'node_modules',
'**/*.test.ts',
'**/*.config.*',
'src/__fixtures__/**',
'src/gcaim.sh',
// Re-export barrel files (only contain export statements, no executable code)
'src/commands/dart/utils/dart.ts',
'src/commands/git/utils/git.ts',
// External tool integration (requires Claude CLI or git operations tested via integration)
'src/commands/git/utils/claude/**',
'src/commands/git/utils/commit/get-git-status.ts',
'src/commands/git/utils/repo/get-remote-branch.ts',
],
thresholds: {
// Updated thresholds after using logIfVerbose helper and /* v8 ignore next -- @preserve */
// These reflect coverage with external tool integration code properly marked as ignored.
statements: 97,
// vite 8 / esbuild 0.28 emit more counted branches than vite 7 did
// (685 -> 691) while covered branches are unchanged, so the same tests
// now report 90.59% instead of 91.24%. Lowered to match the new transform.
branches: 90,
functions: 100,
lines: 97,
},
},
},
});