- Notifications
You must be signed in to change notification settings - Fork 153
Closed
Labels
help wantedExtra attention is neededExtra attention is needednew ruleNew rule to be included in the pluginNew rule to be included in the pluginreleased
Description
Motivated by #59 it looks like we need to replace prefer-expect-query-by* by better implementation to only force users to replace getBy queries by queryBy when:
This should be checked in several cases. A few I can think of at the moment:
- asserting with
.not.toBeInTheDocument() - asserting with
.toBeNull() - asserting with
.toBe(null)this is actually an equivalent for the previous one, probably more variations to cover as.toBeFalsy()but I think just this one is enough for now? - waiting for disappearance with
waitForElementToBeRemoved
I can't think better name for this rule than no-get-by-for-element-absence, any suggestions?
*We could maintain prefer-expect-query-by when the new rule is implemented, but I think it wouldn't be that useful anymore and could even lead to confusion
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is needednew ruleNew rule to be included in the pluginNew rule to be included in the pluginreleased