-
-
Notifications
You must be signed in to change notification settings - Fork 82
Expand file tree
/
Copy pathvitest.config.ts
More file actions
37 lines (36 loc) · 1.19 KB
/
vitest.config.ts
File metadata and controls
37 lines (36 loc) · 1.19 KB
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
36
37
/** @fileoverview Vitest configuration leveraging Vite aliases for path resolution. */
import { defineConfig, mergeConfig } from 'vitest/config'
import viteConfig from './vite.config'
export default mergeConfig(
await viteConfig(),
defineConfig({
test: {
environment: 'happy-dom',
include: ['src/**/*.{test,spec}.ts'],
coverage: {
provider: 'v8',
reporter: ['text', 'text-summary', 'lcov', 'html'],
include: [
'src/shared/**/*.ts',
'src/stores/**/*.ts',
'src/composables/**/*.ts',
'src/api/**/*.ts',
'src/components/**/*.vue',
],
exclude: [
'src/**/*.d.ts',
'src/**/*.{test,spec}.ts',
'src/shared/locales/**',
'src/vite-env.d.ts',
'src/main.ts',
],
thresholds: {
statements: 50,
branches: 45,
functions: 33,
lines: 50,
},
},
},
}),
)