remote-newtab/karma.conf.js

57 строки
1.2 KiB
JavaScript
Исходник Постоянная ссылка Обычный вид История

const webpack = require("./webpack.config");
const path = require("path");
2015-08-14 07:12:06 +03:00
2016-01-07 19:51:20 +03:00
module.exports = function (config) {
2015-08-14 07:12:06 +03:00
config.set({
2016-01-07 19:51:20 +03:00
singleRun: true,
browsers: ["FirefoxNightly"],
frameworks: ["mocha"],
reporters: ["mocha", "coverage"],
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"
}
]
},
2016-01-07 19:51:20 +03:00
files: [
"tests/index.js"
2015-08-14 07:12:06 +03:00
],
preprocessors: {
"tests/**/*.js": ["webpack", "sourcemap"]
2015-08-18 00:17:29 +03:00
},
2016-01-07 19:51:20 +03:00
webpack: {
devtool: "inline-source-map",
2016-01-07 19:51:20 +03:00
resolve: webpack.resolve,
module: {
loaders: webpack.module.loaders,
postLoaders: [{
test: /\.js$/,
loader: 'istanbul-instrumenter',
include: [path.join(__dirname, '/src')]
}]
},
plugins: webpack.plugins
},
2016-01-07 19:51:20 +03:00
webpackMiddleware: {
noInfo: true
}
2015-08-14 23:02:38 +03:00
});
};