Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
@khanghoang/react-native-mock
Advanced tools
A fully mocked and test-friendly version of react native
A fully mocked and test-friendly version of react native
Note: This library is designed to work with the most recent version of react-native. If you aren't using the most recent version, you will need to download an older version of this library, as the API is likely to be different, and the dependencies are likely to break.
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.
Discovered a bug, got a new feature, or found something that needs improving? Submit a PR!
Make sure to read through the CONTRIBUTING.md file before submitting your PR!
See this wiki page.
FAQs
A fully mocked and test-friendly version of react native
We found that @khanghoang/react-native-mock demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.