Skip to content

Commit

Permalink
Merge pull request #339 from hypothesis/fix-tests-in-node-v14
Browse files Browse the repository at this point in the history
Fix test runner under Node 14
  • Loading branch information
robertknight committed Apr 30, 2020
2 parents 18073e4 + 3f06722 commit 33dfc86
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion tests/karma.config.js
Original file line number Diff line number Diff line change
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 33dfc86

Please sign in to comment.