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

Function pushCommonLine

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

Source from the content-addressed store, hash-verified

179 let bEnd = 0;
180
181 const pushCommonLine = (line: string): void => {
182 const j = lines.length;
183 lines.push(printCommonLine(line, j === 0 || j === jLast, options));
184 aEnd += 1;
185 bEnd += 1;
186 };
187
188 const pushDeleteLine = (line: string): void => {
189 const j = lines.length;

Callers 1

joinAlignedDiffsNoExpandFunction · 0.85

Calls 1

printCommonLineFunction · 0.85

Tested by

no test coverage detected