26 lines
579 B
TypeScript
26 lines
579 B
TypeScript
import { defineConfig } from 'vitest/config';
|
|
import react from '@vitejs/plugin-react';
|
|
import { codeInspectorPlugin } from 'code-inspector-plugin';
|
|
// https://vite.dev/config/
|
|
export default defineConfig({
|
|
plugins: [
|
|
codeInspectorPlugin({
|
|
bundler: 'vite',
|
|
}),
|
|
react()
|
|
],
|
|
test: {
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
setupFiles: './src/test/setup.ts',
|
|
},
|
|
server: {
|
|
port: 2613,
|
|
host: true, // Listen on all addresses
|
|
watch: {
|
|
usePolling: true, // Necessary for Docker on Windows
|
|
},
|
|
allowedHosts: ['all'],
|
|
},
|
|
});
|