Skip to content

Commit

Permalink
chore: fix jest memory issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mainframev committed Dec 27, 2024
1 parent eccd0d4 commit a970115
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/react/jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit a970115

Please sign in to comment.