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

Function pushInsertLine

packages/jest-diff/src/joinAlignedDiffs.ts:194–198  ·  view source on GitHub ↗
(line: string)

Source from the content-addressed store, hash-verified

192 };
193
194 const pushInsertLine = (line: string): void => {
195 const j = lines.length;
196 lines.push(printInsertLine(line, j === 0 || j === jLast, options));
197 bEnd += 1;
198 };
199
200 // Second pass: push lines with diff formatting (and patch marks, if needed).
201 i = 0;

Callers 1

joinAlignedDiffsNoExpandFunction · 0.85

Calls 1

printInsertLineFunction · 0.85

Tested by

no test coverage detected