jest-runner-mocha icon indicating copy to clipboard operation
jest-runner-mocha copied to clipboard

bug: Use of worker-farm breaks jest's --runInBand & --max-concurrent-workers options

Open hulkish opened this issue 7 years ago • 2 comments

Usage of worker-farm in a jest runner:

  • breaks jest's --runInBand option
  • breaks jest's --max-concurrent-workers option
  • jest-worker is already handling the concurrency behavior
  • the spawning of child.processes will perplex between jest-worker and worker-farm.
  • this actually makes it very dangerous for CI environments

Instead, i recommend:

  • dropping usage of worker-farm all together
  • use the same approach which jest-runner-eslint is using

hulkish avatar May 20 '18 18:05 hulkish

I agree, we should just migrate to use create-jest-runner cc: @SimenB

rogeliog avatar May 27 '18 17:05 rogeliog

Yup yup! Really straight forward to use 🙂

SimenB avatar May 27 '18 17:05 SimenB