jest-snapshot
Advanced tools
Comparing version 21.3.0-beta.12 to 21.3.0-beta.13
@@ -75,3 +75,3 @@ 'use strict'; | ||
if (pass) { | ||
return { message: '', pass: true }; | ||
return { message: () => '', pass: true }; | ||
} else if (!expected) { | ||
@@ -118,5 +118,7 @@ report = () => | ||
received, | ||
testName) | ||
testName, | ||
fromPromise) | ||
{ | ||
this.dontThrow && this.dontThrow();const | ||
isNot = this.isNot; | ||
@@ -132,6 +134,10 @@ | ||
try { | ||
received(); | ||
} catch (e) { | ||
error = e; | ||
if (fromPromise) { | ||
error = received; | ||
} else { | ||
try { | ||
received(); | ||
} catch (e) { | ||
error = e; | ||
} | ||
} | ||
@@ -138,0 +144,0 @@ |
@@ -99,2 +99,6 @@ 'use strict';Object.defineProperty(exports, "__esModule", { value: true }); | ||
getUncheckedKeys() { | ||
return Array.from(this._uncheckedKeys); | ||
} | ||
removeUncheckedKeys() { | ||
@@ -101,0 +105,0 @@ if (this._updateSnapshot === 'all' && this._uncheckedKeys.size) { |
{ | ||
"name": "jest-snapshot", | ||
"version": "21.3.0-beta.12", | ||
"version": "21.3.0-beta.13", | ||
"repository": { | ||
@@ -12,8 +12,8 @@ "type": "git", | ||
"chalk": "^2.0.1", | ||
"jest-diff": "21.3.0-beta.12", | ||
"jest-matcher-utils": "21.3.0-beta.12", | ||
"jest-diff": "21.3.0-beta.13", | ||
"jest-matcher-utils": "21.3.0-beta.13", | ||
"mkdirp": "^0.5.1", | ||
"natural-compare": "^1.4.0", | ||
"pretty-format": "21.3.0-beta.12" | ||
"pretty-format": "21.3.0-beta.13" | ||
} | ||
} |
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
23777
448
+ Addedjest-diff@21.3.0-beta.13(transitive)
+ Addedjest-get-type@21.3.0-beta.13(transitive)
+ Addedjest-matcher-utils@21.3.0-beta.13(transitive)
+ Addedpretty-format@21.3.0-beta.13(transitive)
- Removedjest-diff@21.3.0-beta.12(transitive)
- Removedjest-get-type@21.3.0-beta.12(transitive)
- Removedjest-matcher-utils@21.3.0-beta.12(transitive)
- Removedpretty-format@21.3.0-beta.12(transitive)
Updatedjest-diff@21.3.0-beta.13
Updatedpretty-format@21.3.0-beta.13