forked from abh1nash/ace-daw
-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathvitest.config.ts
More file actions
39 lines (38 loc) · 1.14 KB
/
vitest.config.ts
File metadata and controls
39 lines (38 loc) · 1.14 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
import { defineConfig } from 'vitest/config';
import react from '@vitejs/plugin-react';
import { resolve } from 'path';
export default defineConfig({
plugins: [react()],
resolve: {
alias: {
// Stub out @kabelsalat/web — Strudel's optional modular synth engine
// has a broken export in v0.4.1. We don't use it; we use queryArc only.
'@kabelsalat/web': resolve(__dirname, 'src/stubs/kabelsalat-web.ts'),
},
},
test: {
environment: 'jsdom',
globals: true,
pool: 'forks',
setupFiles: ['./tests/setup.ts'],
server: {
deps: {
// Force Vite to process @strudel packages so the alias is applied
inline: [/@strudel\/.*/],
},
},
include: ['src/**/*.test.{ts,tsx}', 'tests/unit/**/*.test.{ts,tsx}', 'tests/integration/**/*.test.{ts,tsx}'],
exclude: ['tests/e2e/**'],
coverage: {
provider: 'v8',
include: ['src/**/*.{ts,tsx}'],
exclude: ['src/**/*.test.{ts,tsx}', 'src/main.tsx', 'src/vite-env.d.ts', 'src/wasm/**/*.d.ts'],
thresholds: {
statements: 40,
branches: 35,
functions: 35,
lines: 40,
},
},
},
});