import { fileURLToPath } from 'node:url' import { defineConfig } from 'vitest/config' export default defineConfig({ resolve: { alias: { '@': fileURLToPath(new URL('.', import.meta.url)) } }, oxc: { jsx: { runtime: 'automatic' } }, test: { projects: [ { extends: true, test: { name: 'jsdom', environment: 'jsdom', include: ['tests/**/*.test.tsx'], }, }, { extends: true, test: { name: 'node', environment: 'node', include: ['middleware.test.ts', 'scripts/*.test.ts', './lib/*.test.ts'], }, }, ], }, })