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

Function extractCustomPendingMessage

packages/jest-jasmine2/src/jasmine/Spec.ts:308–317  ·  view source on GitHub ↗
(e: Error)

Source from the content-addressed store, hash-verified

306Spec.pendingSpecExceptionMessage = '=> marked Pending';
307
308const extractCustomPendingMessage = function (e: Error) {
309 const fullMessage = e.toString();
310 const boilerplateStart = fullMessage.indexOf(
311 Spec.pendingSpecExceptionMessage,
312 );
313 const boilerplateEnd =
314 boilerplateStart + Spec.pendingSpecExceptionMessage.length;
315
316 return fullMessage.slice(boilerplateEnd);
317};

Callers 1

onExceptionMethod · 0.85

Calls 1

toStringMethod · 0.45

Tested by

no test coverage detected