I noticed when using tape-run that Firefox closed but Chrome stayed open (even though the tests completed anyway)
However this doesn't close the tab and window either:
echo "console.log('Hey from ' + location); window.close()" | browser-run --browser firefox
...nor any other browser I tested: chrome and safari.
The interesting part is that this closed the tab once, but on a second call the tab and window stayed open:
echo "var run = require('browser-run');
var browser = run({browser: 'chrome'});
browser.pipe(process.stdout);
browser.end('console.log(location); window.close()');" | node
I'm on macOS 10.15.2, Node v12.14.1
I noticed when using
tape-runthat Firefox closed but Chrome stayed open (even though the tests completed anyway)However this doesn't close the tab and window either:
...nor any other browser I tested: chrome and safari.
The interesting part is that this closed the tab once, but on a second call the tab and window stayed open:
I'm on macOS 10.15.2, Node v12.14.1