tape-testing / tape-run

Headless tape test runner
222 stars 23 forks source link

option `--browser=chrome` not working #83

Open nichoth opened 3 years ago

nichoth commented 3 years ago

https://github.com/nichoth/wn-blob/blob/main/package.json

It returns 'no matches for chrome' even though chrome is installed

A test:

    "test": "browserify -d -p esmify test/index.js | tape-run --browser=\"chrome\" --render=\"tap-spec\""

results:

Error [ERR_UNHANDLED_ERROR]: Unhandled error. ('no matches for chrome/*')
    at new NodeError (node:internal/errors:371:5)
    at Stream.emit (node:events:383:17)
    at Stream.onerror (node:internal/streams/readable:773:14)
    at Stream.emit (node:events:406:35)
    at Stream.reemit (/Users/nick/code/wn-blob/node_modules/throughout/node_modules/duplexer/index.js:75:16)
    at Stream.emit (node:events:406:35)
    at /Users/nick/code/wn-blob/node_modules/browser-run/index.js:103:29
    at runRunner (/Users/nick/code/wn-blob/node_modules/browser-launcher/index.js:64:14)
    at /Users/nick/code/wn-blob/node_modules/browser-launcher/index.js:74:22
    at /Users/nick/code/wn-blob/node_modules/browser-launcher/index.js:47:22 {
  code: 'ERR_UNHANDLED_ERROR',
  context: 'no matches for chrome/*'
juliangruber commented 3 years ago

I assume that's on mac OS, right?

juliangruber commented 3 years ago

I can reproduce this on my mac

juliangruber commented 3 years ago

I think the fix is switching to https://github.com/juliangruber/just-launch, as browser-run has been unmaintained from time to time and with the new approach we can easily maintain individual browsers.

andrewvmail commented 2 years ago

rm -rf ~/.config/browser-launcher/config.json