forked from duckduckgo/duckduckgo-privacy-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkarma.conf.js
More file actions
25 lines (22 loc) · 648 Bytes
/
Copy pathkarma.conf.js
File metadata and controls
25 lines (22 loc) · 648 Bytes
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
module.exports = function (config) {
process.env.CHROME_BIN = require('puppeteer').executablePath()
let configuration = {
basePath: '',
frameworks: ['jasmine', 'source-map-support'],
singleRun: true,
files: [],
logLevel: config.LOG_ERROR,
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)
}