Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-byrne committed Jan 26, 2025
1 parent 6c8f0a5 commit 8cb278a
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions playwright.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ import { spawn } from 'node:child_process';
async function globalSetup() {
console.log('Playwright globalSetup called');

return new Promise<void>((resolve, reject) => {
const electron = spawn('node', ['./scripts/launchCI.js']);
return new Promise<void>(() => {
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();
// }
// });
});
}

Expand Down

0 comments on commit 8cb278a

Please sign in to comment.