Make Vitest helpers global

This commit is contained in:
Steve Kinney
2024-10-01 16:49:45 -05:00
parent 45f8282a05
commit 7f6b9ad691
19 changed files with 48 additions and 32 deletions

View File

@@ -6,4 +6,8 @@ import { css } from 'css-configuration';
export default defineConfig({
plugins: [react()],
css,
test: {
environment: 'happy-dom',
globals: true,
},
});

View File

@@ -1,8 +0,0 @@
import { mergeConfig } from 'vitest/config';
import config from './vite.config';
export default mergeConfig(config, {
test: {
environment: 'happy-dom',
},
});