Skip to content

Commit

Permalink
build: Set Jest workerIdleMemoryLimit on local env (no-changelog) (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
elsmr authored Mar 10, 2025
1 parent 080fc51 commit 8cbb188
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 32 deletions.
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ const config = {
collectCoverage: isCoverageEnabled,
coverageReporters: ['text-summary', 'lcov', 'html-spa'],
collectCoverageFrom: ['src/**/*.ts'],
workerIdleMemoryLimit: '1MB',
};

if (process.env.CI === 'true') {
config.workerIdleMemoryLimit = 1024;
config.coverageReporters = ['cobertura'];
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"jest-mock": "^29.6.2",
"jest-mock-extended": "^3.0.4",
"lefthook": "^1.7.15",
"nock": "^14.0.0",
"nock": "^14.0.1",
"nodemon": "^3.0.1",
"npm-run-all2": "^7.0.2",
"p-limit": "^3.1.0",
Expand Down
67 changes: 37 additions & 30 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8cbb188

Please sign in to comment.