Skip to content

Commit

Permalink
fix: proper stack traces from tests
Browse files Browse the repository at this point in the history
With this change the stack traces when running the Node.js tests
now display the correct source line of the error and not the line
of the build.
  • Loading branch information
vmx committed Apr 9, 2018
1 parent 649dd5f commit 408bc6f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
"safe-buffer": "^5.1.1",
"semver": "^5.4.1",
"simple-git": "^1.85.0",
"source-map-support": "^0.5.4",
"stream-http": "^2.7.2",
"through": "^2.3.8",
"transform-loader": "^0.2.4",
Expand Down
3 changes: 2 additions & 1 deletion src/test/node.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ function testNode (ctx) {

let args = [
'--ui', 'bdd',
'--colors'
'--colors',
'--require', 'source-map-support/register'
]

let files = [
Expand Down

0 comments on commit 408bc6f

Please sign in to comment.