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

Function _makeTimeoutMessage

packages/jest-circus/src/utils.ts:177–186  ·  view source on GitHub ↗
(
  timeout: number,
  isHook: boolean,
  takesDoneCallback: boolean,
)

Source from the content-addressed store, hash-verified

175 );
176
177const _makeTimeoutMessage = (
178 timeout: number,
179 isHook: boolean,
180 takesDoneCallback: boolean,
181) =>
182 `Exceeded timeout of ${formatTime(timeout)} for a ${
183 isHook ? 'hook' : 'test'
184 }${
185 takesDoneCallback ? ' while waiting for `done()` to be called' : ''
186 }.\nAdd a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout.`;
187
188// Global values can be overwritten by mocks or tests. We'll capture
189// the original values in the variables before we require any files.

Callers 1

callAsyncCircusFnFunction · 0.85

Calls 1

formatTimeFunction · 0.90

Tested by

no test coverage detected