testing-library / testing-library/react-testing-library

Support for `onCaughtError` and `onUncaughtError` on root

Open
#1,297 3 comments 2 reactions 0 assignees View on GitHub

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.