jest-matcher-utils
Advanced tools
Comparing version 14.3.1-alpha.410cb91a to 14.3.2-alpha.83c25417
@@ -65,3 +65,6 @@ /** | ||
return JSON.stringify(obj, (key, value) => { | ||
if (typeof value === 'object' && value !== null) { | ||
if (value instanceof Error) { | ||
const name = value.constructor && value.constructor.name || 'Error'; | ||
return `${ name }: ${ value.message }`; | ||
} else if (typeof value === 'object' && value !== null) { | ||
if ( | ||
@@ -68,0 +71,0 @@ value && |
{ | ||
"name": "jest-matcher-utils", | ||
"description": "A set of utility functions for jest-matchers and related packages", | ||
"version": "14.3.1-alpha.410cb91a", | ||
"version": "14.3.2-alpha.83c25417", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "type": "git", |
4696
128