-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvitest.config.ts
31 lines (30 loc) · 959 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
31
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',
// Since Vitest 2.1.2, coverage is collected for `*.astro` files.
'**/*.astro',
],
// TODO: Uncomment when we have better coverage.
// thresholds: {
// lines: 87,
// functions: 90,
// branches: 90,
// statements: 87,
// },
},
},
})