-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvitest.config.mts
31 lines (28 loc) · 867 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
import { defineConfig } from 'vitest/config'
const threshold = 60
export default defineConfig({
root: 'src',
test: {
reporters: ['basic']
.concat(process.env.GITHUB_ACTIONS ? ['github-actions'] : []),
coverage: {
provider: 'istanbul',
exclude: [
'__tests__',
// Ignore generated scripts and code that generates it
'**/schemas/v2/api/',
'**/schemas/v2/generated/',
'**/scripts/v2/',
'**/utils/openapi.ts',
// TODO: add tests
'**/payloads/v2/normalized/'
],
thresholds: {
branches: threshold,
functions: threshold,
lines: threshold,
statements: threshold,
}
},
},
})