react-test-renderer 16.13.1 → 16.14.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/cjs/react-test-renderer-shallow.development.js +1 -1
- package/cjs/react-test-renderer-shallow.production.min.js +1 -1
- package/cjs/react-test-renderer.development.js +3 -3
- package/cjs/react-test-renderer.production.min.js +2 -2
- package/package.json +22 -20
- package/umd/react-test-renderer-shallow.development.js +1 -1
- package/umd/react-test-renderer-shallow.production.min.js +1 -1
- package/umd/react-test-renderer.development.js +3 -3
- package/umd/react-test-renderer.production.min.js +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.14.0
|
|
2
2
|
* react-test-renderer.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -14871,7 +14871,7 @@ function injectIntoDevTools(devToolsConfig) {
|
|
|
14871
14871
|
// Enables DevTools to append owner stacks to error messages in DEV mode.
|
|
14872
14872
|
getCurrentFiber: function () {
|
|
14873
14873
|
return current;
|
|
14874
|
-
}
|
|
14874
|
+
}
|
|
14875
14875
|
}));
|
|
14876
14876
|
}
|
|
14877
14877
|
var IsSomeRendererActing$1 = ReactSharedInternals.IsSomeRendererActing;
|
|
@@ -15020,7 +15020,7 @@ function act(callback) {
|
|
|
15020
15020
|
}
|
|
15021
15021
|
}
|
|
15022
15022
|
|
|
15023
|
-
var ReactVersion = '16.
|
|
15023
|
+
var ReactVersion = '16.14.0';
|
|
15024
15024
|
|
|
15025
15025
|
var defaultTestOptions = {
|
|
15026
15026
|
createNodeMock: function () {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.14.0
|
|
2
2
|
* react-test-renderer.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -178,4 +178,4 @@ a:{var a=f.current;if(a.child)switch(a.child.tag){case 5:a=Fa(a.child.stateNode)
|
|
|
178
178
|
return 1===a.length?a[0]:yf(f.current)}});return a},unstable_batchedUpdates:Oe,act:function(a){function b(){of--;kf.current=c}!1===pf&&(pf=!0,console.error("act(...) is not supported in production builds of React, and might not behave as expected."));of++;var c=kf.current;kf.current=!0;try{var d=Oe(a)}catch(e){throw b(),e;}if(null!==d&&"object"===typeof d&&"function"===typeof d.then)return{then:function(a,f){d.then(function(){1<of||!0===lf&&!0===c?(b(),a()):nf(function(c){b();c?f(c):a()})},function(a){b();
|
|
179
179
|
f(a)})}};try{1!==of||!1!==lf&&!1!==c||mf(),b()}catch(e){throw b(),e;}return{then:function(a){a()}}}},Df=new WeakMap;function yf(a){var b=Df.get(a);void 0===b&&null!==a.alternate&&(b=Df.get(a.alternate));void 0===b&&(b=new Bf(a),Df.set(a,b));return b}
|
|
180
180
|
(function(a){var b=a.findFiberByHostInstance;return Ze(aa({},a,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:t.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){a=Ba(a);return null===a?null:a.stateNode},findFiberByHostInstance:function(a){return b?b(a):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))})({findFiberByHostInstance:function(){throw Error("TestRenderer does not support findFiberByHostInstance()");
|
|
181
|
-
},bundleType:0,version:"16.
|
|
181
|
+
},bundleType:0,version:"16.14.0",rendererPackageName:"react-test-renderer"});module.exports=Cf.default||Cf;
|
package/package.json
CHANGED
|
@@ -1,32 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
-
"name": "react-test-renderer",
|
|
3
|
-
"version": "16.13.1",
|
|
4
|
-
"description": "React package for snapshot testing.",
|
|
5
|
-
"main": "index.js",
|
|
6
|
-
"repository": {
|
|
7
|
-
"type": "git",
|
|
8
|
-
"url": "https://github.com/facebook/react.git",
|
|
9
|
-
"directory": "packages/react-test-renderer"
|
|
10
|
-
},
|
|
11
|
-
"keywords": [
|
|
12
|
-
"react",
|
|
13
|
-
"react-native",
|
|
14
|
-
"react-testing"
|
|
15
|
-
],
|
|
16
|
-
"license": "MIT",
|
|
17
2
|
"bugs": {
|
|
18
3
|
"url": "https://github.com/facebook/react/issues"
|
|
19
4
|
},
|
|
20
|
-
"
|
|
5
|
+
"bundleDependencies": false,
|
|
21
6
|
"dependencies": {
|
|
22
7
|
"object-assign": "^4.1.1",
|
|
23
8
|
"prop-types": "^15.6.2",
|
|
24
9
|
"react-is": "^16.8.6",
|
|
25
10
|
"scheduler": "^0.19.1"
|
|
26
11
|
},
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
},
|
|
12
|
+
"deprecated": false,
|
|
13
|
+
"description": "React package for snapshot testing.",
|
|
30
14
|
"files": [
|
|
31
15
|
"LICENSE",
|
|
32
16
|
"README.md",
|
|
@@ -35,5 +19,23 @@
|
|
|
35
19
|
"shallow.js",
|
|
36
20
|
"cjs/",
|
|
37
21
|
"umd/"
|
|
38
|
-
]
|
|
22
|
+
],
|
|
23
|
+
"homepage": "https://reactjs.org/",
|
|
24
|
+
"keywords": [
|
|
25
|
+
"react",
|
|
26
|
+
"react-native",
|
|
27
|
+
"react-testing"
|
|
28
|
+
],
|
|
29
|
+
"license": "MIT",
|
|
30
|
+
"main": "index.js",
|
|
31
|
+
"name": "react-test-renderer",
|
|
32
|
+
"peerDependencies": {
|
|
33
|
+
"react": "^16.14.0"
|
|
34
|
+
},
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "git+https://github.com/facebook/react.git",
|
|
38
|
+
"directory": "packages/react-test-renderer"
|
|
39
|
+
},
|
|
40
|
+
"version": "16.14.0"
|
|
39
41
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.14.0
|
|
2
2
|
* react-test-renderer.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -14984,7 +14984,7 @@
|
|
|
14984
14984
|
// Enables DevTools to append owner stacks to error messages in DEV mode.
|
|
14985
14985
|
getCurrentFiber: function () {
|
|
14986
14986
|
return current;
|
|
14987
|
-
}
|
|
14987
|
+
}
|
|
14988
14988
|
}));
|
|
14989
14989
|
}
|
|
14990
14990
|
var IsSomeRendererActing$1 = ReactSharedInternals.IsSomeRendererActing;
|
|
@@ -15133,7 +15133,7 @@
|
|
|
15133
15133
|
}
|
|
15134
15134
|
}
|
|
15135
15135
|
|
|
15136
|
-
var ReactVersion = '16.
|
|
15136
|
+
var ReactVersion = '16.14.0';
|
|
15137
15137
|
|
|
15138
15138
|
var defaultTestOptions = {
|
|
15139
15139
|
createNodeMock: function () {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.14.0
|
|
2
2
|
* react-test-renderer.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -148,4 +148,4 @@ Rb(e.children[b]);null!==c&&(null===a?a=[c]:a.push(c))}return a},toTree:function
|
|
|
148
148
|
(W|ba))!==I)throw Error(l(187));var b=n;n|=1;try{var c=pa(99,a.bind(null,void 0));break a}finally{n=b,Ca()}c=void 0}return c}};Object.defineProperty(a,"root",{configurable:!0,enumerable:!0,get:function(){if(null===f)throw Error("Can't access .root on unmounted test renderer");var a=Pc(f.current);if(0===a.length)throw Error("Can't access .root on unmounted test renderer");return 1===a.length?a[0]:Rc(f.current)}});return a},unstable_batchedUpdates:re,act:function(a){function b(){Vb--;Vc.current=c}!1===
|
|
149
149
|
De&&(De=!0,console.error("act(...) is not supported in production builds of React, and might not behave as expected."));Vb++;var c=Vc.current;Vc.current=!0;try{var d=re(a)}catch(e){throw b(),e;}if(null!==d&&"object"===typeof d&&"function"===typeof d.then)return{then:function(a,f){d.then(function(){1<Vb||!0===Ce&&!0===c?(b(),a()):xe(function(c){b();c?f(c):a()})},function(a){b();f(a)})}};try{1!==Vb||!1!==Ce&&!1!==c||Oc(),b()}catch(e){throw b(),e;}return{then:function(a){a()}}}},Tc=new WeakMap;(function(a){var b=
|
|
150
150
|
a.findFiberByHostInstance;return uf(Y({},a,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:R.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){a=He(a);return null===a?null:a.stateNode},findFiberByHostInstance:function(a){return b?b(a):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))})({findFiberByHostInstance:function(){throw Error("TestRenderer does not support findFiberByHostInstance()");
|
|
151
|
-
},bundleType:0,version:"16.
|
|
151
|
+
},bundleType:0,version:"16.14.0",rendererPackageName:"react-test-renderer"});return Ee.default||Ee});
|