Skip to content

Commit

Permalink
chore: remove extraGlobals from GlobalConfig (#9254)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB authored and thymikee committed Dec 1, 2019
1 parent 4ce3ba1 commit 000e193
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 6 deletions.
1 change: 0 additions & 1 deletion TestUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ const DEFAULT_GLOBAL_CONFIG: Config.GlobalConfig = {
enabledTestsMap: null,
errorOnDeprecated: false,
expand: false,
extraGlobals: [],
filter: null,
findRelatedTests: false,
forceExit: false,
Expand Down
1 change: 0 additions & 1 deletion e2e/__tests__/__snapshots__/showConfig.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
1 change: 0 additions & 1 deletion packages/jest-config/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,6 @@ exports[`prints the config object 1`] = `
"enabledTestsMap": null,
"errorOnDeprecated": false,
"expand": false,
"extraGlobals": [],
"filter": null,
"findRelatedTests": false,
"forceExit": false,
Expand Down
2 changes: 1 addition & 1 deletion packages/jest-transform/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export type ShouldInstrumentOptions = Pick<
};

export type Options = ShouldInstrumentOptions &
Partial<Pick<Config.GlobalConfig, 'extraGlobals'>> & {
Partial<Pick<Config.ProjectConfig, 'extraGlobals'>> & {
isCoreModule?: boolean;
isInternalModule?: boolean;
};
Expand Down
1 change: 0 additions & 1 deletion packages/jest-types/src/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,6 @@ export type GlobalConfig = {
};
};
expand: boolean;
extraGlobals: Array<string>;
filter?: Path;
findRelatedTests: boolean;
forceExit: boolean;
Expand Down

0 comments on commit 000e193

Please sign in to comment.