jest-snapshot
Advanced tools
Comparing version 28.0.0-alpha.0 to 28.0.0-alpha.1
@@ -9,2 +9,3 @@ /** | ||
import type {FS} from 'jest-haste-map'; | ||
import type {MatcherFunctionWithState} from 'expect'; | ||
import type {MatcherState} from 'expect'; | ||
@@ -32,11 +33,6 @@ import type {OptionsReceived} from 'pretty-format'; | ||
declare type Context = MatcherState & { | ||
declare interface Context extends MatcherState { | ||
snapshotState: SnapshotState; | ||
}; | ||
} | ||
declare type ExpectationResult = { | ||
pass: boolean; | ||
message: () => string; | ||
}; | ||
export declare const EXTENSION = 'snap'; | ||
@@ -121,30 +117,10 @@ | ||
export declare const toMatchInlineSnapshot: ( | ||
this: Context, | ||
received: unknown, | ||
propertiesOrSnapshot?: string | object | undefined, | ||
inlineSnapshot?: string | undefined, | ||
) => ExpectationResult; | ||
export declare const toMatchInlineSnapshot: MatcherFunctionWithState<Context>; | ||
export declare const toMatchSnapshot: ( | ||
this: Context, | ||
received: unknown, | ||
propertiesOrHint?: string | object | undefined, | ||
hint?: string | undefined, | ||
) => ExpectationResult; | ||
export declare const toMatchSnapshot: MatcherFunctionWithState<Context>; | ||
export declare const toThrowErrorMatchingInlineSnapshot: ( | ||
this: Context, | ||
received: unknown, | ||
inlineSnapshot?: string | undefined, | ||
fromPromise?: boolean | undefined, | ||
) => ExpectationResult; | ||
export declare const toThrowErrorMatchingInlineSnapshot: MatcherFunctionWithState<Context>; | ||
export declare const toThrowErrorMatchingSnapshot: ( | ||
this: Context, | ||
received: unknown, | ||
hint: string | undefined, | ||
fromPromise: boolean, | ||
) => ExpectationResult; | ||
export declare const toThrowErrorMatchingSnapshot: MatcherFunctionWithState<Context>; | ||
export {}; |
@@ -546,7 +546,3 @@ 'use strict'; | ||
const toThrowErrorMatchingSnapshot = function ( | ||
received, | ||
hint, // because error TS1016 for hint?: string | ||
fromPromise | ||
) { | ||
const toThrowErrorMatchingSnapshot = function (received, hint, fromPromise) { | ||
const matcherName = 'toThrowErrorMatchingSnapshot'; // Future breaking change: Snapshot hint must be a string | ||
@@ -553,0 +549,0 @@ // if (hint !== undefined && typeof hint !== string) {} |
{ | ||
"name": "jest-snapshot", | ||
"version": "28.0.0-alpha.0", | ||
"version": "28.0.0-alpha.1", | ||
"repository": { | ||
@@ -25,5 +25,5 @@ "type": "git", | ||
"@babel/types": "^7.0.0", | ||
"@jest/expect-utils": "^28.0.0-alpha.0", | ||
"@jest/transform": "^28.0.0-alpha.0", | ||
"@jest/types": "^28.0.0-alpha.0", | ||
"@jest/expect-utils": "^28.0.0-alpha.1", | ||
"@jest/transform": "^28.0.0-alpha.1", | ||
"@jest/types": "^28.0.0-alpha.1", | ||
"@types/babel__traverse": "^7.0.4", | ||
@@ -33,12 +33,12 @@ "@types/prettier": "^2.1.5", | ||
"chalk": "^4.0.0", | ||
"expect": "^28.0.0-alpha.0", | ||
"expect": "^28.0.0-alpha.1", | ||
"graceful-fs": "^4.2.9", | ||
"jest-diff": "^28.0.0-alpha.0", | ||
"jest-diff": "^28.0.0-alpha.1", | ||
"jest-get-type": "^28.0.0-alpha.0", | ||
"jest-haste-map": "^28.0.0-alpha.0", | ||
"jest-matcher-utils": "^28.0.0-alpha.0", | ||
"jest-message-util": "^28.0.0-alpha.0", | ||
"jest-util": "^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", | ||
"natural-compare": "^1.4.0", | ||
"pretty-format": "^28.0.0-alpha.0", | ||
"pretty-format": "^28.0.0-alpha.1", | ||
"semver": "^7.3.2" | ||
@@ -49,3 +49,3 @@ }, | ||
"@babel/preset-react": "^7.7.2", | ||
"@jest/test-utils": "^28.0.0-alpha.0", | ||
"@jest/test-utils": "^28.0.0-alpha.1", | ||
"@types/graceful-fs": "^4.1.3", | ||
@@ -64,3 +64,3 @@ "@types/natural-compare": "^1.4.0", | ||
}, | ||
"gitHead": "89275b08977065d98e42ad71fcf223f4ad169f09" | ||
"gitHead": "d30164dde1847166fa0faec98d20abffd85e6ffd" | ||
} |
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
85619
2582
Updated@jest/types@^28.0.0-alpha.1
Updatedexpect@^28.0.0-alpha.1
Updatedjest-diff@^28.0.0-alpha.1
Updatedjest-util@^28.0.0-alpha.1