Files
CollabTable/shared/packages/web-ui/vitest.config.ts
T

14 lines
472 B
TypeScript
Raw Normal View History

import { svelte } from '@sveltejs/vite-plugin-svelte';
import { svelteTesting } from '@testing-library/svelte/vite';
import { defineConfig } from 'vitest/config';
// Component and store tests run in jsdom. They live in tests/, outside src/lib, so svelte-package
// never ships them.
export default defineConfig({
plugins: [svelte(), svelteTesting()],
test: {
environment: 'jsdom',
include: ['tests/**/*.test.ts'],
setupFiles: ['tests/setup.ts'],
},
});