Skip to content

Commit

Permalink
build: update jest max-worker
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-hosseini-deriv committed Aug 19, 2023
1 parent fb991b5 commit 717764b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/actions/build-and-test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,6 @@ runs:

- name: "Run tests"
shell: bash -le {0}
run: npm test
run: JEST_MAX_WORKERS = 4 npm test


2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"publish_package": "f () { lerna exec --scope=@deriv/${1:-'*'} -- npm run publish_package $2 ;}; f",
"serve": "f () { lerna exec --scope=@deriv/${1:-'*'} -- npm run serve $npm_config_open;}; f",
"start": "f () { lerna exec --scope=@deriv/${1:-'*'} -- npm run start ;}; f",
"test": "f () { bash ./scripts/circleci-config.test.sh && npm run test:stylelint && npm run test:eslint-all && JEST_MAX_WORKERS=6 npm run test:jest ;}; f",
"test": "f () { bash ./scripts/circleci-config.test.sh && npm run test:stylelint && npm run test:eslint-all && JEST_MAX_WORKERS=${JEST_MAX_WORKERS:-'45%'} npm run test:jest ;}; f",
"test:stylelint": "stylelint \"./packages/*/src/**/*.s(a|c)ss\"",
"test:jest": "jest --all --maxWorkers=${JEST_MAX_WORKERS:-'45%'}",
"test:e2e": "cd end-to-end-test && npx playwright test",
Expand Down

0 comments on commit 717764b

Please sign in to comment.