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>
19 lines
434 B
TypeScript
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,
|
|
},
|
|
});
|