
Research
/Security News
jscrambler npm Package Compromised in Supply Chain Attack
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.
@moxy/jest-config-react-native
Advanced tools
MOXY's Jest configuration enhancer for React Native apps
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!
'use strict';
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:
'use strict';
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 6 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.

Research
/Security News
A compromised jscrambler npm release added a malicious preinstall hook that runs hidden native binaries on Linux, macOS, and Windows.

Research
/Security News
A malicious .NET package is typosquatting the Braintree SDK to steal live payment card data, merchant API keys, and host secrets from production apps.

Security News
/Research
Compromised Injective SDK npm version 1.20.21 exfiltrates wallet private keys and mnemonics through fake telemetry functionality.