2026-04-15 15:03:15 +02:00
|
|
|
import { sveltekit } from '@sveltejs/kit/vite';
|
spa(task 2): runtime- und dev-dependencies installiert
Runtime: applesauce-core/relay/loaders/signers, nostr-tools, marked,
dompurify, highlight.js, rxjs.
Dev: vitest, @playwright/test, @testing-library/svelte, jsdom,
@types/dompurify.
vite.config.ts um vitest-Konfiguration erweitert (jsdom, globals,
tests/unit/**). package.json um test:unit, test:e2e, deploy:svelte
npm-Scripts ergänzt.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-15 15:09:10 +02:00
|
|
|
import { defineConfig } from 'vitest/config';
|
2026-04-15 15:03:15 +02:00
|
|
|
|
|
|
|
|
export default defineConfig({
|
spa(task 2): runtime- und dev-dependencies installiert
Runtime: applesauce-core/relay/loaders/signers, nostr-tools, marked,
dompurify, highlight.js, rxjs.
Dev: vitest, @playwright/test, @testing-library/svelte, jsdom,
@types/dompurify.
vite.config.ts um vitest-Konfiguration erweitert (jsdom, globals,
tests/unit/**). package.json um test:unit, test:e2e, deploy:svelte
npm-Scripts ergänzt.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-15 15:09:10 +02:00
|
|
|
plugins: [sveltekit()],
|
|
|
|
|
test: {
|
|
|
|
|
include: ['tests/unit/**/*.{test,spec}.{js,ts}'],
|
|
|
|
|
environment: 'jsdom',
|
|
|
|
|
globals: true
|
|
|
|
|
}
|
2026-04-15 15:03:15 +02:00
|
|
|
});
|