Files
Homarr/vitest.config.ts
Manuel 690c627f81 Add login redirection
*  Add login redirection

* 🚑 Fix cross site scripting using server side regex validation

*  Add unit test
2023-09-24 16:04:07 +02:00

20 lines
555 B
TypeScript

import react from '@vitejs/plugin-react';
import tsconfigPaths from 'vite-tsconfig-paths';
import { configDefaults, defineConfig } from 'vitest/config';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [react(), tsconfigPaths()],
test: {
environment: 'happy-dom',
coverage: {
provider: 'v8',
reporter: ['html', 'json-summary', 'json'],
all: true,
exclude: ['.next/', '.yarn/', 'data/'],
},
setupFiles: ['./tests/setupVitest.ts'],
exclude: [...configDefaults.exclude, '.next'],
},
});