MCPcopy
hub / github.com/jestjs/jest / retryTimes

Method retryTimes

packages/jest-environment/src/index.ts:315–315  ·  view source on GitHub ↗

* Runs failed tests n-times until they pass or until the max number of * retries is exhausted. * * If `logErrorsBeforeRetry` is enabled, Jest will log the error(s) that caused * the test to fail to the console, providing visibility on why a retry occurred. * retries is exhausted. *

(
    numRetries: number,
    options?: {
      logErrorsBeforeRetry?: boolean;
      retryImmediately?: boolean;
      waitBeforeRetry?: number;
    },
  )

Source from the content-addressed store, hash-verified

313 * Only available with `jest-circus` runner.
314 */
315 retryTimes(
316 numRetries: number,
317 options?: {
318 logErrorsBeforeRetry?: boolean;

Calls

no outgoing calls

Tested by

no test coverage detected