Socket
Socket
Sign inDemoInstall

@testing-library/react

Package Overview
Dependencies
3
Maintainers
15
Versions
116
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 15.0.1 to 15.0.2

4

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

@@ -376,3 +376,3 @@ 'use strict';

if (legacyRoot && typeof ReactDOM__default["default"].render !== 'function') {
const error = new Error('`legacyRoot: true` is not supported in this version of React. Please use React 18 instead.');
const error = new Error('`legacyRoot: true` is not supported in this version of React. ' + 'If your app runs React 19 or later, you should remove this flag. ' + 'If your app runs React 18 or earlier, visit https://react.dev/blog/2022/03/08/react-18-upgrade-guide for upgrade instructions.');
Error.captureStackTrace(error, render);

@@ -450,3 +450,3 @@ throw error;

if (renderOptions.legacyRoot && typeof ReactDOM__default["default"].render !== 'function') {
const error = new Error('`legacyRoot: true` is not supported in this version of React. Please use React 18 instead.');
const error = new Error('`legacyRoot: true` is not supported in this version of React. ' + 'If your app runs React 19 or later, you should remove this flag. ' + 'If your app runs React 18 or earlier, visit https://react.dev/blog/2022/03/08/react-18-upgrade-guide for upgrade instructions.');
Error.captureStackTrace(error, renderHook);

@@ -453,0 +453,0 @@ throw error;

@@ -348,3 +348,3 @@ import * as React from 'react';

if (legacyRoot && typeof ReactDOM.render !== 'function') {
const error = new Error('`legacyRoot: true` is not supported in this version of React. Please use React 18 instead.');
const error = new Error('`legacyRoot: true` is not supported in this version of React. ' + 'If your app runs React 19 or later, you should remove this flag. ' + 'If your app runs React 18 or earlier, visit https://react.dev/blog/2022/03/08/react-18-upgrade-guide for upgrade instructions.');
Error.captureStackTrace(error, render);

@@ -422,3 +422,3 @@ throw error;

if (renderOptions.legacyRoot && typeof ReactDOM.render !== 'function') {
const error = new Error('`legacyRoot: true` is not supported in this version of React. Please use React 18 instead.');
const error = new Error('`legacyRoot: true` is not supported in this version of React. ' + 'If your app runs React 19 or later, you should remove this flag. ' + 'If your app runs React 18 or earlier, visit https://react.dev/blog/2022/03/08/react-18-upgrade-guide for upgrade instructions.');
Error.captureStackTrace(error, renderHook);

@@ -425,0 +425,0 @@ throw error;

@@ -376,3 +376,3 @@ 'use strict';

if (legacyRoot && typeof ReactDOM__default["default"].render !== 'function') {
const error = new Error('`legacyRoot: true` is not supported in this version of React. Please use React 18 instead.');
const error = new Error('`legacyRoot: true` is not supported in this version of React. ' + 'If your app runs React 19 or later, you should remove this flag. ' + 'If your app runs React 18 or earlier, visit https://react.dev/blog/2022/03/08/react-18-upgrade-guide for upgrade instructions.');
Error.captureStackTrace(error, render);

@@ -450,3 +450,3 @@ throw error;

if (renderOptions.legacyRoot && typeof ReactDOM__default["default"].render !== 'function') {
const error = new Error('`legacyRoot: true` is not supported in this version of React. Please use React 18 instead.');
const error = new Error('`legacyRoot: true` is not supported in this version of React. ' + 'If your app runs React 19 or later, you should remove this flag. ' + 'If your app runs React 18 or earlier, visit https://react.dev/blog/2022/03/08/react-18-upgrade-guide for upgrade instructions.');
Error.captureStackTrace(error, renderHook);

@@ -453,0 +453,0 @@ throw error;

@@ -348,3 +348,3 @@ import * as React from 'react';

if (legacyRoot && typeof ReactDOM.render !== 'function') {
const error = new Error('`legacyRoot: true` is not supported in this version of React. Please use React 18 instead.');
const error = new Error('`legacyRoot: true` is not supported in this version of React. ' + 'If your app runs React 19 or later, you should remove this flag. ' + 'If your app runs React 18 or earlier, visit https://react.dev/blog/2022/03/08/react-18-upgrade-guide for upgrade instructions.');
Error.captureStackTrace(error, render);

@@ -422,3 +422,3 @@ throw error;

if (renderOptions.legacyRoot && typeof ReactDOM.render !== 'function') {
const error = new Error('`legacyRoot: true` is not supported in this version of React. Please use React 18 instead.');
const error = new Error('`legacyRoot: true` is not supported in this version of React. ' + 'If your app runs React 19 or later, you should remove this flag. ' + 'If your app runs React 18 or earlier, visit https://react.dev/blog/2022/03/08/react-18-upgrade-guide for upgrade instructions.');
Error.captureStackTrace(error, renderHook);

@@ -425,0 +425,0 @@ throw error;

@@ -232,3 +232,3 @@ "use strict";

if (legacyRoot && typeof _reactDom.default.render !== 'function') {
const error = new Error('`legacyRoot: true` is not supported in this version of React. Please use React 18 instead.');
const error = new Error('`legacyRoot: true` is not supported in this version of React. ' + 'If your app runs React 19 or later, you should remove this flag. ' + 'If your app runs React 18 or earlier, visit https://react.dev/blog/2022/03/08/react-18-upgrade-guide for upgrade instructions.');
Error.captureStackTrace(error, render);

@@ -302,3 +302,3 @@ throw error;

if (renderOptions.legacyRoot && typeof _reactDom.default.render !== 'function') {
const error = new Error('`legacyRoot: true` is not supported in this version of React. Please use React 18 instead.');
const error = new Error('`legacyRoot: true` is not supported in this version of React. ' + 'If your app runs React 19 or later, you should remove this flag. ' + 'If your app runs React 18 or earlier, visit https://react.dev/blog/2022/03/08/react-18-upgrade-guide for upgrade instructions.');
Error.captureStackTrace(error, renderHook);

@@ -305,0 +305,0 @@ throw error;

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

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc