-
Notifications
You must be signed in to change notification settings - Fork 151
Closed
Labels
help wantedExtra attention is neededExtra attention is needednew ruleNew rule to be included in the pluginNew rule to be included in the pluginquestionFurther information is requestedFurther information is requested
Description
There are some great suggestions in Common mistakes with React Testing Library, a few of which we could probably check statically:
- Using wrapper as the variable name for the return value from render
- Wrapping things in act unnecessarily (might be tricky, but maybe we could filter AST nodes and only error if something is used that isn't from testing-library)
- Having multiple assertions in a single waitFor callback
Already implemented but should maybe be enabled by default:
renatoagds
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 pluginquestionFurther information is requestedFurther information is requested