@testing-library/react
Advanced tools
Comparing version 8.0.6 to 8.0.7
@@ -13,2 +13,3 @@ 'use strict'; | ||
var dom = require('@testing-library/dom'); | ||
var testUtils = require('react-dom/test-utils'); | ||
@@ -18,4 +19,3 @@ // we don't want to warn until react-dom@16.9.0 is actually released | ||
var reactAct = require('react-dom/test-utils').act; | ||
var reactAct = testUtils.act; | ||
var actSupported = reactAct !== undefined; // act is supported react-dom@16.8.0 | ||
@@ -22,0 +22,0 @@ // so for versions that don't have act from test utils |
@@ -8,2 +8,3 @@ import _extends from '@babel/runtime/helpers/esm/extends'; | ||
export * from '@testing-library/dom'; | ||
import { act as act$1 } from 'react-dom/test-utils'; | ||
@@ -13,4 +14,3 @@ // we don't want to warn until react-dom@16.9.0 is actually released | ||
var reactAct = require('react-dom/test-utils').act; | ||
var reactAct = act$1; | ||
var actSupported = reactAct !== undefined; // act is supported react-dom@16.8.0 | ||
@@ -17,0 +17,0 @@ // so for versions that don't have act from test utils |
"use strict"; | ||
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); | ||
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault"); | ||
@@ -17,4 +19,5 @@ | ||
const reactAct = require('react-dom/test-utils').act; | ||
var testUtils = _interopRequireWildcard(require("react-dom/test-utils")); | ||
const reactAct = testUtils.act; | ||
const actSupported = reactAct !== undefined; // act is supported react-dom@16.8.0 | ||
@@ -21,0 +24,0 @@ // so for versions that don't have act from test utils |
{ | ||
"name": "@testing-library/react", | ||
"version": "8.0.6", | ||
"version": "8.0.7", | ||
"description": "Simple and complete React DOM testing utilities that encourage good testing practices.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -32,3 +32,3 @@ <div align="center"> | ||
[![All Contributors](https://img.shields.io/badge/all_contributors-84-orange.svg?style=flat-square)](#contributors) | ||
[![All Contributors](https://img.shields.io/badge/all_contributors-86-orange.svg?style=flat-square)](#contributors) | ||
[![PRs Welcome][prs-badge]][prs] [![Code of Conduct][coc-badge]][coc] | ||
@@ -467,2 +467,6 @@ [![Join the community on Spectrum][spectrum-badge]][spectrum] | ||
</tr> | ||
<tr> | ||
<td align="center"><a href="https://github.com/ChristianMurphy"><img src="https://avatars3.githubusercontent.com/u/3107513?v=4" width="100px;" alt="Christian Murphy"/><br /><sub><b>Christian Murphy</b></sub></a><br /><a href="#infra-ChristianMurphy" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td> | ||
<td align="center"><a href="https://jeetiss.github.io/"><img src="https://avatars1.githubusercontent.com/u/6726016?v=4" width="100px;" alt="Ivakhnenko Dmitry"/><br /><sub><b>Ivakhnenko Dmitry</b></sub></a><br /><a href="https://github.com/testing-library/react-testing-library/commits?author=jeetiss" title="Code">💻</a></td> | ||
</tr> | ||
</table> | ||
@@ -469,0 +473,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
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
1688554
11244
518