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: allow mocking netinfostate type for testing #619

Merged
merged 1 commit into from Sep 18, 2022

Conversation

tarikfp
Copy link
Contributor

@tarikfp tarikfp commented Aug 15, 2022

Overview

This pull request allows mocking NetInfoStateType. And resolves the error below when testing any component uses NetInfoStateType.

netinfo

Test Plan

Copy link
Contributor

@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.

Thank you for your patience!
This looks great

@mikehardy mikehardy merged commit 956bceb into react-native-netinfo:master Sep 18, 2022
github-actions bot pushed a commit that referenced this pull request Sep 18, 2022
## [9.3.1](v9.3.0...v9.3.1) (2022-09-18)

### Bug Fixes

* **tests, mock:** allow mocking netinfostate type for testing ([#619](#619)) ([956bceb](956bceb))
@matt-oakes
Copy link
Collaborator

🎉 This PR is included in version 9.3.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

3 participants