From 8cb278a8bd6e3daec2624d4feda3efd97a17cb5d Mon Sep 17 00:00:00 2001 From: christian-byrne Date: Sun, 26 Jan 2025 05:07:50 -0700 Subject: [PATCH] test --- playwright.setup.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/playwright.setup.ts b/playwright.setup.ts index 400e238a..ef4dd3cc 100644 --- a/playwright.setup.ts +++ b/playwright.setup.ts @@ -3,18 +3,18 @@ import { spawn } from 'node:child_process'; async function globalSetup() { console.log('Playwright globalSetup called'); - return new Promise((resolve, reject) => { - const electron = spawn('node', ['./scripts/launchCI.js']); + return new Promise(() => { + spawn('node', ['./scripts/launchCI.js']); - electron.on('close', () => { - reject(new Error('process failed to start')); - }); + // electron.on('close', () => { + // reject(new Error('process failed to start')); + // }); - electron.stdout.on('data', (data: string | Buffer) => { - if (data.includes('App ready')) { - resolve(); - } - }); + // electron.stdout.on('data', (data: string | Buffer) => { + // if (data.includes('App ready')) { + // resolve(); + // } + // }); }); }