-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
34 lines (32 loc) · 889 Bytes
/
vitest.config.ts
File metadata and controls
34 lines (32 loc) · 889 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
31
32
33
34
import path from 'node:path';
import { defineConfig } from 'vitest/config';
export default defineConfig({
resolve: {
alias: {
$components: path.resolve(__dirname, './src/components'),
$lib: path.resolve(__dirname, './src/lib'),
$stores: path.resolve(__dirname, './src/stores'),
$types: path.resolve(__dirname, './src/types'),
$projects: path.resolve(__dirname, './projects')
}
},
test: {
globals: true,
environment: 'node',
setupFiles: ['./tests/setup.ts'],
coverage: {
provider: 'v8',
reporter: ['text', 'json', 'html'],
include: ['src/lib/**/*.ts', 'src/stores/**/*.ts'],
exclude: ['**/*.test.ts', '**/*.spec.ts', '**/types/**', '**/*.d.ts'],
thresholds: {
lines: 80,
functions: 80,
branches: 80,
statements: 80
}
},
include: ['tests/**/*.test.ts'],
exclude: ['tests/test.ts'] // Exclude Playwright E2E test
}
});