From 0e359d42d12511a63e04e0777247def427812876 Mon Sep 17 00:00:00 2001 From: Thomas Scholtes Date: Thu, 23 May 2024 14:55:50 +0200 Subject: [PATCH] Run httpd-client tests in node environment This prevents polyfills being installed that break node-only libraries. Also silences warnings when a vite server is not running while running the tests. --- httpd-client/vite.config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/httpd-client/vite.config.ts b/httpd-client/vite.config.ts index 1ff90c882..d6ce12fe2 100644 --- a/httpd-client/vite.config.ts +++ b/httpd-client/vite.config.ts @@ -10,7 +10,7 @@ export default defineConfig({ }), ], test: { - environment: "happy-dom", + environment: "node", include: ["httpd-client/tests/*.test.ts"], reporters: "verbose", globalSetup: "./tests/support/globalSetup",