-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
36 lines (35 loc) · 1007 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
36 lines (35 loc) · 1007 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
35
36
import { defineConfig } from 'vitest/config';
import path from 'node:path';
export default defineConfig({
test: {
environment: 'jsdom',
globals: false,
setupFiles: ['./tests/setup.ts'],
include: ['tests/**/*.test.ts', 'tests/**/*.test.tsx'],
coverage: {
provider: 'v8',
reporter: ['text', 'lcov', 'html'],
include: ['src/**/*.{ts,tsx}'],
exclude: [
'src/**/*.test.{ts,tsx}',
'src/main.tsx',
'src/**/*.d.ts',
'src/scenes/**', // Pixi v8 — needs WebGL
'src/lib/supabase.ts', // requires Supabase env + network — integration test only
'src/systems/telemetry.ts', // browser-only fetch + Plausible — integration test only
'src/App.tsx', // React router — integration/E2E only
],
thresholds: {
statements: 60,
branches: 60,
functions: 60,
lines: 60,
},
},
},
resolve: {
alias: {
'@': path.resolve(__dirname, './src'),
},
},
});