Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettmflynn committed Jan 31, 2024
1 parent b92827f commit d03ae81
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/puppeteer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,14 +18,13 @@ const beforeStart = (timeout) => new Promise(async (resolve, reject) => {
console.log(`[electron] ${data}`)
}

const process = exec('npm run start') // Run Start Script from package.json
const process = exec('npm start') // Run Start Script from package.json
process.stdout.on('data', handleOutput);
process.stderr.on('data', handleOutput);
process.on('close', (code) => console.log(`[electron] Exited with code ${code}`));
await sleep(timeout) // Wait for five seconds for Electron to open

console.log('timed out')
reject()

reject('Failed to open Electron window successfully.')
})

type BrowserTestOutput = {
Expand Down

0 comments on commit d03ae81

Please sign in to comment.