
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@commercetools-frontend/jest-preset-mc-app
Advanced tools
Jest preset used by Merchant Center customizations.
$ npm install --save @commercetools-frontend/jest-preset-mc-app
module.exports = {
preset: '@commercetools-frontend/jest-preset-mc-app',
};
You can pass a custom config using one of the cosmiconfig format options. The config module name to use is jest-preset-mc-app
.
For example:
.jest-preset-mc-apprc
.jest-preset-mc-apprc.json
.jest-preset-mc-apprc.yaml
.jest-preset-mc-apprc.yml
.jest-preset-mc-apprc.js
jest-preset-mc-app.config.js
Supported options are:
silenceConsoleWarnings
: a list of strings or RegEx to match against console logs. If the value matches, the log will be suppressed. This option only takes effect when the environment variable CI
is defined.notThrowWarnings
: a list of strings or RegEx to match against console logs. If the value matches, no error will be thrown. This option only takes effect when the environment variable CI
is defined.If you need to use the Jest preset with additional TypeScript support, you need to point to the @commercetools-frontend/jest-preset-mc-app/typescript
preset in your Jest config.
For example:
module.exports = {
preset: '@commercetools-frontend/jest-preset-mc-app/typescript',
};
This Jest preset does not ship with Enzyme support anymore (version >=20
).
In case you still use Enzyme in your tests, you need to do a bit of extra configuration as described below:
yarn add \
@commercetools/enzyme-extensions \
@commercetools/jest-enzyme-matchers \
enzyme \
enzyme-adapter-react-16 \
enzyme-matchers \
enzyme-to-json \
jest-enzyme
@commercetools-frontend/jest-preset-mc-app
you need to use the helper function @commercetools-frontend/jest-preset-mc-app/enzyme/apply-jest-preset-with-enzyme.js
to merge one of the main presets with the opt-in Enzyme setup.For example:
const jestPreset = require('@commercetools-frontend/jest-preset-mc-app');
const applyJestPresetWithEnzyme = require('@commercetools-frontend/jest-preset-mc-app/enzyme/apply-jest-preset-with-enzyme');
module.exports = {
...applyJestPresetWithEnzyme({
enzymeAdapterVersion: 16,
jestPreset,
}),
};
Similarly, you can use the @commercetools-frontend/jest-preset-mc-app/typescript
instead of the @commercetools-frontend/jest-preset-mc-app
.
yarn add \
@commercetools/enzyme-extensions \
@commercetools/jest-enzyme-matchers \
@wojtekmaj/enzyme-adapter-react-17 \
enzyme \
enzyme-matchers \
enzyme-to-json \
jest-enzyme
NOTE that the
@wojtekmaj/enzyme-adapter-react-17
is not the official supported package by Enzyme. Follow the progress on this PR to know when the official adapter is going to be released.
@commercetools-frontend/jest-preset-mc-app
you need to use the helper function @commercetools-frontend/jest-preset-mc-app/enzyme/apply-jest-preset-with-enzyme.js
to merge one of the main presets with the opt-in Enzyme setup.For example:
const jestPreset = require('@commercetools-frontend/jest-preset-mc-app');
const applyJestPresetWithEnzyme = require('@commercetools-frontend/jest-preset-mc-app/enzyme/apply-jest-preset-with-enzyme');
module.exports = {
...applyJestPresetWithEnzyme({
enzymeAdapterVersion: 17,
jestPreset,
}),
};
Similarly, you can use the @commercetools-frontend/jest-preset-mc-app/typescript
instead of the @commercetools-frontend/jest-preset-mc-app
.
FAQs
Jest preset used by a MC application
The npm package @commercetools-frontend/jest-preset-mc-app receives a total of 2,793 weekly downloads. As such, @commercetools-frontend/jest-preset-mc-app popularity was classified as popular.
We found that @commercetools-frontend/jest-preset-mc-app demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 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
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.