forked from duckduckgo/duckduckgo-privacy-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
28 lines (25 loc) · 832 Bytes
/
karma.conf.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
module.exports = function (config) {
process.env.CHROME_BIN = require('puppeteer').executablePath()
const configuration = {
basePath: 'build/test/',
frameworks: ['jasmine', 'source-map-support'],
singleRun: true,
files: ['background/*.js', 'background/**/*.js', 'shared-utils/*.js', 'ui/**/*.js', 'legacy-background.js'],
logLevel: config.LOG_ERROR,
browserConsoleLogOptions: {
level: 'warn'
},
browsers: ['ChromeHeadless'],
reporters: ['dots'],
customLaunchers: {
Chrome_travis_ci: {
base: 'ChromeHeadless',
flags: ['--no-sandbox']
}
}
}
if (process.env.TRAVIS) {
configuration.browsers = ['Chrome_travis_ci']
}
config.set(configuration)
}