import { fileURLToPath } from 'node:url'; import { defineConfig } from 'vitest/config'; // Frontend tests cover the transport-agnostic logic (event application, stream // lifecycle). They run on plain TypeScript modules, so no Svelte plugin or DOM // environment is needed. export default defineConfig({ resolve: { alias: { $lib: fileURLToPath(new URL('./src/lib', import.meta.url)) } }, test: { include: ['src/**/*.test.ts'], environment: 'node' } });