
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.
@shopgate/pwa-unit-test
Advanced tools
This test suite is a configuration for Shopgate's React projects.
The unit test suite needs React to be installed in at least version ~16.2.0
This configuration uses Jest for running the tests. It is only an extension of the default Jest configuration and prepares your tests for any React PWA using the Shopgate Cloud.
To install and use this package, you need to run the following command in your project's root directory:
npm install @shopgate/pwa-unit-test --save-dev
All test files should follow the naming convention of *spec.(js|jsx)
.
You have two options of how to create a configuration for Jest:
NOTE: Using and extending the Shopgate configuration is the preferred way!
Create a file called jest.config.js
in the root of your project.
Add the following line to it:
module.exports = require('@shopgate/pwa-unit-test/jest.config');
Create a file called jest.config.js
in the root of your project.
Add the following line in the beginning of the file:
const defaultConfig = require('@shopgate/pwa-unit-test/jest.config');
This will load the default configuration. Now you can extend it by spreading the defaultConfig
into a newly created configuration object:
module.exports = {
...defaultConfig,
[Your config goes here],
};
Here is an example showing how to extend the default configuration:
const defaultConfig = require('@shopgate/pwa-unit-test/jest.config');
module.exports = {
...defaultConfig,
moduleNameMapper: {
'^Components(.*)$': '<rootDir>/components',
'^Styles(.*)$': '<rootDir>/styles',
},
};
Shopgate is the leading mobile commerce platform.
Shopgate offers everything online retailers need to be successful in mobile. Our leading software-as-a-service (SaaS) enables online stores to easily create, maintain and optimize native apps and mobile websites for the iPhone, iPad, Android smartphones and tablets.
Unit test setup for the Shopgate Connect PWA is available under the Apache License, Version 2.0.
See the LICENSE.md file for more information.
FAQs
The unit tests setup for Shopgate's ENGAGE.
We found that @shopgate/pwa-unit-test demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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.