-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Expand file tree
/
Copy pathvitest.config.ts
More file actions
28 lines (27 loc) · 773 Bytes
/
vitest.config.ts
File metadata and controls
28 lines (27 loc) · 773 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, mergeConfig } from 'vitest/config';
import rootConfig from '../../vitest.config';
/**
* CLI package Vitest configuration
* Extends root config with CLI-specific settings
*
* Integration tests (.test.ts) spawn CLI processes and need more time.
* The 30s timeout is reasonable now that auto-update network calls are skipped
* when TASKMASTER_SKIP_AUTO_UPDATE=1 or NODE_ENV=test.
*/
export default mergeConfig(
rootConfig,
defineConfig({
test: {
// CLI-specific test patterns
include: [
'tests/**/*.test.ts',
'tests/**/*.spec.ts',
'src/**/*.test.ts',
'src/**/*.spec.ts'
],
// Integration tests spawn CLI processes - 30s is reasonable with optimized startup
testTimeout: 30000,
hookTimeout: 15000
}
})
);