-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkarma.conf.js
29 lines (28 loc) · 869 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
// let MiniCssExtractPlugin = require("mini-css-extract-plugin");
module.exports = function(config) {
config.set({
frameworks: ['mocha', 'chai'],
files: [
'https://unpkg.com/[email protected]/chai.js',
{pattern: 'src/**/*.test.js', type: 'module', watched: false},
{pattern: 'src/**/*.js', type: 'module', included: true, served: true, nocache: true}
],
reporters: ['progress', 'junit'],
port: 9877, // karma web server port
colors: true,
logLevel: config.LOG_INFO,
browsers: ['ChromeHeadless_Custom'],
customLaunchers: {
ChromeHeadless_Custom: {
base: 'ChromeHeadless',
flags: []
}
},
// autoWatch: false,
// singleRun: false, // Karma captures browsers, runs the tests and exits
// concurrency: Infinity,
webpackMiddleware: {
stats: 'errors-only'
}
});
};