forked from cwilbur12/kin-web-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.config.js
40 lines (33 loc) · 892 Bytes
/
karma.config.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
/*!
* kin
* Copyright(c) 2016-2017 Benoit Person
* Apache 2.0 Licensed
*/
const webpack_config = require("./webpack.config.js")({
env: "test"
});
webpack_config.devtool = "inline-source-map";
module.exports = function karma_config(config) {
config.set({
frameworks: ["mocha", "sinon-chai"],
reporters: ["mocha", "coverage"],
browsers: ["ChromeHeadless"],
files: ["./test/index.js"],
preprocessors: {
"./test/index.js": ["webpack", "sourcemap"]
},
webpack: webpack_config,
webpackMiddleware: {
noInfo: true
},
plugins: [
"karma-chrome-launcher",
"karma-coverage",
"karma-mocha-reporter",
"karma-mocha",
"karma-sinon-chai",
"karma-sourcemap-loader",
"karma-webpack"
]
});
};