From 6886eeb667e5e68fc5d8d30c0779d27bdf56c584 Mon Sep 17 00:00:00 2001 From: Thomas Delayen Date: Tue, 9 Aug 2022 10:37:54 +0200 Subject: [PATCH] fix: pipe workerIdleMemoryLimit to globalConfig (#13106) --- CHANGELOG.md | 2 +- packages/jest-config/src/index.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6808df2d2fb2..bc3a69b6e7cb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ - `[jest-config]` [**BREAKING**] Make `snapshotFormat` default to `escapeString: false` and `printBasicPrototype: false` ([#13036](https://github.com/facebook/jest/pull/13036)) - `[jest-environment-jsdom]` [**BREAKING**] Upgrade to `jsdom@20` ([#13037](https://github.com/facebook/jest/pull/13037), [#13058](https://github.com/facebook/jest/pull/13058)) -- `[jest-worker]` Adds `workerIdleMemoryLimit` option which is used as a check for worker memory leaks >= Node 16.11.0 and recycles child workers as required. ([#13056](https://github.com/facebook/jest/pull/13056)) +- `[jest-worker]` Adds `workerIdleMemoryLimit` option which is used as a check for worker memory leaks >= Node 16.11.0 and recycles child workers as required. ([#13056](https://github.com/facebook/jest/pull/13056), [#13105](https://github.com/facebook/jest/pull/13105), [#13106](https://github.com/facebook/jest/pull/13106)) - `[pretty-format]` [**BREAKING**] Remove `ConvertAnsi` plugin in favour of `jest-serializer-ansi-escapes` ([#13040](https://github.com/facebook/jest/pull/13040)) ### Fixes diff --git a/packages/jest-config/src/index.ts b/packages/jest-config/src/index.ts index 5728f473e5cc..ba9afa5e100b 100644 --- a/packages/jest-config/src/index.ts +++ b/packages/jest-config/src/index.ts @@ -171,6 +171,7 @@ const groupOptions = ( watchAll: options.watchAll, watchPlugins: options.watchPlugins, watchman: options.watchman, + workerIdleMemoryLimit: options.workerIdleMemoryLimit, }), projectConfig: Object.freeze({ automock: options.automock,