Adjust tests to use vitest + jsdom

This commit is contained in:
Schluffe
2026-08-08 18:35:57 +02:00
parent ae8c63ce11
commit 9bdffd06e4
20 changed files with 196 additions and 150 deletions
+2 -1
View File
@@ -1,6 +1,6 @@
import { fileURLToPath, URL } from "node:url";
import { defineConfig, type Plugin } from "vite";
import solidPlugin from "vite-plugin-solid";
import { defineConfig, type Plugin } from "vitest/config";
import middleware from "#/engine/dev/server/middleware.ts";
export const host = "localhost";
@@ -19,6 +19,7 @@ function devTools(): Plugin {
export default defineConfig({
server: { host, port, hmr: false },
build: { target: "esnext" },
test: { environment: "jsdom" },
plugins: [solidPlugin(), devTools()],
resolve: {
alias: {