Skip to content

Commit 408bc6f

Browse files
committed
fix: proper stack traces from tests
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.
1 parent 649dd5f commit 408bc6f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
"safe-buffer": "^5.1.1",
7676
"semver": "^5.4.1",
7777
"simple-git": "^1.85.0",
78+
"source-map-support": "^0.5.4",
7879
"stream-http": "^2.7.2",
7980
"through": "^2.3.8",
8081
"transform-loader": "^0.2.4",

src/test/node.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ function testNode (ctx) {
2727

2828
let args = [
2929
'--ui', 'bdd',
30-
'--colors'
30+
'--colors',
31+
'--require', 'source-map-support/register'
3132
]
3233

3334
let files = [

0 commit comments

Comments
 (0)