-
Notifications
You must be signed in to change notification settings - Fork 466
/
Copy pathvitest.config.mts
32 lines (30 loc) · 986 Bytes
/
vitest.config.mts
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
// eslint-disable-next-line import/no-extraneous-dependencies, import/no-unassigned-import
import '@vitest/coverage-v8'
import {defineConfig} from 'vitest/config'
export default defineConfig({
test: {
coverage: {
provider: 'v8',
reporter: ['html', 'json', 'json-summary'],
include: ['packages/**/src/**'],
exclude: [
// exclude workshop files
'**/__workshop__/**',
// exclude telemetry definitions
'**/__telemetry__/**',
// exclude internal
'packages/@repo/**',
// exclude cli source files since their tests run in separate processes, so no coverage will be collected
'packages/@sanity/cli/src/**',
'packages/sanity/src/_internal/cli/**',
],
reportOnFailure: true,
clean: true,
},
typecheck: {
enabled: true,
// @TODO we have a lot of TS errors to fix in test files before we can remove this line
ignoreSourceErrors: true,
},
},
})