-
Notifications
You must be signed in to change notification settings - Fork 0
/
karma.conf.js
39 lines (38 loc) · 1.19 KB
/
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
32
33
34
35
36
37
38
39
module.exports = function(config) {
config.set({
basePath: "",
frameworks: ["mocha", "chai", "fixture"],
files: [
{
pattern: "./frontend/test/fixtures/**/*.json",
},
{
pattern: "./frontend/test/fixtures/**/*.html",
},
"frontend/public/bundle.css",
"frontend/public/bundle.js",
"frontend/public/query-builder.js",
"frontend/public/query-sender.js",
"frontend/public/query-index.js",
"frontend/test/query-builder.spec.js",
"frontend/test/query-sender.spec.js"
],
preprocessors: {
"frontend/test/fixtures/**/*.html": ["html2js"],
"frontend/test/fixtures/**/*.json": ["json_fixtures"]
},
jsonFixturesPreprocessor: {
variableName: "__json__"
},
reporters: ["mocha"],
urlRoot : "/__karma__/",
port: 8080,
runnerPort: 9100,
colors: true,
logLevel: config.LOG_ERROR,
autoWatch: false,
browsers: ["ChromeHeadless"],
singleRun: true,
browserNoActivityTimeout: 5000
});
};