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

Method toContain

packages/expect/src/types.ts:214–214  ·  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 uses `===`, a strict equality check. * `.toContain` can also check whether a string is a substring of another string.

(expected: unknown)

Source from the content-addressed store, hash-verified

212 * `.toContain` can also check whether a string is a substring of another string.
213 */
214 toContain(expected: unknown): R;
215 /**
216 * Used when you want to check that an item is in a list.
217 * For testing the items in the list, this matcher recursively checks the

Calls

no outgoing calls

Tested by

no test coverage detected