-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathvitest.coverage.config.js
More file actions
43 lines (42 loc) · 1.14 KB
/
vitest.coverage.config.js
File metadata and controls
43 lines (42 loc) · 1.14 KB
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
36
37
38
39
40
41
42
43
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
testTimeout: 60000,
hookTimeout: 30000,
include: [
'test/features/auth.test.js',
'test/unit/**/*.test.js',
'test/platforms/crates.test.js',
'test/platforms/cran.test.js',
'test/platforms/flathub.test.js',
'test/platforms/homebrew.test.js',
'test/platforms/jenkins.test.js',
'test/platforms/npm-fix.test.js',
'test/platforms/opensuse.test.js'
],
coverage: {
// Cloudflare's Vitest Workers pool cannot emit reliable coverage yet,
// so this suite targets the Node-compatible tests that still exercise src/.
provider: 'istanbul',
reporter: ['text', 'json', 'html', 'lcov'],
reportsDirectory: './coverage',
exclude: [
'node_modules/**',
'test/**',
'coverage/**',
'dist/**',
'*.config.js',
'*.config.ts'
],
include: ['src/**/*.js', 'src/**/*.ts'],
thresholds: {
global: {
branches: 65,
functions: 75,
lines: 70,
statements: 70
}
}
}
}
});