diff --git a/src/server.ts b/src/server.ts index 0055cee82a..172ecd5bbb 100644 --- a/src/server.ts +++ b/src/server.ts @@ -33,6 +33,6 @@ transport.onclose = async () => { transport.onmessage = message => dispatcherConnection.dispatch(JSON.parse(message)); dispatcherConnection.onmessage = message => transport.send(JSON.stringify(message)); -const playwright = new Playwright(__dirname, require('../../browsers.json')['browsers']); +const playwright = new Playwright(__dirname, require('../browsers.json')['browsers']); (playwright as any).electron = new Electron(); new PlaywrightDispatcher(dispatcherConnection.rootDispatcher(), playwright); diff --git a/test/playwright.fixtures.ts b/test/playwright.fixtures.ts index 29de3c4d38..9595dd232a 100644 --- a/test/playwright.fixtures.ts +++ b/test/playwright.fixtures.ts @@ -117,7 +117,7 @@ registerWorkerFixture('playwright', async({browserName}, test) => { const {coverage, uninstall} = installCoverageHooks(browserName); if (options.WIRE) { const connection = new Connection(); - const spawnedProcess = childProcess.fork(path.join(__dirname, '..', 'lib', 'server'), [], { + const spawnedProcess = childProcess.fork(path.join(__dirname, '..', 'lib', 'server.js'), [], { stdio: 'pipe', detached: true, });