@testing-library/react
Advanced tools
Comparing version 15.0.1 to 15.0.2
@@ -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
4299712
29154