From eab4a24751a32c6d1cf52536d4d63d0628ac8384 Mon Sep 17 00:00:00 2001 From: mahula Date: Thu, 26 Jun 2025 22:32:59 +0200 Subject: [PATCH] e2e: adapt cypress browserify configuration to ignore express due to expressjs dependencies --- cypress/cypress.config.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cypress/cypress.config.js b/cypress/cypress.config.js index 0d11469fc..b79525f0b 100644 --- a/cypress/cypress.config.js +++ b/cypress/cypress.config.js @@ -19,9 +19,9 @@ async function setupNodeEvents(on, config) { browserify({ ...preprendTransformerToOptions(config, browserify.defaultOptions), onBundle(bundle) { - // Ignore Node.js built-ins not available in browser - bundle.ignore('async_hooks') // Used by tslog logger - bundle.ignore('http') // Node.js built-in + // Ignore modules not available in browser environment + bundle.ignore('async_hooks') // Used by tslog logger - Node.js built-in + bundle.ignore('express') // Server framework causing prototype errors } }), );