
Security News
Rust RFC Proposes a Security Tab on crates.io for RustSec Advisories
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.
@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.
The npm package @shopgate/pwa-unit-test receives a total of 552 weekly downloads. As such, @shopgate/pwa-unit-test popularity was classified as not popular.
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.

Security News
Rust’s crates.io team is advancing an RFC to add a Security tab that surfaces RustSec vulnerability and unsoundness advisories directly on crate pages.

Security News
/Research
Socket found a Rust typosquat (finch-rust) that loads sha-rust to steal credentials, using impersonation and an unpinned dependency to auto-deliver updates.

Research
/Security Fundamentals
A pair of typosquatted Go packages posing as Google’s UUID library quietly turn helper functions into encrypted exfiltration channels to a paste site, putting developer and CI data at risk.