vitest/prefer-strict-equal

January 2, 2026 ยท View on GitHub

๐Ÿ“ Enforce strict equal over 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)