We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7ac2dfb commit 8eb1ec9Copy full SHA for 8eb1ec9
1 file changed
vitest.config.js
@@ -1,10 +1,12 @@
1
import { defineConfig } from 'vite';
2
import { svelte } from '@sveltejs/vite-plugin-svelte';
3
+import { svelteTesting } from '@testing-library/svelte/vite';
4
5
export default defineConfig({
6
// eslint-disable-next-line no-undef
- plugins: [svelte({ hot: !process.env.VITEST })],
7
+ plugins: [svelte({ hot: !process.env.VITEST }), svelteTesting()],
8
test: {
9
+ environment: 'jsdom',
10
globals: false,
11
},
12
});
0 commit comments