Skip to content

Latest commit

 

History

History
23 lines (13 loc) · 516 Bytes

prefer-equality-matcher.md

File metadata and controls

23 lines (13 loc) · 516 Bytes

Enforce using the built-in quality matchers (vitest/prefer-equality-matcher)

⚠️ 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)