@codecademy/gamut-tests 4.0.15-alpha.61dd4b.0 → 4.0.15-alpha.7039ca.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,5 +1,5 @@
1
1
  import { setupEnzyme as setupEnzymeBase, setupRtl as setupRtlBase } from 'component-test-setup';
2
- import * as React from 'react';
2
+ import React from 'react';
3
3
  export declare const MockGamutProvider: React.FC;
4
4
  export declare const setupEnzyme: typeof setupEnzymeBase;
5
5
  export declare const setupRtl: typeof setupRtlBase;
package/dist/index.js CHANGED
@@ -1,30 +1,20 @@
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
- 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
- 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
1
  import { GamutProvider, theme } from '@codecademy/gamut-styles';
8
2
  import { setupEnzyme as setupEnzymeBase, setupRtl as setupRtlBase } from 'component-test-setup';
9
3
  import { overArgs } from 'lodash';
10
- import * as React from 'react'; // See https://www.notion.so/codecademy/Frontend-Unit-Tests-1cbf4e078a6647559b4583dfb6d3cb18
4
+ import React from 'react'; // See https://www.notion.so/codecademy/Frontend-Unit-Tests-1cbf4e078a6647559b4583dfb6d3cb18
11
5
 
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
6
  export var MockGamutProvider = function MockGamutProvider(_ref) {
14
7
  var children = _ref.children;
15
- return /*#__PURE__*/_jsx(GamutProvider, {
8
+ return /*#__PURE__*/React.createElement(GamutProvider, {
16
9
  useGlobals: false,
17
10
  useCache: false,
18
- theme: theme,
19
- children: children
20
- });
11
+ theme: theme
12
+ }, children);
21
13
  };
22
14
 
23
15
  function withMockGamutProvider(WrappedComponent) {
24
16
  var WithBoundaryComponent = function WithBoundaryComponent(props) {
25
- return /*#__PURE__*/_jsx(MockGamutProvider, {
26
- children: /*#__PURE__*/_jsx(WrappedComponent, _objectSpread({}, props))
27
- });
17
+ return /*#__PURE__*/React.createElement(MockGamutProvider, null, /*#__PURE__*/React.createElement(WrappedComponent, props));
28
18
  };
29
19
 
30
20
  return WithBoundaryComponent;
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.1.2-alpha.61dd4b.0",
4
+ "@codecademy/gamut-styles": "14.1.2-alpha.7039ca.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.15-alpha.61dd4b.0",
17
+ "version": "4.0.15-alpha.7039ca.0",
18
18
  "license": "MIT",
19
19
  "main": "dist/index.js",
20
20
  "module": "dist/index.js",
@@ -36,5 +36,5 @@
36
36
  "build": "nx build @codecademy/gamut-tests"
37
37
  },
38
38
  "types": "./dist/index.d.ts",
39
- "gitHead": "40eb8bea4f4e408df49fbbaa32db451f13ca3247"
39
+ "gitHead": "22727d6bd8051653dc89e72ff076dc15561d623a"
40
40
  }