diff --git a/packages/jest-worker/src/Farm.ts b/packages/jest-worker/src/Farm.ts index 1254f1d4565a..fa5f5ab8be3c 100644 --- a/packages/jest-worker/src/Farm.ts +++ b/packages/jest-worker/src/Farm.ts @@ -170,9 +170,6 @@ export default class Farm { return this; } - // Typescript ensures that the switch statement is exhaustive. - // Adding an explicit return at the end would disable the exhaustive check void. - // eslint-disable-next-line consistent-return private _getNextWorkerOffset(): number { switch (this._workerSchedulingPolicy) { case 'in-order':