chore: remove inernalsForTest package.json export

This commit is contained in:
Max Schmitt 2024-08-05 11:51:09 +02:00
parent daf6c40160
commit b511012128
2 changed files with 1 additions and 2 deletions

View file

@ -28,7 +28,6 @@
"./lib/runner/testServer": "./lib/runner/testServer.js", "./lib/runner/testServer": "./lib/runner/testServer.js",
"./lib/transform/esmLoader": "./lib/transform/esmLoader.js", "./lib/transform/esmLoader": "./lib/transform/esmLoader.js",
"./lib/transform/transform": "./lib/transform/transform.js", "./lib/transform/transform": "./lib/transform/transform.js",
"./lib/internalsForTest": "./lib/internalsForTest.js",
"./lib/plugins": "./lib/plugins/index.js", "./lib/plugins": "./lib/plugins/index.js",
"./jsx-runtime": { "./jsx-runtime": {
"import": "./jsx-runtime.mjs", "import": "./jsx-runtime.mjs",

View file

@ -40,7 +40,7 @@ test('should print dependencies in CJS mode', async ({ runInlineTest }) => {
test('passes', () => {}); test('passes', () => {});
`, `,
'globalTeardown.ts': ` 'globalTeardown.ts': `
import { fileDependencies } from 'playwright/lib/internalsForTest'; const { fileDependencies } = require(path.join(path.dirname(require.resolve('playwright')), 'lib/internalsForTest.js'));
export default () => { export default () => {
console.log('###' + JSON.stringify(fileDependencies()) + '###'); console.log('###' + JSON.stringify(fileDependencies()) + '###');
}; };