Coding task · JavaScript and TypeScript course · Module 11: Testing with Jest

Matchers Exercise

Choose the appropriate matchers for different types of assertions.

Task

For each test, use the correct matcher: toBe, toContain, toHaveLength, toBeGreaterThan, toEqual.