Skip to content

Commit

Permalink
fix: add workerIdleMemoryLimit to ValidConfig (#13105)
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewLeedham authored Aug 8, 2022
1 parent 6b6d52c commit 8719aff
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions packages/jest-config/src/ValidConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ const initialOptions: Config.InitialOptions = {
],
],
watchman: true,
workerIdleMemoryLimit: multipleValidOptions(0.2, '50%'),
};

export default initialOptions;
4 changes: 2 additions & 2 deletions packages/jest-types/src/Config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ export type InitialOptions = Partial<{
watchAll: boolean;
watchman: boolean;
watchPlugins: Array<string | [string, Record<string, unknown>]>;
workerIdleMemoryLimit: number;
workerIdleMemoryLimit: number | string;
}>;

export type SnapshotUpdateState = 'all' | 'new' | 'none';
Expand Down Expand Up @@ -574,6 +574,6 @@ export type Argv = Arguments<
watchAll: boolean;
watchman: boolean;
watchPathIgnorePatterns: Array<string>;
workerIdleMemoryLimit: number;
workerIdleMemoryLimit: number | string;
}>
>;

0 comments on commit 8719aff

Please sign in to comment.