Skip to content

Commit 1bc8bd5

Browse files
authoredNov 5, 2021
feat: support source maps for ts (#902)
If your tests are written in ts, you need to include `source-map-support` in order to get stack traces that point to the ts code, otherwise they point to the transpiled code which is a pain to deal with. Also fixes the recent breakage with dep checking - looks like they stopped bundling the `detective` module, so I've switched it for `detective-cjs` since that's what's now used in the dependency-check module tests.
1 parent 48ed6b5 commit 1bc8bd5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed
 

‎package.json

+1
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,7 @@
116116
"read-pkg-up": "7.0.1",
117117
"semver": "^7.3.5",
118118
"simple-git": "^2.37.0",
119+
"source-map-support": "^0.5.20",
119120
"strip-bom": "4.0.0",
120121
"strip-json-comments": "^3.1.1",
121122
"tempy": "^1.0.1",

‎src/test/node.js

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ async function testNode (argv, execaOptions) {
4040
...files,
4141
...progress,
4242
'--ui', 'bdd',
43+
'--require', 'source-map-support/register',
4344
`--timeout=${argv.timeout}`
4445
]
4546

0 commit comments

Comments
 (0)
Please sign in to comment.