@testing-library/react
Advanced tools
Comparing version 12.1.0 to 12.1.1
@@ -24,5 +24,3 @@ 'use strict'; | ||
enumerable: true, | ||
get: function () { | ||
return e[k]; | ||
} | ||
get: function () { return e[k]; } | ||
}); | ||
@@ -32,3 +30,3 @@ } | ||
} | ||
n['default'] = e; | ||
n["default"] = e; | ||
return Object.freeze(n); | ||
@@ -51,4 +49,4 @@ } | ||
function actPolyfill(cb) { | ||
ReactDOM__default['default'].unstable_batchedUpdates(cb); | ||
ReactDOM__default['default'].render( /*#__PURE__*/React__namespace.createElement("div", null), document.createElement('div')); | ||
ReactDOM__default["default"].unstable_batchedUpdates(cb); | ||
ReactDOM__default["default"].render( /*#__PURE__*/React__namespace.createElement("div", null), document.createElement('div')); | ||
} | ||
@@ -242,5 +240,5 @@ | ||
asyncWrapper: function () { | ||
var _asyncWrapper = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee2(cb) { | ||
var _asyncWrapper = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee2(cb) { | ||
var result; | ||
return _regeneratorRuntime__default['default'].wrap(function _callee2$(_context2) { | ||
return _regeneratorRuntime__default["default"].wrap(function _callee2$(_context2) { | ||
while (1) { | ||
@@ -250,4 +248,4 @@ switch (_context2.prev = _context2.next) { | ||
_context2.next = 2; | ||
return asyncAct( /*#__PURE__*/_asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee() { | ||
return _regeneratorRuntime__default['default'].wrap(function _callee$(_context) { | ||
return asyncAct( /*#__PURE__*/_asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee() { | ||
return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) { | ||
while (1) { | ||
@@ -328,8 +326,8 @@ switch (_context.prev = _context.next) { | ||
if (hydrate) { | ||
ReactDOM__default['default'].hydrate(wrapUiIfNeeded(ui), container); | ||
ReactDOM__default["default"].hydrate(wrapUiIfNeeded(ui), container); | ||
} else { | ||
ReactDOM__default['default'].render(wrapUiIfNeeded(ui), container); | ||
ReactDOM__default["default"].render(wrapUiIfNeeded(ui), container); | ||
} | ||
}); | ||
return _extends__default['default']({ | ||
return _extends__default["default"]({ | ||
container: container, | ||
@@ -350,3 +348,3 @@ baseElement: baseElement, | ||
act(function () { | ||
ReactDOM__default['default'].unmountComponentAtNode(container); | ||
ReactDOM__default["default"].unmountComponentAtNode(container); | ||
}); | ||
@@ -382,3 +380,3 @@ }, | ||
act(function () { | ||
ReactDOM__default['default'].unmountComponentAtNode(container); | ||
ReactDOM__default["default"].unmountComponentAtNode(container); | ||
}); | ||
@@ -428,6 +426,4 @@ | ||
enumerable: true, | ||
get: function () { | ||
return dom[k]; | ||
} | ||
get: function () { return dom[k]; } | ||
}); | ||
}); |
@@ -24,5 +24,3 @@ 'use strict'; | ||
enumerable: true, | ||
get: function () { | ||
return e[k]; | ||
} | ||
get: function () { return e[k]; } | ||
}); | ||
@@ -32,3 +30,3 @@ } | ||
} | ||
n['default'] = e; | ||
n["default"] = e; | ||
return Object.freeze(n); | ||
@@ -51,4 +49,4 @@ } | ||
function actPolyfill(cb) { | ||
ReactDOM__default['default'].unstable_batchedUpdates(cb); | ||
ReactDOM__default['default'].render( /*#__PURE__*/React__namespace.createElement("div", null), document.createElement('div')); | ||
ReactDOM__default["default"].unstable_batchedUpdates(cb); | ||
ReactDOM__default["default"].render( /*#__PURE__*/React__namespace.createElement("div", null), document.createElement('div')); | ||
} | ||
@@ -242,5 +240,5 @@ | ||
asyncWrapper: function () { | ||
var _asyncWrapper = _asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee2(cb) { | ||
var _asyncWrapper = _asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee2(cb) { | ||
var result; | ||
return _regeneratorRuntime__default['default'].wrap(function _callee2$(_context2) { | ||
return _regeneratorRuntime__default["default"].wrap(function _callee2$(_context2) { | ||
while (1) { | ||
@@ -250,4 +248,4 @@ switch (_context2.prev = _context2.next) { | ||
_context2.next = 2; | ||
return asyncAct( /*#__PURE__*/_asyncToGenerator__default['default']( /*#__PURE__*/_regeneratorRuntime__default['default'].mark(function _callee() { | ||
return _regeneratorRuntime__default['default'].wrap(function _callee$(_context) { | ||
return asyncAct( /*#__PURE__*/_asyncToGenerator__default["default"]( /*#__PURE__*/_regeneratorRuntime__default["default"].mark(function _callee() { | ||
return _regeneratorRuntime__default["default"].wrap(function _callee$(_context) { | ||
while (1) { | ||
@@ -328,8 +326,8 @@ switch (_context.prev = _context.next) { | ||
if (hydrate) { | ||
ReactDOM__default['default'].hydrate(wrapUiIfNeeded(ui), container); | ||
ReactDOM__default["default"].hydrate(wrapUiIfNeeded(ui), container); | ||
} else { | ||
ReactDOM__default['default'].render(wrapUiIfNeeded(ui), container); | ||
ReactDOM__default["default"].render(wrapUiIfNeeded(ui), container); | ||
} | ||
}); | ||
return _extends__default['default']({ | ||
return _extends__default["default"]({ | ||
container: container, | ||
@@ -350,3 +348,3 @@ baseElement: baseElement, | ||
act(function () { | ||
ReactDOM__default['default'].unmountComponentAtNode(container); | ||
ReactDOM__default["default"].unmountComponentAtNode(container); | ||
}); | ||
@@ -382,3 +380,3 @@ }, | ||
act(function () { | ||
ReactDOM__default['default'].unmountComponentAtNode(container); | ||
ReactDOM__default["default"].unmountComponentAtNode(container); | ||
}); | ||
@@ -404,6 +402,4 @@ | ||
enumerable: true, | ||
get: function () { | ||
return dom[k]; | ||
} | ||
get: function () { return dom[k]; } | ||
}); | ||
}); |
{ | ||
"name": "@testing-library/react", | ||
"version": "12.1.0", | ||
"version": "12.1.1", | ||
"description": "Simple and complete React DOM testing utilities that encourage good testing practices.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -73,3 +73,3 @@ // TypeScript Version: 3.8 | ||
*/ | ||
wrapper?: React.ComponentType | ||
wrapper?: React.ComponentType<{children: React.ReactElement}> | ||
} | ||
@@ -76,0 +76,0 @@ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5480452
33897
670