forked from johannesjo/parallel-code
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
33 lines (32 loc) · 980 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
33 lines (32 loc) · 980 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
import { defineConfig } from 'vitest/config';
import solidPlugin from 'vite-plugin-solid';
export default defineConfig({
plugins: [solidPlugin({ ssr: true })],
test: {
environment: 'node',
setupFiles: ['./vitest.setup.ts'],
include: ['src/**/*.test.ts', 'electron/**/*.test.ts', 'scripts/**/*.test.mjs'],
coverage: {
provider: 'v8',
reporter: ['text', 'html', 'json-summary'],
reportsDirectory: './coverage',
// A floor, not a target: ~3 points under the measured totals (58/56/45/54
// at the time of writing) so CI fails when a change drops coverage
// noticeably, without failing on noise. Raise these as coverage grows.
thresholds: {
lines: 55,
statements: 53,
functions: 42,
branches: 50,
},
exclude: [
'coverage/**',
'dist/**',
'dist-electron/**',
'dist-remote/**',
'build/**',
'**/*.test.ts',
],
},
},
});