-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
vitest.config.ts
30 lines (29 loc) · 916 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
import { coverageConfigDefaults, defineConfig } from 'vitest/config'
export default defineConfig({
test: {
coverage: {
all: true,
reportsDirectory: './coverage',
exclude: [
...coverageConfigDefaults.exclude,
'docs/**',
'**/vitest.*',
'src/types.ts',
// We use this to set up test environments so it isn‘t picked up, but we are testing it downstream.
'src/integrations/virtual-user-config.ts',
// Types-only export.
'src/props.ts',
// Main integration entrypoint — don’t think we’re able to test this directly currently.
'src/index.ts',
],
// TODO: Uncomment when we have a stable coverage threshold.
// thresholds: {
// autoUpdate: true,
// lines: 89.28,
// functions: 92.78,
// branches: 92.83,
// statements: 89.28,
// },
},
},
})