Open
Description
If I have this code:
expect(x === 5).toBe(true);
I may get these violations like so:
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);
Metadata
Metadata
Assignees
Labels
No labels