From 78c5458e4339a172d0eb00373a42fa1bc12e3e22 Mon Sep 17 00:00:00 2001 From: Douglas Duteil Date: Sat, 23 Dec 2017 10:31:47 +0100 Subject: [PATCH 1/2] jest: update ProjectConfig to jest@22.0 From https://github.com/facebook/jest/blob/e879099db1024f106757ee55cb0e9a6935488b43/types/Config.js#L24-L69 --- types/jest/index.d.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/types/jest/index.d.ts b/types/jest/index.d.ts index 5e27577d3c..7cee1f62e3 100644 --- a/types/jest/index.d.ts +++ b/types/jest/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Jest 21.1 +// Type definitions for Jest 22.0 // Project: http://facebook.github.io/jest/ // Definitions by: Asana // Ivo Stratev @@ -9,6 +9,7 @@ // Ika // Waseem Dahman // Jamie Mason +// Douglas Duteil // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -808,13 +809,17 @@ declare namespace jest { watchman: boolean; } - interface ProjectConfig { + interface ProjectConfig { automock: boolean; browser: boolean; cache: boolean; cacheDirectory: Path; clearMocks: boolean; coveragePathIgnorePatterns: string[]; + cwd: Path; + detectLeaks: boolean; + displayName: Maybe; + forceCoverageMatch: Glob[]; globals: ConfigGlobals; haste: HasteConfig; moduleDirectories: string[]; @@ -829,11 +834,14 @@ declare namespace jest { resolver: Maybe; rootDir: Path; roots: Path[]; + runner: string; setupFiles: Path[]; setupTestFrameworkScriptFile: Path; skipNodeResolution: boolean; snapshotSerializers: Path[]; testEnvironment: string; + testEnvironmentOptions: object; + testLocationInResults: boolean; testMatch: Glob[]; testPathIgnorePatterns: string[]; testRegex: string; @@ -843,6 +851,7 @@ declare namespace jest { transform: Array<[string, Path]>; transformIgnorePatterns: Glob[]; unmockedModulePathPatterns: Maybe; + watchPathIgnorePatterns: string[]; } // Console From de20d2d9a02856037a72276973d03940ef11456b Mon Sep 17 00:00:00 2001 From: Douglas Duteil Date: Sat, 23 Dec 2017 10:35:19 +0100 Subject: [PATCH 2/2] Update index.d.ts --- types/jest/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/jest/index.d.ts b/types/jest/index.d.ts index 7cee1f62e3..696a3161f3 100644 --- a/types/jest/index.d.ts +++ b/types/jest/index.d.ts @@ -809,7 +809,7 @@ declare namespace jest { watchman: boolean; } - interface ProjectConfig { + interface ProjectConfig { automock: boolean; browser: boolean; cache: boolean;