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

Function testWithStringify

packages/jest-snapshot/src/__tests__/printSnapshot.test.ts:866–876  ·  view source on GitHub ↗
(
    expected: unknown,
    received: unknown,
    expand: boolean,
  )

Source from the content-addressed store, hash-verified

864describe('printSnapshotAndReceived', () => {
865 // Simulate default serialization.
866 const testWithStringify = (
867 expected: unknown,
868 received: unknown,
869 expand: boolean,
870 ): string =>
871 printSnapshotAndReceived(
872 serialize(expected),
873 serialize(received),
874 received,
875 expand,
876 );
877
878 // Simulate custom raw string serialization.
879 const testWithoutStringify = (

Callers 1

Calls 2

printSnapshotAndReceivedFunction · 0.90
serializeFunction · 0.90

Tested by

no test coverage detected