-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvitest.config.ts
30 lines (28 loc) · 932 Bytes
/
vitest.config.ts
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 { defineConfig, mergeConfig } from 'vitest/config'
import viteConfig from './vite.config'
export default mergeConfig(viteConfig, defineConfig({
test: {
clearMocks: true,
environment: 'jsdom',
include: ['tests/**/*.{vue,ts,tsx'],
watchExclude: ['**/node_modules/**', '**/public/**'],
reporters: [
'default',
// 'dot',
// 'json',
],
coverage: {
include: ['src/**/*'],
clean: true,
reporter: ['text', !process.env.GITHUB_ACTIONS && 'html'].filter(reporter => !!reporter),
reportOnFailure: true,
all: true,
skipFull: false,
// Coverage thresholds
// lines: 100,
// functions: 100,
// branches: 100,
// statements: 100
},
},
}))