@shopgate/pwa-unit-test 7.8.0 → 7.8.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/package.json +1 -1
  2. package/testSetup.js +3 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shopgate/pwa-unit-test",
3
- "version": "7.8.0",
3
+ "version": "7.8.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",
package/testSetup.js CHANGED
@@ -22,3 +22,6 @@ const localStorageMock = (() => {
22
22
  })();
23
23
 
24
24
  Object.defineProperty(window, 'localStorage', { value: localStorageMock });
25
+
26
+ // Mock the AppCommand class by default to avoid log spamming during test runs
27
+ jest.mock('@shopgate/pwa-core/classes/AppCommand');