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

Method toMatch

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

* Check that a string matches a regular expression.

(expected: string | RegExp)

Source from the content-addressed store, hash-verified

295 * Check that a string matches a regular expression.
296 */
297 toMatch(expected: string | RegExp): R;
298 /**
299 * Used to check that a JavaScript object matches a subset of the properties of an object
300 */

Calls

no outgoing calls

Tested by 1

defineTestsFunction · 0.64