Skip to content

Commit

Permalink
Fix test compiling.
Browse files Browse the repository at this point in the history
  • Loading branch information
jasongrout committed May 23, 2019
1 parent fba791e commit 33d87c1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions testutils/src/jest-shim.ts
Expand Up @@ -44,8 +44,9 @@ process.on('unhandledRejection', (error, promise) => {
console.error('Unhandled promise rejection somewhere in tests');
if (error) {
console.error(error);
if (error.stack) {
console.error(error.stack);
const stack = (error as any).stack;
if (stack) {
console.error(stack);
}
}
promise.catch(err => console.error('promise rejected', err));
Expand Down

0 comments on commit 33d87c1

Please sign in to comment.