Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Reduce caught exceptions in prettyDom (reland) #1323

Merged
merged 1 commit into from
Jul 22, 2024
Merged

Conversation

eps1lon
Copy link
Member

@eps1lon eps1lon commented Jul 5, 2024

Stacked on #1324

Relands #1321 which originally caused #1322

@DavidRieman Could you give this a look if 3db439b (#1323) is still matching your original intention?

Copy link

codesandbox-ci bot commented Jul 5, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 964d6e8:

Sandbox Source
react-testing-library-examples Configuration

@@ -7,7 +7,7 @@ import {getConfig} from './config'
const shouldHighlight = () => {
// Try to safely parse env COLORS: We will default behavior if any step fails.
try {
const colors = process?.env?.COLORS
const colors = typeof process !== 'undefined' ? process?.env?.COLORS : undefined
Copy link
Member Author

Choose a reason for hiding this comment

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

One less caught exception

MatanBobi
MatanBobi previously approved these changes Jul 5, 2024
@eps1lon eps1lon changed the title Access process only if defined feat: Reduce caught exceptions in prettyDom (reland) Jul 5, 2024
@eps1lon eps1lon force-pushed the fix-process branch 2 times, most recently from 05c66d9 to 3db439b Compare July 5, 2024 11:08
Copy link
Contributor

@DavidRieman DavidRieman left a comment

Choose a reason for hiding this comment

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

LGTM. Yes I believe you captured the intend of my PR well. Thanks!

Co-authored-by: David Rieman <david.rieman@wbd.com>
@eps1lon eps1lon merged commit a86c54c into main Jul 22, 2024
4 checks passed
@eps1lon eps1lon deleted the fix-process branch July 22, 2024 12:15
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.

3 participants