Closed
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: