-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathkarma.conf.base.js
46 lines (39 loc) · 990 Bytes
/
karma.conf.base.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
/**
* This file will not work out of the box with karma.
*
* @example
* const baseConfig = require('@itslearning/protomorph/karma.conf');
* const overrides = {...your overrides};
* const overridenConfig = Object.assign({}, baseConfig, overrides);
*
* module.exports = function (config) {
* config.set(overridenConfig);
* };
*/
module.exports = {
basePath: '',
frameworks: [
'mocha',
'dirty-chai',
'chai-dom',
'chai'
],
files: [
// The files required to test, including tests
// The files must be built first if they use import statements.
'dist/**/*.spec.bundle.js'
],
preprocessors: {},
browsers: ['ChromeHeadlessNoSandbox'],
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: 'ChromeHeadless',
flags: [
'--no-sandbox'
]
}
},
reporters: ['mocha'],
failOnEmptyTestSuite: false,
singleRun: true
};