-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathvitest.config.ts
More file actions
33 lines (32 loc) · 919 Bytes
/
vitest.config.ts
File metadata and controls
33 lines (32 loc) · 919 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
import { defineConfig } from 'vitest/config';
export default defineConfig({
test: {
projects: ['./packages/*/vitest.config.ts'],
silent: 'passed-only',
pool: 'forks',
coverage: {
reportOnFailure: true,
reportsDirectory: './coverage',
exclude: [
'**/node_modules/**',
'**/dist/**',
'**/.{idea,git,cache,output,temp}/**',
'**/{webpack,vite,vitest,ava,babel,nyc,cypress,tsup,build,eslint,prettier}.config.*',
'**/.prettierrc.mjs',
'*.mts',
'**/main.ts',
'**/index.ts',
'**/seed.ts',
'*.mock.ts',
'packages/*/libs/modules/**/dto/**',
'packages/configs',
'packages/*-prisma',
],
clean: true,
provider: 'v8',
reporter: ['cobertura', 'text', 'json-summary', 'json'],
},
reporters: ['junit', 'default'],
outputFile: './coverage/junit.json',
},
});