
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
@react-native/jest-preset
Advanced tools
Jest preset for React Native apps.
Install @react-native/jest-preset in your app:
with npm:
npm i @react-native/jest-preset --save-dev
or with yarn:
yarn add -D @react-native/jest-preset
Then, create a file called jest.config.js in your project's root directory. Then load this preset:
module.exports = {
preset: '@react-native/jest-preset',
};
You can further customize your Jest configuration by specifying other options. See Jest's jest.config.js documentation to learn more.
This Jest preset used to be part of the core react-native package and accessible at react-native/jest-preset.js. As long as @react-native/jest-preset is installed, react-native/jest-preset.js will be aliased to this package and continue to work but is deprecated.
Follow the installation instructions above to migrate to @react-native/jest-preset and change preset: 'react-native' to preset: '@react-native/jest-preset to migrate.
FAQs
Jest preset for React Native apps
The npm package @react-native/jest-preset receives a total of 43,204 weekly downloads. As such, @react-native/jest-preset popularity was classified as popular.
We found that @react-native/jest-preset demonstrated a healthy version release cadence and project activity because the last version was released less than 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
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.