jest-matcher-utils
Advanced tools
Comparing version 29.5.0 to 29.6.0
@@ -55,3 +55,14 @@ 'use strict'; | ||
const newObject = Object.create(Object.getPrototypeOf(object)); | ||
const descriptors = Object.getOwnPropertyDescriptors(object); | ||
let descriptors = {}; | ||
let obj = object; | ||
do { | ||
descriptors = Object.assign( | ||
{}, | ||
Object.getOwnPropertyDescriptors(obj), | ||
descriptors | ||
); | ||
} while ( | ||
(obj = Object.getPrototypeOf(obj)) && | ||
obj !== Object.getPrototypeOf({}) | ||
); | ||
cycles.set(object, newObject); | ||
@@ -58,0 +69,0 @@ const newDescriptors = [ |
@@ -66,2 +66,5 @@ 'use strict'; | ||
]; | ||
// subset of Chalk type | ||
const EXPECTED_COLOR = _chalk.default.green; | ||
@@ -68,0 +71,0 @@ exports.EXPECTED_COLOR = EXPECTED_COLOR; |
{ | ||
"name": "jest-matcher-utils", | ||
"description": "A set of utility functions for expect and related packages", | ||
"version": "29.5.0", | ||
"version": "29.6.0", | ||
"repository": { | ||
@@ -25,8 +25,8 @@ "type": "git", | ||
"chalk": "^4.0.0", | ||
"jest-diff": "^29.5.0", | ||
"jest-diff": "^29.6.0", | ||
"jest-get-type": "^29.4.3", | ||
"pretty-format": "^29.5.0" | ||
"pretty-format": "^29.6.0" | ||
}, | ||
"devDependencies": { | ||
"@jest/test-utils": "^29.5.0", | ||
"@jest/test-utils": "^29.6.0", | ||
"@types/node": "*" | ||
@@ -37,3 +37,3 @@ }, | ||
}, | ||
"gitHead": "39f3beda6b396665bebffab94e8d7c45be30454c" | ||
"gitHead": "c1e5b8a38ef54bb138409f89831942ebf6a7a67e" | ||
} |
28374
808
Updatedjest-diff@^29.6.0
Updatedpretty-format@^29.6.0