Anvil/vitest.config.ts

18 lines
329 B
TypeScript
Raw Normal View History

import { svelte } from '@sveltejs/vite-plugin-svelte';
import { defineConfig } from 'vitest/config';
export default defineConfig({
plugins: [svelte({ hot: !process.env.VITEST })],
test: {
coverage: {
include: [
'src/**/*.svelte'
]
},
include: ['tests/**/*.test.ts'],
environment: 'jsdom',
globals: true
}
});