Skip to content

Commit a571bd1

Browse files
authored
Build: sourcemaps for karma tests (#97)
1 parent 84f5f53 commit a571bd1

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

gulpfile.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ var KARMA_CONFIG = {
159159
mocha: MOCHA_CONFIG
160160
},
161161
preprocessors: {
162-
"test/**/*-test.js": ["webpack"]
162+
"test/**/*-test.js": ["webpack", "sourcemap"]
163163
},
164164
webpack: {
165165
module: {
@@ -170,6 +170,7 @@ var KARMA_CONFIG = {
170170
}
171171
]
172172
},
173+
devtool: "inline-source-map"
173174
},
174175
webpackMiddleware: {
175176
noInfo: true

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,7 @@
6767
"karma-mocha-reporter": "^2.0.0",
6868
"karma-safari-launcher": "^1.0.0",
6969
"karma-sauce-launcher": "^1.1.0",
70+
"karma-sourcemap-loader": "^0.3.7",
7071
"karma-webpack": "^2.0.2",
7172
"lodash.bind": "^4.1.3",
7273
"lodash.clonedeep": "^4.3.2",

0 commit comments

Comments
 (0)