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

Function indentAllLines

packages/jest-message-util/src/index.ts:67–68  ·  view source on GitHub ↗
(lines: string)

Source from the content-addressed store, hash-verified

65const NOT_EMPTY_LINE_REGEXP = /^(?!$)/gm;
66
67export const indentAllLines = (lines: string): string =>
68 lines.replaceAll(NOT_EMPTY_LINE_REGEXP, MESSAGE_INDENT);
69
70const trim = (string: string) => (string || '').trim();
71

Callers 4

printTestFileHeaderMethod · 0.90
getRenderedCallsiteFunction · 0.85
formatExecErrorFunction · 0.85
formatErrorStackFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected