import { fileURLToPath } from 'node:url'; import { defineConfig } from 'vitest/config'; export default defineConfig({ resolve: { alias: [ { find: /^#(.*)$/, replacement: fileURLToPath(new URL('./$1', import.meta.url)) }, { find: 'server-only', replacement: fileURLToPath(new URL('./tests/stubs/server-only.ts', import.meta.url)) } ] }, esbuild: { jsx: 'automatic' }, test: { environment: 'node', include: ['tests/**/*.test.ts'] } });