jest-snapshot
Advanced tools
Comparing version 29.2.1 to 29.2.2
@@ -200,6 +200,13 @@ 'use strict'; | ||
if (isLineDiffable(properties) && isLineDiffable(received)) { | ||
const {replacedExpected, replacedReceived} = (0, | ||
_jestMatcherUtils.replaceMatchedToAsymmetricMatcher)( | ||
properties, | ||
received, | ||
[], | ||
[] | ||
); | ||
return (0, _jestDiff.diffLinesUnified)( | ||
(0, _utils.serialize)(properties).split('\n'), | ||
(0, _utils.serialize)(replacedExpected).split('\n'), | ||
(0, _utils.serialize)( | ||
(0, _expectUtils.getObjectSubset)(received, properties) | ||
(0, _expectUtils.getObjectSubset)(replacedReceived, replacedExpected) | ||
).split('\n'), | ||
@@ -206,0 +213,0 @@ { |
{ | ||
"name": "jest-snapshot", | ||
"version": "29.2.1", | ||
"version": "29.2.2", | ||
"repository": { | ||
@@ -26,4 +26,4 @@ "type": "git", | ||
"@babel/types": "^7.3.3", | ||
"@jest/expect-utils": "^29.2.1", | ||
"@jest/transform": "^29.2.1", | ||
"@jest/expect-utils": "^29.2.2", | ||
"@jest/transform": "^29.2.2", | ||
"@jest/types": "^29.2.1", | ||
@@ -34,3 +34,3 @@ "@types/babel__traverse": "^7.0.6", | ||
"chalk": "^4.0.0", | ||
"expect": "^29.2.1", | ||
"expect": "^29.2.2", | ||
"graceful-fs": "^4.2.9", | ||
@@ -40,3 +40,3 @@ "jest-diff": "^29.2.1", | ||
"jest-haste-map": "^29.2.1", | ||
"jest-matcher-utils": "^29.2.1", | ||
"jest-matcher-utils": "^29.2.2", | ||
"jest-message-util": "^29.2.1", | ||
@@ -67,3 +67,3 @@ "jest-util": "^29.2.1", | ||
}, | ||
"gitHead": "4551c0fdd4d25b7206824957c7bcc6baf61e63bf" | ||
"gitHead": "0a8edbe0ac434394a16cc173a03ff54a9cc50e41" | ||
} |
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
82832
2454
Updated@jest/expect-utils@^29.2.2
Updated@jest/transform@^29.2.2
Updatedexpect@^29.2.2
Updatedjest-matcher-utils@^29.2.2