@shopgate/pwa-unit-test 7.29.1-beta.1 → 7.30.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/jest.config.js +4 -0
  2. package/package.json +1 -1
package/jest.config.js CHANGED
@@ -2,6 +2,10 @@ module.exports = {
2
2
  moduleFileExtensions: ['js', 'jsx', 'json', 'mjs'],
3
3
  moduleNameMapper: {
4
4
  '^.+\\.(css|scss)$': 'identity-obj-proxy',
5
+ // Fix issue with Swiper ES module imports that work via "exports" field in package.json
6
+ '^swiper/react$': '<rootDir>/node_modules/swiper/swiper-react.mjs',
7
+ // Mock Swiper styles since they are not needed for unit tests
8
+ '^swiper/css(?:/.*)?$': '<rootDir>/__mocks__/styleMock.js',
5
9
  },
6
10
  transform: {
7
11
  '^.+\\.jsx?$': 'babel-jest',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopgate/pwa-unit-test",
3
- "version": "7.29.1-beta.1",
3
+ "version": "7.30.0-alpha.2",
4
4
  "description": "The unit tests setup for Shopgate's ENGAGE.",
5
5
  "author": "Shopgate <support@shopgate.com>",
6
6
  "license": "Apache-2.0",