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

Method toMatchObject

packages/expect/src/types.ts:301–301  ·  view source on GitHub ↗

* Used to check that a JavaScript object matches a subset of the properties of an object

(
    expected: Record<string, unknown> | Array<Record<string, unknown>>,
  )

Source from the content-addressed store, hash-verified

299 * Used to check that a JavaScript object matches a subset of the properties of an object
300 */
301 toMatchObject(
302 expected: Record<string, unknown> | Array<Record<string, unknown>>,
303 ): R;
304 /**

Calls

no outgoing calls

Tested by 2

testNotToMatchSnapshotsFunction · 0.64
testToMatchSnapshotsFunction · 0.64