storybook/code/renderers/svelte/vitest.config.ts

16 lines
436 B
TypeScript

import { defineConfig, mergeConfig } from 'vitest/config';
import { vitestCommonConfig } from '../../vitest.workspace';
export default defineConfig(
mergeConfig(vitestCommonConfig, {
plugins: [
import('@sveltejs/vite-plugin-svelte').then(({ svelte }) => svelte()),
import('@testing-library/svelte/vite').then(({ svelteTesting }) => svelteTesting()),
],
test: {
environment: 'happy-dom',
},
})
);