jest-snapshot
Advanced tools
Comparing version 18.0.0 to 18.1.0
@@ -112,3 +112,13 @@ /** | ||
return { message, pass: false, report }; | ||
// Passing the the actual and expected objects so that a custom reporter | ||
// could access them, for example in order to display a custom visual diff, | ||
// or create a different error message | ||
return { | ||
actual: actualString, | ||
expected: expectedString, | ||
message, | ||
name: 'toMatchSnapshot', | ||
pass: false, | ||
report }; | ||
} | ||
@@ -115,0 +125,0 @@ }; |
{ | ||
"name": "jest-snapshot", | ||
"version": "18.0.0", | ||
"version": "18.1.0", | ||
"repository": { | ||
@@ -11,8 +11,8 @@ "type": "git", | ||
"dependencies": { | ||
"jest-diff": "^18.0.0", | ||
"jest-diff": "^18.1.0", | ||
"jest-file-exists": "^17.0.0", | ||
"jest-matcher-utils": "^18.0.0", | ||
"jest-util": "^18.0.0", | ||
"jest-matcher-utils": "^18.1.0", | ||
"jest-util": "^18.1.0", | ||
"natural-compare": "^1.4.0", | ||
"pretty-format": "^18.0.0" | ||
"pretty-format": "^18.1.0" | ||
}, | ||
@@ -19,0 +19,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
12436
348
Updatedjest-diff@^18.1.0
Updatedjest-matcher-utils@^18.1.0
Updatedjest-util@^18.1.0
Updatedpretty-format@^18.1.0