Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
chore: adjust minimal version for ESM usage (#35872)
Max Schmittd447945971ff
diff --git a/packages/playwright/src/common/configLoader.ts b/packages/playwright/src/common/configLoader.tsindex 0993ddb415..4833197773 100644--- a/packages/playwright/src/common/configLoader.ts+++ b/packages/playwright/src/common/configLoader.ts@@ -105,7 +105,7 @@ export async function loadConfig(location: ConfigLocation, overrides?: ConfigCLI// In Node.js < 18, complain if the config file is ESM. Historically, we would restart// the process with --loader, but now we require newer Node.js.if (location.resolvedConfigFile && fileIsModule(location.resolvedConfigFile))- throw errorWithFile(location.resolvedConfigFile, `Playwright requires Node.js 18 or higher to load esm modules. Please update your version of Node.js.`);+ throw errorWithFile(location.resolvedConfigFile, `Playwright requires Node.js 18.19 or higher to load esm modules. Please update your version of Node.js.`);}// 1. Setup tsconfig; configure ESM loader with tsconfig and compilation cache.