jest-snapshot
Advanced tools
Comparing version 16.1.0-alpha.691b0e22 to 17.0.0
@@ -56,4 +56,8 @@ /** | ||
const initializeSnapshotState = | ||
(testFile, update) => new SnapshotState(testFile, update); | ||
const initializeSnapshotState = ( | ||
testFile, | ||
update, | ||
testPath, | ||
expand) => | ||
new SnapshotState(testFile, update, testPath, expand); | ||
@@ -64,2 +68,3 @@ const getSnapshotState = () => snapshotState; | ||
this.dontThrow();const | ||
currentTestName = this.currentTestName,isNot = this.isNot,snapshotState = this.snapshotState; | ||
@@ -95,3 +100,4 @@ | ||
aAnnotation: 'Snapshot', | ||
bAnnotation: 'Received' }); | ||
bAnnotation: 'Received', | ||
expand: snapshotState.expand }); | ||
@@ -98,0 +104,0 @@ |
@@ -42,6 +42,8 @@ /** | ||
constructor( | ||
testPath, | ||
update, | ||
snapshotPath) | ||
snapshotPath, | ||
expand) | ||
{ | ||
@@ -54,2 +56,3 @@ this._dirty = false; | ||
this._index = 0; | ||
this.expand = expand || false; | ||
this.added = 0; | ||
@@ -56,0 +59,0 @@ this.matched = 0; |
{ | ||
"name": "jest-snapshot", | ||
"version": "16.1.0-alpha.691b0e22", | ||
"version": "17.0.0", | ||
"repository": { | ||
@@ -11,6 +11,6 @@ "type": "git", | ||
"dependencies": { | ||
"jest-diff": "^16.1.0-alpha.691b0e22", | ||
"jest-file-exists": "^16.1.0-alpha.691b0e22", | ||
"jest-matcher-utils": "^16.1.0-alpha.691b0e22", | ||
"jest-util": "^16.1.0-alpha.691b0e22", | ||
"jest-diff": "^17.0.0", | ||
"jest-file-exists": "^17.0.0", | ||
"jest-matcher-utils": "^17.0.0", | ||
"jest-util": "^17.0.0", | ||
"natural-compare": "^1.4.0", | ||
@@ -17,0 +17,0 @@ "pretty-format": "~4.2.1" |
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
12046
337
1
+ Addedjest-diff@17.0.3(transitive)
+ Addedjest-file-exists@17.0.0(transitive)
+ Addedjest-matcher-utils@17.0.3(transitive)
+ Addedjest-mock@17.0.2(transitive)
+ Addedjest-util@17.0.2(transitive)
- Removedjest-diff@16.1.0-alpha.691b0e22(transitive)
- Removedjest-file-exists@16.1.0-alpha.691b0e22(transitive)
- Removedjest-matcher-utils@16.1.0-alpha.691b0e22(transitive)
- Removedjest-mock@16.1.0-alpha.691b0e22(transitive)
- Removedjest-util@16.1.0-alpha.691b0e22(transitive)
Updatedjest-diff@^17.0.0
Updatedjest-file-exists@^17.0.0
Updatedjest-matcher-utils@^17.0.0
Updatedjest-util@^17.0.0