Add eslint-plugin-jest plugin's valid-expect
rule to detect future .toBeTruthy
issues
#12893
Labels
valid-expect
rule to detect future .toBeTruthy
issues
#12893
Description
Second part of #12868 (where we add the ESLint plugin to catch future incidents/typos)
Steps to reproduce
Not sure if we add it to each package that uses Jest, or if we try shimming it into the eslint-plugin-fxa package.
Expected result
Fix future uncalled
.toBeInTheDocument
and.toBeTruthy
references in tests (where they should be.toBeTruthy()
).Actual result
See #12892 PR which fixes the current issues, but this ticket/task should ideally make sure we don't make similar typos in the future.
┆Issue is synchronized with this Jira Task
The text was updated successfully, but these errors were encountered: