-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvitest.config.mjs
More file actions
26 lines (25 loc) · 960 Bytes
/
vitest.config.mjs
File metadata and controls
26 lines (25 loc) · 960 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
import { defineConfig } from 'vitest/config'
import react from '@vitejs/plugin-react'
import tsconfigPaths from 'vite-tsconfig-paths'
export default defineConfig({
plugins: [react(), tsconfigPaths()],
test: {
setupFiles: ['./tests/vitest.setup.ts'],
mockReset: true,
reporters: process.env.CI ? ['default', 'github-actions'] : ['verbose'],
environment: 'happy-dom',
include: ['src/**/*.(test).{js,jsx,ts,tsx}'],
exclude: ['src/components/providers.test.tsx'],
coverage: {
enabled: true,
// Eventually, after discussion, add some global rules
// thresholds: { 100: true },
thresholds: {
lines: true,
},
include: ['src/**/*.{js,jsx,ts,tsx}'],
exclude: ['src/components/providers.tsx', 'src/styles/**/*.ts', 'src/**/*.test.{js,jsx,ts,tsx}'],
reportOnFailure: true,
},
},
})