Ensures that string value matches a regular expression.
Usage
const value = 'Is 42 enough?';expect(value).toMatch(/Is \d+ enough/); Copy
const value = 'Is 42 enough?';expect(value).toMatch(/Is \d+ enough/);
Internal options that provide extra context for the matcher.
Received value.
Regular expression to match against.
Ensures that string value matches a regular expression.
Usage