-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathvitest.config.ts
More file actions
118 lines (105 loc) · 3.59 KB
/
vitest.config.ts
File metadata and controls
118 lines (105 loc) · 3.59 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
import { defineConfig } from 'vitest/config';
import path from 'path';
export default defineConfig({
test: {
globals: true,
environment: 'node',
setupFiles: ['./tests/setup.ts'],
testTimeout: 10000,
coverage: {
reporter: ['text', 'json', 'json-summary', 'html'],
exclude: [
// Default exclusions
'node_modules/',
'dist/',
'tests/',
'**/*.d.ts',
'**/*.config.*',
'**/mockData',
// CLI entry points (hard to unit test)
'bin/**',
'src/index.ts',
// Build/dev scripts and tooling
'scripts/**',
'.eslintrc.js',
'test/**',
// Interactive UI components (require E2E testing)
'src/lib/ui/main-menu.ts',
'src/lib/ui/menu-builder.ts',
'src/lib/ui/hooks-menu.ts',
'src/lib/ui/status-line-menu.ts',
'src/lib/ui/cloud-setup-wizard.ts',
'src/lib/ui/first-time-welcome.ts',
'src/lib/ui/interactive-*.ts',
'src/lib/ui/*-menu.ts',
'src/lib/ui/*-selector.ts',
'src/lib/ui/*-creator.ts',
'src/lib/ui/*-tester.ts',
'src/lib/ui/*-installer.ts',
'src/lib/ui/hooks-status.ts',
'src/lib/ui/status-sections.ts',
'src/lib/ui/local-report-generator.ts',
'src/lib/ui/privacy-notice.ts',
'src/lib/ui/help-content.ts',
'src/lib/ui/*-receipt.ts',
// Interactive command handlers
'src/commands/analyze-prompt.ts',
'src/commands/auth.ts',
'src/commands/config.ts',
'src/commands/detect-validation.ts',
'src/commands/hooks-log.ts',
'src/commands/hooks-manage.ts',
'src/commands/install-auto-sync.ts',
'src/commands/install-hooks.ts',
'src/commands/logout.ts',
'src/commands/privacy.ts',
'src/commands/pushup-challenge.ts',
'src/commands/standup*.ts',
'src/commands/statusline*.ts',
'src/commands/verify-hooks.ts',
'src/commands/test-personality.ts',
'src/commands/refresh-*.ts',
'src/commands/pushup-*.ts',
// Static content/templates
'src/lib/ui/*-tips.ts',
'src/lib/promotional-tips.ts',
// Report generation (complex integration)
'src/lib/report-executor.ts',
'src/lib/report-generator.ts',
'src/lib/reports/**',
'src/lib/standup-*.ts',
// Hook testing/stats (meta features)
'src/lib/hooks/hooks-stats.ts',
'src/lib/hooks/hooks-tester.ts',
'src/lib/hooks/hooks-controller-unified.ts',
// Specialized features (low priority for unit testing)
'src/lib/personality-*.ts',
'src/lib/prompt-analyzer.ts',
'src/lib/push-up-*.ts',
'src/lib/ccusage-*.ts',
// Utilities that are hard to unit test
'src/utils/claude-executor.ts',
'src/utils/spawn.ts',
'src/lib/utils/file-utils.ts',
'src/utils/version-check.ts',
// Infrastructure files (process spawning, browser automation, network)
'src/lib/status-line-manager.ts',
'src/lib/orchestrators/background-send-orchestrator.ts',
'src/lib/orchestrators/hook-send-orchestrator.ts',
'src/lib/sub-agents/manager.ts',
'src/lib/auth/browser.ts',
'src/lib/prompts/orchestrator.ts',
// UI utilities and base classes
'src/commands/shared/*.ts',
// Type definitions only (no runtime code to test)
'src/types/**/*.ts',
'src/lib/readers/types.ts',
],
},
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
});