diff --git a/tests/karma.config.js b/tests/karma.config.js index b37a018a..0d7e869f 100644 --- a/tests/karma.config.js +++ b/tests/karma.config.js @@ -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.