-
-
Notifications
You must be signed in to change notification settings - Fork 49
Expand file tree
/
Copy pathvitest.config.ts
More file actions
30 lines (29 loc) · 739 Bytes
/
vitest.config.ts
File metadata and controls
30 lines (29 loc) · 739 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
import { resolve } from 'node:path';
import { defineConfig } from 'vitest/config';
// https://vitejs.dev/config/
export default defineConfig({
resolve: {
alias: {
src: resolve(import.meta.dirname, './src'),
tests: resolve(import.meta.dirname, './tests'),
},
},
test: {
coverage: {
all: true,
provider: 'v8',
reporter: ['clover', 'cobertura', 'json-summary', 'json', 'lcov', 'text'],
include: ['src'],
reportOnFailure: true,
thresholds: {
lines: 90,
statements: 90,
functions: 90,
branches: 90,
},
},
reporters: process.env.CI_PREFLIGHT
? ['default', 'github-actions']
: [['default', { summary: false }]],
},
});