Socket
Socket
Sign inDemoInstall

@testing-library/react

Package Overview
Dependencies
Maintainers
12
Versions
117
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@testing-library/react - npm Package Compare versions

Comparing version 9.4.1 to 9.5.0

22

dist/@testing-library/react.cjs.js

@@ -183,5 +183,3 @@ 'use strict';

asyncWrapper: function () {
var _asyncWrapper = _asyncToGenerator(
/*#__PURE__*/
_regeneratorRuntime.mark(function _callee2(cb) {
var _asyncWrapper = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(cb) {
var result;

@@ -193,7 +191,3 @@ return _regeneratorRuntime.wrap(function (_context2) {

_context2.next = 2;
return asyncAct(
/*#__PURE__*/
_asyncToGenerator(
/*#__PURE__*/
_regeneratorRuntime.mark(function _callee() {
return asyncAct( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
return _regeneratorRuntime.wrap(function (_context) {

@@ -274,3 +268,3 @@ while (1) {

baseElement: baseElement,
debug: function debug(el) {
debug: function debug(el, maxLength, options) {
if (el === void 0) {

@@ -282,5 +276,5 @@ el = baseElement;

el.forEach(function (e) {
return console.log(dom.prettyDOM(e));
return console.log(dom.prettyDOM(e, maxLength, options));
}) : // eslint-disable-next-line no-console,
console.log(dom.prettyDOM(el));
console.log(dom.prettyDOM(el, maxLength, options));
},

@@ -399,7 +393,3 @@ unmount: function unmount() {

if (typeof afterEach === 'function' && !process.env.RTL_SKIP_AUTO_CLEANUP) {
afterEach(
/*#__PURE__*/
_asyncToGenerator(
/*#__PURE__*/
_regeneratorRuntime.mark(function _callee() {
afterEach( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
return _regeneratorRuntime.wrap(function (_context) {

@@ -406,0 +396,0 @@ while (1) {

@@ -178,5 +178,3 @@ import _regeneratorRuntime from '@babel/runtime/regenerator';

asyncWrapper: function () {
var _asyncWrapper = _asyncToGenerator(
/*#__PURE__*/
_regeneratorRuntime.mark(function _callee2(cb) {
var _asyncWrapper = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(cb) {
var result;

@@ -188,7 +186,3 @@ return _regeneratorRuntime.wrap(function (_context2) {

_context2.next = 2;
return asyncAct(
/*#__PURE__*/
_asyncToGenerator(
/*#__PURE__*/
_regeneratorRuntime.mark(function _callee() {
return asyncAct( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
return _regeneratorRuntime.wrap(function (_context) {

@@ -269,3 +263,3 @@ while (1) {

baseElement: baseElement,
debug: function debug(el) {
debug: function debug(el, maxLength, options) {
if (el === void 0) {

@@ -277,5 +271,5 @@ el = baseElement;

el.forEach(function (e) {
return console.log(prettyDOM(e));
return console.log(prettyDOM(e, maxLength, options));
}) : // eslint-disable-next-line no-console,
console.log(prettyDOM(el));
console.log(prettyDOM(el, maxLength, options));
},

@@ -394,7 +388,3 @@ unmount: function unmount() {

if (typeof afterEach === 'function' && !process.env.RTL_SKIP_AUTO_CLEANUP) {
afterEach(
/*#__PURE__*/
_asyncToGenerator(
/*#__PURE__*/
_regeneratorRuntime.mark(function _callee() {
afterEach( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
return _regeneratorRuntime.wrap(function (_context) {

@@ -401,0 +391,0 @@ while (1) {

@@ -137,5 +137,3 @@ 'use strict';

asyncWrapper: function () {
var _asyncWrapper = _asyncToGenerator(
/*#__PURE__*/
_regeneratorRuntime.mark(function _callee2(cb) {
var _asyncWrapper = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(cb) {
var result;

@@ -147,7 +145,3 @@ return _regeneratorRuntime.wrap(function (_context2) {

_context2.next = 2;
return asyncAct(
/*#__PURE__*/
_asyncToGenerator(
/*#__PURE__*/
_regeneratorRuntime.mark(function _callee() {
return asyncAct( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
return _regeneratorRuntime.wrap(function (_context) {

@@ -228,3 +222,3 @@ while (1) {

baseElement: baseElement,
debug: function debug(el) {
debug: function debug(el, maxLength, options) {
if (el === void 0) {

@@ -236,5 +230,5 @@ el = baseElement;

el.forEach(function (e) {
return console.log(dom.prettyDOM(e));
return console.log(dom.prettyDOM(e, maxLength, options));
}) : // eslint-disable-next-line no-console,
console.log(dom.prettyDOM(el));
console.log(dom.prettyDOM(el, maxLength, options));
},

@@ -241,0 +235,0 @@ unmount: function unmount() {

@@ -132,5 +132,3 @@ import _extends from '@babel/runtime/helpers/esm/extends';

asyncWrapper: function () {
var _asyncWrapper = _asyncToGenerator(
/*#__PURE__*/
_regeneratorRuntime.mark(function _callee2(cb) {
var _asyncWrapper = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2(cb) {
var result;

@@ -142,7 +140,3 @@ return _regeneratorRuntime.wrap(function (_context2) {

_context2.next = 2;
return asyncAct(
/*#__PURE__*/
_asyncToGenerator(
/*#__PURE__*/
_regeneratorRuntime.mark(function _callee() {
return asyncAct( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
return _regeneratorRuntime.wrap(function (_context) {

@@ -223,3 +217,3 @@ while (1) {

baseElement: baseElement,
debug: function debug(el) {
debug: function debug(el, maxLength, options) {
if (el === void 0) {

@@ -231,5 +225,5 @@ el = baseElement;

el.forEach(function (e) {
return console.log(prettyDOM(e));
return console.log(prettyDOM(e, maxLength, options));
}) : // eslint-disable-next-line no-console,
console.log(prettyDOM(el));
console.log(prettyDOM(el, maxLength, options));
},

@@ -236,0 +230,0 @@ unmount: function unmount() {

@@ -92,5 +92,5 @@ "use strict";

baseElement,
debug: (el = baseElement) => Array.isArray(el) ? // eslint-disable-next-line no-console
el.forEach(e => console.log((0, _dom.prettyDOM)(e))) : // eslint-disable-next-line no-console,
console.log((0, _dom.prettyDOM)(el)),
debug: (el = baseElement, maxLength, options) => Array.isArray(el) ? // eslint-disable-next-line no-console
el.forEach(e => console.log((0, _dom.prettyDOM)(e, maxLength, options))) : // eslint-disable-next-line no-console,
console.log((0, _dom.prettyDOM)(el, maxLength, options)),
unmount: () => _reactDom.default.unmountComponentAtNode(container),

@@ -97,0 +97,0 @@ rerender: rerenderUi => {

{
"name": "@testing-library/react",
"version": "9.4.1",
"version": "9.5.0",
"description": "Simple and complete React DOM testing utilities that encourage good testing practices.",

@@ -48,15 +48,15 @@ "main": "dist/index.js",

"dependencies": {
"@babel/runtime": "^7.8.3",
"@testing-library/dom": "^6.11.0",
"@babel/runtime": "^7.8.4",
"@testing-library/dom": "^6.15.0",
"@types/testing-library__react": "^9.1.2"
},
"devDependencies": {
"@reach/router": "^1.2.1",
"@testing-library/jest-dom": "^5.0.0",
"cross-env": "^6.0.3",
"kcd-scripts": "^4.0.0",
"@reach/router": "^1.3.3",
"@testing-library/jest-dom": "^5.1.1",
"cross-env": "^7.0.1",
"kcd-scripts": "^5.4.0",
"npm-run-all": "^4.1.5",
"react": "^16.9.0",
"react-dom": "^16.9.0",
"rimraf": "^3.0.0"
"rimraf": "^3.0.2"
},

@@ -71,2 +71,3 @@ "peerDependencies": {

"react/prop-types": "off",
"react/no-adjacent-inline-elements": "off",
"import/no-unassigned-import": "off",

@@ -73,0 +74,0 @@ "import/named": "off"

@@ -174,3 +174,3 @@ <div align="center">

// automatically. Learn more in the setup docs: https://testing-library.com/docs/react-testing-library/setup#cleanup
import '@testing-library/jest-dom/extend-expect'
import '@testing-library/jest-dom'
// NOTE: jest-dom adds handy assertions to Jest and is recommended, but not required

@@ -265,3 +265,3 @@

// your testing framework configuration rather than importing them in every file.
import '@testing-library/jest-dom/extend-expect'
import '@testing-library/jest-dom'
import React from 'react'

@@ -528,2 +528,6 @@ import {render, fireEvent, screen} from '@testing-library/react'

</tr>
<tr>
<td align="center"><a href="https://ryota-murakami.github.io/"><img src="https://avatars2.githubusercontent.com/u/5501268?v=4" width="100px;" alt=""/><br /><sub><b>Ryota Murakami</b></sub></a><br /><a href="https://github.com/testing-library/react-testing-library/commits?author=ryota-murakami" title="Documentation">๐Ÿ“–</a></td>
<td align="center"><a href="https://github.com/hottmanmichael"><img src="https://avatars3.githubusercontent.com/u/10534502?v=4" width="100px;" alt=""/><br /><sub><b>Michael Hottman</b></sub></a><br /><a href="#ideas-hottmanmichael" title="Ideas, Planning, & Feedback">๐Ÿค”</a></td>
</tr>
</table>

@@ -530,0 +534,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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with โšก๏ธ by Socket Inc