storybook/code/renderers/svelte/vitest.config.ts
2024-05-15 23:05:36 +02:00

19 lines
556 B
TypeScript

/* eslint-disable import/no-extraneous-dependencies */
import { defineConfig, mergeConfig } from 'vitest/config';
import { vitestCommonConfig } from '../../vitest.workspace';
export default defineConfig(
mergeConfig(vitestCommonConfig, {
test: {
environment: 'node',
// setupFiles: ['./vitest-setup.ts'],
},
plugins: [
// eslint-disable-next-line import/no-unresolved
import('@sveltejs/vite-plugin-svelte').then(({ svelte, vitePreprocess }) =>
svelte({ preprocess: vitePreprocess() })
),
],
})
);