* feat(infra): backend cookiecutter template with fastapi tortoise * feat(infra): cli cookiecutter template with typer entry point * feat(infra): fullstack cookiecutter template with sveltekit frontend * test(infra): cookiecutter template tests and render fixes * style(infra): ruff cleanup for cookiecutter template tests * style(infra): ruff format cookiecutter template tests * fix(infra): handle use_db no use_auth no in cookiecutter --------- Co-authored-by: opencode-agent <agent@opencode.local>
12 lines
No EOL
402 B
JavaScript
12 lines
No EOL
402 B
JavaScript
import { defineConfig } from 'vitest/config';
|
|
import { svelte } from '@sveltejs/vite-plugin-svelte';
|
|
|
|
// Separate vitest config — the sveltekit() plugin forces SSR which
|
|
// breaks jsdom-based component tests. Use the plain svelte() plugin.
|
|
export default defineConfig({
|
|
plugins: [svelte({ hot: !process.env.VITEST })],
|
|
test: {
|
|
environment: 'jsdom',
|
|
include: ['src/**/*.test.js'],
|
|
},
|
|
}); |