From b5110121281f0e777227111e2f4aa7285c527705 Mon Sep 17 00:00:00 2001 From: Max Schmitt Date: Mon, 5 Aug 2024 11:51:09 +0200 Subject: [PATCH] chore: remove inernalsForTest package.json export --- packages/playwright/package.json | 1 - tests/playwright-test/watch.spec.ts | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/playwright/package.json b/packages/playwright/package.json index d6a2aa23b2..b64a912ffb 100644 --- a/packages/playwright/package.json +++ b/packages/playwright/package.json @@ -28,7 +28,6 @@ "./lib/runner/testServer": "./lib/runner/testServer.js", "./lib/transform/esmLoader": "./lib/transform/esmLoader.js", "./lib/transform/transform": "./lib/transform/transform.js", - "./lib/internalsForTest": "./lib/internalsForTest.js", "./lib/plugins": "./lib/plugins/index.js", "./jsx-runtime": { "import": "./jsx-runtime.mjs", diff --git a/tests/playwright-test/watch.spec.ts b/tests/playwright-test/watch.spec.ts index 946377a357..181fdd4177 100644 --- a/tests/playwright-test/watch.spec.ts +++ b/tests/playwright-test/watch.spec.ts @@ -40,7 +40,7 @@ test('should print dependencies in CJS mode', async ({ runInlineTest }) => { test('passes', () => {}); `, 'globalTeardown.ts': ` - import { fileDependencies } from 'playwright/lib/internalsForTest'; + const { fileDependencies } = require(path.join(path.dirname(require.resolve('playwright')), 'lib/internalsForTest.js')); export default () => { console.log('###' + JSON.stringify(fileDependencies()) + '###'); };