Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const _ = require('lodash')
const babelConfig = JSON.parse(
require('fs').readFileSync(`${__dirname}/../.babelrc`)
)
/**
* Headless Chrome setup
*/
const ChromiumRevision = require('puppeteer/package.json').puppeteer
.chromium_revision
const Downloader = require('puppeteer/utils/ChromiumDownloader')
const revisionInfo = Downloader.revisionInfo(
Downloader.currentPlatform(),
ChromiumRevision
)
process.env.CHROMIUM_BIN = revisionInfo.executablePath
/**
* Karma config
*/
module.exports = function(config) {
config.set({
// browsers: ['ChromiumHeadless'],
browsers: ['Chrome'],
frameworks: ['mocha'],
// this is the entry file for all our tests.