kammer/vitest.config.ts
Christopher Mühl b0a1ae214b chore: add vitest infrastructure and agent definitions
Set up vitest with jsdom, fake-indexeddb, @testing-library/svelte,
$app mock modules, and agent definitions for test-writer/implementer/reviewer.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-26 15:22:19 +01:00

19 lines
434 B
TypeScript

import { svelte } from '@sveltejs/vite-plugin-svelte';
import { defineConfig } from 'vitest/config';
import path from 'path';
export default defineConfig({
plugins: [svelte({ hot: false })],
resolve: {
alias: {
$lib: path.resolve('./src/lib'),
$app: path.resolve('./src/test/mocks'),
},
},
test: {
environment: 'jsdom',
setupFiles: ['./src/test/setup.ts'],
include: ['src/**/*.test.ts'],
globals: true,
},
});