-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvitest.config.ts
More file actions
45 lines (43 loc) · 1.05 KB
/
Copy pathvitest.config.ts
File metadata and controls
45 lines (43 loc) · 1.05 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
38
39
40
41
42
43
44
45
import { defineConfig } from 'vitest/config'
import tsconfigPaths from 'vite-tsconfig-paths'
export default defineConfig({
plugins: [tsconfigPaths()],
test: {
globals: true,
environment: 'node',
setupFiles: ['./test/setup.ts'],
coverage: {
provider: 'v8',
reporter: ['lcov', 'text', 'html'],
reportsDirectory: '.reports/vitest/coverage',
exclude: [
'src/types/**/*',
'test/**/*',
'**/node_modules/**',
'dist/**/*',
'**/*.config.*',
'**/*.config.js',
'**/*.config.ts',
'**/vitest.config.*',
'**/eslint.config.*',
'**/commitlint.config.*',
'**/typedoc.config.*',
'**/tsconfig.*',
'.reports/**/*',
'**/coverage/**/*',
'**/*.d.ts',
],
include: ['src/**/*.ts'],
thresholds: {
global: {
statements: 85,
branches: 85,
functions: 85,
lines: 85,
},
},
},
include: ['test/**/*.spec.ts'],
exclude: ['node_modules/**'],
},
})