Glossary: JavaScript Beyond the Basics
Matcher
Also written: toBe, toEqual, toContain, toThrow, expect
A Vitest method such as `toBe`, `toEqual`, `toContain` or `toThrow` that checks a value wrapped by `expect(...)`. If the check fails, the test fails.