Files
radicle-explorer/httpd-client/vite.config.ts
T
Sebastian Martinez f50521ca23 Update httpd tests to use happy-dom as environment
Since we require the httpd client to query config.json we need the tests
to understand what the window object is
2024-05-03 08:34:08 +02:00

19 lines
439 B
TypeScript

import { defineConfig } from "vite";
import path from "node:path";
export default defineConfig({
test: {
environment: "happy-dom",
include: ["httpd-client/tests/*.test.ts"],
reporters: "verbose",
globalSetup: "./tests/support/globalSetup",
},
resolve: {
alias: {
"@tests": path.resolve("./tests"),
"@app": path.resolve("./src"),
"@httpd-client": path.resolve("./httpd-client"),
},
},
});