test: switch vitest to happy-dom
All checks were successful
Deploy to Frontend Servers / deploy (push) Successful in 1m0s

This commit is contained in:
TerryM
2026-05-16 21:01:41 +08:00
parent a29ec8ed92
commit 1c1ef4801b
3 changed files with 63 additions and 563 deletions

View File

@@ -4,12 +4,7 @@ import react from "@vitejs/plugin-react";
export default defineConfig({
plugins: [react()],
test: {
environment: "jsdom",
environmentOptions: {
jsdom: {
url: "http://localhost/",
},
},
environment: "happy-dom",
setupFiles: "./src/test/setup.ts",
css: false,
},