-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Expand file tree
/
Copy pathvitest.config.unit.ts
More file actions
29 lines (27 loc) · 754 Bytes
/
vitest.config.unit.ts
File metadata and controls
29 lines (27 loc) · 754 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, type ViteUserConfig} from 'vitest/config';
const config: ViteUserConfig = defineConfig({
test: {
name: 'unit',
environment: 'jsdom',
environmentOptions: {
jsdom: {
url: 'http://localhost/',
}
},
setupFiles: [
'vitest-webgl-canvas-mock',
'./test/unit/lib/web_worker_mock.ts'
],
include: [
'src/**/*.test.{ts,js}'
],
coverage: {
provider: 'v8',
reporter: ['json', 'html'],
exclude: ['**/*.test.ts'],
include: ['src/**/*.{ts,js}'],
reportsDirectory: './coverage/vitest/unit',
},
},
});
export default config;