diff --git a/TestUtils.ts b/TestUtils.ts index 7bfca86f8bba..aa4f3c345dca 100644 --- a/TestUtils.ts +++ b/TestUtils.ts @@ -23,7 +23,6 @@ const DEFAULT_GLOBAL_CONFIG: Config.GlobalConfig = { enabledTestsMap: null, errorOnDeprecated: false, expand: false, - extraGlobals: [], filter: null, findRelatedTests: false, forceExit: false, diff --git a/e2e/__tests__/__snapshots__/showConfig.test.ts.snap b/e2e/__tests__/__snapshots__/showConfig.test.ts.snap index d0ad02f0098e..e7bd2b9c3273 100644 --- a/e2e/__tests__/__snapshots__/showConfig.test.ts.snap +++ b/e2e/__tests__/__snapshots__/showConfig.test.ts.snap @@ -94,7 +94,6 @@ exports[`--showConfig outputs config info and exits 1`] = ` "detectOpenHandles": false, "errorOnDeprecated": false, "expand": false, - "extraGlobals": [], "findRelatedTests": false, "forceExit": false, "json": false, diff --git a/packages/jest-config/src/index.ts b/packages/jest-config/src/index.ts index 0df90f5d9c39..eb392317c02b 100644 --- a/packages/jest-config/src/index.ts +++ b/packages/jest-config/src/index.ts @@ -117,7 +117,6 @@ const groupOptions = ( enabledTestsMap: options.enabledTestsMap, errorOnDeprecated: options.errorOnDeprecated, expand: options.expand, - extraGlobals: options.extraGlobals, filter: options.filter, findRelatedTests: options.findRelatedTests, forceExit: options.forceExit, diff --git a/packages/jest-core/src/lib/__tests__/__snapshots__/log_debug_messages.test.ts.snap b/packages/jest-core/src/lib/__tests__/__snapshots__/log_debug_messages.test.ts.snap index 95f5df413db5..0f4ceaeb6a3b 100644 --- a/packages/jest-core/src/lib/__tests__/__snapshots__/log_debug_messages.test.ts.snap +++ b/packages/jest-core/src/lib/__tests__/__snapshots__/log_debug_messages.test.ts.snap @@ -80,7 +80,6 @@ exports[`prints the config object 1`] = ` "enabledTestsMap": null, "errorOnDeprecated": false, "expand": false, - "extraGlobals": [], "filter": null, "findRelatedTests": false, "forceExit": false, diff --git a/packages/jest-transform/src/types.ts b/packages/jest-transform/src/types.ts index a0b980f26caf..e83fa34fcd1b 100644 --- a/packages/jest-transform/src/types.ts +++ b/packages/jest-transform/src/types.ts @@ -17,7 +17,7 @@ export type ShouldInstrumentOptions = Pick< }; export type Options = ShouldInstrumentOptions & - Partial> & { + Partial> & { isCoreModule?: boolean; isInternalModule?: boolean; }; diff --git a/packages/jest-types/src/Config.ts b/packages/jest-types/src/Config.ts index f498f8f843a3..aca89876a7c1 100644 --- a/packages/jest-types/src/Config.ts +++ b/packages/jest-types/src/Config.ts @@ -246,7 +246,6 @@ export type GlobalConfig = { }; }; expand: boolean; - extraGlobals: Array; filter?: Path; findRelatedTests: boolean; forceExit: boolean;