Command
expect.extend({ toBeWithinRange })Explanation
Custom matchers extend Jest's assertion capabilities with domain-specific test helpers.
Examples
Add custom matcher
expect.extend({ toBeWithinRange })Email validation matcher
expect.extend({ toBeValidEmail })