From 8da17b946034f48d80f585bff8f8c0db8e629f50 Mon Sep 17 00:00:00 2001 From: Mikhail Bodrov Date: Wed, 6 Nov 2019 10:20:40 +0200 Subject: [PATCH] jest-transform: Fix optional type for getCacheKey in transform (#9138) --- packages/jest-transform/src/types.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/jest-transform/src/types.ts b/packages/jest-transform/src/types.ts index 636cff4c27e2..42e60a3420f0 100644 --- a/packages/jest-transform/src/types.ts +++ b/packages/jest-transform/src/types.ts @@ -56,7 +56,7 @@ export interface Transformer { canInstrument?: boolean; createTransformer?: (options?: any) => Transformer; - getCacheKey: ( + getCacheKey?: ( fileData: string, filePath: Config.Path, configStr: string,