Skip to content

Commit 944fd75

Browse files
fix ci
1 parent ec033a9 commit 944fd75

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.circleci/config.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,9 @@ jobs:
119119
--ignore @requestnetwork/payment-processor \
120120
--ignore @requestnetwork/integration-test \
121121
--concurrency=2
122+
environment:
123+
# Lerna starts 2 Jest commands at the same time (--concurrency=2), so we use 50% core for each
124+
JEST_MAX_WORKERS: '50%'
122125
- store_test_results:
123126
path: packages/advance-logic/reports/
124127
- store_test_results:

jest.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ module.exports = {
1717
},
1818
],
1919
],
20+
...(process.env.JEST_MAX_WORKERS ? { maxWorkers: process.env.JEST_MAX_WORKERS } : {}),
2021
};

0 commit comments

Comments
 (0)