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

Method toContainEqual

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

* Used when you want to check that an item is in a list. * For testing the items in the list, this matcher recursively checks the * equality of all fields, rather than checking for object identity.

(expected: unknown)

Source from the content-addressed store, hash-verified

218 * equality of all fields, rather than checking for object identity.
219 */
220 toContainEqual(expected: unknown): R;
221 /**
222 * Used when you want to check that two objects have the same value.
223 * This matcher recursively checks the equality of all fields, rather than checking for object identity.

Calls

no outgoing calls

Tested by

no test coverage detected