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)