Skip to content

Commit

Permalink
fix: hard code mocha runner for pw-test (#1343)
Browse files Browse the repository at this point in the history
Autodetecting test runners is broken in playwright test. We only
use mocha so just pass it in as an option.

Refs:

- hugomrdias/playwright-test#573
- hugomrdias/playwright-test#572
  • Loading branch information
achingbrain authored Jul 27, 2023
1 parent af18280 commit 02e36b6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/test/browser.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,10 @@ export default async (argv, execaOptions) => {
[
...files,
'--mode', argv.runner === 'browser' ? 'main' : 'worker',
// autodetect is broken in pw-test
// https://github.com/hugomrdias/playwright-test/issues/573
// https://github.com/hugomrdias/playwright-test/issues/572
'--runner', 'mocha',
...watch,
...cov,
'--config', fromAegir('src/config/pw-test.js'),
Expand Down

0 comments on commit 02e36b6

Please sign in to comment.