jest-snapshot
Advanced tools
Comparing version 14.2.2-alpha.22bd3c33 to 14.3.0-alpha.d13c163e
@@ -15,3 +15,2 @@ /** | ||
const diff = require('jest-diff'); | ||
@@ -27,3 +26,2 @@ | ||
options, | ||
jasmine, | ||
snapshotState) => | ||
@@ -78,4 +76,11 @@ (util, customEquality) => { | ||
message = | ||
`expected value to match snapshot ${ count }\n` + | ||
diff(matches.expected.trim(), matches.actual.trim()); | ||
`Received value does not match the stored snapshot ${ count }.\n\n` + | ||
diff( | ||
matches.expected.trim(), | ||
matches.actual.trim(), | ||
{ | ||
aAnnotation: 'Snapshot', | ||
bAnnotation: 'Received' }); | ||
} else { | ||
@@ -82,0 +87,0 @@ snapshotState.matched++; |
{ | ||
"name": "jest-snapshot", | ||
"version": "14.2.2-alpha.22bd3c33", | ||
"version": "14.3.0-alpha.d13c163e", | ||
"repository": { | ||
@@ -11,6 +11,6 @@ "type": "git", | ||
"dependencies": { | ||
"jest-diff": "^14.2.2-alpha.22bd3c33", | ||
"jest-file-exists": "^14.2.2-alpha.22bd3c33", | ||
"jest-util": "^14.2.2-alpha.22bd3c33", | ||
"pretty-format": "^3.5.0" | ||
"jest-diff": "^14.3.0-alpha.d13c163e", | ||
"jest-file-exists": "^14.3.0-alpha.d13c163e", | ||
"jest-util": "^14.3.0-alpha.d13c163e", | ||
"pretty-format": "^3.6.0" | ||
}, | ||
@@ -17,0 +17,0 @@ "scripts": { |
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
9406
288
+ Addedjest-diff@14.3.0-alpha.d13c163e(transitive)
+ Addedjest-file-exists@14.3.0-alpha.d13c163e(transitive)
+ Addedjest-matcher-utils@14.3.0-alpha.d13c163e(transitive)
+ Addedjest-mock@14.3.0-alpha.d13c163e(transitive)
+ Addedjest-util@14.3.0-alpha.d13c163e(transitive)
- Removedjest-diff@14.2.2-alpha.22bd3c33(transitive)
- Removedjest-file-exists@14.2.2-alpha.22bd3c33(transitive)
- Removedjest-matcher-utils@14.2.2-alpha.22bd3c33(transitive)
- Removedjest-mock@14.2.2-alpha.22bd3c33(transitive)
- Removedjest-util@14.2.2-alpha.22bd3c33(transitive)
Updatedpretty-format@^3.6.0