Skip to content

Commit

Permalink
Fix stack when changing message
Browse files Browse the repository at this point in the history
Stack was evaluated early, so we need to fix it when changing the message
  • Loading branch information
sokra committed Sep 12, 2018
1 parent 60c9693 commit fa68244
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/jest-jasmine2/src/queue_runner.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ export default function queueRunner(options: Options) {
'Timeout - Async callback was not invoked within the ' +
timeoutMs +
'ms timeout specified by jest.setTimeout.';
initError.stack = initError.message + initError.stack;
options.onException(initError);
},
);
Expand Down

0 comments on commit fa68244

Please sign in to comment.