From 8f103bdd2c72e3ce78c1b1f02842af040574a720 Mon Sep 17 00:00:00 2001 From: Rogelio Guzman Date: Tue, 2 Jul 2019 14:16:56 -0700 Subject: [PATCH] Use correct type for snapshotState --- packages/expect/src/types.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/expect/src/types.ts b/packages/expect/src/types.ts index f03c00393944..e688f52e46b8 100644 --- a/packages/expect/src/types.ts +++ b/packages/expect/src/types.ts @@ -6,6 +6,7 @@ * */ import {Config} from '@jest/types'; +import {SnapshotStateType} from 'jest-snapshot'; import * as jestMatcherUtils from 'jest-matcher-utils'; import {INTERNAL_MATCHER_FLAG} from './jestMatchersObject'; @@ -44,7 +45,7 @@ export type MatcherState = { isExpectingAssertions?: boolean; isNot: boolean; promise: string; - snapshotState: any; + snapshotState: SnapshotStateType; suppressedErrors: Array; testPath?: Config.Path; utils: typeof jestMatcherUtils & {