We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85012bd commit c023e26Copy full SHA for c023e26
packages/jest-circus/src/utils.ts
@@ -439,7 +439,9 @@ const _getError = (
439
};
440
441
const getErrorStack = (error: Error): string =>
442
- typeof error.stack === 'string' ? error.stack : error.message;
+ typeof error.stack === 'string' && error.stack !== ''
443
+ ? error.stack
444
+ : error.message;
445
446
export const addErrorToEachTestUnderDescribe = (
447
describeBlock: Circus.DescribeBlock,
0 commit comments