Enable karma-sourcemap-loader

This turns (some) stacktraces back into something useful, so that unpicking
test failures is vaguely tractable
pull/4765/head
Richard van der Hoff 2017-08-08 19:04:25 +01:00
parent 0b2120e423
commit df33d40285
2 changed files with 2 additions and 1 deletions

View File

@ -84,7 +84,7 @@ module.exports = function (config) {
// available preprocessors: // available preprocessors:
// https://npmjs.org/browse/keyword/karma-preprocessor // https://npmjs.org/browse/keyword/karma-preprocessor
preprocessors: { preprocessors: {
'{src,test}/**/*.js': ['webpack'], '{src,test}/**/*.js': ['webpack', 'sourcemap'],
}, },
// test results reporter to use // test results reporter to use

View File

@ -119,6 +119,7 @@
"karma-cli": "^0.1.2", "karma-cli": "^0.1.2",
"karma-junit-reporter": "^0.4.1", "karma-junit-reporter": "^0.4.1",
"karma-mocha": "^0.2.2", "karma-mocha": "^0.2.2",
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "^1.7.0", "karma-webpack": "^1.7.0",
"matrix-mock-request": "^1.2.0", "matrix-mock-request": "^1.2.0",
"matrix-react-test-utils": "^0.2.0", "matrix-react-test-utils": "^0.2.0",