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
Could it be possible to add this._globalConfig.worker(Max)Retries to configure maxRetries instead of hardcoded 3 ? 🙂
test-runner/src/index.ts
constworker=newWorker(require.resolve('./testWorker'),{enableWorkerThreads: this._globalConfig.workerThreads,exposedMethods: ['worker'],forkOptions: {serialization: 'json',stdio: 'pipe'},// The workerIdleMemoryLimit should've been converted to a number during// the normalization phase.idleMemoryLimit:
typeofthis._globalConfig.workerIdleMemoryLimit==='number'
? this._globalConfig.workerIdleMemoryLimit
: undefined,maxRetries: 3,numWorkers: this._globalConfig.maxWorkers,setupArgs: [{serializableResolvers: [...resolvers.values()]}],})asJestWorkerFarm<TestWorker>;
Motivation
Why we can configure maxWorkers option but not maxRetries? 🧐
🚀 Feature Proposal
Could it be possible to add
this._globalConfig.worker(Max)Retries
to configuremaxRetries
instead of hardcoded3
? 🙂Motivation
Why we can configure
maxWorkers
option but notmaxRetries
? 🧐Example
I would love to have this value = 0 in my jest tests. 🙏🏻
As message Jest worker encountered 4 child process exceptions, exceeding retry limit not helping at all (usually).
Pitch
It's improvement to existing code (jest-runner).
The text was updated successfully, but these errors were encountered: