2024-02-09 11:19:08 +01:00
|
|
|
import { svelte } from '@sveltejs/vite-plugin-svelte';
|
|
|
|
import { defineConfig } from 'vitest/config';
|
|
|
|
|
|
|
|
export default defineConfig({
|
|
|
|
plugins: [svelte({ hot: !process.env.VITEST })],
|
|
|
|
test: {
|
2024-02-09 11:29:03 +01:00
|
|
|
coverage: {
|
|
|
|
include: ['src/**/*.svelte']
|
|
|
|
},
|
2024-02-09 11:19:08 +01:00
|
|
|
include: ['tests/**/*.test.ts'],
|
|
|
|
environment: 'jsdom',
|
|
|
|
globals: true
|
|
|
|
}
|
|
|
|
});
|