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

Function printCommonLine

packages/jest-diff/src/joinAlignedDiffs.ts:77–94  ·  view source on GitHub ↗
(
  line: string,
  isFirstOrLast: boolean,
  {
    commonColor,
    commonIndicator,
    commonLineTrailingSpaceColor,
    emptyFirstOrLastLinePlaceholder,
  }: DiffOptionsNormalized,
)

Source from the content-addressed store, hash-verified

75 );
76
77const printCommonLine = (
78 line: string,
79 isFirstOrLast: boolean,
80 {
81 commonColor,
82 commonIndicator,
83 commonLineTrailingSpaceColor,
84 emptyFirstOrLastLinePlaceholder,
85 }: DiffOptionsNormalized,
86): string =>
87 printDiffLine(
88 line,
89 isFirstOrLast,
90 commonColor,
91 commonIndicator,
92 commonLineTrailingSpaceColor,
93 emptyFirstOrLastLinePlaceholder,
94 );
95
96// In GNU diff format, indexes are one-based instead of zero-based.
97const createPatchMark = (

Callers 2

pushCommonLineFunction · 0.85
joinAlignedDiffsExpandFunction · 0.85

Calls 1

printDiffLineFunction · 0.85

Tested by

no test coverage detected