Files
FitOS/admin/vitest.config.ts
2026-09-04 19:06:19 +02:00

15 lines
390 B
TypeScript

import { defineConfig } from 'vitest/config';
export default defineConfig({
esbuild: {
// test files are outside tsconfig.app.json (which sets jsx: react-jsx for src),
// so force the automatic JSX runtime for the whole transform
jsx: 'automatic',
},
test: {
environment: 'jsdom',
setupFiles: ['test/setup.ts'],
include: ['test/**/*.{test.ts,tsx}'],
},
});