Skip to content

Commit 02e36b6

Browse files
authored
fix: hard code mocha runner for pw-test (#1343)
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
1 parent af18280 commit 02e36b6

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test/browser.js

+4
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ export default async (argv, execaOptions) => {
4545
[
4646
...files,
4747
'--mode', argv.runner === 'browser' ? 'main' : 'worker',
48+
// autodetect is broken in pw-test
49+
// https://github.com/hugomrdias/playwright-test/issues/573
50+
// https://github.com/hugomrdias/playwright-test/issues/572
51+
'--runner', 'mocha',
4852
...watch,
4953
...cov,
5054
'--config', fromAegir('src/config/pw-test.js'),

0 commit comments

Comments
 (0)