-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathvitest.config.ts
More file actions
50 lines (49 loc) · 1.37 KB
/
Copy pathvitest.config.ts
File metadata and controls
50 lines (49 loc) · 1.37 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
import { defineConfig } from 'vitest/config';
import path from 'path';
import { BMADReporter } from './tests/framework/reporters/bmad-vitest-reporter.js';
export default defineConfig({
test: {
globals: true,
environment: 'node',
include: ['tests/**/*.test.ts', 'tests/**/*.spec.ts'],
exclude: [
'**/node_modules/**',
'**/build/**',
'**/coverage/**',
'**/tests/examples/**',
],
testTimeout: 30000, // Default 30s for all tests
hookTimeout: 30000,
// Tests can now run in parallel since each writes its own fragment file
fileParallelism: true,
// Global setup runs before runner initialization
globalSetup: ['./tests/framework/setup/global-setup.ts'],
// Setup files run in test context for each test file
setupFiles: ['./tests/framework/setup/test-setup.ts'],
reporters: [
'default', // Keep console output
new BMADReporter() as any, // Custom inline reporter
],
coverage: {
provider: 'v8',
reporter: ['text', 'lcov', 'html'],
exclude: [
'**/node_modules/**',
'**/build/**',
'**/tests/**',
'**/coverage/**',
'**/*.config.*',
'**/*.d.ts',
],
reportsDirectory: './coverage',
},
typecheck: {
enabled: false,
},
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
});