-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathkarma.config.js
40 lines (32 loc) · 847 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
module.exports = function(config) {
"use strict";
config.set({
basePath: "./",
port: 4000,
runnerPort: 4001,
logLevel: config.LOG_INFO,
colors: true,
autoWatch: false,
frameworks: ["mocha", "expect"],
reporters: ["progress", "coverage", "tap"],
browsers: ["ChromeHeadlessNoSandbox"],
// you can define custom flags
customLaunchers: {
ChromeHeadlessNoSandbox: {
base: "ChromeHeadless",
flags: ["--no-sandbox"]
}
},
files: [
"src/*.js",
"test/test-*.js"
],
coverageReporter: {
type: "html",
dir: "test/coverage/"
},
tapReporter: {
outputFile: "test/karma.tap"
}
});
};