Files
Homarr/vitest.config.ts

20 lines
555 B
TypeScript
Raw Permalink Normal View History

2023-03-17 22:10:00 +01:00
import react from '@vitejs/plugin-react';
2023-06-10 20:30:52 +02:00
import tsconfigPaths from 'vite-tsconfig-paths';
import { configDefaults, defineConfig } from 'vitest/config';
2023-03-17 22:10:00 +01:00
// https://vitejs.dev/config/
export default defineConfig({
2023-06-10 20:30:52 +02:00
plugins: [react(), tsconfigPaths()],
2023-03-17 22:10:00 +01:00
test: {
2023-03-22 13:29:00 +01:00
environment: 'happy-dom',
2023-03-17 23:17:58 +01:00
coverage: {
2023-09-21 19:45:30 +02:00
provider: 'v8',
reporter: ['html', 'json-summary', 'json'],
2023-03-17 23:17:58 +01:00
all: true,
2023-03-22 13:29:00 +01:00
exclude: ['.next/', '.yarn/', 'data/'],
2023-03-20 23:17:17 +01:00
},
2023-03-29 10:20:01 +00:00
setupFiles: ['./tests/setupVitest.ts'],
2023-06-10 20:30:52 +02:00
exclude: [...configDefaults.exclude, '.next'],
2023-03-17 22:10:00 +01:00
},
});