-
Hey, have had some issue with test runner in a WSL container, as there does not seem to be a default browser. [0] index 7b9df4c..a22ce47 100644
--- a/web-test-runner.config.mjs
+++ b/web-test-runner.config.mjs
@@ -1,5 +1,6 @@
import { importMapsPlugin } from '@web/dev-server-import-maps';
import { defaultReporter } from '@web/test-runner';
+import { chromeLauncher } from '@web/test-runner-chrome';
function customReporter() {
return {
@@ -35,6 +36,13 @@ export default {
],
},
plugins: [importMapsPlugin({})],
+ browsers: [
+ chromeLauncher({
+ launchOptions: {
+ executablePath: '/usr/bin/google-chrome'
+ },
+ }),
+ ],
reporters: [``` |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Seems like an open issue for web test runner: modernweb-dev/web#701 If we'd commit the workaround, it wouldn't work on macOS anymore... so you might be stuck with having those changes purely locally |
Beta Was this translation helpful? Give feedback.
Looks like there is another workaround by specifying an environment variable that points to your WSL chrome installation (modernweb-dev/web#701 (comment)):
I agree with @mokimo that we shouldn't commit the config change.