import { defineConfig } from 'vitest/config' import { fileURLToPath } from 'node:url' export default defineConfig({ test: { environment: 'node', include: ['tests/**/*.test.ts'], setupFiles: ['./tests/setup/umgebung.ts'], }, resolve: { alias: [ { find: '@', replacement: fileURLToPath(new URL('./src', import.meta.url)) }, // "server-only" wirft absichtlich beim Import ausserhalb des Servers. { find: /^server-only$/, replacement: fileURLToPath(new URL('./tests/setup/leer.ts', import.meta.url)), }, ], }, })