-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.js
More file actions
29 lines (28 loc) · 984 Bytes
/
vitest.config.js
File metadata and controls
29 lines (28 loc) · 984 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
import { defineConfig } from 'vitest/config'
export default defineConfig({
test: {
environment: 'jsdom',
globals: true,
setupFiles: ['tests/setup.js'],
include: ['tests/**/*.test.js'],
coverage: {
provider: 'v8',
// three-scene.js is excluded: it's a pure WebGL rendering file (Three.js)
// that requires a real GPU/canvas context and cannot run in jsdom.
// It contains no business logic — only 3D visuals, shaders, and animation.
include: [
'js/main.js',
'js/resume-loader.js',
'sources/Game/utilities/maths.js',
'sources/Game/utilities/ObservableMap.js',
'sources/Game/utilities/ObservableSet.js'
],
thresholds: {
lines: 100,
functions: 100,
branches: 100,
statements: 100
}
}
}
})