Skip to content

Add test coverage for error re-catch after reset#244

Merged
bvaughn merged 1 commit into
bvaughn:mainfrom
hiro-nikaitou:test/reset-throws-again
Jul 12, 2026
Merged

Add test coverage for error re-catch after reset#244
bvaughn merged 1 commit into
bvaughn:mainfrom
hiro-nikaitou:test/reset-throws-again

Conversation

@hiro-nikaitou

Copy link
Copy Markdown
Contributor

Adds a test case for one of the remaining TODO items in ErrorBoundary.test.tsx:

Errors thrown again after reset are caught

The test verifies that when an error boundary resets (via resetKeys change) but the child component continues to throw, the error boundary catches the error again and displays the fallback.

Previously this case had no test coverage.

This test verifies that when an error boundary resets (via resetKeys
change) but the child component still throws, the error boundary
catches the error again and displays the fallback.

Previously this edge case was marked as a TODO and had no test coverage.
@vercel

vercel Bot commented Jul 12, 2026

Copy link
Copy Markdown

@hiro-nikaitou is attempting to deploy a commit to the Brian Vaughn's projects Team on Vercel.

A member of the Team first needs to authorize it.

@bvaughn bvaughn left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, thanks. Had forgotten about those TODO comments :)

@bvaughn
bvaughn merged commit 1ba91f4 into bvaughn:main Jul 12, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants