Fixed tests

This commit is contained in:
2026-02-12 01:27:33 +01:00 Verified
parent 21a7e64d10
commit 8ee8b76cb2
8 changed files with 1210 additions and 6 deletions
+15 -1
View File
@@ -1,7 +1,21 @@
// frontend/vite.config.js
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import path from 'path'
// https://vite.dev/config/
export default defineConfig({
plugins: [react()],
})
test: {
globals: true,
environment: 'jsdom',
setupFiles: './vitest.setup.js',
css: true,
},
resolve: {
alias: {
// This ensures that /vite.svg points to the public folder correctly
"/": path.resolve(__dirname, "./public"),
},
},
})