You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Prefer using one of the equality matchers instead jest/prefer-equality-matcher
Prefer using `toBeTrue()` to test value is `true` jest-extended/prefer-to-be-true
The "right" solution would be
expect(x).toBe(5);
but the autofix for prefer-to-be-true is changing the code to be like this (and jest/prefer-equality-matcher is unable to spot it)
expect(x===5).toBe(true);
The text was updated successfully, but these errors were encountered:
If I have this code:
I may get these violations like so:
The "right" solution would be
but the autofix for
prefer-to-be-true
is changing the code to be like this (andjest/prefer-equality-matcher
is unable to spot it)The text was updated successfully, but these errors were encountered: