-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathvitest.config.ts
32 lines (31 loc) · 962 Bytes
/
vitest.config.ts
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
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
globals: true,
environment: 'node',
exclude: ['apps/web', 'dist', 'node_modules', 'tests'],
coverage: {
provider: 'istanbul', // or 'v8'
include: [
'**/src/**/*.{ts,js}', // Include only src directories in all workspaces
],
reporter: ['text', 'html', 'lcov'],
reportsDirectory: './coverage',
exclude: [
'apps/web', // Temporary exclude web app
'**/dist/**', // Exclude dist directories
'**/tests/**', // Exclude tests directories
'**/__tests__/**', // Exclude tests directories
'**/*.test.{ts,js}', // Exclude test files
'**/*.d.ts', // Exclude TypeScript declaration files
'node_modules/**', // Exclude dependencies
],
thresholds: {
lines: 80,
functions: 80,
branches: 80,
statements: 80,
},
},
},
});