mirror of
https://github.com/ajnart/homarr.git
synced 2025-10-26 08:06:12 +01:00
* ✨ Add login redirection * 🚑 Fix cross site scripting using server side regex validation * ✅ Add unit test
20 lines
555 B
TypeScript
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'],
|
|
},
|
|
});
|