-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
38 lines (37 loc) · 1.12 KB
/
vitest.config.ts
File metadata and controls
38 lines (37 loc) · 1.12 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
import path from 'path';
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globalSetup: ['tests/support/step-lint-setup.ts'],
testTimeout: 30000, // 30 seconds for CLI tests that spawn subprocesses
include: [
// Legacy tests (to be migrated)
'__tests__/**/*.test.ts',
// New BDD step definitions
'tests/steps/**/*.steps.ts',
// Unit tests (kept as Vitest)
'tests/unit/**/*.test.ts',
],
exclude: [
// QuickPickle files (separate config via vitest.quickpickle.config.ts)
'tests/steps/quickpickle/**/*.ts',
// Common step definitions (utility file, not a test)
'tests/steps/common.steps.ts',
// Support files (not tests)
'tests/support/**/*.ts',
// Fixtures (not tests)
'tests/fixtures/**/*.ts',
],
globals: true,
environment: 'node',
coverage: {
provider: 'v8',
reporter: ['text', 'json-summary', 'lcov'],
reportsDirectory: 'coverage',
include: ['src/**/*.ts'],
exclude: ['src/**/*.d.ts'],
},
},
root: path.resolve(__dirname),
clearScreen: false,
});