Adjust tests to use vitest + jsdom
This commit is contained in:
+2
-1
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user