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: {