Skip to content

Commit

Permalink
fix(karma): add retainLines to babelPreprocessor
Browse files Browse the repository at this point in the history
When a test fails under Karma the console stacktrace contains incorrect line
numbers making debugging impossible.

Applying fix manually as described in chriscasola/karma@67d1cfe

closes #670
  • Loading branch information
baerrach authored and EisenbergEffect committed Jul 12, 2019
1 parent ea994d1 commit 20de140
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions karma.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ module.exports = function(config) {
'babelPreprocessor': {
options: {
sourceMap: 'inline',
retainLines: true,
presets: [ 'es2015-loose', 'stage-1'],
plugins: [
'syntax-flow',
Expand Down

0 comments on commit 20de140

Please sign in to comment.