Skip to content
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

fix: adjust import and jest eslint env #144

Merged
merged 2 commits into from
Nov 22, 2021

Conversation

diegotsi
Copy link
Contributor

@diegotsi diegotsi commented Nov 22, 2021

Hello! After this merge I tried to update the lib and use the mocks but I'm getting the following error:

Screen Shot 2021-11-22 at 11 04 21

So I change the import to the component itself like react-native-permission does and started working on the app.

Also, I'm adding the /* eslint-env jest */ to avoid eslint error on this file (didn't see this on the first PR)

@diegotsi
Copy link
Contributor Author

@mikehardy can you check this?

Copy link
Collaborator

@mikehardy mikehardy left a comment

Choose a reason for hiding this comment

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

If this works for you and works in CI (which tests jest now...) that works for me
Thanks for taking the time to help everyone with this fix!

@@ -1,4 +1,6 @@
const nonMocked = require('../../lib/commonjs');
/* eslint-env jest */
Copy link
Collaborator

Choose a reason for hiding this comment

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

@mikehardy mikehardy merged commit be213b0 into thebergamo:master Nov 22, 2021
github-actions bot pushed a commit that referenced this pull request Nov 22, 2021
## [6.1.1](v6.1.0...v6.1.1) (2021-11-22)

### Bug Fixes

* **test:** adjust import and jest eslint env ([#144](#144)) ([be213b0](be213b0))
@github-actions
Copy link

🎉 This PR is included in version 6.1.1 🎉

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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants