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 60b7d67 commit d58b823Copy full SHA for d58b823
lib/utils.js
@@ -205,6 +205,8 @@ exports.betterErrors = function (assertion) {
205
);
206
var spacing = (multiline ? '\n' : ' ');
207
e._message = e.message;
208
+ // avoids error when stack trace is hidden with Error.stackTraceLimit
209
+ e.stack = e.stack || '';
210
e.stack = (
211
e.name + ':' + spacing +
212
actual + spacing + e.operator + spacing +
0 commit comments