Skip to content

Commit

Permalink
fix(testrunner): sourcemapify stack traces for test errors (#1409)
Browse files Browse the repository at this point in the history
Fixes #1403
  • Loading branch information
aslushnikov authored Mar 17, 2020
1 parent edd2fee commit a9ab9b0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions utils/testrunner/TestRunner.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,8 @@ class TestWorker {
await this._testPass._willStartTestBody(this, test);
this._runningTestCallback = test._userCallback;
test.error = await test._userCallback.run(this._state, test);
if (test.error && test.error.stack)
await this._testPass._runner._sourceMapSupport.rewriteStackTraceWithSourceMaps(test.error);
this._runningTestCallback = null;
if (!test.error)
test.result = TestResult.Ok;
Expand Down

0 comments on commit a9ab9b0

Please sign in to comment.