From 8b95fbeccdccfd38cabc40495060f5c34023770f Mon Sep 17 00:00:00 2001 From: Pavel Feldman Date: Mon, 5 Oct 2026 13:43:55 -0700 Subject: [PATCH] test: skip yarn-berry example runs on Node 20 --- tests/integration.spec.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/integration.spec.ts b/tests/integration.spec.ts index c8c4504..db28a28 100644 --- a/tests/integration.spec.ts +++ b/tests/integration.spec.ts @@ -92,6 +92,7 @@ test('should generate a project with JavaScript and without GHA', async ({ run, }); test('should generate be able to run TS examples successfully', { lock: 'apt-get' }, async ({ run, dir, exec, packageManager }) => { + test.skip(packageManager === 'yarn-berry' && process.version.startsWith('v20.'), 'Playwright ESM loader cannot be loaded from the Yarn PnP cache on Node 20'); test.slow(); await run([], { installGitHubActions: false, testDir: 'tests', language: 'TypeScript', installPlaywrightDependencies: false, installPlaywrightBrowsers: true }); expect(fs.existsSync(path.join(dir, 'tsconfig.json'))).toBeTruthy(); @@ -127,6 +128,7 @@ test('should not overwrite an existing tsconfig.json', async ({ run, dir }) => { }); test('should generate be able to run JS examples successfully', { lock: 'apt-get' }, async ({ run, dir, exec, packageManager }) => { + test.skip(packageManager === 'yarn-berry' && process.version.startsWith('v20.'), 'Playwright ESM loader cannot be loaded from the Yarn PnP cache on Node 20'); test.slow(); await run([], { installGitHubActions: false, testDir: 'tests', language: 'JavaScript', installPlaywrightDependencies: false, installPlaywrightBrowsers: true }); expect(fs.existsSync(path.join(dir, 'tests/example.spec.js'))).toBeTruthy();