generated from FlippieCoetser/typescript.template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkarma.conf.js
31 lines (30 loc) · 1.01 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
const path = require("path");
module.exports = function(config) {
config.set({
frameworks: ["jasmine"],
proxies: {
'/node_modules/': '/base/node_modules/'
},
files: [
{ pattern: "importmap.js"},
{ pattern: "./src/**/*.js", type: "module" },
{ pattern: "./node_modules/@browser-modules/dictionary/lib/dictionary.js", type: "module" },
{ pattern: "./test/**/*.js", type: "module" }
],
preprocessors: {
"src/**/!(*.test).js": ["karma-coverage-istanbul-instrumenter"]
},
reporters: ["spec", "coverage-istanbul"],
coverageIstanbulInstrumenter: {
esModules: true
},
coverageIstanbulReporter: {
reports: ["html", "text", "lcovonly"],
dir: path.join(__dirname, "coverage"),
skipFilesWithNoCoverage: true
},
browsers: ["ChromeHeadless"],
singleRun: true,
logLevel: config.LOG_DISABLE
});
};