You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The --max-workers or --maxWorkers or setting maxWorkers in angular.json, or even in jest.config.ts does not do anything. The tests are always running in single thread like --runInBand.
This have impact on:
Performance - we loose whole power of jest and parallel execution
Describe the Bug
The
--max-workersor--maxWorkersor settingmaxWorkersin angular.json, or even injest.config.tsdoes not do anything. The tests are always running in single thread like--runInBand.This have impact on:
v8provider (randomly drop down on some test scenarios). It happens only in single thread mode in Jest, but when running in parallel, the issue does not exist - v8 test coverage in jest is incorrect when upgrading to 20.10.0 nodejs/node#51251 (comment)Minimal Reproduction
The simplest angular application with just jest builder with jest.config.ts having such configuration:
Expected Behavior
We should be able to run Jest in parallel
Environment