mirror of
https://github.com/tenrok/axios.git
synced 2026-06-11 18:02:32 +03:00
Fixing test coverage reporting
This commit is contained in:
+14
-4
@@ -15,7 +15,7 @@ module.exports = function(config) {
|
|||||||
|
|
||||||
// list of files / patterns to load in the browser
|
// list of files / patterns to load in the browser
|
||||||
files: [
|
files: [
|
||||||
'webpack.tests.js'
|
'test/specs/**/*.spec.js'
|
||||||
],
|
],
|
||||||
|
|
||||||
|
|
||||||
@@ -28,17 +28,27 @@ module.exports = function(config) {
|
|||||||
// preprocess matching files before serving them to the browser
|
// preprocess matching files before serving them to the browser
|
||||||
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
|
// available preprocessors: https://npmjs.org/browse/keyword/karma-preprocessor
|
||||||
preprocessors: {
|
preprocessors: {
|
||||||
'webpack.tests.js': ['webpack', 'sourcemap', 'coverage']
|
'test/specs/**/*.spec.js': ['webpack', 'sourcemap']
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
||||||
webpack: {
|
webpack: {
|
||||||
|
cache: true,
|
||||||
|
devtool: 'inline-source-map',
|
||||||
|
module: {
|
||||||
|
postLoaders: [
|
||||||
|
{
|
||||||
|
test: /\.js$/,
|
||||||
|
exclude: /(node_modules|test)/,
|
||||||
|
loader: 'istanbul-instrumenter'
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
externals: [
|
externals: [
|
||||||
{
|
{
|
||||||
'./adapters/http': 'var undefined'
|
'./adapters/http': 'var undefined'
|
||||||
}
|
}
|
||||||
],
|
]
|
||||||
devtool: 'inline-source-map'
|
|
||||||
},
|
},
|
||||||
|
|
||||||
webpackServer: {
|
webpackServer: {
|
||||||
|
|||||||
@@ -40,6 +40,7 @@
|
|||||||
"grunt-ts": "5.0.0-beta.5",
|
"grunt-ts": "5.0.0-beta.5",
|
||||||
"grunt-update-json": "0.2.1",
|
"grunt-update-json": "0.2.1",
|
||||||
"grunt-webpack": "1.0.11",
|
"grunt-webpack": "1.0.11",
|
||||||
|
"istanbul-instrumenter-loader": "^0.1.3",
|
||||||
"jasmine-core": "2.3.4",
|
"jasmine-core": "2.3.4",
|
||||||
"karma": "0.13.10",
|
"karma": "0.13.10",
|
||||||
"karma-coverage": "0.5.2",
|
"karma-coverage": "0.5.2",
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
var context = require.context('./test/specs', true, /\.js$/);
|
|
||||||
context.keys().forEach(context);
|
|
||||||
Reference in New Issue
Block a user