forked from un-ts/unuse
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.ts
More file actions
35 lines (33 loc) · 856 Bytes
/
Copy pathvitest.config.ts
File metadata and controls
35 lines (33 loc) · 856 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
34
35
import { defaultExclude, defineConfig } from 'vitest/config';
export default defineConfig({
test: {
exclude: ['**/e2e/**', ...defaultExclude],
coverage: {
all: true,
provider: 'v8',
reporter: ['clover', 'cobertura', 'json-summary', 'json', 'lcov', 'text'],
exclude: [
'**/dist/**',
'**/*.config.ts',
'docs/.vitepress/**',
'examples',
],
reportOnFailure: true,
thresholds: {
// TODO @Shinigami92 2025-06-22: should be:
// lines: 90,
// statements: 90,
// functions: 90,
// branches: 85,
// for now:
lines: 75,
statements: 75,
functions: 75,
branches: 80,
},
},
reporters: process.env.CI
? ['default', 'github-actions']
: [['default', { summary: false }]],
},
});