@khanacademy/wonder-blocks-testing 11.0.0 → 11.0.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.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @khanacademy/wonder-blocks-testing
2
2
 
3
+ ## 11.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 559e82d5: Update to build tooling, generating smaller output
8
+ - Updated dependencies [c954464a]
9
+ - Updated dependencies [559e82d5]
10
+ - @khanacademy/wonder-blocks-testing-core@1.0.1
11
+ - @khanacademy/wonder-blocks-core@6.4.3
12
+ - @khanacademy/wonder-blocks-data@13.0.10
13
+
3
14
  ## 11.0.0
4
15
 
5
16
  ### Major Changes
package/dist/es/index.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import { mockRequester, harnessAdapters } from '@khanacademy/wonder-blocks-testing-core';
2
2
  export { RespondWith, SettleController, fixtures, hookHarness, makeHookHarness, makeTestHarness, mockFetch, renderHookStatic, testHarness } from '@khanacademy/wonder-blocks-testing-core';
3
+ import _extends from '@babel/runtime/helpers/extends';
3
4
  import * as React from 'react';
4
5
  import { InterceptRequests } from '@khanacademy/wonder-blocks-data';
5
6
  import { KindError, Errors } from '@khanacademy/wonder-stuff-core';
@@ -50,21 +51,6 @@ const mockGqlFetch = () => mockRequester(gqlRequestMatchesMock, (operation, vari
50
51
  Variables: ${variables == null ? "None" : JSON.stringify(variables, null, 2)}
51
52
  Context: ${JSON.stringify(context, null, 2)}`);
52
53
 
53
- function _extends() {
54
- _extends = Object.assign ? Object.assign.bind() : function (target) {
55
- for (var i = 1; i < arguments.length; i++) {
56
- var source = arguments[i];
57
- for (var key in source) {
58
- if (Object.prototype.hasOwnProperty.call(source, key)) {
59
- target[key] = source[key];
60
- }
61
- }
62
- }
63
- return target;
64
- };
65
- return _extends.apply(this, arguments);
66
- }
67
-
68
54
  const defaultConfig$1 = [];
69
55
  const adapter$1 = (children, config) => {
70
56
  let currentChildren = children;
package/dist/index.js CHANGED
@@ -3,11 +3,14 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var wonderBlocksTestingCore = require('@khanacademy/wonder-blocks-testing-core');
6
+ var _extends = require('@babel/runtime/helpers/extends');
6
7
  var React = require('react');
7
8
  var wonderBlocksData = require('@khanacademy/wonder-blocks-data');
8
9
  var wonderStuffCore = require('@khanacademy/wonder-stuff-core');
9
10
  var wonderBlocksCore = require('@khanacademy/wonder-blocks-core');
10
11
 
12
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
13
+
11
14
  function _interopNamespace(e) {
12
15
  if (e && e.__esModule) return e;
13
16
  var n = Object.create(null);
@@ -26,6 +29,7 @@ function _interopNamespace(e) {
26
29
  return Object.freeze(n);
27
30
  }
28
31
 
32
+ var _extends__default = /*#__PURE__*/_interopDefaultLegacy(_extends);
29
33
  var React__namespace = /*#__PURE__*/_interopNamespace(React);
30
34
 
31
35
  const safeHasOwnProperty = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);
@@ -73,21 +77,6 @@ const mockGqlFetch = () => wonderBlocksTestingCore.mockRequester(gqlRequestMatch
73
77
  Variables: ${variables == null ? "None" : JSON.stringify(variables, null, 2)}
74
78
  Context: ${JSON.stringify(context, null, 2)}`);
75
79
 
76
- function _extends() {
77
- _extends = Object.assign ? Object.assign.bind() : function (target) {
78
- for (var i = 1; i < arguments.length; i++) {
79
- var source = arguments[i];
80
- for (var key in source) {
81
- if (Object.prototype.hasOwnProperty.call(source, key)) {
82
- target[key] = source[key];
83
- }
84
- }
85
- }
86
- return target;
87
- };
88
- return _extends.apply(this, arguments);
89
- }
90
-
91
80
  const defaultConfig$1 = [];
92
81
  const adapter$1 = (children, config) => {
93
82
  let currentChildren = children;
@@ -122,7 +111,7 @@ const DefaultAdapters = {
122
111
  router: wonderBlocksTestingCore.harnessAdapters.DefaultAdapters.router,
123
112
  ssr: adapter
124
113
  };
125
- const DefaultConfigs = _extends({}, wonderBlocksTestingCore.harnessAdapters.DefaultConfigs, {
114
+ const DefaultConfigs = _extends__default["default"]({}, wonderBlocksTestingCore.harnessAdapters.DefaultConfigs, {
126
115
  data: defaultConfig$1,
127
116
  ssr: defaultConfig
128
117
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@khanacademy/wonder-blocks-testing",
3
- "version": "11.0.0",
3
+ "version": "11.0.1",
4
4
  "design": "v1",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -14,9 +14,9 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "@babel/runtime": "^7.18.6",
17
- "@khanacademy/wonder-blocks-core": "^6.4.2",
18
- "@khanacademy/wonder-blocks-data": "^13.0.9",
19
- "@khanacademy/wonder-blocks-testing-core": "^1.0.0"
17
+ "@khanacademy/wonder-blocks-core": "^6.4.3",
18
+ "@khanacademy/wonder-blocks-data": "^13.0.10",
19
+ "@khanacademy/wonder-blocks-testing-core": "^1.0.1"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "@khanacademy/wonder-stuff-core": "^1.2.2",
@@ -28,7 +28,7 @@
28
28
  "react-router-dom": "5.3.0"
29
29
  },
30
30
  "devDependencies": {
31
- "@khanacademy/wb-dev-build-settings": "^1.0.0",
31
+ "@khanacademy/wb-dev-build-settings": "^1.0.1",
32
32
  "@khanacademy/wonder-stuff-testing": "^3.0.1"
33
33
  },
34
34
  "author": "",