-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvitest.config.mts
More file actions
37 lines (36 loc) · 941 Bytes
/
vitest.config.mts
File metadata and controls
37 lines (36 loc) · 941 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
36
37
import { mergeConfig, defineConfig } from 'vitest/config';
import viteConfig from './vite.config.mjs';
export default mergeConfig(
viteConfig,
defineConfig({
build: {
sourcemap: true,
},
test: {
globals: true,
reporters: ['default', 'junit'],
outputFile: `./reports/vitest/junit/junit.xml`,
include: [`./src/**/*.test.ts`],
watch: false,
setupFiles: [`./tests/vitest/vitest.setup.ts`],
coverage: {
enabled: true,
provider: 'v8',
include: [`./src/**/*.ts`],
exclude: [
'**/src/main.ts',
'**/*.toledo.module.ts',
'**/*.bootstrap.ts',
'**/src/orm/**',
'**/*types.ts',
'**/*.d.ts',
'**/*test.ts',
'**/index.ts',
'**/private/**',
],
reportsDirectory: 'reports/vitest/coverage',
reporter: ['text', 'cobertura'],
},
},
})
);