Skip to content

Commit 6dccd27

Browse files
authored
fix(wire): fix the wire mode (#4008)
1 parent 7ccdc51 commit 6dccd27

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/driver.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,6 @@ export function runServer() {
6363
(playwright as any).electron = new Electron();
6464
new PlaywrightDispatcher(dispatcherConnection.rootDispatcher(), playwright);
6565
}
66+
67+
if (process.argv[2] === 'serve')
68+
runServer();

test/fixtures.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ fixtures.overrideWorkerFixture('playwright', async ({ browserName, testWorkerInd
9292
if (wire) {
9393
require('../lib/utils/utils').setUnderTest();
9494
const connection = new Connection();
95-
const spawnedProcess = childProcess.fork(path.join(__dirname, '..', 'lib', 'server.js'), [], {
95+
const spawnedProcess = childProcess.fork(path.join(__dirname, '..', 'lib', 'driver.js'), ['serve'], {
9696
stdio: 'pipe',
9797
detached: true,
9898
});

0 commit comments

Comments
 (0)