Skip to content

Conversation

raviqqe
Copy link

@raviqqe raviqqe commented Jan 13, 2022

Fix for Jest tests with React Native, where navigator.userAgent === undefined.

@raviqqe raviqqe changed the title Fix for React Native Fix Jest tests for React Native Jan 13, 2022
Copy link

@yibe yibe left a comment

Choose a reason for hiding this comment

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

Looks good. FYI, this is not a Jest-specific issue: navigator.userAgent is undefined in the real React Native environment, too.

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