@testing-library/react
Advanced tools
Comparing version 13.2.0 to 13.3.0
@@ -46,2 +46,8 @@ 'use strict'; | ||
/* istanbul ignore else */ | ||
if (typeof globalThis !== 'undefined') { | ||
return globalThis; | ||
} | ||
/* istanbul ignore next */ | ||
if (typeof self !== 'undefined') { | ||
@@ -48,0 +54,0 @@ return self; |
@@ -15,2 +15,8 @@ import * as testUtils from 'react-dom/test-utils'; | ||
/* istanbul ignore else */ | ||
if (typeof globalThis !== 'undefined') { | ||
return globalThis; | ||
} | ||
/* istanbul ignore next */ | ||
if (typeof self !== 'undefined') { | ||
@@ -17,0 +23,0 @@ return self; |
@@ -46,2 +46,8 @@ 'use strict'; | ||
/* istanbul ignore else */ | ||
if (typeof globalThis !== 'undefined') { | ||
return globalThis; | ||
} | ||
/* istanbul ignore next */ | ||
if (typeof self !== 'undefined') { | ||
@@ -48,0 +54,0 @@ return self; |
@@ -15,2 +15,8 @@ import _extends from '@babel/runtime/helpers/esm/extends'; | ||
/* istanbul ignore else */ | ||
if (typeof globalThis !== 'undefined') { | ||
return globalThis; | ||
} | ||
/* istanbul ignore next */ | ||
if (typeof self !== 'undefined') { | ||
@@ -17,0 +23,0 @@ return self; |
@@ -20,2 +20,8 @@ "use strict"; | ||
/* istanbul ignore else */ | ||
if (typeof globalThis !== 'undefined') { | ||
return globalThis; | ||
} | ||
/* istanbul ignore next */ | ||
if (typeof self !== 'undefined') { | ||
@@ -22,0 +28,0 @@ return self; |
{ | ||
"name": "@testing-library/react", | ||
"version": "13.2.0", | ||
"version": "13.3.0", | ||
"description": "Simple and complete React DOM testing utilities that encourage good testing practices.", | ||
@@ -68,2 +68,5 @@ "main": "dist/index.js", | ||
"extends": "./node_modules/kcd-scripts/eslint.js", | ||
"globals": { | ||
"globalThis": "readonly" | ||
}, | ||
"rules": { | ||
@@ -70,0 +73,0 @@ "react/prop-types": "off", |
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
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
4430624
28297