Skip to content

Latest commit

 

History

History
23 lines (14 loc) · 510 Bytes

File metadata and controls

23 lines (14 loc) · 510 Bytes

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.

Rule Details

This rule aims to enforce the use of the built-in equality matchers.

Examples of incorrect code for this rule:

// bad
expect(1 == 1).toBe(1)

// bad
expect(1).toEqual(1)