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

Function diff

packages/jest-matcher-utils/src/index.ts:487–491  ·  view source on GitHub ↗
(
  a: unknown,
  b: unknown,
  options?: DiffOptions,
)

Source from the content-addressed store, hash-verified

485}
486
487export const diff = (
488 a: unknown,
489 b: unknown,
490 options?: DiffOptions,
491): string | null => (shouldPrintDiff(a, b) ? diffDefault(a, b, options) : null);
492
493export const pluralize = (word: string, count: number): string =>
494 `${NUMBERS[count] || count} ${word}${count === 1 ? '' : 's'}`;

Callers 5

assertionErrorMessageFunction · 0.90
assertionErrorMessageFunction · 0.90
printDiffCallFunction · 0.90
index.test.tsFile · 0.50

Calls 1

shouldPrintDiffFunction · 0.85

Tested by

no test coverage detected