Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(env): improve env detection compatibility for Node
The React Native test environment *is* Node but sets up a window global: https://github.com/facebook/react-native/blob/7a85b911254dbae9fac4c6d8a862a20c33e0b36a/packages/react-native/Libraries/Core/setUpGlobals.js#L18 Reintroduce the navigator.userAgent check as a fallback for detecting a Node environment
- Loading branch information