Skip to content

Commit

Permalink
Fix test runner under Node 14
Browse files Browse the repository at this point in the history
Apply the same fix as was used in the "client" repo in
hypothesis/client#2086.
  • Loading branch information
robertknight committed Apr 28, 2020
1 parent 18073e4 commit 3f06722
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/karma.config.js
Expand Up @@ -3,7 +3,15 @@
/* global process */

let chromeFlags = [];
process.env.CHROME_BIN = require('puppeteer').executablePath();

if (process.version.startsWith('v14.')) {
// See https://github.com/puppeteer/puppeteer/issues/5719
console.warn(
'Using system Chrome instead of Puppeteer due to issue with Node 14'
);
} else {
process.env.CHROME_BIN = require('puppeteer').executablePath();
}

// On Travis and in Docker, the tests run as root, so the sandbox must be
// disabled.
Expand Down

0 comments on commit 3f06722

Please sign in to comment.