-
Notifications
You must be signed in to change notification settings - Fork 181
/
karma.conf.js
31 lines (28 loc) · 957 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
29
30
31
process.env.CHROME_BIN = require('puppeteer').executablePath()
console.log(process.env.CHROME_BIN);
module.exports = function (config) {
config.set({
browsers: ['ChromeHeadlessNoSandbox'],
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: 'ChromeHeadless',
flags: ['--no-sandbox']
}
},
frameworks: ['mocha', 'chai'],
files: [
{ pattern: 'node_modules/babel-polyfill/browser.js', instrument: false},
'dist/api-spec-converter.js',
'test/setup/browser.js',
'test/test-cases.js',
'test/*.js',
{pattern: 'test/input/**/*', included: false, watched: false, served: true},
{pattern: 'test/output/**/*', included: false, watched: false, served: true}
],
proxies: {
'/test/': '/base/test/'
},
reporters: ['mocha'],
browserNoActivityTimeout: 30000
});
}