@codecademy/gamut-tests 4.0.22 → 4.0.23-alpha.9fa786.0

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.
package/dist/index.d.ts CHANGED
@@ -1,6 +1,8 @@
1
1
  import { setupEnzyme as setupEnzymeBase, setupRtl as setupRtlBase } from 'component-test-setup';
2
2
  import * as React from 'react';
3
- export declare const MockGamutProvider: React.FC;
3
+ export declare const MockGamutProvider: React.FC<{
4
+ children?: React.ReactNode;
5
+ }>;
4
6
  /**
5
7
  * @deprecated Enzyme is no longer being maintained. Use RTL instead.
6
8
  */
package/dist/index.js CHANGED
@@ -1,14 +1,12 @@
1
1
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2
-
3
2
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4
-
5
3
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
-
7
4
  import { GamutProvider, theme } from '@codecademy/gamut-styles';
8
5
  import { setupEnzyme as setupEnzymeBase, setupRtl as setupRtlBase } from 'component-test-setup';
9
6
  import { overArgs } from 'lodash';
10
- import * as React from 'react'; // See https://www.notion.so/codecademy/Frontend-Unit-Tests-1cbf4e078a6647559b4583dfb6d3cb18
7
+ import * as React from 'react';
11
8
 
9
+ // See https://www.notion.so/codecademy/Frontend-Unit-Tests-1cbf4e078a6647559b4583dfb6d3cb18
12
10
  import { jsx as _jsx } from "react/jsx-runtime";
13
11
  export var MockGamutProvider = function MockGamutProvider(_ref) {
14
12
  var children = _ref.children;
@@ -19,21 +17,19 @@ export var MockGamutProvider = function MockGamutProvider(_ref) {
19
17
  children: children
20
18
  });
21
19
  };
22
-
23
20
  function withMockGamutProvider(WrappedComponent) {
24
21
  var WithBoundaryComponent = function WithBoundaryComponent(props) {
25
22
  return /*#__PURE__*/_jsx(MockGamutProvider, {
26
23
  children: /*#__PURE__*/_jsx(WrappedComponent, _objectSpread({}, props))
27
24
  });
28
25
  };
29
-
30
26
  return WithBoundaryComponent;
31
- } // overArgs isn't fully typed yet for lack of curried generics, so we have to cast it...
27
+ }
28
+
29
+ // overArgs isn't fully typed yet for lack of curried generics, so we have to cast it...
32
30
 
33
31
  /**
34
32
  * @deprecated Enzyme is no longer being maintained. Use RTL instead.
35
33
  */
36
-
37
-
38
34
  export var setupEnzyme = overArgs(setupEnzymeBase, withMockGamutProvider);
39
35
  export var setupRtl = overArgs(setupRtlBase, withMockGamutProvider);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": "Codecademy Engineering <dev@codecademy.com>",
3
3
  "dependencies": {
4
- "@codecademy/gamut-styles": "14.2.5",
4
+ "@codecademy/gamut-styles": "14.2.6-alpha.9fa786.0",
5
5
  "component-test-setup": "*",
6
6
  "lodash": "^4.17.5"
7
7
  },
@@ -14,7 +14,7 @@
14
14
  "rtl"
15
15
  ],
16
16
  "name": "@codecademy/gamut-tests",
17
- "version": "4.0.22",
17
+ "version": "4.0.23-alpha.9fa786.0",
18
18
  "license": "MIT",
19
19
  "main": "dist/index.js",
20
20
  "module": "dist/index.js",
@@ -22,7 +22,7 @@
22
22
  "dist"
23
23
  ],
24
24
  "peerDependencies": {
25
- "react": ">=17.0.2"
25
+ "react": "^17.0.2 || ^18.2.0"
26
26
  },
27
27
  "publishConfig": {
28
28
  "access": "public"
@@ -36,5 +36,5 @@
36
36
  "build": "nx build @codecademy/gamut-tests"
37
37
  },
38
38
  "types": "./dist/index.d.ts",
39
- "gitHead": "fe70bd1ec980feef3ecc2bbe5dd4c0b7e8453da6"
39
+ "gitHead": "bcee3f6691770960bcc8020a319325458666d8c2"
40
40
  }