From 8307da1ce6a8551989478225eaa91c16aa1c1dd6 Mon Sep 17 00:00:00 2001 From: Pascal Birchler Date: Tue, 26 Aug 2025 11:13:42 +0200 Subject: [PATCH] Scripts: do not access `window` global --- packages/scripts/scripts/test-playwright.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/scripts/scripts/test-playwright.js b/packages/scripts/scripts/test-playwright.js index c0f1ac6783633d..d48623c0e9c6be 100644 --- a/packages/scripts/scripts/test-playwright.js +++ b/packages/scripts/scripts/test-playwright.js @@ -42,7 +42,8 @@ try { // First, try to load the package installed from among the optional peerDependencies. loadConfig = require( '@wordpress/env/lib/config/load-config' ); } catch ( error ) { - window.console.log( + // eslint-disable-next-line no-console + console.log( 'Notice: Could not find @wordpress/env package. Using WP_BASE_URL environment variable or else the default http://localhost:8889 URL for tests.' ); }