testing-library / testing-library/react-testing-library
Support for `onCaughtError` and `onUncaughtError` on root
Open
Nobody has claimed this yet.
enhancement
- Dominant language
- JavaScript
- Stars
- 19.7k
- Forks
- 1.2k
- Avg merge
- 3d 16h
- Merged PRs (30d)
- 1
Description
Following the React change, we should also add support for onCaughtError and onUncaughtError.
More details here
FYI - @eps1lon
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 reviewing the React change and the linked react.dev pull request 6742 to establish the expected behavior for onCaughtError and onUncaughtError. Then locate the root API and related tests in this repository; done means both callbacks are supported with coverage matching the documented React behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, react
- Domain
- frontend, testing-qa
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100