unexpected
Advanced tools
Comparing version 10.22.0 to 10.22.1
@@ -238,3 +238,7 @@ var utils = require('./utils'); | ||
} | ||
} else if (/^(Unexpected)?Error:?\n/.test(this.stack)) { | ||
// Fix for Jest that does not seem to capture the error message | ||
this.stack = this.stack.replace(/^(Unexpected)?Error:?\n/, this.message); | ||
} | ||
if (this.stack && !this.useFullStackTrace) { | ||
@@ -241,0 +245,0 @@ var newStack = []; |
{ | ||
"name": "unexpected", | ||
"version": "10.22.0", | ||
"version": "10.22.1", | ||
"author": "Sune Sloth Simonsen <sune@we-knowhow.dk>", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
771248
19280