mirror of
https://github.com/microsoft/playwright.git
synced 2024-12-14 05:37:20 +03:00
fix(wire): fix the wire mode (#4008)
This commit is contained in:
parent
7ccdc5176d
commit
6dccd2735a
@ -63,3 +63,6 @@ export function runServer() {
|
||||
(playwright as any).electron = new Electron();
|
||||
new PlaywrightDispatcher(dispatcherConnection.rootDispatcher(), playwright);
|
||||
}
|
||||
|
||||
if (process.argv[2] === 'serve')
|
||||
runServer();
|
||||
|
@ -92,7 +92,7 @@ fixtures.overrideWorkerFixture('playwright', async ({ browserName, testWorkerInd
|
||||
if (wire) {
|
||||
require('../lib/utils/utils').setUnderTest();
|
||||
const connection = new Connection();
|
||||
const spawnedProcess = childProcess.fork(path.join(__dirname, '..', 'lib', 'server.js'), [], {
|
||||
const spawnedProcess = childProcess.fork(path.join(__dirname, '..', 'lib', 'driver.js'), ['serve'], {
|
||||
stdio: 'pipe',
|
||||
detached: true,
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user