Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
react-native-mock
Advanced tools
A fully mocked and test-friendly version of react native
npm i react-native-mock --save-dev
/* file-that-runs-before-all-of-my-tests.js */
// This will mutate `react-native`'s require cache with `react-native-mock`'s.
require('react-native-mock/mock'); // <-- side-effects!!!
Testing React Native components is hard. I'm hoping this makes it easier.
I wrote a React Testing Library that works really well for React "Web", but didn't really work for React "Native" without something like this.
I don't know. Maybe.
I'd love to figure that out though... feel free to file an issue if you have opinions.
FAQs
A fully mocked and test-friendly version of react native
The npm package react-native-mock receives a total of 924 weekly downloads. As such, react-native-mock popularity was classified as not popular.
We found that react-native-mock demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.