18 lines
462 B
TypeScript
18 lines
462 B
TypeScript
/// <reference types="vitest" />
|
|
/// <reference types="vite/client" />
|
|
|
|
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
|
|
// https://vitejs.dev/config/
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
test: {
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
setupFiles: './src/test/setup.ts',
|
|
// you might want to disable it, if you don't have tests that rely on CSS
|
|
// since parsing CSS is slow
|
|
css: false
|
|
}
|
|
});
|