From a9066456605a168dec46439c3d0977a0995f5ff2 Mon Sep 17 00:00:00 2001 From: mahula Date: Thu, 26 Jun 2025 21:35:45 +0200 Subject: [PATCH] e2e: adapt cypress browserify configuration to ignore async_hooks --- cypress/cypress.config.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/cypress/cypress.config.js b/cypress/cypress.config.js index 52a765bf0..eb044115e 100644 --- a/cypress/cypress.config.js +++ b/cypress/cypress.config.js @@ -16,7 +16,13 @@ async function setupNodeEvents(on, config) { on( 'file:preprocessor', - browserify(preprendTransformerToOptions(config, browserify.defaultOptions)), + browserify({ + ...preprendTransformerToOptions(config, browserify.defaultOptions), + onBundle(bundle) { + // Ignore async_hooks used by tslog logger - Node.js built-in not available in browser + bundle.ignore('async_hooks') + } + }), ); on('task', {