# vitest/prefer-equality-matcher 📝 Enforce using the built-in equality matchers. ⚠️ This rule _warns_ in the 🌐 `all` config. 💡 This rule is manually fixable by [editor suggestions](https://eslint.org/docs/latest/use/core-concepts#rule-suggestions). ## Rule Details This rule aims to enforce the use of the built-in equality matchers. Examples of **incorrect** code for this rule: ```ts // bad expect(1 == 1).toBe(1) // bad expect(1).toEqual(1) ```