18 lines
329 B
TypeScript
18 lines
329 B
TypeScript
|
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
|
||
|
}
|
||
|
});
|