-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.js
More file actions
21 lines (20 loc) · 701 Bytes
/
Copy pathvitest.config.js
File metadata and controls
21 lines (20 loc) · 701 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
environment: 'node',
include: ['test/unit/**/*.test.js'],
// Several suites spawn the real CLI (node maiass.mjs) in throwaway git
// repos — process startup + git I/O can exceed vitest's 5s default,
// especially when files run in parallel. Give them headroom; the per-call
// timeout inside runCli still guards against genuine hangs.
testTimeout: 60000,
hookTimeout: 60000,
coverage: {
provider: 'v8',
include: ['lib/**/*.js'],
exclude: ['lib/colors.js', 'lib/symbols.js'],
reporter: ['text', 'html'],
reportsDirectory: 'coverage'
}
}
});