diff --git a/packages/mui-base/src/Menu/Menu.test.tsx b/packages/mui-base/src/Menu/Menu.test.tsx
index a153bc874dce18..576803228b396e 100644
--- a/packages/mui-base/src/Menu/Menu.test.tsx
+++ b/packages/mui-base/src/Menu/Menu.test.tsx
@@ -53,7 +53,7 @@ describe('
', () => {
expectedClassName: menuClasses.listbox,
},
},
- skip: ['reactTestRenderer', 'componentProp', 'slotsProp'],
+ skip: ['componentProp', 'slotsProp'],
}));
describe('after initialization', () => {
diff --git a/packages/mui-base/src/MenuButton/MenuButton.test.tsx b/packages/mui-base/src/MenuButton/MenuButton.test.tsx
index cf02521e17369e..b36ece56ee72d8 100644
--- a/packages/mui-base/src/MenuButton/MenuButton.test.tsx
+++ b/packages/mui-base/src/MenuButton/MenuButton.test.tsx
@@ -37,7 +37,7 @@ describe('', () => {
testWithElement: null,
},
},
- skip: ['componentProp', 'reactTestRenderer'],
+ skip: ['componentProp'],
}));
describe('prop: disabled', () => {
diff --git a/packages/mui-base/src/MenuItem/MenuItem.test.tsx b/packages/mui-base/src/MenuItem/MenuItem.test.tsx
index 55d30ff1644eca..62faefe6e9a03a 100644
--- a/packages/mui-base/src/MenuItem/MenuItem.test.tsx
+++ b/packages/mui-base/src/MenuItem/MenuItem.test.tsx
@@ -37,9 +37,6 @@ describe('', () => {
expectedClassName: menuItemClasses.root,
},
},
- skip: [
- 'componentProp',
- 'reactTestRenderer', // Need to be wrapped in MenuContext
- ],
+ skip: ['componentProp'],
}));
});
diff --git a/packages/mui-base/src/Modal/Modal.test.tsx b/packages/mui-base/src/Modal/Modal.test.tsx
index f9efde18743acb..616e55a53e6d75 100644
--- a/packages/mui-base/src/Modal/Modal.test.tsx
+++ b/packages/mui-base/src/Modal/Modal.test.tsx
@@ -29,10 +29,7 @@ describe('', () => {
expectedClassName: classes.root,
},
},
- skip: [
- 'componentProp',
- 'reactTestRenderer', // portal https://github.com/facebook/react/issues/11565
- ],
+ skip: ['componentProp'],
}),
);
diff --git a/packages/mui-base/src/Option/Option.test.tsx b/packages/mui-base/src/Option/Option.test.tsx
index a66d94442f1516..615488bb7bfaea 100644
--- a/packages/mui-base/src/Option/Option.test.tsx
+++ b/packages/mui-base/src/Option/Option.test.tsx
@@ -38,9 +38,6 @@ describe('', () => {
expectedClassName: optionClasses.root,
},
},
- skip: [
- 'componentProp',
- 'reactTestRenderer', // Need to be wrapped in SelectContext
- ],
+ skip: ['componentProp'],
}));
});
diff --git a/packages/mui-base/src/Popper/Popper.test.tsx b/packages/mui-base/src/Popper/Popper.test.tsx
index 78e9b8ac6bd190..27f5f2a66e956b 100644
--- a/packages/mui-base/src/Popper/Popper.test.tsx
+++ b/packages/mui-base/src/Popper/Popper.test.tsx
@@ -17,11 +17,7 @@ describe('', () => {
inheritComponent: 'div',
render,
refInstanceof: window.HTMLDivElement,
- skip: [
- // https://github.com/facebook/react/issues/11565
- 'reactTestRenderer',
- 'componentProp',
- ],
+ skip: ['componentProp'],
slots: {
root: {
expectedClassName: popperClasses.root,
diff --git a/packages/mui-base/src/Select/Select.test.tsx b/packages/mui-base/src/Select/Select.test.tsx
index a550858814bd34..832ccf8e9d1f19 100644
--- a/packages/mui-base/src/Select/Select.test.tsx
+++ b/packages/mui-base/src/Select/Select.test.tsx
@@ -59,7 +59,7 @@ describe('', () => {
testWithElement: 'span',
},
},
- skip: ['componentProp', 'reactTestRenderer'],
+ skip: ['componentProp'],
}));
describe('selected option rendering', () => {
diff --git a/packages/mui-base/src/Tab/Tab.test.tsx b/packages/mui-base/src/Tab/Tab.test.tsx
index 347946682421d6..7a56b9f09a2c81 100644
--- a/packages/mui-base/src/Tab/Tab.test.tsx
+++ b/packages/mui-base/src/Tab/Tab.test.tsx
@@ -44,9 +44,6 @@ describe('', () => {
expectedClassName: tabClasses.root,
},
},
- skip: [
- 'reactTestRenderer', // Need to be wrapped with TabsContext
- 'componentProp',
- ],
+ skip: ['componentProp'],
}));
});
diff --git a/packages/mui-base/src/TabPanel/TabPanel.test.tsx b/packages/mui-base/src/TabPanel/TabPanel.test.tsx
index 52890d47df0f06..94f095bbf831e1 100644
--- a/packages/mui-base/src/TabPanel/TabPanel.test.tsx
+++ b/packages/mui-base/src/TabPanel/TabPanel.test.tsx
@@ -37,9 +37,6 @@ describe('', () => {
expectedClassName: tabPanelClasses.root,
},
},
- skip: [
- 'reactTestRenderer', // Need to be wrapped with TabsContext
- 'componentProp',
- ],
+ skip: ['componentProp'],
}));
});
diff --git a/packages/mui-base/src/TabsList/TabsList.test.tsx b/packages/mui-base/src/TabsList/TabsList.test.tsx
index b76066d3a85cfe..adefa078daec57 100644
--- a/packages/mui-base/src/TabsList/TabsList.test.tsx
+++ b/packages/mui-base/src/TabsList/TabsList.test.tsx
@@ -35,10 +35,7 @@ describe('', () => {
expectedClassName: tabsListClasses.root,
},
},
- skip: [
- 'reactTestRenderer', // Need to be wrapped with TabsContext
- 'componentProp',
- ],
+ skip: ['componentProp'],
}));
describe('accessibility attributes', () => {
diff --git a/packages/mui-base/src/Unstable_Popup/Popup.test.tsx b/packages/mui-base/src/Unstable_Popup/Popup.test.tsx
index 82cd1e26851a74..3401d1f9ec2263 100644
--- a/packages/mui-base/src/Unstable_Popup/Popup.test.tsx
+++ b/packages/mui-base/src/Unstable_Popup/Popup.test.tsx
@@ -58,11 +58,7 @@ describe('', () => {
return result;
},
refInstanceof: window.HTMLDivElement,
- skip: [
- // https://github.com/facebook/react/issues/11565
- 'reactTestRenderer',
- 'componentProp',
- ],
+ skip: ['componentProp'],
slots: {
root: {
expectedClassName: popupClasses.root,
diff --git a/packages/mui-base/test/describeConformanceUnstyled.tsx b/packages/mui-base/test/describeConformanceUnstyled.tsx
index 1360f8d764212b..97094080efc308 100644
--- a/packages/mui-base/test/describeConformanceUnstyled.tsx
+++ b/packages/mui-base/test/describeConformanceUnstyled.tsx
@@ -10,7 +10,6 @@ import {
describeRef,
randomStringValue,
testComponentProp,
- testReactTestRenderer,
} from '@mui-internal/test-utils';
import { ClassNameConfigurator } from '@mui/base/utils';
@@ -405,7 +404,6 @@ const fullSuite = {
slotPropsCallbacks: testSlotPropsCallbacks,
mergeClassName: testClassName,
propsSpread: testPropForwarding,
- reactTestRenderer: testReactTestRenderer,
refForwarding: describeRef,
ownerStatePropagation: testOwnerStatePropagation,
disableClassGeneration: testDisablingClassGeneration,
diff --git a/packages/mui-joy/src/Autocomplete/Autocomplete.test.tsx b/packages/mui-joy/src/Autocomplete/Autocomplete.test.tsx
index 437904684e8fd3..a10fc3b054c97a 100644
--- a/packages/mui-joy/src/Autocomplete/Autocomplete.test.tsx
+++ b/packages/mui-joy/src/Autocomplete/Autocomplete.test.tsx
@@ -50,12 +50,7 @@ describe('Joy ', () => {
muiName: 'JoyAutocomplete',
testDeepOverrides: { slotName: 'popupIndicator', slotClassName: classes.popupIndicator },
testVariantProps: { size: 'lg' },
- skip: [
- 'componentsProp',
- 'classesRoot',
- // https://github.com/facebook/react/issues/11565
- 'reactTestRenderer',
- ],
+ skip: ['componentsProp', 'classesRoot'],
slots: {
root: {
expectedClassName: classes.root,
diff --git a/packages/mui-joy/src/Drawer/Drawer.test.tsx b/packages/mui-joy/src/Drawer/Drawer.test.tsx
index 6ef1423b748f84..8163c60e0271c9 100644
--- a/packages/mui-joy/src/Drawer/Drawer.test.tsx
+++ b/packages/mui-joy/src/Drawer/Drawer.test.tsx
@@ -31,7 +31,6 @@ describe('', () => {
'componentsProp', // TODO isRTL is leaking, why do we even have it in the first place?
'themeDefaultProps', // portal, can't determine the root
'themeStyleOverrides', // portal, can't determine the root
- 'reactTestRenderer', // portal https://github.com/facebook/react/issues/11565
],
}),
);
diff --git a/packages/mui-joy/src/Menu/Menu.test.tsx b/packages/mui-joy/src/Menu/Menu.test.tsx
index 92ddb6198476fe..32e12c09cbb830 100644
--- a/packages/mui-joy/src/Menu/Menu.test.tsx
+++ b/packages/mui-joy/src/Menu/Menu.test.tsx
@@ -42,7 +42,6 @@ describe('Joy ', () => {
'classesRoot',
'componentProp',
'componentsProp',
- 'reactTestRenderer', // react-transition-group issue
'themeDefaultProps', // portal, can't determine the root
],
}));
diff --git a/packages/mui-joy/src/MenuButton/MenuButton.test.tsx b/packages/mui-joy/src/MenuButton/MenuButton.test.tsx
index f12ff0dc8252e6..6c81aa53ffbdf6 100644
--- a/packages/mui-joy/src/MenuButton/MenuButton.test.tsx
+++ b/packages/mui-joy/src/MenuButton/MenuButton.test.tsx
@@ -32,7 +32,7 @@ describe('', () => {
slots: {
root: { expectedClassName: classes.root },
},
- skip: ['reactTestRenderer', 'componentsProp', 'classesRoot'],
+ skip: ['componentsProp', 'classesRoot'],
testRootOverrides: { slotName: 'root', slotClassName: classes.root },
testVariantProps: { variant: 'soft' },
ThemeProvider,
diff --git a/packages/mui-joy/src/MenuItem/MenuItem.test.tsx b/packages/mui-joy/src/MenuItem/MenuItem.test.tsx
index 993abec30b8df9..0064a603c2bf95 100644
--- a/packages/mui-joy/src/MenuItem/MenuItem.test.tsx
+++ b/packages/mui-joy/src/MenuItem/MenuItem.test.tsx
@@ -42,7 +42,7 @@ describe('Joy ', () => {
muiName: 'JoyMenuItem',
testVariantProps: { variant: 'solid' },
testCustomVariant: true,
- skip: ['propsSpread', 'componentsProp', 'classesRoot', 'reactTestRenderer'],
+ skip: ['propsSpread', 'componentsProp', 'classesRoot'],
slots: {
root: {
expectedClassName: classes.root,
diff --git a/packages/mui-joy/src/Modal/Modal.test.tsx b/packages/mui-joy/src/Modal/Modal.test.tsx
index e597c4197cf9ab..25401a3d1ee389 100644
--- a/packages/mui-joy/src/Modal/Modal.test.tsx
+++ b/packages/mui-joy/src/Modal/Modal.test.tsx
@@ -33,7 +33,6 @@ describe('', () => {
'componentsProp', // TODO isRTL is leaking, why do we even have it in the first place?
'themeDefaultProps', // portal, can't determine the root
'themeStyleOverrides', // portal, can't determine the root
- 'reactTestRenderer', // portal https://github.com/facebook/react/issues/11565
],
}),
);
diff --git a/packages/mui-joy/src/Select/Select.test.tsx b/packages/mui-joy/src/Select/Select.test.tsx
index 6f04051bea4e26..f4fc351ea6d9e7 100644
--- a/packages/mui-joy/src/Select/Select.test.tsx
+++ b/packages/mui-joy/src/Select/Select.test.tsx
@@ -49,14 +49,7 @@ describe('Joy ', () => {
startDecorator: { expectedClassName: classes.startDecorator },
endDecorator: { expectedClassName: classes.endDecorator },
},
- skip: [
- 'classesRoot',
- 'propsSpread',
- 'componentProp',
- 'componentsProp',
- // https://github.com/facebook/react/issues/11565
- 'reactTestRenderer',
- ],
+ skip: ['classesRoot', 'propsSpread', 'componentProp', 'componentsProp'],
}));
it('should be able to mount the component', () => {
diff --git a/packages/mui-joy/src/Tab/Tab.test.tsx b/packages/mui-joy/src/Tab/Tab.test.tsx
index 7eafea0d7b0541..e1e0501919cf30 100644
--- a/packages/mui-joy/src/Tab/Tab.test.tsx
+++ b/packages/mui-joy/src/Tab/Tab.test.tsx
@@ -37,7 +37,7 @@ describe('Joy ', () => {
refInstanceof: window.HTMLButtonElement,
testVariantProps: { variant: 'solid' },
testCustomVariant: true,
- skip: ['componentsProp', 'classesRoot', 'reactTestRenderer'],
+ skip: ['componentsProp', 'classesRoot'],
slots: {
root: {
expectedClassName: classes.root,
diff --git a/packages/mui-joy/src/TabList/TabList.test.tsx b/packages/mui-joy/src/TabList/TabList.test.tsx
index e9885817c7357f..94a2aa02a0645a 100644
--- a/packages/mui-joy/src/TabList/TabList.test.tsx
+++ b/packages/mui-joy/src/TabList/TabList.test.tsx
@@ -25,7 +25,7 @@ describe('Joy ', () => {
muiName: 'JoyTabList',
refInstanceof: window.HTMLDivElement,
testVariantProps: { variant: 'solid' },
- skip: ['componentsProp', 'classesRoot', 'reactTestRenderer'],
+ skip: ['componentsProp', 'classesRoot'],
slots: {
root: {
expectedClassName: classes.root,
diff --git a/packages/mui-joy/src/TabPanel/TabPanel.test.tsx b/packages/mui-joy/src/TabPanel/TabPanel.test.tsx
index c8649afceb1781..ba5d8f108b93ad 100644
--- a/packages/mui-joy/src/TabPanel/TabPanel.test.tsx
+++ b/packages/mui-joy/src/TabPanel/TabPanel.test.tsx
@@ -25,7 +25,7 @@ describe('Joy ', () => {
refInstanceof: window.HTMLDivElement,
testVariantProps: { size: 'sm' },
testCustomVariant: true,
- skip: ['componentsProp', 'classesRoot', 'reactTestRenderer'],
+ skip: ['componentsProp', 'classesRoot'],
slots: {
root: {
expectedClassName: classes.root,
diff --git a/packages/mui-joy/src/Table/Table.test.tsx b/packages/mui-joy/src/Table/Table.test.tsx
index 681ad7dbbdeecf..0f5d8f63375be0 100644
--- a/packages/mui-joy/src/Table/Table.test.tsx
+++ b/packages/mui-joy/src/Table/Table.test.tsx
@@ -25,7 +25,6 @@ describe('', () => {
'componentProp',
'mergeClassName',
'propsSpread',
- 'reactTestRenderer',
'refForwarding',
],
slots: {
diff --git a/packages/mui-joy/src/Tabs/Tabs.test.tsx b/packages/mui-joy/src/Tabs/Tabs.test.tsx
index da7a8b3b2e1a98..4c9a88e6b8da8c 100644
--- a/packages/mui-joy/src/Tabs/Tabs.test.tsx
+++ b/packages/mui-joy/src/Tabs/Tabs.test.tsx
@@ -18,7 +18,7 @@ describe('Joy ', () => {
refInstanceof: window.HTMLDivElement,
testVariantProps: { variant: 'solid' },
testCustomVariant: true,
- skip: ['componentsProp', 'classesRoot', 'reactTestRenderer'],
+ skip: ['componentsProp', 'classesRoot'],
slots: {
root: {
expectedClassName: classes.root,
diff --git a/packages/mui-joy/src/Tooltip/Tooltip.test.tsx b/packages/mui-joy/src/Tooltip/Tooltip.test.tsx
index 0bc6969c4563fc..5b3b4d790929ec 100644
--- a/packages/mui-joy/src/Tooltip/Tooltip.test.tsx
+++ b/packages/mui-joy/src/Tooltip/Tooltip.test.tsx
@@ -50,8 +50,6 @@ describe('', () => {
'componentProp',
'componentsProp',
'themeVariants',
- // react-transition-group issue
- 'reactTestRenderer',
// Props are spread to root and children
// We cannot use the standard propsSpread test which relies on data-testid only on the root
'propsSpread',
diff --git a/packages/mui-lab/src/TabList/TabList.test.js b/packages/mui-lab/src/TabList/TabList.test.js
index 7dbad4514c67bc..6fefd358dff041 100644
--- a/packages/mui-lab/src/TabList/TabList.test.js
+++ b/packages/mui-lab/src/TabList/TabList.test.js
@@ -20,14 +20,12 @@ describe('', () => {
*/
render: (node) => render({node}),
refInstanceof: window.HTMLDivElement,
- // TODO: no idea why reactTestRenderer fails
skip: [
'componentsProp',
'themeDefaultProps',
'themeStyleOverrides',
'themeVariants',
'rootClass',
- 'reactTestRenderer',
],
}));
diff --git a/packages/mui-lab/src/TabPanel/TabPanel.test.tsx b/packages/mui-lab/src/TabPanel/TabPanel.test.tsx
index 168d8eaf754e62..592b16c071f175 100644
--- a/packages/mui-lab/src/TabPanel/TabPanel.test.tsx
+++ b/packages/mui-lab/src/TabPanel/TabPanel.test.tsx
@@ -14,13 +14,7 @@ describe('', () => {
render: (node) => render({node}),
refInstanceof: window.HTMLDivElement,
muiName: 'MuiTabPanel',
- skip: [
- 'componentProp',
- 'componentsProp',
- 'reactTestRenderer',
- 'themeDefaultProps',
- 'themeVariants',
- ],
+ skip: ['componentProp', 'componentsProp', 'themeDefaultProps', 'themeVariants'],
}));
it('renders a [role="tabpanel"]', () => {
diff --git a/packages/mui-material/src/Autocomplete/Autocomplete.test.js b/packages/mui-material/src/Autocomplete/Autocomplete.test.js
index 226ae973423958..e1f54d38d5f7b2 100644
--- a/packages/mui-material/src/Autocomplete/Autocomplete.test.js
+++ b/packages/mui-material/src/Autocomplete/Autocomplete.test.js
@@ -70,7 +70,6 @@ describe('', () => {
'componentProp',
'componentsProp',
'slotsProp',
- 'reactTestRenderer',
'slotPropsCallback', // not supported yet
],
}),
diff --git a/packages/mui-material/src/Backdrop/Backdrop.test.js b/packages/mui-material/src/Backdrop/Backdrop.test.js
index 08e5d122eed6bc..210649a183801a 100644
--- a/packages/mui-material/src/Backdrop/Backdrop.test.js
+++ b/packages/mui-material/src/Backdrop/Backdrop.test.js
@@ -25,8 +25,6 @@ describe('', () => {
skip: [
'componentProp',
'componentsProp',
- // react-transition-group issue
- 'reactTestRenderer',
'slotPropsCallback', // not supported yet
],
}));
diff --git a/packages/mui-material/src/Dialog/Dialog.test.js b/packages/mui-material/src/Dialog/Dialog.test.js
index e17f7ac397d7de..03badaeb0d37e8 100644
--- a/packages/mui-material/src/Dialog/Dialog.test.js
+++ b/packages/mui-material/src/Dialog/Dialog.test.js
@@ -48,13 +48,7 @@ describe('', () => {
testVariantProps: { variant: 'foo' },
testDeepOverrides: { slotName: 'paper', slotClassName: classes.paper },
refInstanceof: window.HTMLDivElement,
- skip: [
- 'componentProp',
- 'componentsProp',
- 'themeVariants',
- // react-transition-group issue
- 'reactTestRenderer',
- ],
+ skip: ['componentProp', 'componentsProp', 'themeVariants'],
}),
);
diff --git a/packages/mui-material/src/Drawer/Drawer.test.js b/packages/mui-material/src/Drawer/Drawer.test.js
index 6a5c949eb02206..e6cbda6ceb7f08 100644
--- a/packages/mui-material/src/Drawer/Drawer.test.js
+++ b/packages/mui-material/src/Drawer/Drawer.test.js
@@ -22,13 +22,7 @@ describe('', () => {
testVariantProps: { variant: 'persistent' },
testDeepOverrides: { slotName: 'paper', slotClassName: classes.paper },
refInstanceof: window.HTMLDivElement,
- skip: [
- 'componentProp',
- 'componentsProp',
- 'themeVariants',
- // react-transition-group issue
- 'reactTestRenderer',
- ],
+ skip: ['componentProp', 'componentsProp', 'themeVariants'],
}),
);
diff --git a/packages/mui-material/src/Fade/Fade.test.js b/packages/mui-material/src/Fade/Fade.test.js
index c9efbfb053f4f1..6d93248c80ef9b 100644
--- a/packages/mui-material/src/Fade/Fade.test.js
+++ b/packages/mui-material/src/Fade/Fade.test.js
@@ -26,9 +26,6 @@ describe('', () => {
'themeDefaultProps',
'themeStyleOverrides',
'themeVariants',
- // TODO: really?
- // react-transition-group issue
- 'reactTestRenderer',
],
}));
diff --git a/packages/mui-material/src/Grow/Grow.test.js b/packages/mui-material/src/Grow/Grow.test.js
index fc256b86b4dfb0..fe03a63d2e3425 100644
--- a/packages/mui-material/src/Grow/Grow.test.js
+++ b/packages/mui-material/src/Grow/Grow.test.js
@@ -31,8 +31,6 @@ describe('', () => {
'themeDefaultProps',
'themeStyleOverrides',
'themeVariants',
- // react-transition-group issue
- 'reactTestRenderer',
],
}),
);
diff --git a/packages/mui-material/src/Menu/Menu.test.js b/packages/mui-material/src/Menu/Menu.test.js
index 97009b28e5d85b..4c9b6c6e9d3e64 100644
--- a/packages/mui-material/src/Menu/Menu.test.js
+++ b/packages/mui-material/src/Menu/Menu.test.js
@@ -37,7 +37,6 @@ describe('', () => {
'rootClass', // portal, can't determine the root
'componentProp',
'componentsProp',
- 'reactTestRenderer', // react-transition-group issue
'themeDefaultProps', // portal, can't determine the root
],
}));
diff --git a/packages/mui-material/src/Modal/Modal.test.js b/packages/mui-material/src/Modal/Modal.test.js
index 8051a236fca9f2..d120bdc3a3f93e 100644
--- a/packages/mui-material/src/Modal/Modal.test.js
+++ b/packages/mui-material/src/Modal/Modal.test.js
@@ -43,7 +43,6 @@ describe('', () => {
'componentsProp', // TODO isRTL is leaking, why do we even have it in the first place?
'themeDefaultProps', // portal, can't determine the root
'themeStyleOverrides', // portal, can't determine the root
- 'reactTestRenderer', // portal https://github.com/facebook/react/issues/11565
'slotPropsCallback', // not supported yet
],
}),
diff --git a/packages/mui-material/src/Popover/Popover.test.js b/packages/mui-material/src/Popover/Popover.test.js
index 80ac6e450e5971..6914d6bcfd4d2e 100644
--- a/packages/mui-material/src/Popover/Popover.test.js
+++ b/packages/mui-material/src/Popover/Popover.test.js
@@ -71,7 +71,6 @@ describe('', () => {
'themeDefaultProps', // portal, can't determine the root
'themeStyleOverrides', // portal, can't determine the root
'themeVariants',
- 'reactTestRenderer', // react-transition-group issue
'slotPropsCallback', // not supported yet
],
}));
diff --git a/packages/mui-material/src/Popper/Popper.test.js b/packages/mui-material/src/Popper/Popper.test.js
index cbe5f8db368e36..84d47850b9f20f 100644
--- a/packages/mui-material/src/Popper/Popper.test.js
+++ b/packages/mui-material/src/Popper/Popper.test.js
@@ -37,8 +37,6 @@ describe('', () => {
'themeDefaultProps',
'themeStyleOverrides',
'themeVariants',
- // https://github.com/facebook/react/issues/11565
- 'reactTestRenderer',
'slotPropsCallback', // not supported yet
],
}));
diff --git a/packages/mui-material/src/Slide/Slide.test.js b/packages/mui-material/src/Slide/Slide.test.js
index c61e34b5112d51..6f0471cf6fa614 100644
--- a/packages/mui-material/src/Slide/Slide.test.js
+++ b/packages/mui-material/src/Slide/Slide.test.js
@@ -33,8 +33,6 @@ describe('', () => {
'themeDefaultProps',
'themeStyleOverrides',
'themeVariants',
- // react-transition-group issue
- 'reactTestRenderer',
],
}),
);
diff --git a/packages/mui-material/src/Snackbar/Snackbar.test.js b/packages/mui-material/src/Snackbar/Snackbar.test.js
index 3a3558ef53c13c..8fc32d4f00ed5e 100644
--- a/packages/mui-material/src/Snackbar/Snackbar.test.js
+++ b/packages/mui-material/src/Snackbar/Snackbar.test.js
@@ -30,13 +30,7 @@ describe('', () => {
render,
refInstanceof: window.HTMLDivElement,
muiName: 'MuiSnackbar',
- skip: [
- 'componentProp',
- 'componentsProp',
- 'themeVariants',
- // react-transition-group issue
- 'reactTestRenderer',
- ],
+ skip: ['componentProp', 'componentsProp', 'themeVariants'],
}));
describe('prop: onClose', () => {
diff --git a/packages/mui-material/src/SpeedDial/SpeedDial.test.js b/packages/mui-material/src/SpeedDial/SpeedDial.test.js
index 93c45c42806d3f..de9de2b64f862e 100644
--- a/packages/mui-material/src/SpeedDial/SpeedDial.test.js
+++ b/packages/mui-material/src/SpeedDial/SpeedDial.test.js
@@ -38,7 +38,6 @@ describe('', () => {
skip: [
'componentProp', // react-transition-group issue
'componentsProp',
- 'reactTestRenderer',
],
}));
diff --git a/packages/mui-material/src/SpeedDialAction/SpeedDialAction.test.js b/packages/mui-material/src/SpeedDialAction/SpeedDialAction.test.js
index 3cee98729c5fef..f3891376017c55 100644
--- a/packages/mui-material/src/SpeedDialAction/SpeedDialAction.test.js
+++ b/packages/mui-material/src/SpeedDialAction/SpeedDialAction.test.js
@@ -20,7 +20,7 @@ describe('', () => {
muiName: 'MuiSpeedDialAction',
testRootOverrides: { slotName: 'fab' },
testVariantProps: { tooltipPlacement: 'right' },
- skip: ['componentProp', 'reactTestRenderer', 'componentsProp'],
+ skip: ['componentProp', 'componentsProp'],
}),
);
diff --git a/packages/mui-material/src/StepContent/StepContent.test.js b/packages/mui-material/src/StepContent/StepContent.test.js
index 9a9abc967135eb..528b2f5c89725e 100644
--- a/packages/mui-material/src/StepContent/StepContent.test.js
+++ b/packages/mui-material/src/StepContent/StepContent.test.js
@@ -23,7 +23,7 @@ describe('', () => {
);
return { container: container.firstChild.firstChild, ...other };
},
- skip: ['componentProp', 'componentsProp', 'themeVariants', 'reactTestRenderer'],
+ skip: ['componentProp', 'componentsProp', 'themeVariants'],
}));
it('renders children inside an Collapse component', () => {
diff --git a/packages/mui-material/src/SwipeableDrawer/SwipeableDrawer.test.js b/packages/mui-material/src/SwipeableDrawer/SwipeableDrawer.test.js
index 1f197b487bce9e..71d0e7883a70fc 100644
--- a/packages/mui-material/src/SwipeableDrawer/SwipeableDrawer.test.js
+++ b/packages/mui-material/src/SwipeableDrawer/SwipeableDrawer.test.js
@@ -67,14 +67,7 @@ describe('', () => {
classes: {},
inheritComponent: Drawer,
refInstanceof: window.HTMLDivElement,
- skip: [
- 'componentProp',
- 'themeDefaultProps',
- 'themeStyleOverrides',
- 'themeVariants',
- // https://github.com/facebook/react/issues/11565
- 'reactTestRenderer',
- ],
+ skip: ['componentProp', 'themeDefaultProps', 'themeStyleOverrides', 'themeVariants'],
}));
it('should render a Drawer and a SwipeArea', () => {
diff --git a/packages/mui-material/src/Tooltip/Tooltip.test.js b/packages/mui-material/src/Tooltip/Tooltip.test.js
index f63ab0555bdfdb..887e5dba7975db 100644
--- a/packages/mui-material/src/Tooltip/Tooltip.test.js
+++ b/packages/mui-material/src/Tooltip/Tooltip.test.js
@@ -58,8 +58,6 @@ describe('', () => {
'componentProp',
'componentsProp',
'themeVariants',
- // react-transition-group issue
- 'reactTestRenderer',
'slotPropsCallback', // not supported yet
],
}),
diff --git a/packages/mui-material/src/Zoom/Zoom.test.js b/packages/mui-material/src/Zoom/Zoom.test.js
index 19d330e846e811..6294a9bebf9da7 100644
--- a/packages/mui-material/src/Zoom/Zoom.test.js
+++ b/packages/mui-material/src/Zoom/Zoom.test.js
@@ -25,8 +25,6 @@ describe('', () => {
'themeDefaultProps',
'themeStyleOverrides',
'themeVariants',
- // react-transition-group issue
- 'reactTestRenderer',
],
}),
);
diff --git a/packages/test-utils/package.json b/packages/test-utils/package.json
index e62cd2a76d669c..60cb77f110cff1 100644
--- a/packages/test-utils/package.json
+++ b/packages/test-utils/package.json
@@ -36,7 +36,6 @@
"mocha": "^10.3.0",
"playwright": "^1.42.1",
"prop-types": "^15.8.1",
- "react-test-renderer": "^18.2.0",
"sinon": "^15.2.0"
},
"devDependencies": {
@@ -46,7 +45,6 @@
"@types/prop-types": "^15.7.11",
"@types/react": "^18.2.55",
"@types/react-dom": "^18.2.19",
- "@types/react-test-renderer": "^18.0.7",
"@types/sinon": "^10.0.20",
"typescript": "^5.3.3"
},
diff --git a/packages/test-utils/src/describeConformance.tsx b/packages/test-utils/src/describeConformance.tsx
index d1625eba4c5189..7dce648a57ae1e 100644
--- a/packages/test-utils/src/describeConformance.tsx
+++ b/packages/test-utils/src/describeConformance.tsx
@@ -1,7 +1,6 @@
/* eslint-env mocha */
import * as React from 'react';
import { expect } from 'chai';
-import ReactTestRenderer from 'react-test-renderer';
import createDescribe from './createDescribe';
import { MuiRenderResult } from './createRenderer';
@@ -234,22 +233,6 @@ export function testRootClass(element: React.ReactElement, getOptions: () => Con
});
}
-/**
- * Tests that the component can be rendered with react-test-renderer.
- * This is important for snapshot testing with Jest (even if we don't encourage it).
- */
-export function testReactTestRenderer(element: React.ReactElement) {
- it('should render without errors in ReactTestRenderer', () => {
- ReactTestRenderer.act(() => {
- ReactTestRenderer.create(element, {
- createNodeMock: (node) => {
- return document.createElement(node.type as keyof HTMLElementTagNameMap);
- },
- });
- });
- });
-}
-
function forEachSlot(
slots: ConformanceOptions['slots'],
callback: (slotName: string, slot: SlotTestingOptions) => void,
@@ -993,7 +976,6 @@ const fullSuite = {
propsSpread: testPropsSpread,
refForwarding: describeRef,
rootClass: testRootClass,
- reactTestRenderer: testReactTestRenderer,
slotPropsProp: testSlotPropsProp,
slotPropsCallback: testSlotPropsCallback,
slotsProp: testSlotsProp,
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index a0eacb260c49d1..1f20a698151580 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -2237,9 +2237,6 @@ importers:
react-dom:
specifier: ^18.2.0
version: 18.2.0(react@18.2.0)
- react-test-renderer:
- specifier: ^18.2.0
- version: 18.2.0(react@18.2.0)
sinon:
specifier: ^15.2.0
version: 15.2.0
@@ -2262,9 +2259,6 @@ importers:
'@types/react-dom':
specifier: 18.2.19
version: 18.2.19
- '@types/react-test-renderer':
- specifier: ^18.0.7
- version: 18.0.7
'@types/sinon':
specifier: ^10.0.20
version: 10.0.20
@@ -5093,9 +5087,6 @@ packages:
'@types/react-swipeable-views@0.13.5':
resolution: {integrity: sha512-ni6WjO7gBq2xB2Y/ZiRdQOgjGOxIik5ow2s7xKieDq8DxsXTdV46jJslSBVK2yoIJHf6mG3uqNTwxwgzbXRRzg==}
- '@types/react-test-renderer@18.0.7':
- resolution: {integrity: sha512-1+ANPOWc6rB3IkSnElhjv6VLlKg2dSv/OWClUyZimbLsQyBn8Js9Vtdsi3UICJ2rIQ3k2la06dkB+C92QfhKmg==}
-
'@types/react-transition-group@4.4.10':
resolution: {integrity: sha512-hT/+s0VQs2ojCX823m60m5f0sL5idt9SO6Tj6Dg+rdphGPIeJbJ6CxvBYkgkGKrYeDjvIpKTR38UzmtHJOGW3Q==}
@@ -10677,11 +10668,6 @@ packages:
peerDependencies:
react: ^15.3.0 || ^16.0.0 || ^17.0.0
- react-test-renderer@18.2.0:
- resolution: {integrity: sha512-JWD+aQ0lh2gvh4NM3bBM42Kx+XybOxCpgYK7F8ugAlpaTSnWsX+39Z4XkOykGZAHrjwwTZT3x3KxswVWxHPUqA==}
- peerDependencies:
- react: ^18.2.0
-
react-transition-group@4.4.5:
resolution: {integrity: sha512-pZcd1MCJoiKiBR2NRxeCRg13uCXbydPnmB4EOeRrY7480qNWO8IIgQG6zlDkm6uRMsURXPuKq0GWtiM59a5Q6g==}
peerDependencies:
@@ -15915,10 +15901,6 @@ snapshots:
dependencies:
'@types/react': 18.2.55
- '@types/react-test-renderer@18.0.7':
- dependencies:
- '@types/react': 18.2.55
-
'@types/react-transition-group@4.4.10':
dependencies:
'@types/react': 18.2.55
@@ -22759,13 +22741,6 @@ snapshots:
react-swipeable-views-utils: 0.14.0(react@18.2.0)
warning: 4.0.3
- react-test-renderer@18.2.0(react@18.2.0):
- dependencies:
- react: 18.2.0
- react-is: 18.2.0
- react-shallow-renderer: 16.15.0(react@18.2.0)
- scheduler: 0.23.0
-
react-transition-group@4.4.5(react-dom@18.2.0(react@18.2.0))(react@18.2.0):
dependencies:
'@babel/runtime': 7.23.9
diff --git a/renovate.json b/renovate.json
index b5d4f9f892d666..ea06108ffee5a8 100644
--- a/renovate.json
+++ b/renovate.json
@@ -68,7 +68,7 @@
},
{
"groupName": "React",
- "matchPackageNames": ["react", "react-dom", "react-is", "react-test-renderer"]
+ "matchPackageNames": ["react", "react-dom", "react-is"]
},
{
"groupName": "typescript-eslint",
diff --git a/scripts/useReactVersion.mjs b/scripts/useReactVersion.mjs
index 35cbafdfb25608..a4074ac42e9b36 100644
--- a/scripts/useReactVersion.mjs
+++ b/scripts/useReactVersion.mjs
@@ -17,7 +17,7 @@ import { getWorkspaceRoot } from './utils.mjs';
const exec = promisify(childProcess.exec);
// packages published from the react monorepo using the same version
-const reactPackageNames = ['react', 'react-dom', 'react-is', 'react-test-renderer', 'scheduler'];
+const reactPackageNames = ['react', 'react-dom', 'react-is', 'scheduler'];
const devDependenciesPackageNames = ['@testing-library/react'];
// if we need to support more versions we will need to add new mapping here