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

Function printExpected

packages/jest-matcher-utils/src/index.ts:138–139  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

136export const printReceived = (object: unknown): string =>
137 RECEIVED_COLOR(replaceTrailingSpaces(stringify(object)));
138export const printExpected = (value: unknown): string =>
139 EXPECTED_COLOR(replaceTrailingSpaces(stringify(value)));
140
141export function printWithType<T>(
142 name: string,

Callers 15

assertionErrorMessageFunction · 0.90
assertionErrorMessageFunction · 0.90
toBeFunction · 0.90
toBeCloseToFunction · 0.90
messageFunction · 0.90
toEqualFunction · 0.90
toHavePropertyFunction · 0.90
toMatchFunction · 0.90
toMatchObjectFunction · 0.90
toStrictEqualFunction · 0.90
formatExpectedFunction · 0.90
printExpectedArgsFunction · 0.90

Calls 2

replaceTrailingSpacesFunction · 0.85
stringifyFunction · 0.85

Tested by

no test coverage detected