Skip to content

Commit

Permalink
Add workarround config for #553
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikey Stengel committed Jun 2, 2023
1 parent d459808 commit fc52761
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ module.exports = {
},
setupFiles: ['dotenv/config'],
setupFilesAfterEnv: ['<rootDir>/__config__/jest.setup.ts'],
// Fixes issue with memory leak in Jest see
// https://github.com/jestjs/jest/issues/11956
workerIdleMemoryLimit: '1GB',
testEnvironment: 'node',
testPathIgnorePatterns: ['/node_modules/', '/__tests__\\/__utils__/'],
transform: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"redis:empty": "docker-compose exec redis redis-cli FLUSHDB",
"show-unused-exports": "ts-unused-exports tsconfig.json --excludePathsFromReport=packages/types/ --excludePathsFromReport=packages/server/src/types.ts --ignoreFiles=/dist/",
"stop:redis": "docker-compose stop",
"test": "jest --config jest.config.js --runInBand --forceExit",
"test": "jest --config jest.config.js --runInBand --forceExit --no-compilation-cache",
"update-version": "./scripts/update_version.sh"
},
"dependencies": {
Expand Down

0 comments on commit fc52761

Please sign in to comment.