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

Function printInsertLine

packages/jest-diff/src/joinAlignedDiffs.ts:58–75  ·  view source on GitHub ↗
(
  line: string,
  isFirstOrLast: boolean,
  {
    bColor,
    bIndicator,
    changeLineTrailingSpaceColor,
    emptyFirstOrLastLinePlaceholder,
  }: DiffOptionsNormalized,
)

Source from the content-addressed store, hash-verified

56 );
57
58const printInsertLine = (
59 line: string,
60 isFirstOrLast: boolean,
61 {
62 bColor,
63 bIndicator,
64 changeLineTrailingSpaceColor,
65 emptyFirstOrLastLinePlaceholder,
66 }: DiffOptionsNormalized,
67): string =>
68 printDiffLine(
69 line,
70 isFirstOrLast,
71 bColor,
72 bIndicator,
73 changeLineTrailingSpaceColor,
74 emptyFirstOrLastLinePlaceholder,
75 );
76
77const printCommonLine = (
78 line: string,

Callers 2

pushInsertLineFunction · 0.85
joinAlignedDiffsExpandFunction · 0.85

Calls 1

printDiffLineFunction · 0.85

Tested by

no test coverage detected