testing-library / testing-library/eslint-plugin-testing-library
Make internal helpers aware of `renderHook` util
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- TypeScript
- Stars
- 1.1k
- Forks
- 168
- Avg merge
- 15h 44m
- Merged PRs (30d)
- 14
Description
Update internal helpers for considering the new React Testing Library renderHook util:
- The
renderHookmethod shouldn't be treated as a regularrendermethod. - New utils for detecting
renderHookare needing. Won't be used for now, but will simplify the implementation of specific react-hooks-testing-library rules.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the internal helpers that identify and classify render utilities, then trace how React Testing Library utilities are represented. Done means renderHook is not treated as a regular render method and dedicated renderHook detection utilities are available for future react-hooks-testing-library rules.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- eslint, react, typescript
- Domain
- testing-qa, tooling
- Issue type
- Refactor
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100