diff --git a/packages/mui-base/src/Badge/Badge.test.tsx b/packages/mui-base/src/Badge/Badge.test.tsx
index 141121f541adf1..8da064ca4ac42b 100644
--- a/packages/mui-base/src/Badge/Badge.test.tsx
+++ b/packages/mui-base/src/Badge/Badge.test.tsx
@@ -1,11 +1,10 @@
import * as React from 'react';
-import { createRenderer, createMount } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { Badge, badgeClasses as classes } from '@mui/base/Badge';
import { describeConformanceUnstyled } from '../../test/describeConformanceUnstyled';
describe('', () => {
const { render } = createRenderer();
- const mount = createMount();
describeConformanceUnstyled(
@@ -15,7 +14,6 @@ describe('', () => {
classes,
inheritComponent: 'span',
render,
- mount,
refInstanceof: window.HTMLSpanElement,
testComponentPropWith: 'div',
slots: {
diff --git a/packages/mui-base/src/Button/Button.test.tsx b/packages/mui-base/src/Button/Button.test.tsx
index 2fabf5e4a81cb7..deeedfa34b9a73 100644
--- a/packages/mui-base/src/Button/Button.test.tsx
+++ b/packages/mui-base/src/Button/Button.test.tsx
@@ -1,18 +1,16 @@
import * as React from 'react';
-import { act, createMount, createRenderer, fireEvent } from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent } from '@mui-internal/test-utils';
import { expect } from 'chai';
import { spy } from 'sinon';
import { Button, buttonClasses } from '@mui/base/Button';
import { describeConformanceUnstyled } from '../../test/describeConformanceUnstyled';
describe('', () => {
- const mount = createMount();
const { render, renderToString } = createRenderer();
describeConformanceUnstyled(, () => ({
inheritComponent: 'button',
render,
- mount,
refInstanceof: window.HTMLButtonElement,
testComponentPropWith: 'span',
slots: {
diff --git a/packages/mui-base/src/FormControl/FormControl.test.tsx b/packages/mui-base/src/FormControl/FormControl.test.tsx
index 5556594730bd10..f1caadb2519856 100644
--- a/packages/mui-base/src/FormControl/FormControl.test.tsx
+++ b/packages/mui-base/src/FormControl/FormControl.test.tsx
@@ -1,18 +1,16 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import { createMount, createRenderer, fireEvent } from '@mui-internal/test-utils';
+import { createRenderer, fireEvent } from '@mui-internal/test-utils';
import { FormControl, formControlClasses, useFormControlContext } from '@mui/base/FormControl';
import { describeConformanceUnstyled } from '../../test/describeConformanceUnstyled';
describe('', () => {
- const mount = createMount();
const { render } = createRenderer();
describeConformanceUnstyled(, () => ({
inheritComponent: 'div',
render,
- mount,
refInstanceof: window.HTMLDivElement,
testComponentPropWith: 'div',
slots: {
diff --git a/packages/mui-base/src/Input/Input.test.tsx b/packages/mui-base/src/Input/Input.test.tsx
index 9b6ab632a816d3..be2fff11a824fd 100644
--- a/packages/mui-base/src/Input/Input.test.tsx
+++ b/packages/mui-base/src/Input/Input.test.tsx
@@ -1,19 +1,17 @@
import * as React from 'react';
import PropTypes from 'prop-types';
-import { createMount, createRenderer, fireEvent, screen, act } from '@mui-internal/test-utils';
+import { createRenderer, fireEvent, screen, act } from '@mui-internal/test-utils';
import { expect } from 'chai';
import { spy } from 'sinon';
import { Input, inputClasses, InputOwnerState } from '@mui/base/Input';
import { describeConformanceUnstyled } from '../../test/describeConformanceUnstyled';
describe('', () => {
- const mount = createMount();
const { render } = createRenderer();
describeConformanceUnstyled(, () => ({
inheritComponent: 'div',
render,
- mount,
refInstanceof: window.HTMLDivElement,
testComponentPropWith: 'div',
slots: {
diff --git a/packages/mui-base/src/Menu/Menu.test.tsx b/packages/mui-base/src/Menu/Menu.test.tsx
index 98075cc60ac684..a153bc874dce18 100644
--- a/packages/mui-base/src/Menu/Menu.test.tsx
+++ b/packages/mui-base/src/Menu/Menu.test.tsx
@@ -2,7 +2,6 @@ import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
import {
- createMount,
createRenderer,
fireEvent,
act,
@@ -27,7 +26,6 @@ const testContext: DropdownContextValue = {
};
describe('', () => {
- const mount = createMount();
const { render: internalRender } = createRenderer();
async function render(
@@ -46,12 +44,6 @@ describe('', () => {
{node},
);
},
- mount: (node: React.ReactNode) => {
- const wrapper = mount(
- {node},
- );
- return wrapper.childAt(0);
- },
refInstanceof: window.HTMLDivElement,
slots: {
root: {
diff --git a/packages/mui-base/src/MenuButton/MenuButton.test.tsx b/packages/mui-base/src/MenuButton/MenuButton.test.tsx
index fa1fdbf1cf676b..cf02521e17369e 100644
--- a/packages/mui-base/src/MenuButton/MenuButton.test.tsx
+++ b/packages/mui-base/src/MenuButton/MenuButton.test.tsx
@@ -2,7 +2,7 @@ import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
import userEvent from '@testing-library/user-event';
-import { act, createMount, createRenderer } from '@mui-internal/test-utils';
+import { act, createRenderer } from '@mui-internal/test-utils';
import { MenuButton, menuButtonClasses } from '@mui/base/MenuButton';
import { DropdownContext, DropdownContextValue, DropdownActionTypes } from '@mui/base/useDropdown';
import { describeConformanceUnstyled } from '../../test/describeConformanceUnstyled';
@@ -21,7 +21,6 @@ const testContext: DropdownContextValue = {
};
describe('', () => {
- const mount = createMount();
const { render } = createRenderer();
describeConformanceUnstyled(, () => ({
@@ -31,12 +30,6 @@ describe('', () => {
{node},
);
},
- mount: (node: React.ReactNode) => {
- const wrapper = mount(
- {node},
- );
- return wrapper.childAt(0);
- },
refInstanceof: window.HTMLButtonElement,
slots: {
root: {
diff --git a/packages/mui-base/src/MenuItem/MenuItem.test.tsx b/packages/mui-base/src/MenuItem/MenuItem.test.tsx
index 52498ff641935b..55d30ff1644eca 100644
--- a/packages/mui-base/src/MenuItem/MenuItem.test.tsx
+++ b/packages/mui-base/src/MenuItem/MenuItem.test.tsx
@@ -1,5 +1,5 @@
import * as React from 'react';
-import { createMount, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { MenuItem, menuItemClasses } from '@mui/base/MenuItem';
import { MenuProvider } from '@mui/base/useMenu';
import { describeConformanceUnstyled } from '../../test/describeConformanceUnstyled';
@@ -23,7 +23,6 @@ const testContext = {
};
describe('', () => {
- const mount = createMount();
const { render } = createRenderer();
describeConformanceUnstyled(, () => ({
@@ -31,10 +30,6 @@ describe('', () => {
render: (node) => {
return render({node});
},
- mount: (node: React.ReactNode) => {
- const wrapper = mount({node});
- return wrapper.childAt(0);
- },
refInstanceof: window.HTMLLIElement,
testComponentPropWith: 'span',
slots: {
diff --git a/packages/mui-base/src/Modal/Modal.test.tsx b/packages/mui-base/src/Modal/Modal.test.tsx
index d57885194867c0..f9efde18743acb 100644
--- a/packages/mui-base/src/Modal/Modal.test.tsx
+++ b/packages/mui-base/src/Modal/Modal.test.tsx
@@ -1,11 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createMount, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { Modal, modalClasses as classes, ModalRootSlotProps } from '@mui/base/Modal';
import { describeConformanceUnstyled } from '../../test/describeConformanceUnstyled';
describe('', () => {
- const mount = createMount();
const { render } = createRenderer();
let savedBodyStyle: CSSStyleDeclaration;
@@ -24,7 +23,6 @@ describe('', () => {
() => ({
inheritComponent: 'div',
render,
- mount,
refInstanceof: window.HTMLDivElement,
slots: {
root: {
diff --git a/packages/mui-base/src/Option/Option.test.tsx b/packages/mui-base/src/Option/Option.test.tsx
index 584e91f4cd44be..a66d94442f1516 100644
--- a/packages/mui-base/src/Option/Option.test.tsx
+++ b/packages/mui-base/src/Option/Option.test.tsx
@@ -1,5 +1,5 @@
import * as React from 'react';
-import { createMount, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { Option, optionClasses } from '@mui/base/Option';
import { SelectProvider } from '../useSelect/SelectProvider';
import { describeConformanceUnstyled } from '../../test/describeConformanceUnstyled';
@@ -12,7 +12,6 @@ const dummyGetItemState = () => ({
});
describe('', () => {
- const mount = createMount();
const { render } = createRenderer();
describeConformanceUnstyled(, () => ({
@@ -32,22 +31,6 @@ describe('', () => {
,
);
},
- mount: (node: React.ReactNode) => {
- const wrapper = mount(
- {},
- getItemIndex: () => 0,
- getItemState: dummyGetItemState,
- registerItem: () => ({ id: 0, deregister: () => {} }),
- totalSubitemCount: 0,
- }}
- >
- {node}
- ,
- );
- return wrapper.childAt(0);
- },
refInstanceof: window.HTMLLIElement,
testComponentPropWith: 'span',
slots: {
diff --git a/packages/mui-base/src/OptionGroup/OptionGroup.test.tsx b/packages/mui-base/src/OptionGroup/OptionGroup.test.tsx
index 27a8bcdcff83ce..5249565c53bc4b 100644
--- a/packages/mui-base/src/OptionGroup/OptionGroup.test.tsx
+++ b/packages/mui-base/src/OptionGroup/OptionGroup.test.tsx
@@ -1,16 +1,14 @@
import * as React from 'react';
-import { createMount, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { OptionGroup, optionGroupClasses } from '@mui/base/OptionGroup';
import { describeConformanceUnstyled } from '../../test/describeConformanceUnstyled';
describe('', () => {
- const mount = createMount();
const { render } = createRenderer();
describeConformanceUnstyled(, () => ({
inheritComponent: 'li',
render,
- mount,
refInstanceof: window.HTMLLIElement,
testComponentPropWith: 'span',
slots: {
diff --git a/packages/mui-base/src/Popper/Popper.test.tsx b/packages/mui-base/src/Popper/Popper.test.tsx
index 26160e8e82651e..78e9b8ac6bd190 100644
--- a/packages/mui-base/src/Popper/Popper.test.tsx
+++ b/packages/mui-base/src/Popper/Popper.test.tsx
@@ -1,12 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, createMount, screen } from '@mui-internal/test-utils';
+import { createRenderer, screen } from '@mui-internal/test-utils';
import { Popper, popperClasses } from '@mui/base/Popper';
import { describeConformanceUnstyled } from '../../test/describeConformanceUnstyled';
describe('', () => {
const { render } = createRenderer();
- const mount = createMount();
const defaultProps = {
anchorEl: () => document.createElement('svg'),
@@ -17,7 +16,6 @@ describe('', () => {
describeConformanceUnstyled(, () => ({
inheritComponent: 'div',
render,
- mount,
refInstanceof: window.HTMLDivElement,
skip: [
// https://github.com/facebook/react/issues/11565
diff --git a/packages/mui-base/src/Select/Select.test.tsx b/packages/mui-base/src/Select/Select.test.tsx
index f01024916eddf8..a550858814bd34 100644
--- a/packages/mui-base/src/Select/Select.test.tsx
+++ b/packages/mui-base/src/Select/Select.test.tsx
@@ -2,7 +2,6 @@ import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
import {
- createMount,
createRenderer,
fireEvent,
act,
@@ -23,7 +22,6 @@ import { describeConformanceUnstyled } from '../../test/describeConformanceUnsty
// userEvent.setup() requires Safari 14 or up to work
describe('', () => {
- const mount = createMount();
const { render: internalRender } = createRenderer();
async function render(
@@ -46,7 +44,6 @@ describe('', () => {
describeConformanceUnstyled(componentToTest, () => ({
inheritComponent: 'button',
render,
- mount,
refInstanceof: window.HTMLButtonElement,
testComponentPropWith: 'span',
slots: {
diff --git a/packages/mui-base/src/Slider/Slider.test.tsx b/packages/mui-base/src/Slider/Slider.test.tsx
index e6d70d846091f6..8a140d4185ed49 100644
--- a/packages/mui-base/src/Slider/Slider.test.tsx
+++ b/packages/mui-base/src/Slider/Slider.test.tsx
@@ -1,7 +1,7 @@
import { expect } from 'chai';
import * as React from 'react';
import { spy, stub } from 'sinon';
-import { act, createRenderer, createMount, fireEvent, screen } from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent, screen } from '@mui-internal/test-utils';
import {
Slider,
sliderClasses as classes,
@@ -31,14 +31,12 @@ describe('', () => {
}
});
- const mount = createMount();
const { render } = createRenderer();
describeConformanceUnstyled(, () => ({
classes,
inheritComponent: 'span',
render,
- mount,
refInstanceof: window.HTMLSpanElement,
testComponentPropWith: 'div',
slots: {
diff --git a/packages/mui-base/src/Snackbar/Snackbar.test.tsx b/packages/mui-base/src/Snackbar/Snackbar.test.tsx
index 3cd45136355ba5..333d21f682fa33 100644
--- a/packages/mui-base/src/Snackbar/Snackbar.test.tsx
+++ b/packages/mui-base/src/Snackbar/Snackbar.test.tsx
@@ -1,7 +1,7 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import { act, createRenderer, createMount, fireEvent } from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent } from '@mui-internal/test-utils';
import { Snackbar, snackbarClasses as classes } from '@mui/base/Snackbar';
import { describeConformanceUnstyled } from '../../test/describeConformanceUnstyled';
@@ -23,8 +23,6 @@ describe('', () => {
return result;
}
- const mount = createMount();
-
describeConformanceUnstyled(
@@ -33,7 +31,6 @@ describe('', () => {
classes,
inheritComponent: 'div',
render,
- mount,
refInstanceof: window.HTMLDivElement,
slots: {
root: {
diff --git a/packages/mui-base/src/Switch/Switch.test.tsx b/packages/mui-base/src/Switch/Switch.test.tsx
index e70c5ee78cf0a5..67f31aae0a5f93 100644
--- a/packages/mui-base/src/Switch/Switch.test.tsx
+++ b/packages/mui-base/src/Switch/Switch.test.tsx
@@ -1,17 +1,15 @@
import * as React from 'react';
-import { createMount, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { expect } from 'chai';
import { Switch, SwitchOwnerState, switchClasses } from '@mui/base/Switch';
import { describeConformanceUnstyled } from '../../test/describeConformanceUnstyled';
describe('', () => {
- const mount = createMount();
const { render } = createRenderer();
describeConformanceUnstyled(, () => ({
inheritComponent: 'span',
render,
- mount,
refInstanceof: window.HTMLSpanElement,
testComponentPropWith: 'span',
slots: {
diff --git a/packages/mui-base/src/Tab/Tab.test.tsx b/packages/mui-base/src/Tab/Tab.test.tsx
index 77fde46c3d4087..347946682421d6 100644
--- a/packages/mui-base/src/Tab/Tab.test.tsx
+++ b/packages/mui-base/src/Tab/Tab.test.tsx
@@ -1,12 +1,11 @@
import * as React from 'react';
-import { createMount, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { Tab, tabClasses } from '@mui/base/Tab';
import { TabsListProvider, TabsListProviderValue } from '../useTabsList';
import { TabsContext } from '../Tabs';
import { describeConformanceUnstyled } from '../../test/describeConformanceUnstyled';
describe('', () => {
- const mount = createMount();
const { render } = createRenderer();
const testTabsListContext: TabsListProviderValue = {
@@ -38,22 +37,6 @@ describe('', () => {
return { container, ...other };
},
- mount: (node: any) => {
- const wrapper = mount(
- '',
- getTabPanelId: () => '',
- }}
- >
- {node}
- ,
- );
- return wrapper.childAt(0);
- },
refInstanceof: window.HTMLButtonElement,
testComponentPropWith: 'div',
slots: {
diff --git a/packages/mui-base/src/TabPanel/TabPanel.test.tsx b/packages/mui-base/src/TabPanel/TabPanel.test.tsx
index f9b0b5e97d3b9b..52890d47df0f06 100644
--- a/packages/mui-base/src/TabPanel/TabPanel.test.tsx
+++ b/packages/mui-base/src/TabPanel/TabPanel.test.tsx
@@ -1,11 +1,10 @@
import * as React from 'react';
-import { createMount, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { TabPanel, tabPanelClasses } from '@mui/base/TabPanel';
import { TabsProvider, TabsProviderValue } from '../useTabs';
import { describeConformanceUnstyled } from '../../test/describeConformanceUnstyled';
describe('', () => {
- const mount = createMount();
const { render } = createRenderer();
const tabsProviderDefaultValue: TabsProviderValue = {
@@ -31,10 +30,6 @@ describe('', () => {
return { container, ...other };
},
- mount: (node: any) => {
- const wrapper = mount({node});
- return wrapper.childAt(0);
- },
refInstanceof: window.HTMLDivElement,
testComponentPropWith: 'div',
slots: {
diff --git a/packages/mui-base/src/TablePagination/TablePagination.test.tsx b/packages/mui-base/src/TablePagination/TablePagination.test.tsx
index dda030295d5824..b21b29aa085e38 100644
--- a/packages/mui-base/src/TablePagination/TablePagination.test.tsx
+++ b/packages/mui-base/src/TablePagination/TablePagination.test.tsx
@@ -2,7 +2,7 @@ import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
import PropTypes from 'prop-types';
-import { fireEvent, createRenderer, createMount } from '@mui-internal/test-utils';
+import { fireEvent, createRenderer } from '@mui-internal/test-utils';
import {
TablePagination,
tablePaginationClasses as classes,
@@ -17,7 +17,6 @@ interface WithClassName {
describe('', () => {
const noop = () => {};
const { render } = createRenderer();
- const mount = createMount();
const CustomRootComponent = React.forwardRef(
({ className }: WithClassName, ref: React.Ref) => (
@@ -42,16 +41,6 @@ describe('', () => {
...other,
};
},
- mount: (node: any) => {
- const wrapper = mount(
- ,
- );
- return wrapper.find('tr').childAt(0);
- },
refInstanceof: window.HTMLTableCellElement,
testComponentPropWith: 'th',
slots: {
diff --git a/packages/mui-base/src/Tabs/Tabs.test.tsx b/packages/mui-base/src/Tabs/Tabs.test.tsx
index 82db18b887ec6b..97bd20c7ffeadb 100644
--- a/packages/mui-base/src/Tabs/Tabs.test.tsx
+++ b/packages/mui-base/src/Tabs/Tabs.test.tsx
@@ -1,7 +1,7 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import { act, createRenderer, fireEvent, screen, createMount } from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent, screen } from '@mui-internal/test-utils';
import { Tab } from '@mui/base/Tab';
import { Tabs, tabsClasses as classes, TabsProps } from '@mui/base/Tabs';
import { TabsList } from '@mui/base/TabsList';
@@ -9,7 +9,6 @@ import { TabPanel } from '@mui/base/TabPanel';
import { describeConformanceUnstyled } from '../../test/describeConformanceUnstyled';
describe('', () => {
- const mount = createMount();
const { render } = createRenderer();
before(function beforeHook() {
@@ -28,7 +27,6 @@ describe('', () => {
classes,
inheritComponent: 'div',
render,
- mount,
refInstanceof: window.HTMLDivElement,
testComponentPropWith: 'header',
slots: {
diff --git a/packages/mui-base/src/TabsList/TabsList.test.tsx b/packages/mui-base/src/TabsList/TabsList.test.tsx
index 698dc7ce033cd1..b76066d3a85cfe 100644
--- a/packages/mui-base/src/TabsList/TabsList.test.tsx
+++ b/packages/mui-base/src/TabsList/TabsList.test.tsx
@@ -1,5 +1,5 @@
import * as React from 'react';
-import { act, createMount, createRenderer } from '@mui-internal/test-utils';
+import { act, createRenderer } from '@mui-internal/test-utils';
import { Tab } from '@mui/base/Tab';
import { Tabs, TabsContext } from '@mui/base/Tabs';
import { TabsList, tabsListClasses } from '@mui/base/TabsList';
@@ -8,7 +8,6 @@ import { describeConformanceUnstyled } from '../../test/describeConformanceUnsty
describe('', () => {
const { render } = createRenderer();
- const mount = createMount();
describeConformanceUnstyled(, () => ({
inheritComponent: 'div',
@@ -29,22 +28,6 @@ describe('', () => {
return { container, ...other };
},
- mount: (node: any) => {
- const wrapper = mount(
- {},
- registerTabIdLookup() {},
- getTabId: () => '',
- getTabPanelId: () => '',
- }}
- >
- {node}
- ,
- );
- return wrapper.childAt(0);
- },
refInstanceof: window.HTMLDivElement,
testComponentPropWith: 'div',
slots: {
diff --git a/packages/mui-base/src/TextareaAutosize/TextareaAutosize.test.tsx b/packages/mui-base/src/TextareaAutosize/TextareaAutosize.test.tsx
index 418d35795d263d..ddfd63abc18ffd 100644
--- a/packages/mui-base/src/TextareaAutosize/TextareaAutosize.test.tsx
+++ b/packages/mui-base/src/TextareaAutosize/TextareaAutosize.test.tsx
@@ -1,14 +1,7 @@
import * as React from 'react';
import { expect } from 'chai';
import sinon, { spy, stub } from 'sinon';
-import {
- act,
- screen,
- waitFor,
- createMount,
- createRenderer,
- fireEvent,
-} from '@mui-internal/test-utils';
+import { act, screen, waitFor, createRenderer, fireEvent } from '@mui-internal/test-utils';
import { TextareaAutosize } from '@mui/base/TextareaAutosize';
import { describeConformanceUnstyled } from '../../test/describeConformanceUnstyled';
@@ -41,11 +34,9 @@ async function raf() {
describe('', () => {
const { clock, render } = createRenderer();
- const mount = createMount();
describeConformanceUnstyled(, () => ({
render,
- mount,
inheritComponent: 'textarea',
refInstanceof: window.HTMLTextAreaElement,
slots: {},
diff --git a/packages/mui-base/src/Unstable_NumberInput/NumberInput.test.tsx b/packages/mui-base/src/Unstable_NumberInput/NumberInput.test.tsx
index 223ff1661faae2..f5d38af3cb5ddd 100644
--- a/packages/mui-base/src/Unstable_NumberInput/NumberInput.test.tsx
+++ b/packages/mui-base/src/Unstable_NumberInput/NumberInput.test.tsx
@@ -2,7 +2,7 @@ import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
import userEvent from '@testing-library/user-event';
-import { act, createMount, createRenderer, fireEvent } from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent } from '@mui-internal/test-utils';
import {
Unstable_NumberInput as NumberInput,
numberInputClasses,
@@ -17,13 +17,11 @@ import { describeConformanceUnstyled } from '../../test/describeConformanceUnsty
// userEvent.setup() requires Safari 14 or up to work
describe('', () => {
- const mount = createMount();
const { render } = createRenderer();
describeConformanceUnstyled(, () => ({
inheritComponent: 'div',
render,
- mount,
refInstanceof: window.HTMLDivElement,
testComponentPropWith: 'div',
slots: {
diff --git a/packages/mui-base/src/Unstable_Popup/Popup.test.tsx b/packages/mui-base/src/Unstable_Popup/Popup.test.tsx
index 03ae6a31d9195d..82cd1e26851a74 100644
--- a/packages/mui-base/src/Unstable_Popup/Popup.test.tsx
+++ b/packages/mui-base/src/Unstable_Popup/Popup.test.tsx
@@ -1,6 +1,6 @@
import * as React from 'react';
import { expect } from 'chai';
-import { act, createRenderer, createMount, screen, fireEvent } from '@mui-internal/test-utils';
+import { act, createRenderer, screen, fireEvent } from '@mui-internal/test-utils';
import { Unstable_Popup as Popup, popupClasses, PopupProps } from '@mui/base/Unstable_Popup';
import { PopupContext } from './PopupContext';
import { useTransitionStateManager } from '../useTransition';
@@ -34,7 +34,6 @@ function FakeTransition(props: React.PropsWithChildren<{}>) {
describe('', () => {
const { clock, render } = createRenderer();
- const mount = createMount();
// https://floating-ui.com/docs/react#testing
async function waitForPosition() {
@@ -58,7 +57,6 @@ describe('', () => {
return result;
},
- mount,
refInstanceof: window.HTMLDivElement,
skip: [
// https://github.com/facebook/react/issues/11565
diff --git a/packages/mui-joy/src/Table/Table.test.tsx b/packages/mui-joy/src/Table/Table.test.tsx
index 6be49bb54cb8a8..681ad7dbbdeecf 100644
--- a/packages/mui-joy/src/Table/Table.test.tsx
+++ b/packages/mui-joy/src/Table/Table.test.tsx
@@ -22,7 +22,6 @@ describe('', () => {
skip: [
'classesRoot',
'componentsProp',
- // Emotion `compat` is not set with `createMount` for these tests
'componentProp',
'mergeClassName',
'propsSpread',
diff --git a/packages/mui-material/src/Menu/Menu.test.js b/packages/mui-material/src/Menu/Menu.test.js
index 1a882da0ac7b66..97009b28e5d85b 100644
--- a/packages/mui-material/src/Menu/Menu.test.js
+++ b/packages/mui-material/src/Menu/Menu.test.js
@@ -3,7 +3,6 @@ import { spy } from 'sinon';
import { expect } from 'chai';
import {
createRenderer,
- createMount,
screen,
fireEvent,
strictModeDoubleLoggingSuppressed,
@@ -11,12 +10,11 @@ import {
import Menu, { menuClasses as classes } from '@mui/material/Menu';
import Popover from '@mui/material/Popover';
import { createTheme, ThemeProvider } from '@mui/material/styles';
-import { MenuPaper } from './Menu';
import describeConformance from '../../test/describeConformance';
+import { paperClasses } from '../Paper';
describe('', () => {
const { render } = createRenderer({ clock: 'fake' });
- const mount = createMount();
describeConformance(