jest-snapshot
Advanced tools
Comparing version 28.0.0-alpha.1 to 28.0.0-alpha.2
@@ -49,2 +49,42 @@ /** | ||
export declare interface SnapshotMatchers<R extends void | Promise<void>, T> { | ||
/** | ||
* This ensures that a value matches the most recent snapshot with property matchers. | ||
* Check out [the Snapshot Testing guide](https://jestjs.io/docs/snapshot-testing) for more information. | ||
*/ | ||
toMatchSnapshot(hint?: string): R; | ||
/** | ||
* This ensures that a value matches the most recent snapshot. | ||
* Check out [the Snapshot Testing guide](https://jestjs.io/docs/snapshot-testing) for more information. | ||
*/ | ||
toMatchSnapshot<U extends Record<keyof T, unknown>>( | ||
propertyMatchers: Partial<U>, | ||
hint?: string, | ||
): R; | ||
/** | ||
* This ensures that a value matches the most recent snapshot with property matchers. | ||
* Instead of writing the snapshot value to a .snap file, it will be written into the source code automatically. | ||
* Check out [the Snapshot Testing guide](https://jestjs.io/docs/snapshot-testing) for more information. | ||
*/ | ||
toMatchInlineSnapshot(snapshot?: string): R; | ||
/** | ||
* This ensures that a value matches the most recent snapshot with property matchers. | ||
* Instead of writing the snapshot value to a .snap file, it will be written into the source code automatically. | ||
* Check out [the Snapshot Testing guide](https://jestjs.io/docs/snapshot-testing) for more information. | ||
*/ | ||
toMatchInlineSnapshot<U extends Record<keyof T, unknown>>( | ||
propertyMatchers: Partial<U>, | ||
snapshot?: string, | ||
): R; | ||
/** | ||
* Used to test that a function throws a error matching the most recent snapshot when it is called. | ||
*/ | ||
toThrowErrorMatchingSnapshot(hint?: string): R; | ||
/** | ||
* Used to test that a function throws a error matching the most recent snapshot when it is called. | ||
* Instead of writing the snapshot value to a .snap file, it will be written into the source code automatically. | ||
*/ | ||
toThrowErrorMatchingInlineSnapshot(snapshot?: string): R; | ||
} | ||
declare type SnapshotMatchOptions = { | ||
@@ -61,4 +101,4 @@ testName: string; | ||
testPathForConsistencyCheck: string; | ||
resolveSnapshotPath(testPath: Config.Path, extension?: string): Config.Path; | ||
resolveTestPath(snapshotPath: Config.Path, extension?: string): Config.Path; | ||
resolveSnapshotPath(testPath: string, extension?: string): string; | ||
resolveTestPath(snapshotPath: string, extension?: string): string; | ||
}; | ||
@@ -91,3 +131,3 @@ | ||
updated: number; | ||
constructor(snapshotPath: Config.Path, options: SnapshotStateOptions); | ||
constructor(snapshotPath: string, options: SnapshotStateOptions); | ||
markSnapshotsAsCheckedForTest(testName: string): void; | ||
@@ -113,3 +153,3 @@ private _addSnapshot; | ||
updateSnapshot: Config.SnapshotUpdateState; | ||
prettierPath: Config.Path; | ||
prettierPath: string; | ||
expand?: boolean; | ||
@@ -116,0 +156,0 @@ snapshotFormat: OptionsReceived; |
{ | ||
"name": "jest-snapshot", | ||
"version": "28.0.0-alpha.1", | ||
"version": "28.0.0-alpha.2", | ||
"repository": { | ||
@@ -25,5 +25,5 @@ "type": "git", | ||
"@babel/types": "^7.0.0", | ||
"@jest/expect-utils": "^28.0.0-alpha.1", | ||
"@jest/transform": "^28.0.0-alpha.1", | ||
"@jest/types": "^28.0.0-alpha.1", | ||
"@jest/expect-utils": "^28.0.0-alpha.2", | ||
"@jest/transform": "^28.0.0-alpha.2", | ||
"@jest/types": "^28.0.0-alpha.2", | ||
"@types/babel__traverse": "^7.0.4", | ||
@@ -33,12 +33,12 @@ "@types/prettier": "^2.1.5", | ||
"chalk": "^4.0.0", | ||
"expect": "^28.0.0-alpha.1", | ||
"expect": "^28.0.0-alpha.2", | ||
"graceful-fs": "^4.2.9", | ||
"jest-diff": "^28.0.0-alpha.1", | ||
"jest-diff": "^28.0.0-alpha.2", | ||
"jest-get-type": "^28.0.0-alpha.0", | ||
"jest-haste-map": "^28.0.0-alpha.1", | ||
"jest-matcher-utils": "^28.0.0-alpha.1", | ||
"jest-message-util": "^28.0.0-alpha.1", | ||
"jest-util": "^28.0.0-alpha.1", | ||
"jest-haste-map": "^28.0.0-alpha.2", | ||
"jest-matcher-utils": "^28.0.0-alpha.2", | ||
"jest-message-util": "^28.0.0-alpha.2", | ||
"jest-util": "^28.0.0-alpha.2", | ||
"natural-compare": "^1.4.0", | ||
"pretty-format": "^28.0.0-alpha.1", | ||
"pretty-format": "^28.0.0-alpha.2", | ||
"semver": "^7.3.2" | ||
@@ -49,3 +49,3 @@ }, | ||
"@babel/preset-react": "^7.7.2", | ||
"@jest/test-utils": "^28.0.0-alpha.1", | ||
"@jest/test-utils": "^28.0.0-alpha.2", | ||
"@types/graceful-fs": "^4.1.3", | ||
@@ -64,3 +64,3 @@ "@types/natural-compare": "^1.4.0", | ||
}, | ||
"gitHead": "d30164dde1847166fa0faec98d20abffd85e6ffd" | ||
"gitHead": "694d6bfea56f9cb49d0c7309cdbfff032da198c2" | ||
} |
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
87485
2621
Updated@jest/types@^28.0.0-alpha.2
Updatedexpect@^28.0.0-alpha.2
Updatedjest-diff@^28.0.0-alpha.2
Updatedjest-util@^28.0.0-alpha.2