Skip to content

Error in jest test after version 1.15.6 #660

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

Closed
1 of 4 tasks
gabriel11447 opened this issue Aug 18, 2021 · 3 comments · Fixed by #661
Closed
1 of 4 tasks

Error in jest test after version 1.15.6 #660

gabriel11447 opened this issue Aug 18, 2021 · 3 comments · Fixed by #661

Comments

@gabriel11447
Copy link

Current behavior

When running jest with async-storage 1.15.6 I get the following error:

image

Expected behavior

It's expected this error not to occur, because if I run the test with async-storage 1.15.5 it works correctly, as shown in the image:

image

There's some error still happening, but it's expected and there's no connection with this issue.

Repro steps

  • Install latest version (1.15.6) of @react-native-async-storage/async-storage
  • Make the jest mock at setupFiles.js accordingly to the documentation
  • Run some test that need the mock

Environment

  • Platforms tested:
    • Android
    • iOS
    • macOS
    • Windows
  • AsyncStorage version: 1.15.6
  • Environment:
 System:
    OS: Windows 10 10.0.19043
    CPU: (12) x64 Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz
    Memory: 6.47 GB / 15.84 GB
  Binaries:
    Node: 14.17.1 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.10 - ~\AppData\Roaming\npm\node_modules\yarn\bin\yarn.CMD    
    npm: 6.14.13 - C:\Program Files\nodejs\npm.CMD
    Watchman: Not Found
  SDKs:
    Android SDK:
      API Levels: 29, 30
      Build Tools: 29.0.2, 29.0.3, 30.0.3
      System Images: android-30 | Google APIs Intel x86 Atom
      Android NDK: Not Found
    Windows SDK: Not Found
  IDEs:
    Android Studio: Version  4.2.0.0 AI-202.7660.26.42.7351085
    Visual Studio: 16.10.31410.357 (Visual Studio Enterprise 2019)
  Languages:
    Java: 11.0.11 - C:\Program Files\OpenJDK\openjdk-11.0.11_9\bin\javac.EXE
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.1 => 17.0.1 
    react-native: 0.64.2 => 0.64.2
    react-native-windows: Not Found
  npmGlobalPackages:
    *react-native*: Not Found
@tido64
Copy link
Member

tido64 commented Aug 18, 2021

Thanks for reporting this. Can you please check if this solves the issue: #661

@gabriel11447
Copy link
Author

Yes, this solves the problem.

@krizzu
Copy link
Member

krizzu commented Aug 23, 2021

🎉 This issue has been resolved in version 1.15.7 🎉

The release is available on:

Your semantic-release bot 📦🚀

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 a pull request may close this issue.

3 participants