update vitest setup

This commit is contained in:
e560248
2025-04-08 08:55:21 +02:00
parent cd4f632c85
commit b7ce3dbc21
4 changed files with 1664 additions and 3 deletions

View File

@@ -1,7 +1,11 @@
import { defineConfig } from 'vite'
import { defineConfig, UserConfig } from 'vite'
import react from '@vitejs/plugin-react'
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
})
test: {
// 👋 add the line below to add jsdom to vite
environment: 'jsdom',
}
} as UserConfig)