-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathvitest.config.js
More file actions
35 lines (34 loc) · 901 Bytes
/
vitest.config.js
File metadata and controls
35 lines (34 loc) · 901 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
29
30
31
32
33
34
35
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
environment: 'node',
globals: true,
include: ['test/**/*.{test,spec}.js', 'mcp-min/__tests__/**/*.{test,spec}.js', 'mcp-min/__tests__/*.test.js', 'mcp-min/__tests__/*.test.cjs.js'],
pool: 'forks',
fileParallelism: true,
globalSetup: ['./test/global-setup.js'],
setupFiles: ['./test/vitest-setup.js'],
testTimeout: 10000,
hookTimeout: 20000,
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html', 'lcov'],
include: ['lib/**/*.js', 'bin/**/*.js'],
exclude: [
'gui/**',
'test/**',
'scripts/**',
'node_modules/**',
'**/*.config.js'
],
all: true,
clean: true,
thresholds: {
lines: 60,
functions: 60,
branches: 60,
statements: 60
}
}
}
});