Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 404 Bytes

prefer-strict-equal.md

File metadata and controls

17 lines (10 loc) · 404 Bytes

Enforce strict equal over equal (vitest/prefer-strict-equal)

⚠️ This rule warns in the 🌐 all config.

💡 This rule is manually fixable by editor suggestions.

// bad

expect(something).toEqual(somethingElse);

// good
expect(something).toStrictEqual(somethingElse);