From fcfaf833e1963c9c889410aa7f4b226a78a3a745 Mon Sep 17 00:00:00 2001 From: panagiotis vourtsis Date: Thu, 27 Jul 2023 14:19:09 +0300 Subject: [PATCH] chore: add workerIdleMemoryLimit to 50% for jest tests --- .github/workflows/pr.yml | 2 +- jest.config.js | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 9acc0b80..01b057a6 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -37,7 +37,7 @@ jobs: yarn documentation:build - name: Run Tests - run: yarn test --maxWorkers=50% + run: yarn test - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@v1 diff --git a/jest.config.js b/jest.config.js index 8f7edf8b..ca941a68 100644 --- a/jest.config.js +++ b/jest.config.js @@ -1,5 +1,6 @@ module.exports = { preset: 'ts-jest', + workerIdleMemoryLimit: 0.5, testEnvironment: 'jsdom', testRegex: '(\\.(test|spec))\\.(ts|tsx|js)$', transform: {