-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathvitest.fast.config.ts
More file actions
35 lines (34 loc) · 1.22 KB
/
vitest.fast.config.ts
File metadata and controls
35 lines (34 loc) · 1.22 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
import { defineConfig, mergeConfig } from 'vitest/config';
import baseConfig from './vitest.config';
/**
* Fast test config: excludes slow binary-execution and integration tests.
* Use `npm test -- --run` for fast feedback during development.
* Use `npm run test:full` to run ALL tests including binary, integration, and Python.
*/
export default mergeConfig(baseConfig, defineConfig({
test: {
exclude: [
'node_modules',
'dist',
'coverage',
'src/test-utils/**',
'**/*.d.ts',
// Slow tests excluded from fast runs (require built binary or TUI)
'src/cli/__tests__/binary-execution*.test.ts',
'src/cli/__tests__/*-binary-execution*.test.ts',
'src/cli/__tests__/*tui*.test.ts',
'src/cli/__tests__/init-command-execution.test.ts',
'src/cli/__tests__/feedback-command-execution.test.ts',
'src/cli/__tests__/view-log-command.test.ts',
// MCP integration tests (require real server connection, slow/flaky)
'**/mcp-timeout-validation.test.ts',
'src/mcp/__tests__/mcp-integration.test.ts',
'src/__tests__/integration/**',
'src/__tests__/e2e/**',
],
// No coverage in fast mode for speed
coverage: {
enabled: false,
},
},
}));