Skip to content

Commit a9ab9b0

Browse files
authored
fix(testrunner): sourcemapify stack traces for test errors (#1409)
Fixes #1403
1 parent edd2fee commit a9ab9b0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

utils/testrunner/TestRunner.js

+2
Original file line numberDiff line numberDiff line change
@@ -253,6 +253,8 @@ class TestWorker {
253253
await this._testPass._willStartTestBody(this, test);
254254
this._runningTestCallback = test._userCallback;
255255
test.error = await test._userCallback.run(this._state, test);
256+
if (test.error && test.error.stack)
257+
await this._testPass._runner._sourceMapSupport.rewriteStackTraceWithSourceMaps(test.error);
256258
this._runningTestCallback = null;
257259
if (!test.error)
258260
test.result = TestResult.Ok;

0 commit comments

Comments
 (0)