storybook/code/renderers/svelte/vitest.config.ts
2024-10-17 20:42:45 +02:00

17 lines
516 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()),
// @ts-expect-error -- types don't match our TS module resolution setting
import('@testing-library/svelte/vite').then(({ svelteTesting }) => svelteTesting()),
],
test: {
environment: 'happy-dom',
},
})
);