Skip to content

Commit

Permalink
fix: tolerate failure to install browsers (#30)
Browse files Browse the repository at this point in the history
This is done elsewhere in monorepo test jobs and can cause problems when run in parallel
  • Loading branch information
achingbrain authored Oct 8, 2024
1 parent 07f6bc9 commit 67b4dbd
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions bin/test-browser-example.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,16 @@

import { execa } from 'execa'

// install deps
await execa('npx', ['-y', 'playwright', 'install', '--with-deps'], {
stdio: 'inherit'
})
try {
// install deps
await execa('npx', ['-y', 'playwright', 'install', '--with-deps'], {
stdio: 'inherit'
})
} catch (err) {
if (!err.message.includes('Could not get lock')) {
throw err
}
}

for (const file of process.argv.slice(2)) {
// run test
Expand Down

0 comments on commit 67b4dbd

Please sign in to comment.