diff --git a/packages/react/jest.config.js b/packages/react/jest.config.js index c16374ebe05fe4..e962c1bd0f4aeb 100644 --- a/packages/react/jest.config.js +++ b/packages/react/jest.config.js @@ -3,6 +3,9 @@ const { createV8Config: createConfig } = require('@fluentui/scripts-jest'); const config = createConfig({ setupFiles: ['./config/tests.js'], snapshotSerializers: ['@fluentui/jest-serializer-merge-styles'], + // Keeps Jest from using too much memory as GC gets invokes more often, makes tests slower + // https://stackoverflow.com/a/75857711 + workerIdleMemoryLimit: '1024MB', }); module.exports = config;