@shopgate/pwa-unit-test 7.31.4-beta.1 → 7.31.5-beta.1

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/envSetup.js +3 -0
  2. package/package.json +5 -1
package/envSetup.js CHANGED
@@ -1,6 +1,9 @@
1
1
  /* eslint-disable max-len */
2
2
  /* eslint-disable require-jsdoc, extra-rules/potential-point-free, class-methods-use-this, no-unused-vars */
3
3
 
4
+ // Register React Testing Library's jest-dom matchers (toBeInTheDocument, toHaveTextContent, etc.)
5
+ require('@testing-library/jest-dom');
6
+
4
7
  // Extend Jest matchers to add Enzyme specific ones (necessary since jest-enzyme packages was dropped)
5
8
  expect.extend({
6
9
  toBeEmptyRender(received) {
package/package.json CHANGED
@@ -1,10 +1,14 @@
1
1
  {
2
2
  "name": "@shopgate/pwa-unit-test",
3
- "version": "7.31.4-beta.1",
3
+ "version": "7.31.5-beta.1",
4
4
  "description": "The unit tests setup for Shopgate's ENGAGE.",
5
5
  "author": "Shopgate <support@shopgate.com>",
6
6
  "license": "Apache-2.0",
7
7
  "dependencies": {
8
+ "@testing-library/dom": "^8.20.1",
9
+ "@testing-library/jest-dom": "^5.16.5",
10
+ "@testing-library/react": "^12.1.5",
11
+ "@testing-library/user-event": "^13.5.0",
8
12
  "@wojtekmaj/enzyme-adapter-react-17": "^0.8.0",
9
13
  "cheerio": "1.0.0-rc.2",
10
14
  "enzyme": "^3.11.0",