-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
30 lines (29 loc) · 799 Bytes
/
vitest.config.ts
File metadata and controls
30 lines (29 loc) · 799 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
import { defineConfig } from 'vitest/config'
import vue from '@vitejs/plugin-vue'
import { fileURLToPath } from 'node:url'
export default defineConfig({
plugins: [vue()],
test: {
setupFiles: ['./tests/setup.ts'],
environment: 'happy-dom',
include: ['tests/unit/**/*.spec.ts', 'tests/unit/**/*.test.ts'],
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
include: ['app/**/*.{ts,vue}'],
exclude: ['node_modules', 'tests', '**/*.spec.ts', '**/*.test.ts'],
thresholds: {
lines: 10,
functions: 20,
branches: 20,
statements: 10
}
}
},
resolve: {
alias: {
'~': fileURLToPath(new URL('./app', import.meta.url)),
'@': fileURLToPath(new URL('./app', import.meta.url))
}
}
})