forked from mozilla/activity-stream
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathkarma.conf.js
More file actions
66 lines (64 loc) · 1.46 KB
/
Copy pathkarma.conf.js
File metadata and controls
66 lines (64 loc) · 1.46 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
const webpack = require("./webpack.config");
const path = require("path");
const reporters = ["mocha", "coverage"];
if (process.env.TRAVIS) {
reporters.push("coveralls");
}
module.exports = function(config) {
config.set({
singleRun: true,
browsers: ["Firefox"],
frameworks: ["mocha"],
reporters,
coverageReporter: {
dir: "logs/reports/coverage",
reporters: [
{
type: "lcov",
subdir: "lcov"
},
{
type: "html",
subdir: "html"
},
{
type: "text",
subdir: ".",
file: "text.txt"
},
{
type: "text-summary",
subdir: ".",
file: "text-summary.txt"
}
]
},
files: [
"content-test/index.js",
{pattern: "data/content/favicons/**/*", watched: false, included: false, served: true}
],
proxies: {
"/favicons/": "/base/data/content/favicons/"
},
preprocessors: {
"content-test/**/*.js": ["webpack", "sourcemap"]
},
webpack: {
devtool: "inline-source-map",
resolve: webpack.resolve,
module: {
loaders: webpack.module.loaders,
postLoaders: [{
test: /\.js$/,
loader: "istanbul-instrumenter",
include: [path.join(__dirname, "/content-src")],
exclude: [/DebugPage/]
}]
},
plugins: webpack.plugins
},
webpackMiddleware: {
noInfo: true
}
});
};