Skip to content

Glossary: Testing Web Apps

Matcher

Also written: matchers, toBe, toEqual

A method after `expect(value)` that checks the value, such as `toBe` or `toEqual`. Libraries like jest-dom add more.

Where the book teaches it

Related terms

toMatchObjectjest-dom