Use Puppeteer to launch headless chrome
Some checks failed
Core Repos/Homepage/pipeline/head There was a failure building this commit

This commit is contained in:
Cameron Cordes
2020-04-20 19:55:21 -04:00
parent 49e782255c
commit c43695b0d7
6 changed files with 305 additions and 2 deletions

View File

@@ -1,6 +1,8 @@
// Karma configuration file, see link for more information
// https://karma-runner.github.io/1.0/config/configuration-file.html
process.env.CHROME_BIN = require('puppeteer').executablePath()
module.exports = function (config) {
config.set({
basePath: '',
@@ -26,7 +28,7 @@ module.exports = function (config) {
colors: true,
logLevel: config.LOG_INFO,
autoWatch: true,
browsers: ['Chrome'],
browsers: ['Chrome', 'ChromeHeadless'],
singleRun: false,
junitReporter: {
outputDir: 'junit-report',