Skip to content

fix(mock): cannot use import statement outside a module #661

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

Merged
merged 1 commit into from
Aug 23, 2021

Conversation

tido64
Copy link
Member

@tido64 tido64 commented Aug 18, 2021

Summary

Users are hitting SyntaxError: Cannot use import statement outside a module using /jest/async-storage-mock.js in latest version.

Resolves #660

Test Plan

Tests should pass.

@tido64 tido64 requested a review from krizzu August 18, 2021 15:09
MarlonBeloMarques added a commit to MarlonBeloMarques/desafio_mobile that referenced this pull request Aug 21, 2021
…the access

you need to make this fix for the current version of async storage:
react-native-async-storage/async-storage#661
@tido64 tido64 merged commit 6f7b459 into master Aug 23, 2021
@tido64 tido64 deleted the tido/fix-jest-mock branch August 23, 2021 19:41
@krizzu
Copy link
Member

krizzu commented Aug 23, 2021

🎉 This PR is included 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 this pull request may close these issues.

Error in jest test after version 1.15.6
2 participants