From a1b9355186e0f3581443cf0449c3b0179a57c6d5 Mon Sep 17 00:00:00 2001 From: Robert Chen Date: Wed, 21 Oct 2026 13:22:24 -0700 Subject: [PATCH] Recycle Jest workers past 2GB to stop CI OOM kills --- jest.config.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jest.config.js b/jest.config.js index 426e7686c1a4..7aebdba5e6f2 100644 --- a/jest.config.js +++ b/jest.config.js @@ -62,6 +62,8 @@ module.exports = { testEnvironment: 'jsdom', setupFiles: ['/jest/setup.ts', './node_modules/@react-native-google-signin/google-signin/jest/build/setup.js'], setupFilesAfterEnv: ['/jest/setupAfterEnv.ts', '/tests/perf-test/setupAfterEnv.ts'], + // Restarts a worker between suites once it holds this much memory, so long-lived CI workers don't get OOM killed. + workerIdleMemoryLimit: '2GB', cacheDirectory: '/.jest-cache', coverageReporters: ['json', 'lcov', 'text-summary'], moduleNameMapper: {