From 02e36b64405da2045a5421de27307e33ec24ccf2 Mon Sep 17 00:00:00 2001 From: Alex Potsides Date: Thu, 27 Jul 2023 14:17:32 +0100 Subject: [PATCH] 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: - https://github.com/hugomrdias/playwright-test/issues/573 - https://github.com/hugomrdias/playwright-test/issues/572 --- src/test/browser.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/test/browser.js b/src/test/browser.js index c428bb9bd..ac9a870c0 100644 --- a/src/test/browser.js +++ b/src/test/browser.js @@ -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'),