Skip to content

Add integration tests for error preview formatting#55452

Open
emily8rown wants to merge 1 commit intofacebook:mainfrom
emily8rown:export-D91780051
Open

Add integration tests for error preview formatting#55452
emily8rown wants to merge 1 commit intofacebook:mainfrom
emily8rown:export-D91780051

Conversation

@emily8rown
Copy link
Contributor

Summary:
This diff adds React Native jsinspector integration tests for the Hermes CDP error preview changes made in D79451147.

The new tests cover error description formatting for:

  • Simple errors with messages
  • Errors with empty string messages (should omit the colon)
  • Errors with no message (should omit the colon)
  • Errors with custom name property
  • Custom error classes (transpiled for Hermes compatibility)
  • Custom error classes with empty/no messages

These tests ensure error previews in the DevTools console correctly display the error name and message, matching V8's behavior.

Differential Revision: D91780051

Summary:
This diff adds React Native jsinspector integration tests for the Hermes CDP error preview changes made in D79451147.

The new tests cover error description formatting for:
- Simple errors with messages
- Errors with empty string messages (should omit the colon)
- Errors with no message (should omit the colon)
- Errors with custom `name` property
- Custom error classes (transpiled for Hermes compatibility)
- Custom error classes with empty/no messages

These tests ensure error previews in the DevTools console correctly display the error name and message, matching V8's behavior.

Differential Revision: D91780051
@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Feb 6, 2026
@meta-codesync
Copy link

meta-codesync bot commented Feb 6, 2026

@emily8rown has exported this pull request. If you are a Meta employee, you can view the originating Diff in D91780051.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported meta-exported p: Facebook Partner: Facebook Partner

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants