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}'], }, });