-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvite.config.ts
More file actions
26 lines (25 loc) · 754 Bytes
/
vite.config.ts
File metadata and controls
26 lines (25 loc) · 754 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 react from '@vitejs/plugin-react';
import { type UserConfig, defineConfig } from 'vite';
import biomePlugin from 'vite-plugin-biome';
// https://vite.dev/config/
export default defineConfig({
plugins: [react(), biomePlugin()],
test: {
environment: 'jsdom',
globals: true,
// setupFiles: './src/tests/setup.ts',
exclude: ['e2e-tests/**', 'node_modules', 'dist', '.git'],
coverage: {
provider: 'v8',
reporter: ['cobertura', 'text', 'html'],
reportsDirectory: 'coverage-reports',
include: ['src/**/*.{js,ts,jsx,tsx}'],
exclude: [
'src/**/*.test.{js,ts,jsx,tsx}',
'src/**/__mocks__/**',
'src/**/stories/**',
'src/**/*.d.ts',
],
},
},
} as UserConfig);