testing-library / testing-library/eslint-plugin-testing-library

Make internal helpers aware of `renderHook` util

Open
#624 0 comments 0 reactions 0 assignees View on GitHub

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 renderHook method shouldn't be treated as a regular render method.
  • New utils for detecting renderHook are needing. Won't be used for now, but will simplify the implementation of specific react-hooks-testing-library rules.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.