
Security News
Next.js moves to scheduled security releases
Vercel is formalizing a monthly release program for Next.js. The change follows React2Shell and a sharp rise in AI-assisted vulnerability discovery.
@moxy/jest-config-react-native
Advanced tools
MOXY's Jest configuration enhancer for React Native apps.
⚠️ This enhancer requires you to have react-native installed in your project.
$ npm install --save-dev jest @moxy/jest-config-base @moxy/jest-config-react-native
This package should be used in conjunction with @moxy/jest-config-base.
react-native/jest-preset to configure the environment.To use this enhancer, use the compose function that comes with this package. Keep in mind, the first item should always be the base configuration!
const { compose, baseConfig } = require('@moxy/jest-config-base');
const withReactNative = require('@moxy/jest-config-react-native');
module.exports = compose(
baseConfig('node'),
withReactNative(),
);
The enhancer accepts an options object as the first argument with the following keys:
transformModules: A function that allows you to add (or remove) modules to be transformed by Babel. It has the following signature (patterns) => newPatterns, where the default patterns are ['(jest-)?react-native(-.*)?/', '@react-native-community/'].To showcase the usefulness of transformModules, let's pretend that you use React Navigation in your project. You would need to compile its packages to make them work in Jest, so you would add them to transformModules like so:
const { compose, baseConfig } = require('@moxy/jest-config');
const withReactNative = require('@moxy/jest-config-react-native');
module.exports = compose(
baseConfig('node'),
withReactNative({
transformModules: (patterns) => [...patterns, '@react-navigation/'],
}),
);
FAQs
MOXY's Jest configuration enhancer for React Native apps
The npm package @moxy/jest-config-react-native receives a total of 7 weekly downloads. As such, @moxy/jest-config-react-native popularity was classified as not popular.
We found that @moxy/jest-config-react-native demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 15 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
Vercel is formalizing a monthly release program for Next.js. The change follows React2Shell and a sharp rise in AI-assisted vulnerability discovery.

Research
/Security News
11 malicious NuGet tools pose as game cheats to deploy Windows payloads, track hosts, and use Google Sheets for telemetry and control.

Research
/Security News
4 compromised asyncapi packages deliver miasma botnet loader on macOS, Linux and Windows.