import { defineConfig } from 'vitest/config'; export default defineConfig({ esbuild: { // testy są poza tsconfig.app.json (jsx: react-jsx dotyczy src) — wymuszamy // automatyczny runtime JSX dla całej transformacji jsx: 'automatic', }, test: { environment: 'jsdom', setupFiles: ['test/setup.ts'], include: ['test/**/*.{test.ts,tsx}'], }, });