Closed rvasseur31 closed 1 year ago
@rvasseur31 is it possible you can include an example of your test? I'm trying to see if it's react/jest or code issue. Thanks!
Hi ! Thank you for your quick response, I finally found how to reproduce it on a blank project.
The bug seems to be related to a 'react-native' mock, here is the exemple repo : https://github.com/rvasseur31/action-sheet.
You can find it in __mocks__/react-native-firebase
.
Hi ! I wanted to close this, this morning and I manage to avoid this error by changing my react native mock to a react native crashlytics mock
Hello !
Since the update to 4.0.1 (I was on ^3.13.0), I have the following error when I ran my component test with jest :
I haven't change anything except the version.
I tried several things :
React Native Info :
Click me
``` System: OS: macOS 13.0 CPU: (8) arm64 Apple M1 Memory: 1.42 GB / 16.00 GB Shell: 5.8.1 - /bin/zsh Binaries: Node: 19.0.1 - /var/folders/z6/f9ls1kwd3lq20kc9v3ng1s2h0000gn/T/yarn--1669032634559-0.11580508815282453/node Yarn: 1.22.19 - /var/folders/z6/f9ls1kwd3lq20kc9v3ng1s2h0000gn/T/yarn--1669032634559-0.11580508815282453/yarn npm: 8.10.0 - ~/Desktop/DmbookProNext/node_modules/.bin/npm Watchman: 2022.11.07.00 - /opt/homebrew/bin/watchman Managers: CocoaPods: 1.11.3 - /opt/homebrew/bin/pod SDKs: iOS SDK: Platforms: DriverKit 22.1, iOS 16.1, macOS 13.0, tvOS 16.1, watchOS 9.1 Android SDK: API Levels: 30, 31, 32 Build Tools: 30.0.3, 31.0.0, 32.0.0 System Images: android-31 | Google APIs ARM 64 v8a, android-33 | Google APIs ARM 64 v8a, android-33 | Google Play ARM 64 v8a Android NDK: 21.4.7075529 IDEs: Android Studio: 2021.2 AI-212.5712.43.2112.8609683 Xcode: 14.1/14B47b - /usr/bin/xcodebuild Languages: Java: 11.0.12 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 18.1.0 => 18.1.0 react-native: 0.70.5 => 0.70.5 react-native-macos: Not Found jest: "^27.5.1" npmGlobalPackages: *react-native*: Not Found ```