diff --git a/packages/mui-base/src/Badge/Badge.test.tsx b/packages/mui-base/src/Badge/Badge.test.tsx
index 76f91de9e074e9..141121f541adf1 100644
--- a/packages/mui-base/src/Badge/Badge.test.tsx
+++ b/packages/mui-base/src/Badge/Badge.test.tsx
@@ -1,6 +1,7 @@
import * as React from 'react';
-import { createRenderer, createMount, describeConformanceUnstyled } from '@mui-internal/test-utils';
+import { createRenderer, createMount } from '@mui-internal/test-utils';
import { Badge, badgeClasses as classes } from '@mui/base/Badge';
+import { describeConformanceUnstyled } from '../../test/describeConformanceUnstyled';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-base/src/Button/Button.test.tsx b/packages/mui-base/src/Button/Button.test.tsx
index 05bc8ff14936c2..2fabf5e4a81cb7 100644
--- a/packages/mui-base/src/Button/Button.test.tsx
+++ b/packages/mui-base/src/Button/Button.test.tsx
@@ -1,14 +1,9 @@
import * as React from 'react';
-import {
- act,
- createMount,
- createRenderer,
- describeConformanceUnstyled,
- fireEvent,
-} from '@mui-internal/test-utils';
+import { act, createMount, 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();
diff --git a/packages/mui-base/src/FormControl/FormControl.test.tsx b/packages/mui-base/src/FormControl/FormControl.test.tsx
index f715cad83688b8..5556594730bd10 100644
--- a/packages/mui-base/src/FormControl/FormControl.test.tsx
+++ b/packages/mui-base/src/FormControl/FormControl.test.tsx
@@ -1,13 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import {
- createMount,
- createRenderer,
- describeConformanceUnstyled,
- fireEvent,
-} from '@mui-internal/test-utils';
+import { createMount, createRenderer, fireEvent } from '@mui-internal/test-utils';
import { FormControl, formControlClasses, useFormControlContext } from '@mui/base/FormControl';
+import { describeConformanceUnstyled } from '../../test/describeConformanceUnstyled';
describe('', () => {
const mount = createMount();
diff --git a/packages/mui-base/src/Input/Input.test.tsx b/packages/mui-base/src/Input/Input.test.tsx
index dc490b32634809..9b6ab632a816d3 100644
--- a/packages/mui-base/src/Input/Input.test.tsx
+++ b/packages/mui-base/src/Input/Input.test.tsx
@@ -1,16 +1,10 @@
import * as React from 'react';
import PropTypes from 'prop-types';
-import {
- createMount,
- createRenderer,
- describeConformanceUnstyled,
- fireEvent,
- screen,
- act,
-} from '@mui-internal/test-utils';
+import { createMount, 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();
diff --git a/packages/mui-base/src/Menu/Menu.test.tsx b/packages/mui-base/src/Menu/Menu.test.tsx
index 5a81a5e17e35c7..98075cc60ac684 100644
--- a/packages/mui-base/src/Menu/Menu.test.tsx
+++ b/packages/mui-base/src/Menu/Menu.test.tsx
@@ -4,7 +4,6 @@ import { spy } from 'sinon';
import {
createMount,
createRenderer,
- describeConformanceUnstyled,
fireEvent,
act,
MuiRenderResult,
@@ -16,6 +15,7 @@ import { MenuItem, MenuItemRootSlotProps } from '@mui/base/MenuItem';
import { DropdownContext, DropdownContextValue } from '@mui/base/useDropdown';
import { Popper } from '@mui/base/Popper';
import { MenuProvider, useMenu } from '@mui/base/useMenu';
+import { describeConformanceUnstyled } from '../../test/describeConformanceUnstyled';
const testContext: DropdownContextValue = {
dispatch: () => {},
diff --git a/packages/mui-base/src/MenuButton/MenuButton.test.tsx b/packages/mui-base/src/MenuButton/MenuButton.test.tsx
index 38ce00432147c0..fa1fdbf1cf676b 100644
--- a/packages/mui-base/src/MenuButton/MenuButton.test.tsx
+++ b/packages/mui-base/src/MenuButton/MenuButton.test.tsx
@@ -2,14 +2,10 @@ import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
import userEvent from '@testing-library/user-event';
-import {
- act,
- createMount,
- createRenderer,
- describeConformanceUnstyled,
-} from '@mui-internal/test-utils';
+import { act, createMount, 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';
// TODO v6: initialize @testing-library/user-event using userEvent.setup() instead of directly calling methods e.g. userEvent.click() for all related tests in this file
// currently the setup() method uses the ClipboardEvent constructor which is incompatible with our lowest supported version of iOS Safari (12.2) https://github.com/mui/material-ui/blob/master/.browserslistrc#L44
diff --git a/packages/mui-base/src/MenuItem/MenuItem.test.tsx b/packages/mui-base/src/MenuItem/MenuItem.test.tsx
index 1209383c818b63..52498ff641935b 100644
--- a/packages/mui-base/src/MenuItem/MenuItem.test.tsx
+++ b/packages/mui-base/src/MenuItem/MenuItem.test.tsx
@@ -1,7 +1,8 @@
import * as React from 'react';
-import { createMount, createRenderer, describeConformanceUnstyled } from '@mui-internal/test-utils';
+import { createMount, createRenderer } from '@mui-internal/test-utils';
import { MenuItem, menuItemClasses } from '@mui/base/MenuItem';
import { MenuProvider } from '@mui/base/useMenu';
+import { describeConformanceUnstyled } from '../../test/describeConformanceUnstyled';
const dummyGetItemState = () => ({
disabled: false,
diff --git a/packages/mui-base/src/Modal/Modal.test.tsx b/packages/mui-base/src/Modal/Modal.test.tsx
index 701fca622fd470..d57885194867c0 100644
--- a/packages/mui-base/src/Modal/Modal.test.tsx
+++ b/packages/mui-base/src/Modal/Modal.test.tsx
@@ -1,7 +1,8 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createMount, createRenderer, describeConformanceUnstyled } from '@mui-internal/test-utils';
+import { createMount, 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();
diff --git a/packages/mui-base/src/Option/Option.test.tsx b/packages/mui-base/src/Option/Option.test.tsx
index d7f5525f6673d8..584e91f4cd44be 100644
--- a/packages/mui-base/src/Option/Option.test.tsx
+++ b/packages/mui-base/src/Option/Option.test.tsx
@@ -1,7 +1,8 @@
import * as React from 'react';
-import { createMount, createRenderer, describeConformanceUnstyled } from '@mui-internal/test-utils';
+import { createMount, createRenderer } from '@mui-internal/test-utils';
import { Option, optionClasses } from '@mui/base/Option';
import { SelectProvider } from '../useSelect/SelectProvider';
+import { describeConformanceUnstyled } from '../../test/describeConformanceUnstyled';
const dummyGetItemState = () => ({
highlighted: false,
diff --git a/packages/mui-base/src/OptionGroup/OptionGroup.test.tsx b/packages/mui-base/src/OptionGroup/OptionGroup.test.tsx
index b631ce9d3bd04b..27a8bcdcff83ce 100644
--- a/packages/mui-base/src/OptionGroup/OptionGroup.test.tsx
+++ b/packages/mui-base/src/OptionGroup/OptionGroup.test.tsx
@@ -1,6 +1,7 @@
import * as React from 'react';
-import { createMount, createRenderer, describeConformanceUnstyled } from '@mui-internal/test-utils';
+import { createMount, createRenderer } from '@mui-internal/test-utils';
import { OptionGroup, optionGroupClasses } from '@mui/base/OptionGroup';
+import { describeConformanceUnstyled } from '../../test/describeConformanceUnstyled';
describe('', () => {
const mount = createMount();
diff --git a/packages/mui-base/src/Popper/Popper.test.tsx b/packages/mui-base/src/Popper/Popper.test.tsx
index 404c4bbc822131..26160e8e82651e 100644
--- a/packages/mui-base/src/Popper/Popper.test.tsx
+++ b/packages/mui-base/src/Popper/Popper.test.tsx
@@ -1,12 +1,8 @@
import * as React from 'react';
import { expect } from 'chai';
-import {
- createRenderer,
- createMount,
- describeConformanceUnstyled,
- screen,
-} from '@mui-internal/test-utils';
+import { createRenderer, createMount, screen } from '@mui-internal/test-utils';
import { Popper, popperClasses } from '@mui/base/Popper';
+import { describeConformanceUnstyled } from '../../test/describeConformanceUnstyled';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-base/src/Select/Select.test.tsx b/packages/mui-base/src/Select/Select.test.tsx
index c87259044a8eeb..f01024916eddf8 100644
--- a/packages/mui-base/src/Select/Select.test.tsx
+++ b/packages/mui-base/src/Select/Select.test.tsx
@@ -4,7 +4,6 @@ import { spy } from 'sinon';
import {
createMount,
createRenderer,
- describeConformanceUnstyled,
fireEvent,
act,
screen,
@@ -17,6 +16,7 @@ import { Select, SelectListboxSlotProps, selectClasses } from '@mui/base/Select'
import { SelectOption } from '@mui/base/useOption';
import { Option, OptionProps, OptionRootSlotProps, optionClasses } from '@mui/base/Option';
import { OptionGroup } from '@mui/base/OptionGroup';
+import { describeConformanceUnstyled } from '../../test/describeConformanceUnstyled';
// TODO v6: initialize @testing-library/user-event using userEvent.setup() instead of directly calling methods e.g. userEvent.click() for all related tests in this file
// currently the setup() method uses the ClipboardEvent constructor which is incompatible with our lowest supported version of iOS Safari (12.2) https://github.com/mui/material-ui/blob/master/.browserslistrc#L44
diff --git a/packages/mui-base/src/Slider/Slider.test.tsx b/packages/mui-base/src/Slider/Slider.test.tsx
index 8e58f636091363..e6d70d846091f6 100644
--- a/packages/mui-base/src/Slider/Slider.test.tsx
+++ b/packages/mui-base/src/Slider/Slider.test.tsx
@@ -1,20 +1,14 @@
import { expect } from 'chai';
import * as React from 'react';
import { spy, stub } from 'sinon';
-import {
- act,
- createRenderer,
- createMount,
- describeConformanceUnstyled,
- fireEvent,
- screen,
-} from '@mui-internal/test-utils';
+import { act, createRenderer, createMount, fireEvent, screen } from '@mui-internal/test-utils';
import {
Slider,
sliderClasses as classes,
SliderRootSlotProps,
SliderValueLabelSlotProps,
} from '@mui/base/Slider';
+import { describeConformanceUnstyled } from '../../test/describeConformanceUnstyled';
type Touches = Array>;
diff --git a/packages/mui-base/src/Snackbar/Snackbar.test.tsx b/packages/mui-base/src/Snackbar/Snackbar.test.tsx
index 5231c8c85c696f..3cd45136355ba5 100644
--- a/packages/mui-base/src/Snackbar/Snackbar.test.tsx
+++ b/packages/mui-base/src/Snackbar/Snackbar.test.tsx
@@ -1,14 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import {
- act,
- createRenderer,
- createMount,
- describeConformanceUnstyled,
- fireEvent,
-} from '@mui-internal/test-utils';
+import { act, createRenderer, createMount, fireEvent } from '@mui-internal/test-utils';
import { Snackbar, snackbarClasses as classes } from '@mui/base/Snackbar';
+import { describeConformanceUnstyled } from '../../test/describeConformanceUnstyled';
describe('', () => {
const { clock, render: clientRender } = createRenderer({ clock: 'fake' });
diff --git a/packages/mui-base/src/Switch/Switch.test.tsx b/packages/mui-base/src/Switch/Switch.test.tsx
index c44547d01022a1..e70c5ee78cf0a5 100644
--- a/packages/mui-base/src/Switch/Switch.test.tsx
+++ b/packages/mui-base/src/Switch/Switch.test.tsx
@@ -1,7 +1,8 @@
import * as React from 'react';
-import { createMount, createRenderer, describeConformanceUnstyled } from '@mui-internal/test-utils';
+import { createMount, 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();
diff --git a/packages/mui-base/src/Tab/Tab.test.tsx b/packages/mui-base/src/Tab/Tab.test.tsx
index bf6892dd66e8f8..77fde46c3d4087 100644
--- a/packages/mui-base/src/Tab/Tab.test.tsx
+++ b/packages/mui-base/src/Tab/Tab.test.tsx
@@ -1,8 +1,9 @@
import * as React from 'react';
-import { createMount, createRenderer, describeConformanceUnstyled } from '@mui-internal/test-utils';
+import { createMount, 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();
diff --git a/packages/mui-base/src/TabPanel/TabPanel.test.tsx b/packages/mui-base/src/TabPanel/TabPanel.test.tsx
index 1f7927523593b3..f9b0b5e97d3b9b 100644
--- a/packages/mui-base/src/TabPanel/TabPanel.test.tsx
+++ b/packages/mui-base/src/TabPanel/TabPanel.test.tsx
@@ -1,7 +1,8 @@
import * as React from 'react';
-import { createMount, createRenderer, describeConformanceUnstyled } from '@mui-internal/test-utils';
+import { createMount, 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();
diff --git a/packages/mui-base/src/TablePagination/TablePagination.test.tsx b/packages/mui-base/src/TablePagination/TablePagination.test.tsx
index 25af1dd9c93eaa..dda030295d5824 100644
--- a/packages/mui-base/src/TablePagination/TablePagination.test.tsx
+++ b/packages/mui-base/src/TablePagination/TablePagination.test.tsx
@@ -2,17 +2,13 @@ import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
import PropTypes from 'prop-types';
-import {
- describeConformanceUnstyled,
- fireEvent,
- createRenderer,
- createMount,
-} from '@mui-internal/test-utils';
+import { fireEvent, createRenderer, createMount } from '@mui-internal/test-utils';
import {
TablePagination,
tablePaginationClasses as classes,
LabelDisplayedRowsArgs,
} from '@mui/base/TablePagination';
+import { describeConformanceUnstyled } from '../../test/describeConformanceUnstyled';
interface WithClassName {
className: string;
diff --git a/packages/mui-base/src/Tabs/Tabs.test.tsx b/packages/mui-base/src/Tabs/Tabs.test.tsx
index 1f61c0c5fe7b93..82db18b887ec6b 100644
--- a/packages/mui-base/src/Tabs/Tabs.test.tsx
+++ b/packages/mui-base/src/Tabs/Tabs.test.tsx
@@ -1,18 +1,12 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import {
- describeConformanceUnstyled,
- act,
- createRenderer,
- fireEvent,
- screen,
- createMount,
-} from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent, screen, createMount } 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';
import { TabPanel } from '@mui/base/TabPanel';
+import { describeConformanceUnstyled } from '../../test/describeConformanceUnstyled';
describe('', () => {
const mount = createMount();
diff --git a/packages/mui-base/src/TabsList/TabsList.test.tsx b/packages/mui-base/src/TabsList/TabsList.test.tsx
index 4f6e176e258ce8..698dc7ce033cd1 100644
--- a/packages/mui-base/src/TabsList/TabsList.test.tsx
+++ b/packages/mui-base/src/TabsList/TabsList.test.tsx
@@ -1,14 +1,10 @@
import * as React from 'react';
-import {
- act,
- createMount,
- createRenderer,
- describeConformanceUnstyled,
-} from '@mui-internal/test-utils';
+import { act, createMount, 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';
import { expect } from 'chai';
+import { describeConformanceUnstyled } from '../../test/describeConformanceUnstyled';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-base/src/TextareaAutosize/TextareaAutosize.test.tsx b/packages/mui-base/src/TextareaAutosize/TextareaAutosize.test.tsx
index fe7d02eccb19e6..902d7757f75395 100644
--- a/packages/mui-base/src/TextareaAutosize/TextareaAutosize.test.tsx
+++ b/packages/mui-base/src/TextareaAutosize/TextareaAutosize.test.tsx
@@ -2,7 +2,6 @@ import * as React from 'react';
import { expect } from 'chai';
import sinon, { spy, stub } from 'sinon';
import {
- describeConformanceUnstyled,
act,
screen,
waitFor,
@@ -11,6 +10,7 @@ import {
fireEvent,
} from '@mui-internal/test-utils';
import { TextareaAutosize } from '@mui/base/TextareaAutosize';
+import { describeConformanceUnstyled } from '../../test/describeConformanceUnstyled';
function getStyleValue(value: string) {
return parseInt(value, 10) || 0;
diff --git a/packages/mui-base/src/Unstable_NumberInput/NumberInput.test.tsx b/packages/mui-base/src/Unstable_NumberInput/NumberInput.test.tsx
index b31ec6e9c207ad..223ff1661faae2 100644
--- a/packages/mui-base/src/Unstable_NumberInput/NumberInput.test.tsx
+++ b/packages/mui-base/src/Unstable_NumberInput/NumberInput.test.tsx
@@ -2,13 +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,
- describeConformanceUnstyled,
- fireEvent,
-} from '@mui-internal/test-utils';
+import { act, createMount, createRenderer, fireEvent } from '@mui-internal/test-utils';
import {
Unstable_NumberInput as NumberInput,
numberInputClasses,
@@ -16,6 +10,7 @@ import {
NumberInputIncrementButtonSlotProps,
NumberInputDecrementButtonSlotProps,
} from '@mui/base/Unstable_NumberInput';
+import { describeConformanceUnstyled } from '../../test/describeConformanceUnstyled';
// TODO v6: initialize @testing-library/user-event using userEvent.setup() instead of directly calling methods e.g. userEvent.click() for all related tests in this file
// currently the setup() method uses the ClipboardEvent constructor which is incompatible with our lowest supported version of iOS Safari (12.2) https://github.com/mui/material-ui/blob/master/.browserslistrc#L44
diff --git a/packages/mui-base/src/Unstable_Popup/Popup.test.tsx b/packages/mui-base/src/Unstable_Popup/Popup.test.tsx
index 7fb9225c73a7c1..c557195636c768 100644
--- a/packages/mui-base/src/Unstable_Popup/Popup.test.tsx
+++ b/packages/mui-base/src/Unstable_Popup/Popup.test.tsx
@@ -1,16 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
-import {
- act,
- createRenderer,
- createMount,
- describeConformanceUnstyled,
- screen,
- fireEvent,
-} from '@mui-internal/test-utils';
+import { act, createRenderer, createMount, 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';
+import { describeConformanceUnstyled } from '../../test/describeConformanceUnstyled';
const TRANSITION_DURATION = 100;
diff --git a/packages/test-utils/src/describeConformanceUnstyled.tsx b/packages/mui-base/test/describeConformanceUnstyled.tsx
similarity index 97%
rename from packages/test-utils/src/describeConformanceUnstyled.tsx
rename to packages/mui-base/test/describeConformanceUnstyled.tsx
index 6f0c4dfc71a39d..750748d411eed9 100644
--- a/packages/test-utils/src/describeConformanceUnstyled.tsx
+++ b/packages/mui-base/test/describeConformanceUnstyled.tsx
@@ -1,9 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
-import { ClassNameConfigurator } from '@mui/base/utils';
-import { MuiRenderResult, RenderOptions, screen } from './createRenderer';
-import createDescribe from './createDescribe';
import {
+ MuiRenderResult,
+ RenderOptions,
+ screen,
+ createDescribe,
ConformanceOptions,
SlotTestingOptions,
describeRef,
@@ -11,7 +12,8 @@ import {
testClassName,
testComponentProp,
testReactTestRenderer,
-} from './describeConformance';
+} from '@mui-internal/test-utils';
+import { ClassNameConfigurator } from '@mui/base/utils';
export interface UnstyledConformanceOptions
extends Omit, 'render' | 'skip' | 'classes'> {
@@ -391,7 +393,7 @@ const fullSuite = {
disableClassGeneration: testDisablingClassGeneration,
};
-function describeConformanceUnstyled(
+function describeConformance(
minimalElement: React.ReactElement,
getOptions: () => UnstyledConformanceOptions,
) {
@@ -410,4 +412,6 @@ function describeConformanceUnstyled(
});
}
-export default createDescribe('MUI unstyled component API', describeConformanceUnstyled);
+const describeConformanceUnstyled = createDescribe('Base UI component API', describeConformance);
+
+export { describeConformanceUnstyled };
diff --git a/packages/mui-joy/src/Accordion/Accordion.test.tsx b/packages/mui-joy/src/Accordion/Accordion.test.tsx
index a26905361028b5..a534845c5a61e8 100644
--- a/packages/mui-joy/src/Accordion/Accordion.test.tsx
+++ b/packages/mui-joy/src/Accordion/Accordion.test.tsx
@@ -1,10 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import { createRenderer, describeConformance, fireEvent } from '@mui-internal/test-utils';
+import { createRenderer, fireEvent } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import Accordion, { accordionClasses as classes } from '@mui/joy/Accordion';
import AccordionSummary from '@mui/joy/AccordionSummary';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/AccordionDetails/AccordionDetails.test.tsx b/packages/mui-joy/src/AccordionDetails/AccordionDetails.test.tsx
index 5afd57b2794f3f..7c9c56bd4c3388 100644
--- a/packages/mui-joy/src/AccordionDetails/AccordionDetails.test.tsx
+++ b/packages/mui-joy/src/AccordionDetails/AccordionDetails.test.tsx
@@ -1,10 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance, fireEvent, screen } from '@mui-internal/test-utils';
+import { createRenderer, fireEvent, screen } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import Accordion from '@mui/joy/Accordion';
import AccordionSummary from '@mui/joy/AccordionSummary';
import AccordionDetails, { accordionDetailsClasses as classes } from '@mui/joy/AccordionDetails';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/AccordionGroup/AccordionGroup.test.tsx b/packages/mui-joy/src/AccordionGroup/AccordionGroup.test.tsx
index 4eec48f22eb501..6a61c8ce1e103a 100644
--- a/packages/mui-joy/src/AccordionGroup/AccordionGroup.test.tsx
+++ b/packages/mui-joy/src/AccordionGroup/AccordionGroup.test.tsx
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import AccordionGroup, { accordionGroupClasses as classes } from '@mui/joy/AccordionGroup';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/AccordionSummary/AccordionSummary.test.tsx b/packages/mui-joy/src/AccordionSummary/AccordionSummary.test.tsx
index 4c21ff09e95ce4..75f8cfe6569999 100644
--- a/packages/mui-joy/src/AccordionSummary/AccordionSummary.test.tsx
+++ b/packages/mui-joy/src/AccordionSummary/AccordionSummary.test.tsx
@@ -1,7 +1,8 @@
import * as React from 'react';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import AccordionSummary, { accordionSummaryClasses as classes } from '@mui/joy/AccordionSummary';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/Alert/Alert.test.tsx b/packages/mui-joy/src/Alert/Alert.test.tsx
index c0249786597255..b6e5cbeca2d0c8 100644
--- a/packages/mui-joy/src/Alert/Alert.test.tsx
+++ b/packages/mui-joy/src/Alert/Alert.test.tsx
@@ -1,9 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { unstable_capitalize as capitalize } from '@mui/utils';
import { ThemeProvider } from '@mui/joy/styles';
import Alert, { AlertClassKey, alertClasses as classes } from '@mui/joy/Alert';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/AspectRatio/AspectRatio.test.tsx b/packages/mui-joy/src/AspectRatio/AspectRatio.test.tsx
index 5798d0dc8d6c30..7a2598b38cad1f 100644
--- a/packages/mui-joy/src/AspectRatio/AspectRatio.test.tsx
+++ b/packages/mui-joy/src/AspectRatio/AspectRatio.test.tsx
@@ -1,12 +1,13 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { unstable_capitalize as capitalize } from '@mui/utils';
import { ThemeProvider } from '@mui/joy/styles';
import AspectRatio, {
AspectRatioClassKey,
aspectRatioClasses as classes,
} from '@mui/joy/AspectRatio';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/Autocomplete/Autocomplete.test.tsx b/packages/mui-joy/src/Autocomplete/Autocomplete.test.tsx
index 8701cac0d7c202..09b874caa4c560 100644
--- a/packages/mui-joy/src/Autocomplete/Autocomplete.test.tsx
+++ b/packages/mui-joy/src/Autocomplete/Autocomplete.test.tsx
@@ -3,7 +3,6 @@ import PropTypes from 'prop-types';
import { expect } from 'chai';
import { spy } from 'sinon';
import {
- describeConformance,
createRenderer,
screen,
act,
@@ -20,6 +19,7 @@ import ChipDelete from '@mui/joy/ChipDelete';
import Select from '@mui/joy/Select';
import Option from '@mui/joy/Option';
import { ThemeProvider, styled } from '@mui/joy/styles';
+import describeConformance from '../../test/describeConformance';
function checkHighlightIs(listbox: HTMLElement, expected: string | null) {
const focused = listbox.querySelector(`.${classes.focused}`);
diff --git a/packages/mui-joy/src/AutocompleteListbox/AutocompleteListbox.test.tsx b/packages/mui-joy/src/AutocompleteListbox/AutocompleteListbox.test.tsx
index 2cc52aedc4263a..9aa78ca9a3a932 100644
--- a/packages/mui-joy/src/AutocompleteListbox/AutocompleteListbox.test.tsx
+++ b/packages/mui-joy/src/AutocompleteListbox/AutocompleteListbox.test.tsx
@@ -1,10 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import AutocompleteListbox, {
autocompleteListboxClasses as classes,
} from '@mui/joy/AutocompleteListbox';
+import describeConformance from '../../test/describeConformance';
describe('Joy ', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/AutocompleteOption/AutocompleteOption.test.tsx b/packages/mui-joy/src/AutocompleteOption/AutocompleteOption.test.tsx
index 590d7e2cbb3b6d..6b3f4aab2166d3 100644
--- a/packages/mui-joy/src/AutocompleteOption/AutocompleteOption.test.tsx
+++ b/packages/mui-joy/src/AutocompleteOption/AutocompleteOption.test.tsx
@@ -1,10 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import AutocompleteOption, {
autocompleteOptionClasses as classes,
} from '@mui/joy/AutocompleteOption';
+import describeConformance from '../../test/describeConformance';
describe('Joy ', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/Avatar/Avatar.test.tsx b/packages/mui-joy/src/Avatar/Avatar.test.tsx
index 48ca2a24a8f36a..0ba492bcf227b3 100644
--- a/packages/mui-joy/src/Avatar/Avatar.test.tsx
+++ b/packages/mui-joy/src/Avatar/Avatar.test.tsx
@@ -1,11 +1,12 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import { createRenderer, describeConformance, fireEvent } from '@mui-internal/test-utils';
+import { createRenderer, fireEvent } from '@mui-internal/test-utils';
import { unstable_capitalize as capitalize } from '@mui/utils';
import { ThemeProvider } from '@mui/joy/styles';
import Avatar, { AvatarClassKey, avatarClasses as classes } from '@mui/joy/Avatar';
import PersonIcon from '../internal/svg-icons/Person';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/AvatarGroup/AvatarGroup.test.tsx b/packages/mui-joy/src/AvatarGroup/AvatarGroup.test.tsx
index debab8f46265ea..5e7668a0d309eb 100644
--- a/packages/mui-joy/src/AvatarGroup/AvatarGroup.test.tsx
+++ b/packages/mui-joy/src/AvatarGroup/AvatarGroup.test.tsx
@@ -1,9 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import AvatarGroup, { avatarGroupClasses as classes } from '@mui/joy/AvatarGroup';
import Avatar, { avatarClasses } from '@mui/joy/Avatar';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/Badge/Badge.test.tsx b/packages/mui-joy/src/Badge/Badge.test.tsx
index 51d2693b54cb22..cf235ec1de0bf9 100644
--- a/packages/mui-joy/src/Badge/Badge.test.tsx
+++ b/packages/mui-joy/src/Badge/Badge.test.tsx
@@ -1,9 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { unstable_capitalize as capitalize } from '@mui/utils';
import { ThemeProvider } from '@mui/joy/styles';
import Badge, { BadgeClassKey, BadgeOrigin, badgeClasses as classes } from '@mui/joy/Badge';
+import describeConformance from '../../test/describeConformance';
function findBadge(container: HTMLElement) {
return (container?.firstChild as HTMLElement)?.querySelector('span') ?? null;
diff --git a/packages/mui-joy/src/Box/Box.test.tsx b/packages/mui-joy/src/Box/Box.test.tsx
index ac4108897d991c..b5380ff674fa1a 100644
--- a/packages/mui-joy/src/Box/Box.test.tsx
+++ b/packages/mui-joy/src/Box/Box.test.tsx
@@ -1,10 +1,11 @@
/* eslint-disable material-ui/no-empty-box */
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { ThemeProvider, CssVarsProvider, extendTheme, PalettePrimary } from '@mui/joy/styles';
import { unstable_ClassNameGenerator as ClassNameGenerator } from '@mui/joy/className';
import Box from '@mui/joy/Box';
+import describeConformance from '../../test/describeConformance';
describe('Joy ', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/Breadcrumbs/Breadcrumbs.test.tsx b/packages/mui-joy/src/Breadcrumbs/Breadcrumbs.test.tsx
index 937ad578eb4e2a..dcee24fcb2ea49 100644
--- a/packages/mui-joy/src/Breadcrumbs/Breadcrumbs.test.tsx
+++ b/packages/mui-joy/src/Breadcrumbs/Breadcrumbs.test.tsx
@@ -1,12 +1,13 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { unstable_capitalize as capitalize } from '@mui/utils';
import { ThemeProvider } from '@mui/joy/styles';
import Breadcrumbs, {
BreadcrumbsClassKey,
breadcrumbsClasses as classes,
} from '@mui/joy/Breadcrumbs';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/Button/Button.test.tsx b/packages/mui-joy/src/Button/Button.test.tsx
index 2ff9cd065d847d..57bf78208efa38 100644
--- a/packages/mui-joy/src/Button/Button.test.tsx
+++ b/packages/mui-joy/src/Button/Button.test.tsx
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import Button, { buttonClasses as classes } from '@mui/joy/Button';
import { ThemeProvider } from '@mui/joy/styles';
+import describeConformance from '../../test/describeConformance';
describe('Joy ', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/ButtonGroup/ButtonGroup.test.tsx b/packages/mui-joy/src/ButtonGroup/ButtonGroup.test.tsx
index d794754f260265..615fa7eae901f2 100644
--- a/packages/mui-joy/src/ButtonGroup/ButtonGroup.test.tsx
+++ b/packages/mui-joy/src/ButtonGroup/ButtonGroup.test.tsx
@@ -1,6 +1,6 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { unstable_capitalize as capitalize } from '@mui/utils';
import { ThemeProvider } from '@mui/joy/styles';
import ButtonGroup, {
@@ -9,6 +9,7 @@ import ButtonGroup, {
} from '@mui/joy/ButtonGroup';
import Button, { buttonClasses, ButtonClassKey } from '@mui/joy/Button';
import IconButton, { iconButtonClasses, IconButtonClassKey } from '@mui/joy/IconButton';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/Card/Card.test.tsx b/packages/mui-joy/src/Card/Card.test.tsx
index a95e7f9a6bf134..833b27ce4df918 100644
--- a/packages/mui-joy/src/Card/Card.test.tsx
+++ b/packages/mui-joy/src/Card/Card.test.tsx
@@ -1,9 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { unstable_capitalize as capitalize } from '@mui/utils';
import { ThemeProvider } from '@mui/joy/styles';
import Card, { cardClasses as classes, CardClassKey } from '@mui/joy/Card';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/CardActions/CardActions.test.tsx b/packages/mui-joy/src/CardActions/CardActions.test.tsx
index 3a5f0f6bc8b499..9cc27519797f9a 100644
--- a/packages/mui-joy/src/CardActions/CardActions.test.tsx
+++ b/packages/mui-joy/src/CardActions/CardActions.test.tsx
@@ -1,7 +1,8 @@
import * as React from 'react';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import CardActions, { cardActionsClasses as classes } from '@mui/joy/CardActions';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/CardContent/CardContent.test.tsx b/packages/mui-joy/src/CardContent/CardContent.test.tsx
index f457f9260369da..ce0a1f73f5d4e9 100644
--- a/packages/mui-joy/src/CardContent/CardContent.test.tsx
+++ b/packages/mui-joy/src/CardContent/CardContent.test.tsx
@@ -1,7 +1,8 @@
import * as React from 'react';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import CardContent, { cardContentClasses as classes } from '@mui/joy/CardContent';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/CardCover/CardCover.test.tsx b/packages/mui-joy/src/CardCover/CardCover.test.tsx
index 8c3a228d56ab79..378a635f0a870b 100644
--- a/packages/mui-joy/src/CardCover/CardCover.test.tsx
+++ b/packages/mui-joy/src/CardCover/CardCover.test.tsx
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import CardCover, { cardCoverClasses as classes } from '@mui/joy/CardCover';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/CardOverflow/CardOverflow.test.tsx b/packages/mui-joy/src/CardOverflow/CardOverflow.test.tsx
index ca34945d506f57..f41c047557ce8b 100644
--- a/packages/mui-joy/src/CardOverflow/CardOverflow.test.tsx
+++ b/packages/mui-joy/src/CardOverflow/CardOverflow.test.tsx
@@ -1,12 +1,13 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { unstable_capitalize as capitalize } from '@mui/utils';
import { ThemeProvider } from '@mui/joy/styles';
import CardOverflow, {
CardOverflowClassKey,
cardOverflowClasses as classes,
} from '@mui/joy/CardOverflow';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/Checkbox/Checkbox.test.tsx b/packages/mui-joy/src/Checkbox/Checkbox.test.tsx
index 5e615272322fd7..3dfb0bf6e7922d 100644
--- a/packages/mui-joy/src/Checkbox/Checkbox.test.tsx
+++ b/packages/mui-joy/src/Checkbox/Checkbox.test.tsx
@@ -1,9 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, act, createRenderer, fireEvent } from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent } from '@mui-internal/test-utils';
import Checkbox, { checkboxClasses as classes } from '@mui/joy/Checkbox';
import { ThemeProvider } from '@mui/joy/styles';
import CloseIcon from '../internal/svg-icons/Close';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/Chip/Chip.test.tsx b/packages/mui-joy/src/Chip/Chip.test.tsx
index 35b1d18dd5147f..cabfad12d0f696 100644
--- a/packages/mui-joy/src/Chip/Chip.test.tsx
+++ b/packages/mui-joy/src/Chip/Chip.test.tsx
@@ -1,10 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import { createRenderer, describeConformance, fireEvent } from '@mui-internal/test-utils';
+import { createRenderer, fireEvent } from '@mui-internal/test-utils';
import { unstable_capitalize as capitalize } from '@mui/utils';
import { ThemeProvider } from '@mui/joy/styles';
import Chip, { ChipClassKey, chipClasses as classes } from '@mui/joy/Chip';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/ChipDelete/ChipDelete.test.tsx b/packages/mui-joy/src/ChipDelete/ChipDelete.test.tsx
index d10ee7b52b5a70..2e52ad0dce2e40 100644
--- a/packages/mui-joy/src/ChipDelete/ChipDelete.test.tsx
+++ b/packages/mui-joy/src/ChipDelete/ChipDelete.test.tsx
@@ -1,10 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import { createRenderer, describeConformance, act, fireEvent } from '@mui-internal/test-utils';
+import { createRenderer, act, fireEvent } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import Chip from '@mui/joy/Chip';
import ChipDelete, { chipDeleteClasses as classes } from '@mui/joy/ChipDelete';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/CircularProgress/CircularProgress.test.tsx b/packages/mui-joy/src/CircularProgress/CircularProgress.test.tsx
index bc2b03624d0c32..e663da95d04200 100644
--- a/packages/mui-joy/src/CircularProgress/CircularProgress.test.tsx
+++ b/packages/mui-joy/src/CircularProgress/CircularProgress.test.tsx
@@ -1,9 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { unstable_capitalize as capitalize } from '@mui/utils';
import { ThemeProvider } from '@mui/joy/styles';
import CircularProgress, { circularProgressClasses as classes } from '@mui/joy/CircularProgress';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/Container/Container.test.tsx b/packages/mui-joy/src/Container/Container.test.tsx
index 9094c70a701358..1ea7b81396b27c 100644
--- a/packages/mui-joy/src/Container/Container.test.tsx
+++ b/packages/mui-joy/src/Container/Container.test.tsx
@@ -1,7 +1,8 @@
import * as React from 'react';
-import { describeConformance, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import Container, { containerClasses as classes } from '@mui/joy/Container';
+import describeConformance from '../../test/describeConformance';
describe('Joy ', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/DialogActions/DialogActions.test.tsx b/packages/mui-joy/src/DialogActions/DialogActions.test.tsx
index 00cb6e9070239a..7059dfbabee6c0 100644
--- a/packages/mui-joy/src/DialogActions/DialogActions.test.tsx
+++ b/packages/mui-joy/src/DialogActions/DialogActions.test.tsx
@@ -1,7 +1,8 @@
import * as React from 'react';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import DialogActions, { dialogActionsClasses as classes } from '@mui/joy/DialogActions';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/DialogContent/DialogContent.test.tsx b/packages/mui-joy/src/DialogContent/DialogContent.test.tsx
index be5e64079572ef..6ec3a8257d9612 100644
--- a/packages/mui-joy/src/DialogContent/DialogContent.test.tsx
+++ b/packages/mui-joy/src/DialogContent/DialogContent.test.tsx
@@ -1,7 +1,8 @@
import * as React from 'react';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import DialogContent, { dialogContentClasses as classes } from '@mui/joy/DialogContent';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/DialogTitle/DialogTitle.test.tsx b/packages/mui-joy/src/DialogTitle/DialogTitle.test.tsx
index f457f9260369da..ce0a1f73f5d4e9 100644
--- a/packages/mui-joy/src/DialogTitle/DialogTitle.test.tsx
+++ b/packages/mui-joy/src/DialogTitle/DialogTitle.test.tsx
@@ -1,7 +1,8 @@
import * as React from 'react';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import CardContent, { cardContentClasses as classes } from '@mui/joy/CardContent';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/Divider/Divider.test.tsx b/packages/mui-joy/src/Divider/Divider.test.tsx
index efe1574a149619..0cd3e64429bda2 100644
--- a/packages/mui-joy/src/Divider/Divider.test.tsx
+++ b/packages/mui-joy/src/Divider/Divider.test.tsx
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import Divider, { dividerClasses as classes } from '@mui/joy/Divider';
+import describeConformance from '../../test/describeConformance';
describe('Joy ', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/Drawer/Drawer.test.tsx b/packages/mui-joy/src/Drawer/Drawer.test.tsx
index 03e22403945fd7..6ef1423b748f84 100644
--- a/packages/mui-joy/src/Drawer/Drawer.test.tsx
+++ b/packages/mui-joy/src/Drawer/Drawer.test.tsx
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { ThemeProvider, CssVarsProvider, extendTheme } from '@mui/joy/styles';
import Drawer, { drawerClasses as classes } from '@mui/joy/Drawer';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/FormControl/FormControl.test.tsx b/packages/mui-joy/src/FormControl/FormControl.test.tsx
index 939f74e732f6b8..c56a1c4e2fbbf9 100644
--- a/packages/mui-joy/src/FormControl/FormControl.test.tsx
+++ b/packages/mui-joy/src/FormControl/FormControl.test.tsx
@@ -1,6 +1,6 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { unstable_capitalize as capitalize } from '@mui/utils';
import { ThemeProvider } from '@mui/joy/styles';
import FormControl, { formControlClasses as classes } from '@mui/joy/FormControl';
@@ -14,6 +14,7 @@ import RadioGroup from '@mui/joy/RadioGroup';
import Radio, { radioClasses } from '@mui/joy/Radio';
import Switch, { switchClasses } from '@mui/joy/Switch';
import Autocomplete, { autocompleteClasses } from '@mui/joy/Autocomplete';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/FormHelperText/FormHelperText.test.tsx b/packages/mui-joy/src/FormHelperText/FormHelperText.test.tsx
index 48b5c31cb221ba..ef86a79b14dbc7 100644
--- a/packages/mui-joy/src/FormHelperText/FormHelperText.test.tsx
+++ b/packages/mui-joy/src/FormHelperText/FormHelperText.test.tsx
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import FormHelperText, { formHelperTextClasses as classes } from '@mui/joy/FormHelperText';
+import describeConformance from '../../test/describeConformance';
describe('Joy ', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/FormLabel/FormLabel.test.tsx b/packages/mui-joy/src/FormLabel/FormLabel.test.tsx
index ec5cb89df1e1db..7404c439dc0b08 100644
--- a/packages/mui-joy/src/FormLabel/FormLabel.test.tsx
+++ b/packages/mui-joy/src/FormLabel/FormLabel.test.tsx
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import FormLabel, { formLabelClasses as classes } from '@mui/joy/FormLabel';
+import describeConformance from '../../test/describeConformance';
describe('Joy ', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/Grid/Grid.test.tsx b/packages/mui-joy/src/Grid/Grid.test.tsx
index 06a9c77a84701e..fe7182b9f8658d 100644
--- a/packages/mui-joy/src/Grid/Grid.test.tsx
+++ b/packages/mui-joy/src/Grid/Grid.test.tsx
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import Grid, { gridClasses as classes } from '@mui/joy/Grid';
+import describeConformance from '../../test/describeConformance';
describe('Joy UI ', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/IconButton/IconButton.test.tsx b/packages/mui-joy/src/IconButton/IconButton.test.tsx
index 9f1d394e525457..9e026fcbb43193 100644
--- a/packages/mui-joy/src/IconButton/IconButton.test.tsx
+++ b/packages/mui-joy/src/IconButton/IconButton.test.tsx
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import IconButton, { iconButtonClasses as classes } from '@mui/joy/IconButton';
import { ThemeProvider } from '@mui/joy/styles';
+import describeConformance from '../../test/describeConformance';
describe('Joy ', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/Input/Input.test.tsx b/packages/mui-joy/src/Input/Input.test.tsx
index c13f3fe3915441..8bd2a8d9cac635 100644
--- a/packages/mui-joy/src/Input/Input.test.tsx
+++ b/packages/mui-joy/src/Input/Input.test.tsx
@@ -1,16 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import {
- describeConformance,
- createRenderer,
- screen,
- act,
- fireEvent,
-} from '@mui-internal/test-utils';
+import { createRenderer, screen, act, fireEvent } from '@mui-internal/test-utils';
import Input, { inputClasses as classes } from '@mui/joy/Input';
import { ThemeProvider, extendTheme } from '@mui/joy/styles';
import FormControl from '@mui/joy/FormControl';
+import describeConformance from '../../test/describeConformance';
describe('Joy ', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/LinearProgress/LinearProgress.test.tsx b/packages/mui-joy/src/LinearProgress/LinearProgress.test.tsx
index 5a976b191e5386..30c719e00ebb68 100644
--- a/packages/mui-joy/src/LinearProgress/LinearProgress.test.tsx
+++ b/packages/mui-joy/src/LinearProgress/LinearProgress.test.tsx
@@ -1,9 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { unstable_capitalize as capitalize } from '@mui/utils';
import { ThemeProvider } from '@mui/joy/styles';
import LinearProgress, { linearProgressClasses as classes } from '@mui/joy/LinearProgress';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/Link/Link.test.tsx b/packages/mui-joy/src/Link/Link.test.tsx
index baaccc2c46eb4b..ebc39e477aa134 100644
--- a/packages/mui-joy/src/Link/Link.test.tsx
+++ b/packages/mui-joy/src/Link/Link.test.tsx
@@ -1,11 +1,12 @@
import * as React from 'react';
import { expect } from 'chai';
import { SinonSpy, spy } from 'sinon';
-import { act, createRenderer, fireEvent, describeConformance } from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent } from '@mui-internal/test-utils';
import { unstable_capitalize as capitalize } from '@mui/utils';
import Link, { LinkClassKey, linkClasses as classes } from '@mui/joy/Link';
import Typography from '@mui/joy/Typography';
import { ThemeProvider, TypographySystem } from '@mui/joy/styles';
+import describeConformance from '../../test/describeConformance';
function focusVisible(element: HTMLAnchorElement | null) {
act(() => {
diff --git a/packages/mui-joy/src/List/List.test.tsx b/packages/mui-joy/src/List/List.test.tsx
index 8fe2fa12f5b6a2..e3c3d81246da7c 100644
--- a/packages/mui-joy/src/List/List.test.tsx
+++ b/packages/mui-joy/src/List/List.test.tsx
@@ -1,6 +1,6 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, createRenderer, screen } from '@mui-internal/test-utils';
+import { createRenderer, screen } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import List, { listClasses as classes } from '@mui/joy/List';
import ListItem from '@mui/joy/ListItem';
@@ -8,6 +8,7 @@ import MenuList from '@mui/joy/MenuList';
import Menu from '@mui/joy/Menu';
import Select from '@mui/joy/Select';
import RadioGroup from '@mui/joy/RadioGroup';
+import describeConformance from '../../test/describeConformance';
describe('Joy
', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/ListDivider/ListDivider.test.tsx b/packages/mui-joy/src/ListDivider/ListDivider.test.tsx
index 1a6515afaa5d73..e958c94631f13e 100644
--- a/packages/mui-joy/src/ListDivider/ListDivider.test.tsx
+++ b/packages/mui-joy/src/ListDivider/ListDivider.test.tsx
@@ -1,9 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, createRenderer, screen } from '@mui-internal/test-utils';
+import { createRenderer, screen } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import List from '@mui/joy/List';
import ListDivider, { listDividerClasses as classes } from '@mui/joy/ListDivider';
+import describeConformance from '../../test/describeConformance';
describe('Joy ', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/ListItem/ListItem.test.tsx b/packages/mui-joy/src/ListItem/ListItem.test.tsx
index e627bc6fa25599..03b1217c2b298a 100644
--- a/packages/mui-joy/src/ListItem/ListItem.test.tsx
+++ b/packages/mui-joy/src/ListItem/ListItem.test.tsx
@@ -1,11 +1,12 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, createRenderer, screen } from '@mui-internal/test-utils';
+import { createRenderer, screen } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import MenuList from '@mui/joy/MenuList';
import List from '@mui/joy/List';
import ListItem, { listItemClasses as classes } from '@mui/joy/ListItem';
import ListSubheader from '@mui/joy/ListSubheader';
+import describeConformance from '../../test/describeConformance';
describe('Joy ', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/ListItemButton/ListItemButton.test.tsx b/packages/mui-joy/src/ListItemButton/ListItemButton.test.tsx
index 22b43ce0f88bef..723a21bba45a0b 100644
--- a/packages/mui-joy/src/ListItemButton/ListItemButton.test.tsx
+++ b/packages/mui-joy/src/ListItemButton/ListItemButton.test.tsx
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, createRenderer, act, fireEvent } from '@mui-internal/test-utils';
+import { createRenderer, act, fireEvent } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import ListItemButton, { listItemButtonClasses as classes } from '@mui/joy/ListItemButton';
+import describeConformance from '../../test/describeConformance';
describe('Joy ', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/ListItemContent/ListItemContent.test.tsx b/packages/mui-joy/src/ListItemContent/ListItemContent.test.tsx
index 5727a4fecda71b..3d7af18633f725 100644
--- a/packages/mui-joy/src/ListItemContent/ListItemContent.test.tsx
+++ b/packages/mui-joy/src/ListItemContent/ListItemContent.test.tsx
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import ListItemContent, { listItemContentClasses as classes } from '@mui/joy/ListItemContent';
+import describeConformance from '../../test/describeConformance';
describe('Joy ', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/ListItemDecorator/ListItemDecorator.test.tsx b/packages/mui-joy/src/ListItemDecorator/ListItemDecorator.test.tsx
index 1b0bad3280aaa8..2f756156c88743 100644
--- a/packages/mui-joy/src/ListItemDecorator/ListItemDecorator.test.tsx
+++ b/packages/mui-joy/src/ListItemDecorator/ListItemDecorator.test.tsx
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import ListItemDecorator, { listItemDecoratorClasses as classes } from '@mui/joy/ListItemDecorator';
+import describeConformance from '../../test/describeConformance';
describe('Joy ', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/ListSubheader/ListSubheader.test.tsx b/packages/mui-joy/src/ListSubheader/ListSubheader.test.tsx
index b49ab8229acd86..94720d6d974c52 100644
--- a/packages/mui-joy/src/ListSubheader/ListSubheader.test.tsx
+++ b/packages/mui-joy/src/ListSubheader/ListSubheader.test.tsx
@@ -1,10 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import { describeConformance, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import ListSubheader, { listSubheaderClasses as classes } from '@mui/joy/ListSubheader';
import ListSubheaderDispatch from './ListSubheaderContext';
+import describeConformance from '../../test/describeConformance';
describe('Joy ', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/Menu/Menu.test.tsx b/packages/mui-joy/src/Menu/Menu.test.tsx
index 6d2e67fc43cd7f..d6969b30334951 100644
--- a/packages/mui-joy/src/Menu/Menu.test.tsx
+++ b/packages/mui-joy/src/Menu/Menu.test.tsx
@@ -1,13 +1,7 @@
import * as React from 'react';
import { spy } from 'sinon';
import { expect } from 'chai';
-import {
- act,
- createRenderer,
- describeConformance,
- screen,
- fireEvent,
-} from '@mui-internal/test-utils';
+import { act, createRenderer, screen, fireEvent } from '@mui-internal/test-utils';
import { Popper as PopperUnstyled } from '@mui/base/Popper';
import { DropdownContext, DropdownContextValue } from '@mui/base/useDropdown';
import { ThemeProvider } from '@mui/joy/styles';
@@ -15,6 +9,7 @@ import Menu, { menuClasses as classes } from '@mui/joy/Menu';
import Dropdown from '@mui/joy/Dropdown';
import MenuItem from '@mui/joy/MenuItem';
import MenuButton from '@mui/joy/MenuButton';
+import describeConformance from '../../test/describeConformance';
const testContext: DropdownContextValue = {
dispatch: () => {},
diff --git a/packages/mui-joy/src/MenuButton/MenuButton.test.tsx b/packages/mui-joy/src/MenuButton/MenuButton.test.tsx
index bb12143611c677..92052dba8ebc6d 100644
--- a/packages/mui-joy/src/MenuButton/MenuButton.test.tsx
+++ b/packages/mui-joy/src/MenuButton/MenuButton.test.tsx
@@ -1,10 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { DropdownContext, DropdownContextValue } from '@mui/base/useDropdown';
import { ThemeProvider } from '@mui/joy/styles';
import MenuButton, { menuButtonClasses as classes } from '@mui/joy/MenuButton';
+import describeConformance from '../../test/describeConformance';
const testContext: DropdownContextValue = {
dispatch: () => {},
diff --git a/packages/mui-joy/src/MenuItem/MenuItem.test.tsx b/packages/mui-joy/src/MenuItem/MenuItem.test.tsx
index 71561e6befaa29..7492c1e39340e3 100644
--- a/packages/mui-joy/src/MenuItem/MenuItem.test.tsx
+++ b/packages/mui-joy/src/MenuItem/MenuItem.test.tsx
@@ -1,17 +1,12 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import {
- act,
- describeConformance,
- createRenderer,
- fireEvent,
- screen,
-} from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent, screen } from '@mui-internal/test-utils';
import { MenuProvider, MenuProviderValue } from '@mui/base/useMenu';
import { ThemeProvider } from '@mui/joy/styles';
import MenuItem, { menuItemClasses as classes } from '@mui/joy/MenuItem';
import ListItemButton from '@mui/joy/ListItemButton';
+import describeConformance from '../../test/describeConformance';
const testContext: MenuProviderValue = {
registerItem: () => ({ id: '0', deregister: () => {} }),
diff --git a/packages/mui-joy/src/MenuList/MenuList.test.tsx b/packages/mui-joy/src/MenuList/MenuList.test.tsx
index a34765831c5d4f..f9b58f914c8a15 100644
--- a/packages/mui-joy/src/MenuList/MenuList.test.tsx
+++ b/packages/mui-joy/src/MenuList/MenuList.test.tsx
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, createRenderer, screen } from '@mui-internal/test-utils';
+import { createRenderer, screen } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import MenuList, { menuListClasses as classes } from '@mui/joy/MenuList';
+import describeConformance from '../../test/describeConformance';
describe('Joy ', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/Modal/Modal.test.tsx b/packages/mui-joy/src/Modal/Modal.test.tsx
index 9fc9e945b954b5..e597c4197cf9ab 100644
--- a/packages/mui-joy/src/Modal/Modal.test.tsx
+++ b/packages/mui-joy/src/Modal/Modal.test.tsx
@@ -2,15 +2,10 @@ import * as React from 'react';
import * as ReactDOM from 'react-dom';
import { spy } from 'sinon';
import { expect } from 'chai';
-import {
- createRenderer,
- describeConformance,
- act,
- fireEvent,
- within,
-} from '@mui-internal/test-utils';
+import { createRenderer, act, fireEvent, within } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import Modal, { modalClasses as classes, ModalProps } from '@mui/joy/Modal';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { clock, render } = createRenderer();
diff --git a/packages/mui-joy/src/ModalClose/ModalClose.test.tsx b/packages/mui-joy/src/ModalClose/ModalClose.test.tsx
index 983515365110b1..86a7548a4b94f7 100644
--- a/packages/mui-joy/src/ModalClose/ModalClose.test.tsx
+++ b/packages/mui-joy/src/ModalClose/ModalClose.test.tsx
@@ -1,12 +1,13 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import { createRenderer, describeConformance, fireEvent } from '@mui-internal/test-utils';
+import { createRenderer, fireEvent } from '@mui-internal/test-utils';
import { unstable_capitalize as capitalize } from '@mui/utils';
import { ThemeProvider } from '@mui/joy/styles';
import Modal from '@mui/joy/Modal';
import ModalDialog from '@mui/joy/ModalDialog';
import ModalClose, { modalCloseClasses as classes } from '@mui/joy/ModalClose';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/ModalDialog/ModalDialog.test.tsx b/packages/mui-joy/src/ModalDialog/ModalDialog.test.tsx
index 3c9c5ac5f38838..701f04b771835b 100644
--- a/packages/mui-joy/src/ModalDialog/ModalDialog.test.tsx
+++ b/packages/mui-joy/src/ModalDialog/ModalDialog.test.tsx
@@ -1,9 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { unstable_capitalize as capitalize } from '@mui/utils';
import { ThemeProvider } from '@mui/joy/styles';
import ModalDialog, { modalDialogClasses as classes } from '@mui/joy/ModalDialog';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/ModalOverflow/ModalOverflow.test.tsx b/packages/mui-joy/src/ModalOverflow/ModalOverflow.test.tsx
index 4b33be3c56985f..4c46778eda25a1 100644
--- a/packages/mui-joy/src/ModalOverflow/ModalOverflow.test.tsx
+++ b/packages/mui-joy/src/ModalOverflow/ModalOverflow.test.tsx
@@ -1,7 +1,8 @@
import * as React from 'react';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import ModalOverflow, { modalOverflowClasses as classes } from '@mui/joy/ModalOverflow';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/Radio/Radio.test.tsx b/packages/mui-joy/src/Radio/Radio.test.tsx
index d03876d4775886..471918c6ecc3ff 100644
--- a/packages/mui-joy/src/Radio/Radio.test.tsx
+++ b/packages/mui-joy/src/Radio/Radio.test.tsx
@@ -1,10 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, act, createRenderer, fireEvent } from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent } from '@mui-internal/test-utils';
import Radio, { radioClasses as classes } from '@mui/joy/Radio';
import { ThemeProvider, extendTheme } from '@mui/joy/styles';
import FormControl from '@mui/joy/FormControl';
import RadioGroup from '@mui/joy/RadioGroup';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/RadioGroup/RadioGroup.test.tsx b/packages/mui-joy/src/RadioGroup/RadioGroup.test.tsx
index 1c622252b9cff3..22f32cf05c664e 100644
--- a/packages/mui-joy/src/RadioGroup/RadioGroup.test.tsx
+++ b/packages/mui-joy/src/RadioGroup/RadioGroup.test.tsx
@@ -2,16 +2,11 @@ import * as React from 'react';
import PropTypes from 'prop-types';
import { expect } from 'chai';
import { spy } from 'sinon';
-import {
- describeConformance,
- act,
- createRenderer,
- fireEvent,
- screen,
-} from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent, screen } from '@mui-internal/test-utils';
import RadioGroup, { radioGroupClasses as classes, RadioGroupProps } from '@mui/joy/RadioGroup';
import Radio from '@mui/joy/Radio';
import { ThemeProvider } from '@mui/joy/styles';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/ScopedCssBaseline/ScopedCssBaseline.test.tsx b/packages/mui-joy/src/ScopedCssBaseline/ScopedCssBaseline.test.tsx
index 064797f0a7a41d..37ad4fed32befc 100644
--- a/packages/mui-joy/src/ScopedCssBaseline/ScopedCssBaseline.test.tsx
+++ b/packages/mui-joy/src/ScopedCssBaseline/ScopedCssBaseline.test.tsx
@@ -1,7 +1,8 @@
import * as React from 'react';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import ScopedCssBaseline, { scopedCssBaselineClasses as classes } from '@mui/joy/ScopedCssBaseline';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/Select/Select.test.tsx b/packages/mui-joy/src/Select/Select.test.tsx
index b30442f6237587..6f04051bea4e26 100644
--- a/packages/mui-joy/src/Select/Select.test.tsx
+++ b/packages/mui-joy/src/Select/Select.test.tsx
@@ -1,19 +1,14 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy, stub } from 'sinon';
-import {
- describeConformance,
- act,
- createRenderer,
- fireEvent,
- screen,
-} from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent, screen } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import Select, { selectClasses as classes, SelectOption } from '@mui/joy/Select';
import Option from '@mui/joy/Option';
import List from '@mui/joy/List';
import ListItem from '@mui/joy/ListItem';
import ListDivider from '@mui/joy/ListDivider';
+import describeConformance from '../../test/describeConformance';
describe('Joy ', () => {
const { render } = createRenderer({ clock: 'fake' });
diff --git a/packages/mui-joy/src/Sheet/Sheet.test.tsx b/packages/mui-joy/src/Sheet/Sheet.test.tsx
index 98b0b264b8d67c..5019044fe05f1a 100644
--- a/packages/mui-joy/src/Sheet/Sheet.test.tsx
+++ b/packages/mui-joy/src/Sheet/Sheet.test.tsx
@@ -1,9 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { unstable_capitalize as capitalize } from '@mui/utils';
import { ThemeProvider } from '@mui/joy/styles';
import Sheet, { sheetClasses as classes, SheetClassKey } from '@mui/joy/Sheet';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/Skeleton/Skeleton.test.tsx b/packages/mui-joy/src/Skeleton/Skeleton.test.tsx
index 854409169b2710..ea32bc9be607ef 100644
--- a/packages/mui-joy/src/Skeleton/Skeleton.test.tsx
+++ b/packages/mui-joy/src/Skeleton/Skeleton.test.tsx
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import Skeleton, { skeletonClasses as classes } from '@mui/joy/Skeleton';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/Slider/Slider.test.tsx b/packages/mui-joy/src/Slider/Slider.test.tsx
index 378a67d41e163b..23c22a222d3c82 100644
--- a/packages/mui-joy/src/Slider/Slider.test.tsx
+++ b/packages/mui-joy/src/Slider/Slider.test.tsx
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import Slider, { sliderClasses as classes } from '@mui/joy/Slider';
import { ThemeProvider } from '@mui/joy/styles';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/Snackbar/Snackbar.test.tsx b/packages/mui-joy/src/Snackbar/Snackbar.test.tsx
index b8c12d8535e237..e0041cbe6e5ab1 100644
--- a/packages/mui-joy/src/Snackbar/Snackbar.test.tsx
+++ b/packages/mui-joy/src/Snackbar/Snackbar.test.tsx
@@ -1,9 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import { describeConformance, createRenderer, fireEvent, act } from '@mui-internal/test-utils';
+import { createRenderer, fireEvent, act } from '@mui-internal/test-utils';
import Snackbar, { snackbarClasses as classes } from '@mui/joy/Snackbar';
import { ThemeProvider } from '@mui/joy/styles';
+import describeConformance from '../../test/describeConformance';
describe('Joy ', () => {
const { render: clientRender, clock } = createRenderer({ clock: 'fake' });
diff --git a/packages/mui-joy/src/Stack/Stack.test.tsx b/packages/mui-joy/src/Stack/Stack.test.tsx
index bf4552bd2abe00..35ba54915ca1a4 100644
--- a/packages/mui-joy/src/Stack/Stack.test.tsx
+++ b/packages/mui-joy/src/Stack/Stack.test.tsx
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import Stack, { stackClasses as classes } from '@mui/joy/Stack';
+import describeConformance from '../../test/describeConformance';
describe('Joy ', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/Step/Step.test.tsx b/packages/mui-joy/src/Step/Step.test.tsx
index ca7753d4212168..131a79d8445332 100644
--- a/packages/mui-joy/src/Step/Step.test.tsx
+++ b/packages/mui-joy/src/Step/Step.test.tsx
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import Step, { stepClasses as classes } from '@mui/joy/Step';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/StepButton/StepButton.test.tsx b/packages/mui-joy/src/StepButton/StepButton.test.tsx
index 2bf98f766e9c56..6b2f4c14661447 100644
--- a/packages/mui-joy/src/StepButton/StepButton.test.tsx
+++ b/packages/mui-joy/src/StepButton/StepButton.test.tsx
@@ -1,7 +1,8 @@
import * as React from 'react';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import StepButton, { stepButtonClasses as classes } from '@mui/joy/StepButton';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/StepIndicator/StepIndicator.test.tsx b/packages/mui-joy/src/StepIndicator/StepIndicator.test.tsx
index 40366ea2b775a2..b063de785f46b8 100644
--- a/packages/mui-joy/src/StepIndicator/StepIndicator.test.tsx
+++ b/packages/mui-joy/src/StepIndicator/StepIndicator.test.tsx
@@ -1,9 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
import { unstable_capitalize as capitalize } from '@mui/utils';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import StepIndicator, { stepIndicatorClasses as classes } from '@mui/joy/StepIndicator';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/Stepper/Stepper.test.tsx b/packages/mui-joy/src/Stepper/Stepper.test.tsx
index d918143833dc0a..ec1dcf56f4a6a1 100644
--- a/packages/mui-joy/src/Stepper/Stepper.test.tsx
+++ b/packages/mui-joy/src/Stepper/Stepper.test.tsx
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import Stepper, { stepperClasses as classes } from '@mui/joy/Stepper';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/SvgIcon/SvgIcon.test.tsx b/packages/mui-joy/src/SvgIcon/SvgIcon.test.tsx
index 47f169e59abf0f..6d540c947fbf11 100644
--- a/packages/mui-joy/src/SvgIcon/SvgIcon.test.tsx
+++ b/packages/mui-joy/src/SvgIcon/SvgIcon.test.tsx
@@ -1,6 +1,6 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { unstable_capitalize as capitalize } from '@mui/utils';
import SvgIcon, {
svgIconClasses as classes,
@@ -8,6 +8,7 @@ import SvgIcon, {
SvgIconProps,
} from '@mui/joy/SvgIcon';
import { ThemeProvider } from '@mui/joy/styles';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/Switch/Switch.test.tsx b/packages/mui-joy/src/Switch/Switch.test.tsx
index d5d316fc154de1..fa849dc389e9fb 100644
--- a/packages/mui-joy/src/Switch/Switch.test.tsx
+++ b/packages/mui-joy/src/Switch/Switch.test.tsx
@@ -1,14 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import {
- describeConformance,
- act,
- createRenderer,
- fireEvent,
- screen,
-} from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent, screen } from '@mui-internal/test-utils';
import Switch, { switchClasses as classes } from '@mui/joy/Switch';
import { ThemeProvider } from '@mui/joy/styles';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/Tab/Tab.test.tsx b/packages/mui-joy/src/Tab/Tab.test.tsx
index 2ec71a128f0ec8..37113dc2be0e6e 100644
--- a/packages/mui-joy/src/Tab/Tab.test.tsx
+++ b/packages/mui-joy/src/Tab/Tab.test.tsx
@@ -1,11 +1,12 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, createRenderer, screen } from '@mui-internal/test-utils';
+import { createRenderer, screen } from '@mui-internal/test-utils';
import { TabsProps } from '@mui/base/Tabs';
import { useTabs, TabsProvider as BaseTabsProvider } from '@mui/base/useTabs';
import { useTabsList, TabsListProvider as BaseTabsListProvider } from '@mui/base/useTabsList';
import { ThemeProvider } from '@mui/joy/styles';
import Tab, { tabClasses as classes } from '@mui/joy/Tab';
+import describeConformance from '../../test/describeConformance';
function TabsListProvider({ children }: React.PropsWithChildren<{}>) {
const { contextValue: tabsListContextValue } = useTabsList({
diff --git a/packages/mui-joy/src/TabList/TabList.test.tsx b/packages/mui-joy/src/TabList/TabList.test.tsx
index 5934491c8255f6..515450dbed9eef 100644
--- a/packages/mui-joy/src/TabList/TabList.test.tsx
+++ b/packages/mui-joy/src/TabList/TabList.test.tsx
@@ -1,12 +1,13 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, createRenderer, screen } from '@mui-internal/test-utils';
+import { createRenderer, screen } from '@mui-internal/test-utils';
import { TabsProps } from '@mui/base/Tabs';
import { useTabs, TabsProvider as BaseTabsProvider } from '@mui/base/useTabs';
import { ThemeProvider } from '@mui/joy/styles';
import Tabs from '@mui/joy/Tabs';
import TabList, { tabListClasses as classes } from '@mui/joy/TabList';
import RowListContext from '../List/RowListContext';
+import describeConformance from '../../test/describeConformance';
function TabsProvider({ children, ...props }: TabsProps) {
const { contextValue } = useTabs(props);
diff --git a/packages/mui-joy/src/TabPanel/TabPanel.test.tsx b/packages/mui-joy/src/TabPanel/TabPanel.test.tsx
index cab2e72d8dd44b..9bf7a615fde964 100644
--- a/packages/mui-joy/src/TabPanel/TabPanel.test.tsx
+++ b/packages/mui-joy/src/TabPanel/TabPanel.test.tsx
@@ -1,11 +1,12 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, createRenderer, screen } from '@mui-internal/test-utils';
+import { createRenderer, screen } from '@mui-internal/test-utils';
import { TabsProps } from '@mui/base/Tabs';
import { useTabs, TabsProvider as BaseTabsProvider } from '@mui/base/useTabs';
import { ThemeProvider } from '@mui/joy/styles';
import Tabs from '@mui/joy/Tabs';
import TabPanel, { tabPanelClasses as classes } from '@mui/joy/TabPanel';
+import describeConformance from '../../test/describeConformance';
function TabsProvider({ children, ...props }: TabsProps) {
const { contextValue } = useTabs(props);
diff --git a/packages/mui-joy/src/Table/Table.test.tsx b/packages/mui-joy/src/Table/Table.test.tsx
index 37909e8f400ba6..6be49bb54cb8a8 100644
--- a/packages/mui-joy/src/Table/Table.test.tsx
+++ b/packages/mui-joy/src/Table/Table.test.tsx
@@ -1,9 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { unstable_capitalize as capitalize } from '@mui/utils';
import { ThemeProvider } from '@mui/joy/styles';
import Table, { tableClasses as classes } from '@mui/joy/Table';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/Tabs/Tabs.test.tsx b/packages/mui-joy/src/Tabs/Tabs.test.tsx
index b7951b0200d184..da7a8b3b2e1a98 100644
--- a/packages/mui-joy/src/Tabs/Tabs.test.tsx
+++ b/packages/mui-joy/src/Tabs/Tabs.test.tsx
@@ -1,9 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, createRenderer, screen } from '@mui-internal/test-utils';
+import { createRenderer, screen } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import Tabs, { tabsClasses as classes } from '@mui/joy/Tabs';
import SizeTabsContext from './SizeTabsContext';
+import describeConformance from '../../test/describeConformance';
describe('Joy ', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/Textarea/Textarea.test.tsx b/packages/mui-joy/src/Textarea/Textarea.test.tsx
index 5edf08bfee175e..60cc2e70934025 100644
--- a/packages/mui-joy/src/Textarea/Textarea.test.tsx
+++ b/packages/mui-joy/src/Textarea/Textarea.test.tsx
@@ -1,15 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import {
- describeConformance,
- createRenderer,
- screen,
- act,
- fireEvent,
-} from '@mui-internal/test-utils';
+import { createRenderer, screen, act, fireEvent } from '@mui-internal/test-utils';
import Textarea, { textareaClasses as classes } from '@mui/joy/Textarea';
import { ThemeProvider } from '@mui/joy/styles';
+import describeConformance from '../../test/describeConformance';
describe('Joy ', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/ToggleButtonGroup/ToggleButtonGroup.test.tsx b/packages/mui-joy/src/ToggleButtonGroup/ToggleButtonGroup.test.tsx
index d988ecd42e9709..2f5777f4fd4209 100644
--- a/packages/mui-joy/src/ToggleButtonGroup/ToggleButtonGroup.test.tsx
+++ b/packages/mui-joy/src/ToggleButtonGroup/ToggleButtonGroup.test.tsx
@@ -1,12 +1,13 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import { act, createRenderer, describeConformance, screen } from '@mui-internal/test-utils';
+import { act, createRenderer, screen } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/joy/styles';
import ToggleButtonGroup, { toggleButtonGroupClasses as classes } from '@mui/joy/ToggleButtonGroup';
import Button from '@mui/joy/Button';
import IconButton from '@mui/joy/IconButton';
import Tooltip from '@mui/joy/Tooltip';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/Tooltip/Tooltip.test.tsx b/packages/mui-joy/src/Tooltip/Tooltip.test.tsx
index f195b14b48a39d..72d63129e669b4 100644
--- a/packages/mui-joy/src/Tooltip/Tooltip.test.tsx
+++ b/packages/mui-joy/src/Tooltip/Tooltip.test.tsx
@@ -1,10 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { unstable_capitalize as capitalize } from '@mui/utils';
import { PopperProps } from '@mui/base';
import { ThemeProvider } from '@mui/joy/styles';
import Tooltip, { tooltipClasses as classes, TooltipClassKey } from '@mui/joy/Tooltip';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/src/Typography/Typography.test.tsx b/packages/mui-joy/src/Typography/Typography.test.tsx
index 88548fe665a28c..e407bc7e8a12d0 100644
--- a/packages/mui-joy/src/Typography/Typography.test.tsx
+++ b/packages/mui-joy/src/Typography/Typography.test.tsx
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import Typography, { typographyClasses as classes, TypographyProps } from '@mui/joy/Typography';
import { ThemeProvider } from '@mui/joy/styles';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-joy/test/describeConformance.ts b/packages/mui-joy/test/describeConformance.ts
new file mode 100644
index 00000000000000..f82c1e1e0215b7
--- /dev/null
+++ b/packages/mui-joy/test/describeConformance.ts
@@ -0,0 +1,21 @@
+import {
+ describeConformance as baseDescribeConformance,
+ ConformanceOptions,
+} from '@mui-internal/test-utils';
+import { ThemeProvider } from '@mui/joy/styles';
+import { createTheme } from '@mui/system';
+
+export default function describeConformance(
+ minimalElement: React.ReactElement,
+ getOptions: () => ConformanceOptions,
+) {
+ function getOptionsWithDefaults() {
+ return {
+ ThemeProvider,
+ createTheme,
+ ...getOptions(),
+ };
+ }
+
+ return baseDescribeConformance(minimalElement, getOptionsWithDefaults);
+}
diff --git a/packages/mui-lab/src/LoadingButton/LoadingButton.test.js b/packages/mui-lab/src/LoadingButton/LoadingButton.test.js
index cb32edf6a9b436..fc959d6bea21e3 100644
--- a/packages/mui-lab/src/LoadingButton/LoadingButton.test.js
+++ b/packages/mui-lab/src/LoadingButton/LoadingButton.test.js
@@ -1,9 +1,10 @@
import * as React from 'react';
-import { createRenderer, describeConformance, screen, within } from '@mui-internal/test-utils';
+import { createRenderer, screen, within } from '@mui-internal/test-utils';
import { expect } from 'chai';
import Button, { buttonClasses } from '@mui/material/Button';
import LoadingButton, { loadingButtonClasses as classes } from '@mui/lab/LoadingButton';
import ButtonGroup, { buttonGroupClasses } from '@mui/material/ButtonGroup';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-lab/src/Masonry/Masonry.test.js b/packages/mui-lab/src/Masonry/Masonry.test.js
index a4b98bcdd70117..ae1627d641f3a9 100644
--- a/packages/mui-lab/src/Masonry/Masonry.test.js
+++ b/packages/mui-lab/src/Masonry/Masonry.test.js
@@ -1,10 +1,11 @@
import * as React from 'react';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { expect } from 'chai';
import { createTheme } from '@mui/material/styles';
import defaultTheme from '@mui/material/styles/defaultTheme';
import Masonry, { masonryClasses as classes } from '@mui/lab/Masonry';
import { getStyle, parseToNumber } from './Masonry';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-lab/src/TabList/TabList.test.js b/packages/mui-lab/src/TabList/TabList.test.js
index 6419a4cb31c9f6..2f34f2b0994517 100644
--- a/packages/mui-lab/src/TabList/TabList.test.js
+++ b/packages/mui-lab/src/TabList/TabList.test.js
@@ -1,11 +1,12 @@
// @ts-check
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import Tab from '@mui/material/Tab';
import Tabs, { tabsClasses as classes } from '@mui/material/Tabs';
import TabList from './TabList';
import TabContext from '../TabContext';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-lab/src/TabPanel/TabPanel.test.tsx b/packages/mui-lab/src/TabPanel/TabPanel.test.tsx
index 00db045f2b2a60..ba0487616e45f9 100644
--- a/packages/mui-lab/src/TabPanel/TabPanel.test.tsx
+++ b/packages/mui-lab/src/TabPanel/TabPanel.test.tsx
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import TabPanel, { tabPanelClasses as classes } from '@mui/lab/TabPanel';
import TabContext from '../TabContext';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-lab/src/Timeline/Timeline.test.tsx b/packages/mui-lab/src/Timeline/Timeline.test.tsx
index bdec9ccdfdd988..08df8eac324dff 100644
--- a/packages/mui-lab/src/Timeline/Timeline.test.tsx
+++ b/packages/mui-lab/src/Timeline/Timeline.test.tsx
@@ -1,7 +1,8 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance, screen } from '@mui-internal/test-utils';
+import { createRenderer, screen } from '@mui-internal/test-utils';
import Timeline, { timelineClasses as classes } from '@mui/lab/Timeline';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-lab/src/TimelineConnector/TimelineConnector.test.js b/packages/mui-lab/src/TimelineConnector/TimelineConnector.test.js
index 48bb30ebca0a27..29b157a7b929ce 100644
--- a/packages/mui-lab/src/TimelineConnector/TimelineConnector.test.js
+++ b/packages/mui-lab/src/TimelineConnector/TimelineConnector.test.js
@@ -1,6 +1,7 @@
import * as React from 'react';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import TimelineConnector, { timelineConnectorClasses as classes } from '@mui/lab/TimelineConnector';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-lab/src/TimelineContent/TimelineContent.test.js b/packages/mui-lab/src/TimelineContent/TimelineContent.test.js
index bae2b2dd90e6c4..1c8a31f0a6e3e9 100644
--- a/packages/mui-lab/src/TimelineContent/TimelineContent.test.js
+++ b/packages/mui-lab/src/TimelineContent/TimelineContent.test.js
@@ -1,10 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import Typography from '@mui/material/Typography';
import Timeline from '@mui/lab/Timeline';
import TimelineItem from '@mui/lab/TimelineItem';
import TimelineContent, { timelineContentClasses as classes } from '@mui/lab/TimelineContent';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-lab/src/TimelineDot/TimelineDot.test.js b/packages/mui-lab/src/TimelineDot/TimelineDot.test.js
index 8a6619363b972a..24f5460d3d550a 100644
--- a/packages/mui-lab/src/TimelineDot/TimelineDot.test.js
+++ b/packages/mui-lab/src/TimelineDot/TimelineDot.test.js
@@ -1,7 +1,8 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import TimelineDot, { timelineDotClasses as classes } from '@mui/lab/TimelineDot';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-lab/src/TimelineItem/TimelineItem.test.js b/packages/mui-lab/src/TimelineItem/TimelineItem.test.js
index 532af2a2fac603..72339942424918 100644
--- a/packages/mui-lab/src/TimelineItem/TimelineItem.test.js
+++ b/packages/mui-lab/src/TimelineItem/TimelineItem.test.js
@@ -1,6 +1,7 @@
import * as React from 'react';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import TimelineItem, { timelineItemClasses as classes } from '@mui/lab/TimelineItem';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-lab/src/TimelineOppositeContent/TimelineOppositeContent.test.js b/packages/mui-lab/src/TimelineOppositeContent/TimelineOppositeContent.test.js
index 0b3087893f291e..5b4470b34f40b8 100644
--- a/packages/mui-lab/src/TimelineOppositeContent/TimelineOppositeContent.test.js
+++ b/packages/mui-lab/src/TimelineOppositeContent/TimelineOppositeContent.test.js
@@ -1,12 +1,13 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import Typography from '@mui/material/Typography';
import Timeline from '@mui/lab/Timeline';
import TimelineItem from '@mui/lab/TimelineItem';
import TimelineOppositeContent, {
timelineOppositeContentClasses as classes,
} from '@mui/lab/TimelineOppositeContent';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-lab/src/TimelineSeparator/TimelineSeparator.test.js b/packages/mui-lab/src/TimelineSeparator/TimelineSeparator.test.js
index e2c9f61aa7d109..484bdb4db0fc6b 100644
--- a/packages/mui-lab/src/TimelineSeparator/TimelineSeparator.test.js
+++ b/packages/mui-lab/src/TimelineSeparator/TimelineSeparator.test.js
@@ -1,6 +1,7 @@
import * as React from 'react';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import TimelineSeparator, { timelineSeparatorClasses as classes } from '@mui/lab/TimelineSeparator';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-lab/test/describeConformance.ts b/packages/mui-lab/test/describeConformance.ts
new file mode 100644
index 00000000000000..633cf72e03ebbe
--- /dev/null
+++ b/packages/mui-lab/test/describeConformance.ts
@@ -0,0 +1,20 @@
+import {
+ describeConformance as baseDescribeConformance,
+ ConformanceOptions,
+} from '@mui-internal/test-utils';
+import { ThemeProvider, createTheme } from '@mui/material/styles';
+
+export default function describeConformance(
+ minimalElement: React.ReactElement,
+ getOptions: () => ConformanceOptions,
+) {
+ function getOptionsWithDefaults() {
+ return {
+ ThemeProvider,
+ createTheme,
+ ...getOptions(),
+ };
+ }
+
+ return baseDescribeConformance(minimalElement, getOptionsWithDefaults);
+}
diff --git a/packages/mui-material-next/src/Badge/Badge.test.tsx b/packages/mui-material-next/src/Badge/Badge.test.tsx
index 22d881a4e1a0a7..3a21443b79da0a 100644
--- a/packages/mui-material-next/src/Badge/Badge.test.tsx
+++ b/packages/mui-material-next/src/Badge/Badge.test.tsx
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import Badge, { badgeClasses as classes } from '@mui/material-next/Badge';
import { CssVarsProvider, extendTheme } from '@mui/material-next/styles';
+import describeConformance from '../../test/describeConformance';
function findBadgeRoot(container: HTMLElement) {
return container?.firstChild;
diff --git a/packages/mui-material-next/src/Button/Button.test.js b/packages/mui-material-next/src/Button/Button.test.js
index 7edd62846b1603..bf13fae97f51b5 100644
--- a/packages/mui-material-next/src/Button/Button.test.js
+++ b/packages/mui-material-next/src/Button/Button.test.js
@@ -1,10 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import { describeConformance, createRenderer, fireEvent, act } from '@mui-internal/test-utils';
+import { createRenderer, fireEvent, act } from '@mui-internal/test-utils';
import { camelCase } from 'lodash';
import Button, { buttonClasses as classes } from '@mui/material-next/Button';
import { CssVarsProvider, extendTheme } from '@mui/material-next/styles';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render, renderToString } = createRenderer();
diff --git a/packages/mui-material-next/src/ButtonBase/ButtonBase.test.tsx b/packages/mui-material-next/src/ButtonBase/ButtonBase.test.tsx
index 06cd29468b0e31..14bad4a702f6b9 100644
--- a/packages/mui-material-next/src/ButtonBase/ButtonBase.test.tsx
+++ b/packages/mui-material-next/src/ButtonBase/ButtonBase.test.tsx
@@ -4,7 +4,6 @@ import { expect } from 'chai';
import { spy, stub } from 'sinon';
import userEvent from '@testing-library/user-event';
import {
- describeConformance,
act,
createRenderer,
fireEvent,
@@ -19,6 +18,7 @@ import { CssVarsProvider, extendTheme } from '@mui/material-next/styles';
import ButtonBase, { buttonBaseClasses as classes } from '@mui/material-next/ButtonBase';
import { ButtonBaseActions } from './ButtonBase.types';
import { TouchRippleActions } from './TouchRipple.types';
+import describeConformance from '../../test/describeConformance';
// TODO v6: initialize @testing-library/user-event using userEvent.setup() instead of directly calling methods e.g. userEvent.click() for all related tests in this file
// currently the setup() method uses the ClipboardEvent constructor which is incompatible with our lowest supported version of iOS Safari (12.2) https://github.com/mui/material-ui/blob/master/.browserslistrc#L44
diff --git a/packages/mui-material-next/src/ButtonBase/TouchRipple.test.js b/packages/mui-material-next/src/ButtonBase/TouchRipple.test.js
index a056cea0f10d60..b47092a4efc36e 100644
--- a/packages/mui-material-next/src/ButtonBase/TouchRipple.test.js
+++ b/packages/mui-material-next/src/ButtonBase/TouchRipple.test.js
@@ -1,7 +1,8 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, act, createRenderer } from '@mui-internal/test-utils';
+import { act, createRenderer } from '@mui-internal/test-utils';
import TouchRipple, { DELAY_RIPPLE } from './TouchRipple';
+import describeConformance from '../../test/describeConformance';
const cb = () => {};
diff --git a/packages/mui-material-next/src/ButtonGroup/ButtonGroup.test.tsx b/packages/mui-material-next/src/ButtonGroup/ButtonGroup.test.tsx
index 18e5ed580236bb..27c6ae0a268273 100644
--- a/packages/mui-material-next/src/ButtonGroup/ButtonGroup.test.tsx
+++ b/packages/mui-material-next/src/ButtonGroup/ButtonGroup.test.tsx
@@ -1,10 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance, screen } from '@mui-internal/test-utils';
+import { createRenderer, screen } from '@mui-internal/test-utils';
import ButtonGroup, { buttonGroupClasses as classes } from '@mui/material-next/ButtonGroup';
import { CssVarsProvider, extendTheme } from '@mui/material-next/styles';
import Button, { buttonClasses } from '@mui/material-next/Button';
import ButtonGroupContext, { ButtonGroupContextType } from './ButtonGroupContext';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material-next/src/Chip/Chip.test.tsx b/packages/mui-material-next/src/Chip/Chip.test.tsx
index 6feffe64d03cca..1eaf75ea1b6bd0 100644
--- a/packages/mui-material-next/src/Chip/Chip.test.tsx
+++ b/packages/mui-material-next/src/Chip/Chip.test.tsx
@@ -3,7 +3,6 @@ import { expect } from 'chai';
import { spy, stub } from 'sinon';
import userEvent from '@testing-library/user-event';
import {
- describeConformance,
act,
createRenderer,
fireEvent,
@@ -19,6 +18,7 @@ import Chip, { chipClasses as classes } from '@mui/material-next/Chip';
import { CssVarsProvider, extendTheme } from '@mui/material-next/styles';
import CheckBox from '../internal/svg-icons/CheckBox';
import { ChipProps } from './Chip.types';
+import describeConformance from '../../test/describeConformance';
// TODO: remove after migrating SvgIcon to support Material Design 3 colors
const MaterialV5DefaultTheme = createTheme();
diff --git a/packages/mui-material-next/src/CircularProgress/CircularProgress.test.tsx b/packages/mui-material-next/src/CircularProgress/CircularProgress.test.tsx
index 64e82de41c6944..80d77d35675a24 100644
--- a/packages/mui-material-next/src/CircularProgress/CircularProgress.test.tsx
+++ b/packages/mui-material-next/src/CircularProgress/CircularProgress.test.tsx
@@ -1,10 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import CircularProgress, {
circularProgressClasses as classes,
} from '@mui/material-next/CircularProgress';
import { CssVarsProvider, extendTheme } from '../styles';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material-next/src/Divider/Divider.test.tsx b/packages/mui-material-next/src/Divider/Divider.test.tsx
index 62c00bcd151a0d..4622af20f6f404 100644
--- a/packages/mui-material-next/src/Divider/Divider.test.tsx
+++ b/packages/mui-material-next/src/Divider/Divider.test.tsx
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import Divider, { dividerClasses as classes } from '@mui/material-next/Divider';
import { CssVarsProvider, extendTheme } from '@mui/material-next/styles';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material-next/src/FilledInput/FilledInput.test.tsx b/packages/mui-material-next/src/FilledInput/FilledInput.test.tsx
index 35a13879c95e85..032dbf30375e1e 100644
--- a/packages/mui-material-next/src/FilledInput/FilledInput.test.tsx
+++ b/packages/mui-material-next/src/FilledInput/FilledInput.test.tsx
@@ -1,10 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
import { ClassNames } from '@emotion/react';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { CssVarsProvider, extendTheme } from '@mui/material-next/styles';
import FilledInput, { filledInputClasses as classes } from '@mui/material-next/FilledInput';
import InputBase from '@mui/material-next/InputBase';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material-next/src/FormControl/FormControl.test.tsx b/packages/mui-material-next/src/FormControl/FormControl.test.tsx
index c5db1b56d1c691..e764a8181c2e73 100644
--- a/packages/mui-material-next/src/FormControl/FormControl.test.tsx
+++ b/packages/mui-material-next/src/FormControl/FormControl.test.tsx
@@ -2,7 +2,7 @@ import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
import { ClassNames } from '@emotion/react';
-import { describeConformance, act, createRenderer, fireEvent } from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent } from '@mui-internal/test-utils';
import FormControl, { formControlClasses as classes } from '@mui/material-next/FormControl';
import FilledInput from '@mui/material-next/FilledInput';
import InputBase from '@mui/material-next/InputBase';
@@ -10,6 +10,7 @@ import { CssVarsProvider, extendTheme } from '@mui/material-next/styles';
// TODO v6: replace with material-next/Select
import Select from '@mui/material/Select';
import useFormControl from './useFormControl';
+import describeConformance from '../../test/describeConformance';
type TestFormControlledComponent = {
onFilled: () => {};
diff --git a/packages/mui-material-next/src/FormHelperText/FormHelperText.test.tsx b/packages/mui-material-next/src/FormHelperText/FormHelperText.test.tsx
index 12ba6920d79cc1..06830cec394053 100644
--- a/packages/mui-material-next/src/FormHelperText/FormHelperText.test.tsx
+++ b/packages/mui-material-next/src/FormHelperText/FormHelperText.test.tsx
@@ -1,12 +1,13 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import FormHelperText, {
formHelperTextClasses as classes,
FormHelperTextClasses,
} from '@mui/material-next/FormHelperText';
import FormControl from '@mui/material-next/FormControl';
import { CssVarsProvider, extendTheme } from '@mui/material-next/styles';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
let originalMatchmedia: typeof window.matchMedia;
diff --git a/packages/mui-material-next/src/FormLabel/FormLabel.test.tsx b/packages/mui-material-next/src/FormLabel/FormLabel.test.tsx
index 758c68d7a727d9..4abf9cdc3f5291 100644
--- a/packages/mui-material-next/src/FormLabel/FormLabel.test.tsx
+++ b/packages/mui-material-next/src/FormLabel/FormLabel.test.tsx
@@ -1,10 +1,11 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import { expect } from 'chai';
-import { describeConformance, act, createRenderer } from '@mui-internal/test-utils';
+import { act, createRenderer } from '@mui-internal/test-utils';
import FormLabel, { formLabelClasses as classes } from '@mui/material-next/FormLabel';
import FormControl, { useFormControl } from '@mui/material-next/FormControl';
import { CssVarsProvider, extendTheme } from '@mui/material-next/styles';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
let originalMatchmedia: typeof window.matchMedia;
diff --git a/packages/mui-material-next/src/IconButton/IconButton.test.js b/packages/mui-material-next/src/IconButton/IconButton.test.js
index b436cfaab61374..bb8ea99d596bfc 100644
--- a/packages/mui-material-next/src/IconButton/IconButton.test.js
+++ b/packages/mui-material-next/src/IconButton/IconButton.test.js
@@ -1,13 +1,14 @@
import * as React from 'react';
import { expect } from 'chai';
import PropTypes from 'prop-types';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { unstable_capitalize as capitalize } from '@mui/utils';
import Icon from '@mui/material/Icon';
import { ThemeProvider, createTheme } from '@mui/material/styles';
import ButtonBase from '@mui/material/ButtonBase';
import { iconButtonClasses as classes } from '@mui/material/IconButton';
import IconButton from '.';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material-next/src/InputAdornment/InputAdornment.test.js b/packages/mui-material-next/src/InputAdornment/InputAdornment.test.js
index 8cb9c32096e4b6..0b0ddd480fd0eb 100644
--- a/packages/mui-material-next/src/InputAdornment/InputAdornment.test.js
+++ b/packages/mui-material-next/src/InputAdornment/InputAdornment.test.js
@@ -1,15 +1,12 @@
import * as React from 'react';
import { expect } from 'chai';
-import {
- createRenderer,
- describeConformance,
- strictModeDoubleLoggingSuppressed,
-} from '@mui-internal/test-utils';
+import { createRenderer, strictModeDoubleLoggingSuppressed } from '@mui-internal/test-utils';
import { typographyClasses } from '@mui/material/Typography';
import InputAdornment, { inputAdornmentClasses as classes } from '@mui/material/InputAdornment';
import TextField from '@mui/material/TextField';
import FormControl from '@mui/material/FormControl';
import Input from '@mui/material/Input';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material-next/src/InputBase/InputBase.test.tsx b/packages/mui-material-next/src/InputBase/InputBase.test.tsx
index 2b91efb5deb026..13bd511fdcc3e2 100644
--- a/packages/mui-material-next/src/InputBase/InputBase.test.tsx
+++ b/packages/mui-material-next/src/InputBase/InputBase.test.tsx
@@ -2,13 +2,7 @@ import * as React from 'react';
import PropTypes from 'prop-types';
import { expect } from 'chai';
import { spy } from 'sinon';
-import {
- describeConformance,
- act,
- createRenderer,
- fireEvent,
- screen,
-} from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent, screen } from '@mui-internal/test-utils';
import FormControl, { useFormControl } from '@mui/material-next/FormControl';
// TODO v6: replace with material-next/InputAdornment
import InputAdornment from '@mui/material/InputAdornment';
@@ -23,6 +17,7 @@ import {
InputBaseOwnerState,
InputBaseProps,
} from './InputBase.types';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material-next/src/InputLabel/InputLabel.test.tsx b/packages/mui-material-next/src/InputLabel/InputLabel.test.tsx
index eff9e12673f539..f507dc6de95c42 100644
--- a/packages/mui-material-next/src/InputLabel/InputLabel.test.tsx
+++ b/packages/mui-material-next/src/InputLabel/InputLabel.test.tsx
@@ -1,13 +1,14 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import { expect } from 'chai';
-import { describeConformance, act, createRenderer } from '@mui-internal/test-utils';
+import { act, createRenderer } from '@mui-internal/test-utils';
import { ClassNames } from '@emotion/react';
import { CssVarsProvider, extendTheme } from '@mui/material-next/styles';
import FormControl from '@mui/material-next/FormControl';
import FilledInput from '@mui/material-next/FilledInput';
import FormLabel from '@mui/material-next/FormLabel';
import InputLabel, { inputLabelClasses as classes } from '@mui/material-next/InputLabel';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
let originalMatchmedia: typeof window.matchMedia;
diff --git a/packages/mui-material-next/src/LinearProgress/LinearProgress.test.tsx b/packages/mui-material-next/src/LinearProgress/LinearProgress.test.tsx
index 7e460cdab60f84..65044f08556cf4 100644
--- a/packages/mui-material-next/src/LinearProgress/LinearProgress.test.tsx
+++ b/packages/mui-material-next/src/LinearProgress/LinearProgress.test.tsx
@@ -3,7 +3,6 @@ import { expect } from 'chai';
import {
createRenderer,
screen,
- describeConformance,
strictModeDoubleLoggingSuppressed,
MuiRenderResult,
} from '@mui-internal/test-utils';
@@ -11,6 +10,7 @@ import LinearProgress, {
linearProgressClasses as classes,
} from '@mui/material-next/LinearProgress';
import { CssVarsProvider, extendTheme } from '../styles';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material-next/src/List/List.test.js b/packages/mui-material-next/src/List/List.test.js
index 3ccdf10b4f1c35..bd5e5843f1e2b6 100644
--- a/packages/mui-material-next/src/List/List.test.js
+++ b/packages/mui-material-next/src/List/List.test.js
@@ -1,9 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import ListSubheader, { listSubheaderClasses } from '@mui/material-next/ListSubheader';
import ListItem, { listItemClasses } from '@mui/material-next/ListItem';
import List, { listClasses as classes } from '@mui/material-next/List';
+import describeConformance from '../../test/describeConformance';
describe('
', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material-next/src/ListItem/ListItem.test.js b/packages/mui-material-next/src/ListItem/ListItem.test.js
index 1768768e0af451..abe5fb73890ecb 100644
--- a/packages/mui-material-next/src/ListItem/ListItem.test.js
+++ b/packages/mui-material-next/src/ListItem/ListItem.test.js
@@ -1,18 +1,13 @@
import * as React from 'react';
import { expect } from 'chai';
import PropTypes from 'prop-types';
-import {
- describeConformance,
- act,
- createRenderer,
- fireEvent,
- queries,
-} from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent, queries } from '@mui-internal/test-utils';
import { ThemeProvider, createTheme } from '@mui/material/styles';
import ListItemText from '@mui/material-next/ListItemText';
import ListItemSecondaryAction from '@mui/material-next/ListItemSecondaryAction';
import ListItem, { listItemClasses as classes } from '@mui/material-next/ListItem';
import ListContext from '../List/ListContext';
+import describeConformance from '../../test/describeConformance';
const NoContent = React.forwardRef(() => {
return null;
diff --git a/packages/mui-material-next/src/ListItemAvatar/ListItemAvatar.test.js b/packages/mui-material-next/src/ListItemAvatar/ListItemAvatar.test.js
index 41e35f7bf095e4..605fd1128c3587 100644
--- a/packages/mui-material-next/src/ListItemAvatar/ListItemAvatar.test.js
+++ b/packages/mui-material-next/src/ListItemAvatar/ListItemAvatar.test.js
@@ -1,8 +1,9 @@
import * as React from 'react';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import ListItemAvatar, {
listItemAvatarClasses as classes,
} from '@mui/material-next/ListItemAvatar';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material-next/src/ListItemButton/ListItemButton.test.js b/packages/mui-material-next/src/ListItemButton/ListItemButton.test.js
index c415b57b15261c..5d317f01f10270 100644
--- a/packages/mui-material-next/src/ListItemButton/ListItemButton.test.js
+++ b/packages/mui-material-next/src/ListItemButton/ListItemButton.test.js
@@ -1,12 +1,13 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, act, createRenderer, fireEvent } from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent } from '@mui-internal/test-utils';
import ListItemButton, {
listItemButtonClasses as classes,
} from '@mui/material-next/ListItemButton';
import ButtonBase from '@mui/material-next/ButtonBase';
import { ThemeProvider, createTheme } from '@mui/material/styles';
import ListContext from '../List/ListContext';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material-next/src/ListItemIcon/ListItemIcon.test.js b/packages/mui-material-next/src/ListItemIcon/ListItemIcon.test.js
index 3d92b79a00a8a3..41106f2aa645f4 100644
--- a/packages/mui-material-next/src/ListItemIcon/ListItemIcon.test.js
+++ b/packages/mui-material-next/src/ListItemIcon/ListItemIcon.test.js
@@ -1,6 +1,7 @@
import * as React from 'react';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import ListItemIcon, { listItemIconClasses as classes } from '@mui/material-next/ListItemIcon';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material-next/src/ListItemSecondaryAction/ListItemSecondaryAction.test.js b/packages/mui-material-next/src/ListItemSecondaryAction/ListItemSecondaryAction.test.js
index 16b8b869eca9db..e98e603f109e5f 100644
--- a/packages/mui-material-next/src/ListItemSecondaryAction/ListItemSecondaryAction.test.js
+++ b/packages/mui-material-next/src/ListItemSecondaryAction/ListItemSecondaryAction.test.js
@@ -1,10 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import ListItem from '@mui/material-next/ListItem';
import ListItemSecondaryAction, {
listItemSecondaryActionClasses as classes,
} from '@mui/material-next/ListItemSecondaryAction';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material-next/src/ListItemText/ListItemText.test.js b/packages/mui-material-next/src/ListItemText/ListItemText.test.js
index 07885b31d31a3b..e102c87adae328 100644
--- a/packages/mui-material-next/src/ListItemText/ListItemText.test.js
+++ b/packages/mui-material-next/src/ListItemText/ListItemText.test.js
@@ -1,9 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
/* TODO: change @mui/material/Typography to @mui/material-next/Typography once Typograpghy is available in @mui/material-next */
import Typography, { typographyClasses } from '@mui/material/Typography';
import ListItemText, { listItemTextClasses as classes } from '@mui/material-next/ListItemText';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material-next/src/ListSubheader/ListSubheader.test.js b/packages/mui-material-next/src/ListSubheader/ListSubheader.test.js
index 4f14442348b091..6e3d4ebc774621 100644
--- a/packages/mui-material-next/src/ListSubheader/ListSubheader.test.js
+++ b/packages/mui-material-next/src/ListSubheader/ListSubheader.test.js
@@ -1,7 +1,8 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import ListSubheader, { listSubheaderClasses as classes } from '@mui/material-next/ListSubheader';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material-next/src/Menu/Menu.test.tsx b/packages/mui-material-next/src/Menu/Menu.test.tsx
index 5aa5a057c42c28..4ea9d4ec28e1af 100644
--- a/packages/mui-material-next/src/Menu/Menu.test.tsx
+++ b/packages/mui-material-next/src/Menu/Menu.test.tsx
@@ -5,7 +5,6 @@ import {
act,
createRenderer,
createMount,
- describeConformance,
screen,
fireEvent,
strictModeDoubleLoggingSuppressed,
@@ -17,6 +16,7 @@ import Menu, { menuClasses as classes, MenuProps } from '@mui/material-next/Menu
import Popover from '@mui/material/Popover';
import { extendTheme, CssVarsProvider } from '@mui/material-next/styles';
import { MenuPaper } from './Menu';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer({ clock: 'fake' });
diff --git a/packages/mui-material-next/src/MenuItem/MenuItem.test.tsx b/packages/mui-material-next/src/MenuItem/MenuItem.test.tsx
index 57bc37ec24dbda..c10c1751576a67 100644
--- a/packages/mui-material-next/src/MenuItem/MenuItem.test.tsx
+++ b/packages/mui-material-next/src/MenuItem/MenuItem.test.tsx
@@ -1,17 +1,12 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import {
- act,
- describeConformance,
- createRenderer,
- fireEvent,
- screen,
-} from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent, screen } from '@mui-internal/test-utils';
import { MenuProvider } from '@mui/base/useMenu';
import MenuItem, { menuItemClasses as classes } from '@mui/material-next/MenuItem';
import Menu from '@mui/material-next/Menu';
import ButtonBase from '@mui/material-next/ButtonBase';
+import describeConformance from '../../test/describeConformance';
const dummyGetItemState = () => ({
disabled: false,
diff --git a/packages/mui-material-next/src/Option/Option.test.tsx b/packages/mui-material-next/src/Option/Option.test.tsx
index 07edefb60d59eb..30db120b976d9d 100644
--- a/packages/mui-material-next/src/Option/Option.test.tsx
+++ b/packages/mui-material-next/src/Option/Option.test.tsx
@@ -1,17 +1,12 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import {
- act,
- describeConformance,
- createRenderer,
- fireEvent,
- screen,
-} from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent, screen } from '@mui-internal/test-utils';
import { MenuProvider } from '@mui/base/useMenu';
import Option, { optionClasses as classes } from '@mui/material-next/Option';
import Menu from '@mui/material-next/Menu';
import ButtonBase from '@mui/material-next/ButtonBase';
+import describeConformance from '../../test/describeConformance';
const dummyGetItemState = () => ({
disabled: false,
diff --git a/packages/mui-material-next/src/OutlinedInput/OutlinedInput.test.js b/packages/mui-material-next/src/OutlinedInput/OutlinedInput.test.js
index 870d01a78609d7..b45720d6055341 100644
--- a/packages/mui-material-next/src/OutlinedInput/OutlinedInput.test.js
+++ b/packages/mui-material-next/src/OutlinedInput/OutlinedInput.test.js
@@ -1,9 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { ThemeProvider, createTheme } from '@mui/material/styles';
import OutlinedInput, { outlinedInputClasses as classes } from '@mui/material/OutlinedInput';
import InputBase from '@mui/material/InputBase';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material-next/src/Select/Select.test.js b/packages/mui-material-next/src/Select/Select.test.js
index ee1a82a5147bf3..437ca7a1f23816 100644
--- a/packages/mui-material-next/src/Select/Select.test.js
+++ b/packages/mui-material-next/src/Select/Select.test.js
@@ -1,14 +1,7 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy, stub } from 'sinon';
-import {
- describeConformance,
- ErrorBoundary,
- act,
- createRenderer,
- fireEvent,
- screen,
-} from '@mui-internal/test-utils';
+import { ErrorBoundary, act, createRenderer, fireEvent, screen } from '@mui-internal/test-utils';
import { nativeSelectClasses } from '@mui/material/NativeSelect';
// TODO v6: replace with material-next's extendTheme and provider when implementing Material Design 3
import { createTheme, ThemeProvider } from '@mui/material/styles';
@@ -24,6 +17,7 @@ import InputLabel from '@mui/material/InputLabel';
import Divider from '@mui/material/Divider';
import Select from '@mui/material-next/Select';
import classes from './selectClasses';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { clock, render } = createRenderer({ clock: 'fake' });
diff --git a/packages/mui-material-next/src/Slider/Slider.test.js b/packages/mui-material-next/src/Slider/Slider.test.js
index da7dc8d96917b4..3ba62a672b0f13 100644
--- a/packages/mui-material-next/src/Slider/Slider.test.js
+++ b/packages/mui-material-next/src/Slider/Slider.test.js
@@ -2,16 +2,11 @@ import * as React from 'react';
import PropTypes from 'prop-types';
import { spy, stub } from 'sinon';
import { expect } from 'chai';
-import {
- describeConformance,
- act,
- createRenderer,
- fireEvent,
- screen,
-} from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent, screen } from '@mui-internal/test-utils';
import { Slider as BaseSlider } from '@mui/base/Slider';
import { CssVarsProvider, extendTheme } from '@mui/material-next/styles';
import Slider, { sliderClasses as classes } from '@mui/material-next/Slider';
+import describeConformance from '../../test/describeConformance';
function createTouches(touches) {
return {
diff --git a/packages/mui-material-next/src/Snackbar/Snackbar.test.js b/packages/mui-material-next/src/Snackbar/Snackbar.test.js
index 9dc3fafe426c6c..a8968db29b4bc4 100644
--- a/packages/mui-material-next/src/Snackbar/Snackbar.test.js
+++ b/packages/mui-material-next/src/Snackbar/Snackbar.test.js
@@ -1,9 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import { describeConformance, act, createRenderer, fireEvent } from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent } from '@mui-internal/test-utils';
import Snackbar, { snackbarClasses as classes } from '@mui/material-next/Snackbar';
import { ThemeProvider, createTheme } from '@mui/material/styles';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { clock, render: clientRender } = createRenderer({ clock: 'fake' });
diff --git a/packages/mui-material-next/src/SnackbarContent/SnackbarContent.test.js b/packages/mui-material-next/src/SnackbarContent/SnackbarContent.test.js
index a342e72fa08676..5a43c787ffa00e 100644
--- a/packages/mui-material-next/src/SnackbarContent/SnackbarContent.test.js
+++ b/packages/mui-material-next/src/SnackbarContent/SnackbarContent.test.js
@@ -1,10 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import Paper from '@mui/material/Paper';
import SnackbarContent, {
snackbarContentClasses as classes,
} from '@mui/material-next/SnackbarContent';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material-next/src/Switch/Switch.test.tsx b/packages/mui-material-next/src/Switch/Switch.test.tsx
index 7f6ede891ef45e..85cfa8c9cf8e9e 100644
--- a/packages/mui-material-next/src/Switch/Switch.test.tsx
+++ b/packages/mui-material-next/src/Switch/Switch.test.tsx
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, act, createRenderer, fireEvent } from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent } from '@mui-internal/test-utils';
import Switch, { switchClasses as classes } from '@mui/material-next/Switch';
import FormControl from '@mui/material/FormControl';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material-next/src/Tab/Tab.test.js b/packages/mui-material-next/src/Tab/Tab.test.js
index ac5fdb6e89c8e9..24f1ac4aba1620 100644
--- a/packages/mui-material-next/src/Tab/Tab.test.js
+++ b/packages/mui-material-next/src/Tab/Tab.test.js
@@ -3,7 +3,8 @@ import Tab, { tabClasses as classes } from '@mui/material/Tab';
import { expect } from 'chai';
import * as React from 'react';
import { spy } from 'sinon';
-import { act, createRenderer, describeConformance, fireEvent } from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent } from '@mui-internal/test-utils';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material-next/src/TabScrollButton/TabScrollButton.test.js b/packages/mui-material-next/src/TabScrollButton/TabScrollButton.test.js
index ee5440fc203fd8..20032aa756f97f 100644
--- a/packages/mui-material-next/src/TabScrollButton/TabScrollButton.test.js
+++ b/packages/mui-material-next/src/TabScrollButton/TabScrollButton.test.js
@@ -1,9 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import TabScrollButton, {
tabScrollButtonClasses as classes,
} from '@mui/material-next/TabScrollButton';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const defaultProps = {
diff --git a/packages/mui-material-next/src/TablePagination/TablePagination.test.js b/packages/mui-material-next/src/TablePagination/TablePagination.test.js
index 265b13954f51a6..d5faa7568d7bb4 100644
--- a/packages/mui-material-next/src/TablePagination/TablePagination.test.js
+++ b/packages/mui-material-next/src/TablePagination/TablePagination.test.js
@@ -2,13 +2,14 @@ import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
import PropTypes from 'prop-types';
-import { describeConformance, fireEvent, createRenderer } from '@mui-internal/test-utils';
+import { fireEvent, createRenderer } from '@mui-internal/test-utils';
import TableFooter from '@mui/material/TableFooter';
import TableCell from '@mui/material/TableCell';
import TableRow from '@mui/material/TableRow';
import TablePagination, {
tablePaginationClasses as classes,
} from '@mui/material-next/TablePagination';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const noop = () => {};
diff --git a/packages/mui-material-next/src/Tabs/Tabs.test.js b/packages/mui-material-next/src/Tabs/Tabs.test.js
index 085af0c5d1e9af..bb2a317cd9da8d 100644
--- a/packages/mui-material-next/src/Tabs/Tabs.test.js
+++ b/packages/mui-material-next/src/Tabs/Tabs.test.js
@@ -2,7 +2,6 @@ import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
import {
- describeConformance,
act,
createRenderer,
fireEvent,
@@ -13,6 +12,7 @@ import { createTheme, ThemeProvider } from '@mui/material/styles';
import { unstable_capitalize as capitalize } from '@mui/utils';
import Tab from '@mui/material-next/Tab';
import Tabs, { tabsClasses as classes } from '@mui/material-next/Tabs';
+import describeConformance from '../../test/describeConformance';
function findScrollButton(container, direction) {
return container.querySelector(`svg[data-testid="KeyboardArrow${capitalize(direction)}Icon"]`);
diff --git a/packages/mui-material-next/test/describeConformance.ts b/packages/mui-material-next/test/describeConformance.ts
new file mode 100644
index 00000000000000..633cf72e03ebbe
--- /dev/null
+++ b/packages/mui-material-next/test/describeConformance.ts
@@ -0,0 +1,20 @@
+import {
+ describeConformance as baseDescribeConformance,
+ ConformanceOptions,
+} from '@mui-internal/test-utils';
+import { ThemeProvider, createTheme } from '@mui/material/styles';
+
+export default function describeConformance(
+ minimalElement: React.ReactElement,
+ getOptions: () => ConformanceOptions,
+) {
+ function getOptionsWithDefaults() {
+ return {
+ ThemeProvider,
+ createTheme,
+ ...getOptions(),
+ };
+ }
+
+ return baseDescribeConformance(minimalElement, getOptionsWithDefaults);
+}
diff --git a/packages/mui-material/src/Accordion/Accordion.test.js b/packages/mui-material/src/Accordion/Accordion.test.js
index c577156ebfc0e5..fe06f0c0f07dd4 100644
--- a/packages/mui-material/src/Accordion/Accordion.test.js
+++ b/packages/mui-material/src/Accordion/Accordion.test.js
@@ -2,10 +2,11 @@ import * as React from 'react';
import PropTypes from 'prop-types';
import { expect } from 'chai';
import { spy } from 'sinon';
-import { describeConformance, createRenderer, fireEvent } from '@mui-internal/test-utils';
+import { createRenderer, fireEvent } from '@mui-internal/test-utils';
import Accordion, { accordionClasses as classes } from '@mui/material/Accordion';
import Paper from '@mui/material/Paper';
import AccordionSummary from '@mui/material/AccordionSummary';
+import describeConformance from '../../test/describeConformance';
function NoTransition(props) {
const { children, in: inProp } = props;
diff --git a/packages/mui-material/src/AccordionActions/AccordionActions.test.js b/packages/mui-material/src/AccordionActions/AccordionActions.test.js
index 5efed13c7f46ec..7f70db48417548 100644
--- a/packages/mui-material/src/AccordionActions/AccordionActions.test.js
+++ b/packages/mui-material/src/AccordionActions/AccordionActions.test.js
@@ -1,10 +1,11 @@
import * as React from 'react';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import AccordionActions, {
accordionActionsClasses as classes,
} from '@mui/material/AccordionActions';
import Button from '@mui/material/Button';
import { expect } from 'chai';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/AccordionDetails/AccordionDetails.test.js b/packages/mui-material/src/AccordionDetails/AccordionDetails.test.js
index ced854a3fbbbcb..209d1a0a84e93c 100644
--- a/packages/mui-material/src/AccordionDetails/AccordionDetails.test.js
+++ b/packages/mui-material/src/AccordionDetails/AccordionDetails.test.js
@@ -1,9 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import AccordionDetails, {
accordionDetailsClasses as classes,
} from '@mui/material/AccordionDetails';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/AccordionSummary/AccordionSummary.test.js b/packages/mui-material/src/AccordionSummary/AccordionSummary.test.js
index 8db043bb46dada..8cab6b766b5aa1 100644
--- a/packages/mui-material/src/AccordionSummary/AccordionSummary.test.js
+++ b/packages/mui-material/src/AccordionSummary/AccordionSummary.test.js
@@ -1,12 +1,13 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import { describeConformance, act, createRenderer, fireEvent } from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent } from '@mui-internal/test-utils';
import AccordionSummary, {
accordionSummaryClasses as classes,
} from '@mui/material/AccordionSummary';
import Accordion from '@mui/material/Accordion';
import ButtonBase from '@mui/material/ButtonBase';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/Alert/Alert.test.js b/packages/mui-material/src/Alert/Alert.test.js
index 5ea81fc2eb384f..18cda2b0690235 100644
--- a/packages/mui-material/src/Alert/Alert.test.js
+++ b/packages/mui-material/src/Alert/Alert.test.js
@@ -1,11 +1,12 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance, screen } from '@mui-internal/test-utils';
+import { createRenderer, screen } from '@mui-internal/test-utils';
import { ThemeProvider, createTheme } from '@mui/material/styles';
import Alert, { alertClasses as classes } from '@mui/material/Alert';
import Paper, { paperClasses } from '@mui/material/Paper';
import { iconButtonClasses } from '@mui/material/IconButton';
import { svgIconClasses } from '@mui/material/SvgIcon';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/AlertTitle/AlertTitle.test.js b/packages/mui-material/src/AlertTitle/AlertTitle.test.js
index 986029a69be08e..96ec86a03a3c98 100644
--- a/packages/mui-material/src/AlertTitle/AlertTitle.test.js
+++ b/packages/mui-material/src/AlertTitle/AlertTitle.test.js
@@ -1,7 +1,8 @@
import * as React from 'react';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import AlertTitle, { alertTitleClasses as classes } from '@mui/material/AlertTitle';
import Typography from '@mui/material/Typography';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/AppBar/AppBar.test.js b/packages/mui-material/src/AppBar/AppBar.test.js
index 33f2c038013a45..2f21d3626e6ae8 100644
--- a/packages/mui-material/src/AppBar/AppBar.test.js
+++ b/packages/mui-material/src/AppBar/AppBar.test.js
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance, screen } from '@mui-internal/test-utils';
+import { createRenderer, screen } from '@mui-internal/test-utils';
import AppBar, { appBarClasses as classes } from '@mui/material/AppBar';
import Paper from '@mui/material/Paper';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/Autocomplete/Autocomplete.test.js b/packages/mui-material/src/Autocomplete/Autocomplete.test.js
index 01a51e929c8ba8..8ef9849c3a3ccb 100644
--- a/packages/mui-material/src/Autocomplete/Autocomplete.test.js
+++ b/packages/mui-material/src/Autocomplete/Autocomplete.test.js
@@ -2,7 +2,6 @@ import * as React from 'react';
import PropTypes from 'prop-types';
import { expect } from 'chai';
import {
- describeConformance,
act,
createRenderer,
fireEvent,
@@ -23,6 +22,7 @@ import { paperClasses } from '@mui/material/Paper';
import { iconButtonClasses } from '@mui/material/IconButton';
import InputAdornment from '@mui/material/InputAdornment';
import Tooltip from '@mui/material/Tooltip';
+import describeConformance from '../../test/describeConformance';
function checkHighlightIs(listbox, expected) {
const focused = listbox.querySelector(`.${classes.focused}`);
diff --git a/packages/mui-material/src/Avatar/Avatar.test.js b/packages/mui-material/src/Avatar/Avatar.test.js
index 75e07a8d447ddc..558b3646948b0c 100644
--- a/packages/mui-material/src/Avatar/Avatar.test.js
+++ b/packages/mui-material/src/Avatar/Avatar.test.js
@@ -1,10 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, fireEvent, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer, fireEvent } from '@mui-internal/test-utils';
import { spy } from 'sinon';
import Avatar, { avatarClasses as classes } from '@mui/material/Avatar';
import { createTheme, ThemeProvider } from '@mui/material/styles';
import CancelIcon from '../internal/svg-icons/Cancel';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/AvatarGroup/AvatarGroup.test.js b/packages/mui-material/src/AvatarGroup/AvatarGroup.test.js
index e755aea41a4d36..b646ad3fcf0f82 100644
--- a/packages/mui-material/src/AvatarGroup/AvatarGroup.test.js
+++ b/packages/mui-material/src/AvatarGroup/AvatarGroup.test.js
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import Avatar from '@mui/material/Avatar';
import AvatarGroup, { avatarGroupClasses as classes } from '@mui/material/AvatarGroup';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/Backdrop/Backdrop.test.js b/packages/mui-material/src/Backdrop/Backdrop.test.js
index 13a8f92f3f01d8..08e5d122eed6bc 100644
--- a/packages/mui-material/src/Backdrop/Backdrop.test.js
+++ b/packages/mui-material/src/Backdrop/Backdrop.test.js
@@ -1,9 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import Backdrop, { backdropClasses as classes } from '@mui/material/Backdrop';
import Fade from '@mui/material/Fade';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { clock, render } = createRenderer();
diff --git a/packages/mui-material/src/Badge/Badge.test.js b/packages/mui-material/src/Badge/Badge.test.js
index b76c788a843bf4..0a40111d95d5f9 100644
--- a/packages/mui-material/src/Badge/Badge.test.js
+++ b/packages/mui-material/src/Badge/Badge.test.js
@@ -1,7 +1,8 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import Badge, { badgeClasses as classes } from '@mui/material/Badge';
+import describeConformance from '../../test/describeConformance';
function findBadgeRoot(container) {
return container.firstChild;
diff --git a/packages/mui-material/src/BottomNavigation/BottomNavigation.test.js b/packages/mui-material/src/BottomNavigation/BottomNavigation.test.js
index 66fa1028947f76..3fccecb91d6089 100755
--- a/packages/mui-material/src/BottomNavigation/BottomNavigation.test.js
+++ b/packages/mui-material/src/BottomNavigation/BottomNavigation.test.js
@@ -1,7 +1,7 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import { describeConformance, createRenderer, fireEvent } from '@mui-internal/test-utils';
+import { createRenderer, fireEvent } from '@mui-internal/test-utils';
import BottomNavigation, {
bottomNavigationClasses as classes,
} from '@mui/material/BottomNavigation';
@@ -9,6 +9,7 @@ import BottomNavigationAction, {
bottomNavigationActionClasses as actionClasses,
} from '@mui/material/BottomNavigationAction';
import Icon from '@mui/material/Icon';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/BottomNavigationAction/BottomNavigationAction.test.js b/packages/mui-material/src/BottomNavigationAction/BottomNavigationAction.test.js
index 57604a6232b138..634e12a4e2078c 100644
--- a/packages/mui-material/src/BottomNavigationAction/BottomNavigationAction.test.js
+++ b/packages/mui-material/src/BottomNavigationAction/BottomNavigationAction.test.js
@@ -1,11 +1,12 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import { describeConformance, createRenderer, within } from '@mui-internal/test-utils';
+import { createRenderer, within } from '@mui-internal/test-utils';
import BottomNavigationAction, {
bottomNavigationActionClasses as classes,
} from '@mui/material/BottomNavigationAction';
import ButtonBase from '@mui/material/ButtonBase';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/Box/Box.test.js b/packages/mui-material/src/Box/Box.test.js
index b25089a467b311..0905f1bb6ebffd 100644
--- a/packages/mui-material/src/Box/Box.test.js
+++ b/packages/mui-material/src/Box/Box.test.js
@@ -1,10 +1,11 @@
/* eslint-disable material-ui/no-empty-box */
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { createTheme, ThemeProvider } from '@mui/material/styles';
import Box from '@mui/material/Box';
import { unstable_ClassNameGenerator as ClassNameGenerator } from '@mui/material/className';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/Breadcrumbs/Breadcrumbs.test.js b/packages/mui-material/src/Breadcrumbs/Breadcrumbs.test.js
index 468fbf4a608224..574323d99f4de0 100644
--- a/packages/mui-material/src/Breadcrumbs/Breadcrumbs.test.js
+++ b/packages/mui-material/src/Breadcrumbs/Breadcrumbs.test.js
@@ -2,7 +2,6 @@ import * as React from 'react';
import { expect } from 'chai';
import {
act,
- describeConformance,
createRenderer,
screen,
strictModeDoubleLoggingSuppressed,
@@ -10,6 +9,7 @@ import {
import Breadcrumbs, { breadcrumbsClasses as classes } from '@mui/material/Breadcrumbs';
import Typography from '@mui/material/Typography';
import FirstPageIcon from '../internal/svg-icons/FirstPage';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/Button/Button.test.js b/packages/mui-material/src/Button/Button.test.js
index 76381c29cec6f8..5833d66608afe6 100644
--- a/packages/mui-material/src/Button/Button.test.js
+++ b/packages/mui-material/src/Button/Button.test.js
@@ -1,16 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
-import {
- describeConformance,
- act,
- createRenderer,
- fireEvent,
- screen,
-} from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent, screen } from '@mui-internal/test-utils';
import { ClassNames } from '@emotion/react';
import { ThemeProvider, createTheme } from '@mui/material/styles';
import Button, { buttonClasses as classes } from '@mui/material/Button';
import ButtonBase, { touchRippleClasses } from '@mui/material/ButtonBase';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render, renderToString } = createRenderer();
diff --git a/packages/mui-material/src/ButtonBase/ButtonBase.test.js b/packages/mui-material/src/ButtonBase/ButtonBase.test.js
index 27d5b00c226cd1..35ddbff211a3d5 100644
--- a/packages/mui-material/src/ButtonBase/ButtonBase.test.js
+++ b/packages/mui-material/src/ButtonBase/ButtonBase.test.js
@@ -3,7 +3,6 @@ import * as React from 'react';
import { expect } from 'chai';
import { spy, stub } from 'sinon';
import {
- describeConformance,
act,
createRenderer,
fireEvent,
@@ -15,6 +14,7 @@ import {
import PropTypes from 'prop-types';
import { ThemeProvider, createTheme } from '@mui/material/styles';
import ButtonBase, { buttonBaseClasses as classes } from '@mui/material/ButtonBase';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/ButtonBase/TouchRipple.test.js b/packages/mui-material/src/ButtonBase/TouchRipple.test.js
index 3c32076db30668..ace2ae03183d51 100644
--- a/packages/mui-material/src/ButtonBase/TouchRipple.test.js
+++ b/packages/mui-material/src/ButtonBase/TouchRipple.test.js
@@ -1,7 +1,8 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, act, createRenderer } from '@mui-internal/test-utils';
+import { act, createRenderer } from '@mui-internal/test-utils';
import TouchRipple, { DELAY_RIPPLE } from './TouchRipple';
+import describeConformance from '../../test/describeConformance';
const cb = () => {};
diff --git a/packages/mui-material/src/ButtonGroup/ButtonGroup.test.js b/packages/mui-material/src/ButtonGroup/ButtonGroup.test.js
index 1e30bcdad74ff5..bfe0a0f0965543 100644
--- a/packages/mui-material/src/ButtonGroup/ButtonGroup.test.js
+++ b/packages/mui-material/src/ButtonGroup/ButtonGroup.test.js
@@ -1,10 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance, screen } from '@mui-internal/test-utils';
+import { createRenderer, screen } from '@mui-internal/test-utils';
import ButtonGroup, { buttonGroupClasses as classes } from '@mui/material/ButtonGroup';
import { ThemeProvider, createTheme } from '@mui/material/styles';
import Button, { buttonClasses } from '@mui/material/Button';
import ButtonGroupContext from './ButtonGroupContext';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/Card/Card.test.tsx b/packages/mui-material/src/Card/Card.test.tsx
index d6ee9fdcd3bea1..63d2fb12550e0b 100644
--- a/packages/mui-material/src/Card/Card.test.tsx
+++ b/packages/mui-material/src/Card/Card.test.tsx
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import Card, { cardClasses as classes } from '@mui/material/Card';
import Paper from '@mui/material/Paper';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/CardActionArea/CardActionArea.test.js b/packages/mui-material/src/CardActionArea/CardActionArea.test.js
index 1d878f74a37e9b..98ba28bb38fc45 100644
--- a/packages/mui-material/src/CardActionArea/CardActionArea.test.js
+++ b/packages/mui-material/src/CardActionArea/CardActionArea.test.js
@@ -1,7 +1,8 @@
import * as React from 'react';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import CardActionArea, { cardActionAreaClasses as classes } from '@mui/material/CardActionArea';
import ButtonBase from '@mui/material/ButtonBase';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/CardActions/CardActions.test.js b/packages/mui-material/src/CardActions/CardActions.test.js
index ddb46b1474280b..d74acef7f0d3d4 100644
--- a/packages/mui-material/src/CardActions/CardActions.test.js
+++ b/packages/mui-material/src/CardActions/CardActions.test.js
@@ -1,8 +1,9 @@
import * as React from 'react';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import CardActions, { cardActionsClasses as classes } from '@mui/material/CardActions';
import Button from '@mui/material/Button';
import { expect } from 'chai';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/CardContent/CardContent.test.js b/packages/mui-material/src/CardContent/CardContent.test.js
index 2ac705d5f40c49..81175c54cec088 100644
--- a/packages/mui-material/src/CardContent/CardContent.test.js
+++ b/packages/mui-material/src/CardContent/CardContent.test.js
@@ -1,6 +1,7 @@
import * as React from 'react';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import CardContent, { cardContentClasses as classes } from '@mui/material/CardContent';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/CardHeader/CardHeader.test.js b/packages/mui-material/src/CardHeader/CardHeader.test.js
index e78678b846cf81..c7dbb8f55d1290 100644
--- a/packages/mui-material/src/CardHeader/CardHeader.test.js
+++ b/packages/mui-material/src/CardHeader/CardHeader.test.js
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { typographyClasses } from '@mui/material/Typography';
import CardHeader, { cardHeaderClasses as classes } from '@mui/material/CardHeader';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/CardMedia/CardMedia.test.js b/packages/mui-material/src/CardMedia/CardMedia.test.js
index b538f30603ac37..64ff9777ce0e69 100644
--- a/packages/mui-material/src/CardMedia/CardMedia.test.js
+++ b/packages/mui-material/src/CardMedia/CardMedia.test.js
@@ -1,8 +1,9 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import { expect } from 'chai';
-import { createRenderer, describeConformance, screen } from '@mui-internal/test-utils';
+import { createRenderer, screen } from '@mui-internal/test-utils';
import CardMedia, { cardMediaClasses as classes } from '@mui/material/CardMedia';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/Checkbox/Checkbox.test.js b/packages/mui-material/src/Checkbox/Checkbox.test.js
index 3a8c9764e09af3..cabc759e240997 100644
--- a/packages/mui-material/src/Checkbox/Checkbox.test.js
+++ b/packages/mui-material/src/Checkbox/Checkbox.test.js
@@ -1,11 +1,12 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import { describeConformance, act, createRenderer } from '@mui-internal/test-utils';
+import { act, createRenderer } from '@mui-internal/test-utils';
import Checkbox, { checkboxClasses as classes } from '@mui/material/Checkbox';
import FormControl from '@mui/material/FormControl';
import ButtonBase from '@mui/material/ButtonBase';
import { ThemeProvider, createTheme } from '@mui/material/styles';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/Chip/Chip.test.js b/packages/mui-material/src/Chip/Chip.test.js
index 9c46654465cb14..9cf98ce15f5986 100644
--- a/packages/mui-material/src/Chip/Chip.test.js
+++ b/packages/mui-material/src/Chip/Chip.test.js
@@ -2,7 +2,6 @@ import * as React from 'react';
import { expect } from 'chai';
import { spy, stub } from 'sinon';
import {
- describeConformance,
act,
createRenderer,
fireEvent,
@@ -20,6 +19,7 @@ import {
} from '@mui/material/styles';
import CheckBox from '../internal/svg-icons/CheckBox';
import defaultTheme from '../styles/defaultTheme';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/CircularProgress/CircularProgress.test.js b/packages/mui-material/src/CircularProgress/CircularProgress.test.js
index bc21d0569eb17e..fcf98b530112c6 100644
--- a/packages/mui-material/src/CircularProgress/CircularProgress.test.js
+++ b/packages/mui-material/src/CircularProgress/CircularProgress.test.js
@@ -1,9 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import CircularProgress, {
circularProgressClasses as classes,
} from '@mui/material/CircularProgress';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/Collapse/Collapse.test.js b/packages/mui-material/src/Collapse/Collapse.test.js
index e5489956ea46f5..f5ff14984ff104 100644
--- a/packages/mui-material/src/Collapse/Collapse.test.js
+++ b/packages/mui-material/src/Collapse/Collapse.test.js
@@ -1,10 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy, stub } from 'sinon';
-import { act, createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { act, createRenderer } from '@mui-internal/test-utils';
import { Transition } from 'react-transition-group';
import { ThemeProvider, createTheme } from '@mui/material/styles';
import Collapse, { collapseClasses as classes } from '@mui/material/Collapse';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { clock, render } = createRenderer();
diff --git a/packages/mui-material/src/Container/Container.test.js b/packages/mui-material/src/Container/Container.test.js
index 1747d8ffb00248..3f37487e6a78b9 100644
--- a/packages/mui-material/src/Container/Container.test.js
+++ b/packages/mui-material/src/Container/Container.test.js
@@ -1,7 +1,8 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import Container, { containerClasses as classes } from '@mui/material/Container';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/Dialog/Dialog.test.js b/packages/mui-material/src/Dialog/Dialog.test.js
index 78b91f7f68f13e..7690dd907bf183 100644
--- a/packages/mui-material/src/Dialog/Dialog.test.js
+++ b/packages/mui-material/src/Dialog/Dialog.test.js
@@ -1,16 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import {
- describeConformance,
- act,
- createRenderer,
- fireEvent,
- screen,
-} from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent, screen } from '@mui-internal/test-utils';
import Modal from '@mui/material/Modal';
import Dialog, { dialogClasses as classes } from '@mui/material/Dialog';
import { ThemeProvider, createTheme } from '@mui/material/styles';
+import describeConformance from '../../test/describeConformance';
/**
* more comprehensive simulation of a user click (mousedown + click)
diff --git a/packages/mui-material/src/DialogActions/DialogActions.test.js b/packages/mui-material/src/DialogActions/DialogActions.test.js
index 7f1491fced86dc..546aa57422a9ca 100644
--- a/packages/mui-material/src/DialogActions/DialogActions.test.js
+++ b/packages/mui-material/src/DialogActions/DialogActions.test.js
@@ -1,8 +1,9 @@
import * as React from 'react';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import DialogActions, { dialogActionsClasses as classes } from '@mui/material/DialogActions';
import Button from '@mui/material/Button';
import { expect } from 'chai';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/DialogContent/DialogContent.test.js b/packages/mui-material/src/DialogContent/DialogContent.test.js
index ba7041fbbd59f7..521b9005a2c839 100644
--- a/packages/mui-material/src/DialogContent/DialogContent.test.js
+++ b/packages/mui-material/src/DialogContent/DialogContent.test.js
@@ -1,6 +1,7 @@
import * as React from 'react';
-import { describeConformance, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import DialogContent, { dialogContentClasses as classes } from '@mui/material/DialogContent';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/DialogContentText/DialogContentText.test.js b/packages/mui-material/src/DialogContentText/DialogContentText.test.js
index e83e70d20f9312..bbb60dd27bd069 100644
--- a/packages/mui-material/src/DialogContentText/DialogContentText.test.js
+++ b/packages/mui-material/src/DialogContentText/DialogContentText.test.js
@@ -1,9 +1,10 @@
import * as React from 'react';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import Typography from '@mui/material/Typography';
import DialogContentText, {
dialogContentTextClasses as classes,
} from '@mui/material/DialogContentText';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/DialogTitle/DialogTitle.test.js b/packages/mui-material/src/DialogTitle/DialogTitle.test.js
index 9ba57ca45486da..b4f7a96517fd5a 100644
--- a/packages/mui-material/src/DialogTitle/DialogTitle.test.js
+++ b/packages/mui-material/src/DialogTitle/DialogTitle.test.js
@@ -1,9 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import Typography from '@mui/material/Typography';
import DialogTitle, { dialogTitleClasses as classes } from '@mui/material/DialogTitle';
import Dialog from '@mui/material/Dialog';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/Divider/Divider.test.js b/packages/mui-material/src/Divider/Divider.test.js
index cdba5d9675f424..2dfd208d321d3e 100644
--- a/packages/mui-material/src/Divider/Divider.test.js
+++ b/packages/mui-material/src/Divider/Divider.test.js
@@ -1,7 +1,8 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import Divider, { dividerClasses as classes } from '@mui/material/Divider';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/Drawer/Drawer.test.js b/packages/mui-material/src/Drawer/Drawer.test.js
index f410f654e621cd..6a5c949eb02206 100644
--- a/packages/mui-material/src/Drawer/Drawer.test.js
+++ b/packages/mui-material/src/Drawer/Drawer.test.js
@@ -1,10 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import { createRenderer, describeConformance, screen } from '@mui-internal/test-utils';
+import { createRenderer, screen } from '@mui-internal/test-utils';
import { ThemeProvider, createTheme } from '@mui/material/styles';
import Drawer, { drawerClasses as classes } from '@mui/material/Drawer';
import { getAnchor, isHorizontal } from './Drawer';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { clock, render } = createRenderer({ clock: 'fake' });
diff --git a/packages/mui-material/src/Fab/Fab.test.js b/packages/mui-material/src/Fab/Fab.test.js
index df56852e626573..f902c6d6314f40 100644
--- a/packages/mui-material/src/Fab/Fab.test.js
+++ b/packages/mui-material/src/Fab/Fab.test.js
@@ -1,9 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, createRenderer, act, fireEvent } from '@mui-internal/test-utils';
+import { createRenderer, act, fireEvent } from '@mui-internal/test-utils';
import Fab, { fabClasses as classes } from '@mui/material/Fab';
import ButtonBase, { touchRippleClasses } from '@mui/material/ButtonBase';
import Icon from '@mui/material/Icon';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render, renderToString } = createRenderer();
diff --git a/packages/mui-material/src/Fade/Fade.test.js b/packages/mui-material/src/Fade/Fade.test.js
index a4861623add6e1..14b68f38e02560 100644
--- a/packages/mui-material/src/Fade/Fade.test.js
+++ b/packages/mui-material/src/Fade/Fade.test.js
@@ -1,10 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { Transition } from 'react-transition-group';
import Fade from '@mui/material/Fade';
import { ThemeProvider, createTheme } from '@mui/material/styles';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { clock, render } = createRenderer();
diff --git a/packages/mui-material/src/FilledInput/FilledInput.test.js b/packages/mui-material/src/FilledInput/FilledInput.test.js
index cb79f65cbb5af3..ad2bd3f0b01416 100644
--- a/packages/mui-material/src/FilledInput/FilledInput.test.js
+++ b/packages/mui-material/src/FilledInput/FilledInput.test.js
@@ -1,9 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { styled } from '@mui/material/styles';
import FilledInput, { filledInputClasses as classes } from '@mui/material/FilledInput';
import InputBase from '@mui/material/InputBase';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/FormControl/FormControl.test.js b/packages/mui-material/src/FormControl/FormControl.test.js
index 1e905a6e098884..f6ac1fab86f142 100644
--- a/packages/mui-material/src/FormControl/FormControl.test.js
+++ b/packages/mui-material/src/FormControl/FormControl.test.js
@@ -1,11 +1,12 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import { describeConformance, act, createRenderer } from '@mui-internal/test-utils';
+import { act, createRenderer } from '@mui-internal/test-utils';
import FormControl, { formControlClasses as classes } from '@mui/material/FormControl';
import Input from '@mui/material/Input';
import Select from '@mui/material/Select';
import useFormControl from './useFormControl';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/FormControlLabel/FormControlLabel.test.js b/packages/mui-material/src/FormControlLabel/FormControlLabel.test.js
index 54711bbc7544d5..264da04d0cc1a2 100644
--- a/packages/mui-material/src/FormControlLabel/FormControlLabel.test.js
+++ b/packages/mui-material/src/FormControlLabel/FormControlLabel.test.js
@@ -1,12 +1,13 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import FormControlLabel, {
formControlLabelClasses as classes,
} from '@mui/material/FormControlLabel';
import Checkbox from '@mui/material/Checkbox';
import FormControl from '@mui/material/FormControl';
import Typography from '@mui/material/Typography';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/FormGroup/FormGroup.test.js b/packages/mui-material/src/FormGroup/FormGroup.test.js
index 6750ca848e023e..e1f6b173f23ced 100644
--- a/packages/mui-material/src/FormGroup/FormGroup.test.js
+++ b/packages/mui-material/src/FormGroup/FormGroup.test.js
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import FormGroup, { formGroupClasses as classes } from '@mui/material/FormGroup';
import FormControl from '@mui/material/FormControl';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/FormHelperText/FormHelperText.test.js b/packages/mui-material/src/FormHelperText/FormHelperText.test.js
index 1d56b54bd16a31..c450910ed76121 100644
--- a/packages/mui-material/src/FormHelperText/FormHelperText.test.js
+++ b/packages/mui-material/src/FormHelperText/FormHelperText.test.js
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import FormHelperText, { formHelperTextClasses as classes } from '@mui/material/FormHelperText';
import FormControl from '@mui/material/FormControl';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/FormLabel/FormLabel.test.js b/packages/mui-material/src/FormLabel/FormLabel.test.js
index ca7dee45ad6604..412b5f6a59b433 100644
--- a/packages/mui-material/src/FormLabel/FormLabel.test.js
+++ b/packages/mui-material/src/FormLabel/FormLabel.test.js
@@ -1,11 +1,12 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import { expect } from 'chai';
-import { describeConformance, act, createRenderer } from '@mui-internal/test-utils';
+import { act, createRenderer } from '@mui-internal/test-utils';
import FormLabel, { formLabelClasses as classes } from '@mui/material/FormLabel';
import FormControl, { useFormControl } from '@mui/material/FormControl';
import { hexToRgb } from '@mui/material/styles';
import defaultTheme from '../styles/defaultTheme';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/Grid/Grid.test.js b/packages/mui-material/src/Grid/Grid.test.js
index 72d581a9812272..cb4039c0d0def9 100644
--- a/packages/mui-material/src/Grid/Grid.test.js
+++ b/packages/mui-material/src/Grid/Grid.test.js
@@ -1,10 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, createRenderer, screen } from '@mui-internal/test-utils';
+import { createRenderer, screen } from '@mui-internal/test-utils';
import { createTheme, ThemeProvider } from '@mui/material/styles';
import defaultTheme from '@mui/material/styles/defaultTheme';
import Grid, { gridClasses as classes } from '@mui/material/Grid';
import { generateGrid, generateRowGap, generateColumnGap, generateDirection } from './Grid';
+import describeConformance from '../../test/describeConformance';
describe('Material UI ', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/Grow/Grow.test.js b/packages/mui-material/src/Grow/Grow.test.js
index 6c156a3bda9c0d..5f0f6a49f75095 100644
--- a/packages/mui-material/src/Grow/Grow.test.js
+++ b/packages/mui-material/src/Grow/Grow.test.js
@@ -1,11 +1,12 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { Transition } from 'react-transition-group';
import { createTheme, ThemeProvider } from '@mui/material/styles';
import Grow from '@mui/material/Grow';
import useForkRef from '../utils/useForkRef';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { clock, render } = createRenderer();
diff --git a/packages/mui-material/src/Icon/Icon.test.js b/packages/mui-material/src/Icon/Icon.test.js
index c4acaff527e05e..79dd4f8e3c828a 100644
--- a/packages/mui-material/src/Icon/Icon.test.js
+++ b/packages/mui-material/src/Icon/Icon.test.js
@@ -1,7 +1,8 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import Icon, { iconClasses as classes } from '@mui/material/Icon';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/IconButton/IconButton.test.js b/packages/mui-material/src/IconButton/IconButton.test.js
index f282aed1da1b08..3b78d1d15d1e8e 100644
--- a/packages/mui-material/src/IconButton/IconButton.test.js
+++ b/packages/mui-material/src/IconButton/IconButton.test.js
@@ -1,12 +1,13 @@
import * as React from 'react';
import { expect } from 'chai';
import PropTypes from 'prop-types';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import capitalize from '@mui/utils/capitalize';
import { ThemeProvider, createTheme } from '@mui/material/styles';
import IconButton, { iconButtonClasses as classes } from '@mui/material/IconButton';
import Icon from '@mui/material/Icon';
import ButtonBase from '@mui/material/ButtonBase';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/ImageList/ImageList.test.js b/packages/mui-material/src/ImageList/ImageList.test.js
index d57841ecc61442..1a99d7ee7b6526 100644
--- a/packages/mui-material/src/ImageList/ImageList.test.js
+++ b/packages/mui-material/src/ImageList/ImageList.test.js
@@ -1,7 +1,8 @@
import { expect } from 'chai';
import * as React from 'react';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import ImageList, { imageListClasses as classes } from '@mui/material/ImageList';
+import describeConformance from '../../test/describeConformance';
const itemsData = [
{
diff --git a/packages/mui-material/src/ImageListItem/ImageListItem.test.js b/packages/mui-material/src/ImageListItem/ImageListItem.test.js
index 6580c8ded5cd2e..91c2acc21af112 100644
--- a/packages/mui-material/src/ImageListItem/ImageListItem.test.js
+++ b/packages/mui-material/src/ImageListItem/ImageListItem.test.js
@@ -1,8 +1,9 @@
import { expect } from 'chai';
import * as React from 'react';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import ImageList from '@mui/material/ImageList';
import ImageListItem, { imageListItemClasses as classes } from '@mui/material/ImageListItem';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/ImageListItemBar/ImageListItemBar.test.js b/packages/mui-material/src/ImageListItemBar/ImageListItemBar.test.js
index 64069aad1be4d6..b7ec8e63e07488 100644
--- a/packages/mui-material/src/ImageListItemBar/ImageListItemBar.test.js
+++ b/packages/mui-material/src/ImageListItemBar/ImageListItemBar.test.js
@@ -1,9 +1,10 @@
import { expect } from 'chai';
import * as React from 'react';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import ImageListItemBar, {
imageListItemBarClasses as classes,
} from '@mui/material/ImageListItemBar';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/Input/Input.test.js b/packages/mui-material/src/Input/Input.test.js
index 37166718c3245f..8c77acac086dba 100644
--- a/packages/mui-material/src/Input/Input.test.js
+++ b/packages/mui-material/src/Input/Input.test.js
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import InputBase from '@mui/material/InputBase';
import Input, { inputClasses as classes } from '@mui/material/Input';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/InputAdornment/InputAdornment.test.js b/packages/mui-material/src/InputAdornment/InputAdornment.test.js
index 8cb9c32096e4b6..0b0ddd480fd0eb 100644
--- a/packages/mui-material/src/InputAdornment/InputAdornment.test.js
+++ b/packages/mui-material/src/InputAdornment/InputAdornment.test.js
@@ -1,15 +1,12 @@
import * as React from 'react';
import { expect } from 'chai';
-import {
- createRenderer,
- describeConformance,
- strictModeDoubleLoggingSuppressed,
-} from '@mui-internal/test-utils';
+import { createRenderer, strictModeDoubleLoggingSuppressed } from '@mui-internal/test-utils';
import { typographyClasses } from '@mui/material/Typography';
import InputAdornment, { inputAdornmentClasses as classes } from '@mui/material/InputAdornment';
import TextField from '@mui/material/TextField';
import FormControl from '@mui/material/FormControl';
import Input from '@mui/material/Input';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/InputBase/InputBase.test.js b/packages/mui-material/src/InputBase/InputBase.test.js
index f890e3e7ccc41f..8bce7862d203f1 100644
--- a/packages/mui-material/src/InputBase/InputBase.test.js
+++ b/packages/mui-material/src/InputBase/InputBase.test.js
@@ -2,13 +2,7 @@ import * as React from 'react';
import PropTypes from 'prop-types';
import { expect } from 'chai';
import { spy } from 'sinon';
-import {
- describeConformance,
- act,
- createRenderer,
- fireEvent,
- screen,
-} from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent, screen } from '@mui-internal/test-utils';
import { ThemeProvider } from '@emotion/react';
import FormControl, { useFormControl } from '@mui/material/FormControl';
import InputAdornment from '@mui/material/InputAdornment';
@@ -16,6 +10,7 @@ import TextField from '@mui/material/TextField';
import Select from '@mui/material/Select';
import InputBase, { inputBaseClasses as classes } from '@mui/material/InputBase';
import { createTheme } from '@mui/material/styles';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/InputLabel/InputLabel.test.js b/packages/mui-material/src/InputLabel/InputLabel.test.js
index f2b2678faa73d9..e34ec0aa59bb26 100644
--- a/packages/mui-material/src/InputLabel/InputLabel.test.js
+++ b/packages/mui-material/src/InputLabel/InputLabel.test.js
@@ -1,13 +1,14 @@
import * as React from 'react';
import PropTypes from 'prop-types';
import { expect } from 'chai';
-import { describeConformance, act, createRenderer } from '@mui-internal/test-utils';
+import { act, createRenderer } from '@mui-internal/test-utils';
import { ClassNames } from '@emotion/react';
import { ThemeProvider, createTheme } from '@mui/material/styles';
import FormControl from '@mui/material/FormControl';
import Input from '@mui/material/Input';
import FormLabel from '@mui/material/FormLabel';
import InputLabel, { inputLabelClasses as classes } from '@mui/material/InputLabel';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/LinearProgress/LinearProgress.test.js b/packages/mui-material/src/LinearProgress/LinearProgress.test.js
index 711f01a7b60238..fbdd5f3300c4e4 100644
--- a/packages/mui-material/src/LinearProgress/LinearProgress.test.js
+++ b/packages/mui-material/src/LinearProgress/LinearProgress.test.js
@@ -3,10 +3,10 @@ import { expect } from 'chai';
import {
createRenderer,
screen,
- describeConformance,
strictModeDoubleLoggingSuppressed,
} from '@mui-internal/test-utils';
import LinearProgress, { linearProgressClasses as classes } from '@mui/material/LinearProgress';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/Link/Link.test.js b/packages/mui-material/src/Link/Link.test.js
index 30130a42049a98..ac117c44fa4ebe 100644
--- a/packages/mui-material/src/Link/Link.test.js
+++ b/packages/mui-material/src/Link/Link.test.js
@@ -1,9 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import { act, createRenderer, fireEvent, describeConformance } from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent } from '@mui-internal/test-utils';
import Link, { linkClasses as classes } from '@mui/material/Link';
import Typography, { typographyClasses } from '@mui/material/Typography';
+import describeConformance from '../../test/describeConformance';
function focusVisible(element) {
act(() => {
diff --git a/packages/mui-material/src/List/List.test.js b/packages/mui-material/src/List/List.test.js
index 403a0fcd10da75..b70b0280ab0db7 100644
--- a/packages/mui-material/src/List/List.test.js
+++ b/packages/mui-material/src/List/List.test.js
@@ -1,9 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import ListSubheader, { listSubheaderClasses } from '@mui/material/ListSubheader';
import ListItem, { listItemClasses } from '@mui/material/ListItem';
import List, { listClasses as classes } from '@mui/material/List';
+import describeConformance from '../../test/describeConformance';
describe('
', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/ListItem/ListItem.test.js b/packages/mui-material/src/ListItem/ListItem.test.js
index 1fb64bf733581b..aaf0e4bffd7ef8 100644
--- a/packages/mui-material/src/ListItem/ListItem.test.js
+++ b/packages/mui-material/src/ListItem/ListItem.test.js
@@ -1,18 +1,13 @@
import * as React from 'react';
import { expect } from 'chai';
import PropTypes from 'prop-types';
-import {
- describeConformance,
- act,
- createRenderer,
- fireEvent,
- queries,
-} from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent, queries } from '@mui-internal/test-utils';
import { ThemeProvider, createTheme } from '@mui/material/styles';
import ListItemText from '@mui/material/ListItemText';
import ListItemSecondaryAction from '@mui/material/ListItemSecondaryAction';
import ListItem, { listItemClasses as classes } from '@mui/material/ListItem';
import ListContext from '../List/ListContext';
+import describeConformance from '../../test/describeConformance';
const NoContent = React.forwardRef(() => {
return null;
diff --git a/packages/mui-material/src/ListItemAvatar/ListItemAvatar.test.js b/packages/mui-material/src/ListItemAvatar/ListItemAvatar.test.js
index ef933984736f5d..b0a0d2d64d6791 100644
--- a/packages/mui-material/src/ListItemAvatar/ListItemAvatar.test.js
+++ b/packages/mui-material/src/ListItemAvatar/ListItemAvatar.test.js
@@ -1,6 +1,7 @@
import * as React from 'react';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import ListItemAvatar, { listItemAvatarClasses as classes } from '@mui/material/ListItemAvatar';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/ListItemButton/ListItemButton.test.js b/packages/mui-material/src/ListItemButton/ListItemButton.test.js
index ba95529f50fb2a..8ac181e5f9383d 100644
--- a/packages/mui-material/src/ListItemButton/ListItemButton.test.js
+++ b/packages/mui-material/src/ListItemButton/ListItemButton.test.js
@@ -1,10 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, act, createRenderer, fireEvent } from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent } from '@mui-internal/test-utils';
import ListItemButton, { listItemButtonClasses as classes } from '@mui/material/ListItemButton';
import ButtonBase from '@mui/material/ButtonBase';
import { ThemeProvider, createTheme } from '@mui/material/styles';
import ListContext from '../List/ListContext';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/ListItemIcon/ListItemIcon.test.js b/packages/mui-material/src/ListItemIcon/ListItemIcon.test.js
index 541af1b1595457..329d7cf7b904da 100644
--- a/packages/mui-material/src/ListItemIcon/ListItemIcon.test.js
+++ b/packages/mui-material/src/ListItemIcon/ListItemIcon.test.js
@@ -1,6 +1,7 @@
import * as React from 'react';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import ListItemIcon, { listItemIconClasses as classes } from '@mui/material/ListItemIcon';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/ListItemSecondaryAction/ListItemSecondaryAction.test.js b/packages/mui-material/src/ListItemSecondaryAction/ListItemSecondaryAction.test.js
index 771082fd1883e5..ae4e487b252995 100644
--- a/packages/mui-material/src/ListItemSecondaryAction/ListItemSecondaryAction.test.js
+++ b/packages/mui-material/src/ListItemSecondaryAction/ListItemSecondaryAction.test.js
@@ -1,10 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import ListItem from '@mui/material/ListItem';
import ListItemSecondaryAction, {
listItemSecondaryActionClasses as classes,
} from '@mui/material/ListItemSecondaryAction';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/ListItemText/ListItemText.test.js b/packages/mui-material/src/ListItemText/ListItemText.test.js
index f38cda46ea7f62..af506159bf6dd6 100644
--- a/packages/mui-material/src/ListItemText/ListItemText.test.js
+++ b/packages/mui-material/src/ListItemText/ListItemText.test.js
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import Typography, { typographyClasses } from '@mui/material/Typography';
import ListItemText, { listItemTextClasses as classes } from '@mui/material/ListItemText';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/ListSubheader/ListSubheader.test.js b/packages/mui-material/src/ListSubheader/ListSubheader.test.js
index 9b0720a58d9599..b36c1add038963 100644
--- a/packages/mui-material/src/ListSubheader/ListSubheader.test.js
+++ b/packages/mui-material/src/ListSubheader/ListSubheader.test.js
@@ -1,7 +1,8 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import ListSubheader, { listSubheaderClasses as classes } from '@mui/material/ListSubheader';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/Menu/Menu.test.js b/packages/mui-material/src/Menu/Menu.test.js
index 0287c5059c6d15..1a882da0ac7b66 100644
--- a/packages/mui-material/src/Menu/Menu.test.js
+++ b/packages/mui-material/src/Menu/Menu.test.js
@@ -4,7 +4,6 @@ import { expect } from 'chai';
import {
createRenderer,
createMount,
- describeConformance,
screen,
fireEvent,
strictModeDoubleLoggingSuppressed,
@@ -13,6 +12,7 @@ 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';
describe('', () => {
const { render } = createRenderer({ clock: 'fake' });
diff --git a/packages/mui-material/src/MenuItem/MenuItem.test.js b/packages/mui-material/src/MenuItem/MenuItem.test.js
index b89f6b3ce692e3..cab913de295f06 100644
--- a/packages/mui-material/src/MenuItem/MenuItem.test.js
+++ b/packages/mui-material/src/MenuItem/MenuItem.test.js
@@ -1,16 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import {
- act,
- describeConformance,
- createRenderer,
- fireEvent,
- screen,
-} from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent, screen } from '@mui-internal/test-utils';
import MenuItem, { menuItemClasses as classes } from '@mui/material/MenuItem';
import ButtonBase from '@mui/material/ButtonBase';
import ListContext from '../List/ListContext';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/MenuList/MenuList.test.js b/packages/mui-material/src/MenuList/MenuList.test.js
index fb6b32e79ce029..4e72262e4ce9d8 100644
--- a/packages/mui-material/src/MenuList/MenuList.test.js
+++ b/packages/mui-material/src/MenuList/MenuList.test.js
@@ -1,12 +1,13 @@
import * as React from 'react';
import { expect } from 'chai';
import { stub } from 'sinon';
-import { describeConformance, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import Divider from '@mui/material/Divider';
import MenuList from '@mui/material/MenuList';
import MenuItem from '@mui/material/MenuItem';
import List from '@mui/material/List';
import getScrollbarSize from '../utils/getScrollbarSize';
+import describeConformance from '../../test/describeConformance';
function setStyleWidthForJsdomOrBrowser(style, width) {
style.width = '';
diff --git a/packages/mui-material/src/MobileStepper/MobileStepper.test.js b/packages/mui-material/src/MobileStepper/MobileStepper.test.js
index 46d60b1c76157b..c65edbc89144a7 100644
--- a/packages/mui-material/src/MobileStepper/MobileStepper.test.js
+++ b/packages/mui-material/src/MobileStepper/MobileStepper.test.js
@@ -1,11 +1,12 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance, fireEvent, screen } from '@mui-internal/test-utils';
+import { createRenderer, fireEvent, screen } from '@mui-internal/test-utils';
import Paper, { paperClasses } from '@mui/material/Paper';
import Button from '@mui/material/Button';
import MobileStepper, { mobileStepperClasses as classes } from '@mui/material/MobileStepper';
import KeyboardArrowRight from '../internal/svg-icons/KeyboardArrowRight';
import KeyboardArrowLeft from '../internal/svg-icons/KeyboardArrowLeft';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/Modal/Modal.test.js b/packages/mui-material/src/Modal/Modal.test.js
index 39ac7256c19033..8051a236fca9f2 100644
--- a/packages/mui-material/src/Modal/Modal.test.js
+++ b/packages/mui-material/src/Modal/Modal.test.js
@@ -3,17 +3,11 @@ import * as ReactDOM from 'react-dom';
import { expect } from 'chai';
import { spy } from 'sinon';
import PropTypes from 'prop-types';
-import {
- act,
- createRenderer,
- fireEvent,
- within,
- describeConformance,
- screen,
-} from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent, within, screen } from '@mui-internal/test-utils';
import { createTheme, ThemeProvider } from '@mui/material/styles';
import Fade from '@mui/material/Fade';
import Modal, { modalClasses as classes } from '@mui/material/Modal';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { clock, render } = createRenderer();
diff --git a/packages/mui-material/src/NativeSelect/NativeSelect.test.js b/packages/mui-material/src/NativeSelect/NativeSelect.test.js
index a61b8b84f29b9b..1f0118c2b13f05 100644
--- a/packages/mui-material/src/NativeSelect/NativeSelect.test.js
+++ b/packages/mui-material/src/NativeSelect/NativeSelect.test.js
@@ -1,9 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { createTheme, ThemeProvider, styled } from '@mui/material/styles';
import NativeSelect, { nativeSelectClasses as classes } from '@mui/material/NativeSelect';
import Input, { inputClasses } from '@mui/material/Input';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/NativeSelect/NativeSelectInput.test.js b/packages/mui-material/src/NativeSelect/NativeSelectInput.test.js
index 268a8e7d197bb9..8f0dbace379d31 100644
--- a/packages/mui-material/src/NativeSelect/NativeSelectInput.test.js
+++ b/packages/mui-material/src/NativeSelect/NativeSelectInput.test.js
@@ -1,10 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import { describeConformance, createRenderer, fireEvent } from '@mui-internal/test-utils';
+import { createRenderer, fireEvent } from '@mui-internal/test-utils';
import { createTheme, ThemeProvider } from '@mui/material/styles';
import NativeSelectInput from './NativeSelectInput';
import nativeSelectClasses from './nativeSelectClasses';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/OutlinedInput/OutlinedInput.test.js b/packages/mui-material/src/OutlinedInput/OutlinedInput.test.js
index 870d01a78609d7..b45720d6055341 100644
--- a/packages/mui-material/src/OutlinedInput/OutlinedInput.test.js
+++ b/packages/mui-material/src/OutlinedInput/OutlinedInput.test.js
@@ -1,9 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { ThemeProvider, createTheme } from '@mui/material/styles';
import OutlinedInput, { outlinedInputClasses as classes } from '@mui/material/OutlinedInput';
import InputBase from '@mui/material/InputBase';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/Pagination/Pagination.test.js b/packages/mui-material/src/Pagination/Pagination.test.js
index 5b755ec2991220..84ced518138f9a 100644
--- a/packages/mui-material/src/Pagination/Pagination.test.js
+++ b/packages/mui-material/src/Pagination/Pagination.test.js
@@ -1,10 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import { describeConformance, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { createTheme, ThemeProvider } from '@mui/material/styles';
import Pagination, { paginationClasses as classes } from '@mui/material/Pagination';
import { paginationItemClasses } from '@mui/material/PaginationItem';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/PaginationItem/PaginationItem.test.js b/packages/mui-material/src/PaginationItem/PaginationItem.test.js
index 8b772e8596589e..b0788d7d386f29 100644
--- a/packages/mui-material/src/PaginationItem/PaginationItem.test.js
+++ b/packages/mui-material/src/PaginationItem/PaginationItem.test.js
@@ -1,7 +1,8 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import PaginationItem, { paginationItemClasses as classes } from '@mui/material/PaginationItem';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/Paper/Paper.test.js b/packages/mui-material/src/Paper/Paper.test.js
index 46c1d427be721f..a0faade99f7af1 100644
--- a/packages/mui-material/src/Paper/Paper.test.js
+++ b/packages/mui-material/src/Paper/Paper.test.js
@@ -1,13 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
import PropTypes from 'prop-types';
-import {
- createRenderer,
- describeConformance,
- strictModeDoubleLoggingSuppressed,
-} from '@mui-internal/test-utils';
+import { createRenderer, strictModeDoubleLoggingSuppressed } from '@mui-internal/test-utils';
import Paper, { paperClasses as classes } from '@mui/material/Paper';
import { createTheme, ThemeProvider } from '@mui/material/styles';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/Popover/Popover.test.js b/packages/mui-material/src/Popover/Popover.test.js
index 3802fd4c228517..656e70e2b1919b 100644
--- a/packages/mui-material/src/Popover/Popover.test.js
+++ b/packages/mui-material/src/Popover/Popover.test.js
@@ -1,13 +1,7 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy, stub, match } from 'sinon';
-import {
- act,
- createMount,
- createRenderer,
- describeConformance,
- screen,
-} from '@mui-internal/test-utils';
+import { act, createMount, createRenderer, screen } from '@mui-internal/test-utils';
import PropTypes from 'prop-types';
import Grow from '@mui/material/Grow';
import Modal from '@mui/material/Modal';
@@ -17,6 +11,7 @@ import { ThemeProvider, createTheme } from '@mui/material/styles';
import { getOffsetLeft, getOffsetTop } from './Popover';
import useForkRef from '../utils/useForkRef';
import styled from '../styles/styled';
+import describeConformance from '../../test/describeConformance';
const FakePaper = React.forwardRef(function FakeWidthPaper(props, ref) {
const handleMocks = React.useCallback((paperInstance) => {
diff --git a/packages/mui-material/src/Popper/Popper.test.js b/packages/mui-material/src/Popper/Popper.test.js
index b8418f6859e8f2..cbe5f8db368e36 100644
--- a/packages/mui-material/src/Popper/Popper.test.js
+++ b/packages/mui-material/src/Popper/Popper.test.js
@@ -1,16 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
-import {
- describeConformance,
- act,
- createRenderer,
- fireEvent,
- screen,
-} from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent, screen } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/system';
import createTheme from '@mui/system/createTheme';
import Grow from '@mui/material/Grow';
import Popper from '@mui/material/Popper';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
let rtlTheme;
diff --git a/packages/mui-material/src/Radio/Radio.test.js b/packages/mui-material/src/Radio/Radio.test.js
index 36ddc5c2e6810d..392d6d52042552 100644
--- a/packages/mui-material/src/Radio/Radio.test.js
+++ b/packages/mui-material/src/Radio/Radio.test.js
@@ -1,10 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import Radio, { radioClasses as classes } from '@mui/material/Radio';
import FormControl from '@mui/material/FormControl';
import ButtonBase from '@mui/material/ButtonBase';
import { ThemeProvider, createTheme } from '@mui/material/styles';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/RadioGroup/RadioGroup.test.js b/packages/mui-material/src/RadioGroup/RadioGroup.test.js
index f0fb81a9869f50..9c35240513a67d 100644
--- a/packages/mui-material/src/RadioGroup/RadioGroup.test.js
+++ b/packages/mui-material/src/RadioGroup/RadioGroup.test.js
@@ -2,16 +2,11 @@ import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
import PropTypes from 'prop-types';
-import {
- describeConformance,
- act,
- createRenderer,
- fireEvent,
- screen,
-} from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent, screen } from '@mui-internal/test-utils';
import FormGroup from '@mui/material/FormGroup';
import Radio from '@mui/material/Radio';
import RadioGroup, { useRadioGroup } from '@mui/material/RadioGroup';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/Rating/Rating.test.js b/packages/mui-material/src/Rating/Rating.test.js
index bd6b0636705a05..ee1447cd07637d 100644
--- a/packages/mui-material/src/Rating/Rating.test.js
+++ b/packages/mui-material/src/Rating/Rating.test.js
@@ -1,15 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
import { stub, spy } from 'sinon';
-import {
- act,
- describeConformance,
- createRenderer,
- fireEvent,
- screen,
-} from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent, screen } from '@mui-internal/test-utils';
import Rating, { ratingClasses as classes } from '@mui/material/Rating';
import { createTheme, ThemeProvider } from '@mui/material/styles';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/ScopedCssBaseline/ScopedCssBaseline.test.js b/packages/mui-material/src/ScopedCssBaseline/ScopedCssBaseline.test.js
index 8fef049dda9d3b..2d472399b8e389 100644
--- a/packages/mui-material/src/ScopedCssBaseline/ScopedCssBaseline.test.js
+++ b/packages/mui-material/src/ScopedCssBaseline/ScopedCssBaseline.test.js
@@ -1,8 +1,9 @@
import * as React from 'react';
-import { describeConformance, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import ScopedCssBaseline, {
scopedCssBaselineClasses as classes,
} from '@mui/material/ScopedCssBaseline';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/Select/Select.test.js b/packages/mui-material/src/Select/Select.test.js
index c1a3225b43cd58..120e3027b413f5 100644
--- a/packages/mui-material/src/Select/Select.test.js
+++ b/packages/mui-material/src/Select/Select.test.js
@@ -1,14 +1,7 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy, stub } from 'sinon';
-import {
- describeConformance,
- ErrorBoundary,
- act,
- createRenderer,
- fireEvent,
- screen,
-} from '@mui-internal/test-utils';
+import { ErrorBoundary, act, createRenderer, fireEvent, screen } from '@mui-internal/test-utils';
import { createTheme, ThemeProvider } from '@mui/material/styles';
import MenuItem, { menuItemClasses } from '@mui/material/MenuItem';
import ListSubheader from '@mui/material/ListSubheader';
@@ -19,6 +12,7 @@ import Select from '@mui/material/Select';
import Divider from '@mui/material/Divider';
import classes from './selectClasses';
import { nativeSelectClasses } from '../NativeSelect';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { clock, render } = createRenderer({ clock: 'fake' });
diff --git a/packages/mui-material/src/Skeleton/Skeleton.test.js b/packages/mui-material/src/Skeleton/Skeleton.test.js
index 41bd8d67eec034..67cbd095ea909b 100644
--- a/packages/mui-material/src/Skeleton/Skeleton.test.js
+++ b/packages/mui-material/src/Skeleton/Skeleton.test.js
@@ -1,7 +1,8 @@
import { expect } from 'chai';
import * as React from 'react';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import Skeleton, { skeletonClasses as classes } from '@mui/material/Skeleton';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/Slide/Slide.test.js b/packages/mui-material/src/Slide/Slide.test.js
index 5f0a315ef0a3e6..d8c516943c4885 100644
--- a/packages/mui-material/src/Slide/Slide.test.js
+++ b/packages/mui-material/src/Slide/Slide.test.js
@@ -1,12 +1,13 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy, stub } from 'sinon';
-import { act, createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { act, createRenderer } from '@mui-internal/test-utils';
import { Transition } from 'react-transition-group';
import { createTheme, ThemeProvider } from '@mui/material/styles';
import Slide from '@mui/material/Slide';
import { setTranslateValue } from './Slide';
import { useForkRef } from '../utils';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { clock, render } = createRenderer();
diff --git a/packages/mui-material/src/Slider/Slider.test.js b/packages/mui-material/src/Slider/Slider.test.js
index 0684d6eac6502e..01367520897535 100644
--- a/packages/mui-material/src/Slider/Slider.test.js
+++ b/packages/mui-material/src/Slider/Slider.test.js
@@ -2,16 +2,11 @@ import * as React from 'react';
import PropTypes from 'prop-types';
import { spy, stub } from 'sinon';
import { expect } from 'chai';
-import {
- describeConformance,
- act,
- createRenderer,
- fireEvent,
- screen,
-} from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent, screen } from '@mui-internal/test-utils';
import { Slider as BaseSlider } from '@mui/base/Slider';
import { ThemeProvider, createTheme } from '@mui/material/styles';
import Slider, { sliderClasses as classes } from '@mui/material/Slider';
+import describeConformance from '../../test/describeConformance';
function createTouches(touches) {
return {
diff --git a/packages/mui-material/src/Snackbar/Snackbar.test.js b/packages/mui-material/src/Snackbar/Snackbar.test.js
index f7756616cfa040..3a3558ef53c13c 100644
--- a/packages/mui-material/src/Snackbar/Snackbar.test.js
+++ b/packages/mui-material/src/Snackbar/Snackbar.test.js
@@ -1,9 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import { describeConformance, act, createRenderer, fireEvent } from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent } from '@mui-internal/test-utils';
import Snackbar, { snackbarClasses as classes } from '@mui/material/Snackbar';
import { ThemeProvider, createTheme } from '@mui/material/styles';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { clock, render: clientRender } = createRenderer({ clock: 'fake' });
diff --git a/packages/mui-material/src/SnackbarContent/SnackbarContent.test.js b/packages/mui-material/src/SnackbarContent/SnackbarContent.test.js
index 0d1a0ac6886fce..7996611beadab1 100644
--- a/packages/mui-material/src/SnackbarContent/SnackbarContent.test.js
+++ b/packages/mui-material/src/SnackbarContent/SnackbarContent.test.js
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import Paper from '@mui/material/Paper';
import SnackbarContent, { snackbarContentClasses as classes } from '@mui/material/SnackbarContent';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/SpeedDial/SpeedDial.test.js b/packages/mui-material/src/SpeedDial/SpeedDial.test.js
index c3776fffaa8b87..93c45c42806d3f 100644
--- a/packages/mui-material/src/SpeedDial/SpeedDial.test.js
+++ b/packages/mui-material/src/SpeedDial/SpeedDial.test.js
@@ -7,13 +7,13 @@ import {
fireEvent,
fireDiscreteEvent,
screen,
- describeConformance,
} from '@mui-internal/test-utils';
import Icon from '@mui/material/Icon';
import SpeedDial, { speedDialClasses as classes } from '@mui/material/SpeedDial';
import SpeedDialAction from '@mui/material/SpeedDialAction';
import { tooltipClasses } from '@mui/material/Tooltip';
import { ThemeProvider, createTheme } from '@mui/material/styles';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { clock, render } = createRenderer({ clock: 'fake' });
diff --git a/packages/mui-material/src/SpeedDialAction/SpeedDialAction.test.js b/packages/mui-material/src/SpeedDialAction/SpeedDialAction.test.js
index 0a47c2da1e5db5..3cee98729c5fef 100644
--- a/packages/mui-material/src/SpeedDialAction/SpeedDialAction.test.js
+++ b/packages/mui-material/src/SpeedDialAction/SpeedDialAction.test.js
@@ -1,10 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, createRenderer, fireEvent } from '@mui-internal/test-utils';
+import { createRenderer, fireEvent } from '@mui-internal/test-utils';
import Icon from '@mui/material/Icon';
import Tooltip from '@mui/material/Tooltip';
import { fabClasses } from '@mui/material/Fab';
import SpeedDialAction, { speedDialActionClasses as classes } from '@mui/material/SpeedDialAction';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { clock, render } = createRenderer({ clock: 'fake' });
diff --git a/packages/mui-material/src/SpeedDialIcon/SpeedDialIcon.test.js b/packages/mui-material/src/SpeedDialIcon/SpeedDialIcon.test.js
index 1ebce54b98ceee..46ce7bdda052fb 100644
--- a/packages/mui-material/src/SpeedDialIcon/SpeedDialIcon.test.js
+++ b/packages/mui-material/src/SpeedDialIcon/SpeedDialIcon.test.js
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import Icon from '@mui/material/Icon';
import SpeedDialIcon, { speedDialIconClasses as classes } from '@mui/material/SpeedDialIcon';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/Stack/Stack.test.js b/packages/mui-material/src/Stack/Stack.test.js
index 5e7d58fb4ac7d5..b30b1972bb478e 100644
--- a/packages/mui-material/src/Stack/Stack.test.js
+++ b/packages/mui-material/src/Stack/Stack.test.js
@@ -1,6 +1,7 @@
import * as React from 'react';
-import { describeConformance, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import Stack, { stackClasses as classes } from '@mui/material/Stack';
+import describeConformance from '../../test/describeConformance';
// The main tests are in mui-system Stack folder
describe('', () => {
diff --git a/packages/mui-material/src/Step/Step.test.js b/packages/mui-material/src/Step/Step.test.js
index b502c0bc2e94d2..f6d9a1c3ad1861 100644
--- a/packages/mui-material/src/Step/Step.test.js
+++ b/packages/mui-material/src/Step/Step.test.js
@@ -1,10 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import Step, { stepClasses as classes } from '@mui/material/Step';
import Stepper from '@mui/material/Stepper';
import StepLabel, { stepLabelClasses } from '@mui/material/StepLabel';
import StepButton, { stepButtonClasses } from '@mui/material/StepButton';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/StepButton/StepButton.test.js b/packages/mui-material/src/StepButton/StepButton.test.js
index edd518ac105f4f..14dface8befd23 100644
--- a/packages/mui-material/src/StepButton/StepButton.test.js
+++ b/packages/mui-material/src/StepButton/StepButton.test.js
@@ -1,12 +1,13 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { fireEvent } from '@testing-library/dom';
import StepButton, { stepButtonClasses as classes } from '@mui/material/StepButton';
import Step from '@mui/material/Step';
import StepLabel, { stepLabelClasses } from '@mui/material/StepLabel';
import ButtonBase from '@mui/material/ButtonBase';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/StepConnector/StepConnector.test.js b/packages/mui-material/src/StepConnector/StepConnector.test.js
index 7407f76a23273d..8ac7a6ce9d2d5d 100644
--- a/packages/mui-material/src/StepConnector/StepConnector.test.js
+++ b/packages/mui-material/src/StepConnector/StepConnector.test.js
@@ -1,9 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import Stepper from '@mui/material/Stepper';
import Step from '@mui/material/Step';
import StepConnector, { stepConnectorClasses as classes } from '@mui/material/StepConnector';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/StepContent/StepContent.test.js b/packages/mui-material/src/StepContent/StepContent.test.js
index a6f8aa56581bbd..0033a0ff1ca6da 100644
--- a/packages/mui-material/src/StepContent/StepContent.test.js
+++ b/packages/mui-material/src/StepContent/StepContent.test.js
@@ -1,10 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { collapseClasses } from '@mui/material/Collapse';
import Stepper from '@mui/material/Stepper';
import Step from '@mui/material/Step';
import StepContent, { stepContentClasses as classes } from '@mui/material/StepContent';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/StepIcon/StepIcon.test.js b/packages/mui-material/src/StepIcon/StepIcon.test.js
index 759c001e330d24..bec0ddbec05ef1 100644
--- a/packages/mui-material/src/StepIcon/StepIcon.test.js
+++ b/packages/mui-material/src/StepIcon/StepIcon.test.js
@@ -1,7 +1,8 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import StepIcon, { stepIconClasses as classes } from '@mui/material/StepIcon';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/StepLabel/StepLabel.test.js b/packages/mui-material/src/StepLabel/StepLabel.test.js
index 799d2f1b1d2f9e..05c2959f51bdcb 100644
--- a/packages/mui-material/src/StepLabel/StepLabel.test.js
+++ b/packages/mui-material/src/StepLabel/StepLabel.test.js
@@ -1,11 +1,12 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import Typography from '@mui/material/Typography';
import Stepper from '@mui/material/Stepper';
import Step from '@mui/material/Step';
import { stepIconClasses as iconClasses } from '@mui/material/StepIcon';
import StepLabel, { stepLabelClasses as classes } from '@mui/material/StepLabel';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/Stepper/Stepper.test.tsx b/packages/mui-material/src/Stepper/Stepper.test.tsx
index d398d964d04ce7..94ac9689272123 100644
--- a/packages/mui-material/src/Stepper/Stepper.test.tsx
+++ b/packages/mui-material/src/Stepper/Stepper.test.tsx
@@ -1,11 +1,12 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import Step, { StepProps, stepClasses } from '@mui/material/Step';
import StepLabel from '@mui/material/StepLabel';
import StepConnector, { stepConnectorClasses } from '@mui/material/StepConnector';
import StepContent, { stepContentClasses } from '@mui/material/StepContent';
import Stepper, { stepperClasses as classes } from '@mui/material/Stepper';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/SvgIcon/SvgIcon.test.js b/packages/mui-material/src/SvgIcon/SvgIcon.test.js
index 9adff89d0b00bc..b7216da509c881 100644
--- a/packages/mui-material/src/SvgIcon/SvgIcon.test.js
+++ b/packages/mui-material/src/SvgIcon/SvgIcon.test.js
@@ -1,7 +1,8 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import SvgIcon, { svgIconClasses as classes } from '@mui/material/SvgIcon';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/SwipeableDrawer/SwipeableDrawer.test.js b/packages/mui-material/src/SwipeableDrawer/SwipeableDrawer.test.js
index e54de434b53d26..d11b9f01c4a29a 100644
--- a/packages/mui-material/src/SwipeableDrawer/SwipeableDrawer.test.js
+++ b/packages/mui-material/src/SwipeableDrawer/SwipeableDrawer.test.js
@@ -1,13 +1,14 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import { fireEvent, createRenderer, describeConformance, screen } from '@mui-internal/test-utils';
+import { fireEvent, createRenderer, screen } from '@mui-internal/test-utils';
import PropTypes, { checkPropTypes } from 'prop-types';
import SwipeableDrawer from '@mui/material/SwipeableDrawer';
import Drawer, { drawerClasses } from '@mui/material/Drawer';
import { backdropClasses } from '@mui/material/Backdrop';
import { ThemeProvider, createTheme } from '@mui/material/styles';
import useForkRef from '../utils/useForkRef';
+import describeConformance from '../../test/describeConformance';
const FakePaper = React.forwardRef(function FakeWidthPaper(props, ref) {
const { style, ...other } = props;
diff --git a/packages/mui-material/src/Switch/Switch.test.js b/packages/mui-material/src/Switch/Switch.test.js
index 6d34c4a10aa098..99f454cdb3006b 100644
--- a/packages/mui-material/src/Switch/Switch.test.js
+++ b/packages/mui-material/src/Switch/Switch.test.js
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, act, createRenderer, fireEvent } from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent } from '@mui-internal/test-utils';
import Switch, { switchClasses as classes } from '@mui/material/Switch';
import FormControl from '@mui/material/FormControl';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/Tab/Tab.test.js b/packages/mui-material/src/Tab/Tab.test.js
index 4aabc73afffd9c..fdad02650e0918 100644
--- a/packages/mui-material/src/Tab/Tab.test.js
+++ b/packages/mui-material/src/Tab/Tab.test.js
@@ -1,9 +1,10 @@
import { expect } from 'chai';
import * as React from 'react';
import { spy } from 'sinon';
-import { act, createRenderer, describeConformance, fireEvent } from '@mui-internal/test-utils';
+import { act, createRenderer, fireEvent } from '@mui-internal/test-utils';
import Tab, { tabClasses as classes } from '@mui/material/Tab';
import ButtonBase from '@mui/material/ButtonBase';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/TabScrollButton/TabScrollButton.test.js b/packages/mui-material/src/TabScrollButton/TabScrollButton.test.js
index 5051a974f28e24..9ffee7fd1309e9 100644
--- a/packages/mui-material/src/TabScrollButton/TabScrollButton.test.js
+++ b/packages/mui-material/src/TabScrollButton/TabScrollButton.test.js
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import TabScrollButton, { tabScrollButtonClasses as classes } from '@mui/material/TabScrollButton';
import { createSvgIcon } from '@mui/material/utils';
+import describeConformance from '../../test/describeConformance';
const ArrowBackIcon = createSvgIcon(, 'ArrowBack');
const ArrowForwardIcon = createSvgIcon(, 'ArrowForward');
diff --git a/packages/mui-material/src/Table/Table.test.js b/packages/mui-material/src/Table/Table.test.js
index eeda37bc0b84bc..20d3c37ed581c2 100644
--- a/packages/mui-material/src/Table/Table.test.js
+++ b/packages/mui-material/src/Table/Table.test.js
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import Table, { tableClasses as classes } from '@mui/material/Table';
import TableContext from './TableContext';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/TableBody/TableBody.test.js b/packages/mui-material/src/TableBody/TableBody.test.js
index 1cfeaf78f72d82..8faaa00569c13c 100644
--- a/packages/mui-material/src/TableBody/TableBody.test.js
+++ b/packages/mui-material/src/TableBody/TableBody.test.js
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import TableBody, { tableBodyClasses as classes } from '@mui/material/TableBody';
import Tablelvl2Context from '../Table/Tablelvl2Context';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/TableCell/TableCell.test.js b/packages/mui-material/src/TableCell/TableCell.test.js
index ed27e168fb2944..1af4df861fac99 100644
--- a/packages/mui-material/src/TableCell/TableCell.test.js
+++ b/packages/mui-material/src/TableCell/TableCell.test.js
@@ -1,10 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import TableCell, { tableCellClasses as classes } from '@mui/material/TableCell';
import TableHead from '@mui/material/TableHead';
import TableRow from '@mui/material/TableRow';
import Table from '@mui/material/Table';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/TableContainer/TableContainer.test.js b/packages/mui-material/src/TableContainer/TableContainer.test.js
index 4d28809934c7b8..e7a4a8b978e010 100644
--- a/packages/mui-material/src/TableContainer/TableContainer.test.js
+++ b/packages/mui-material/src/TableContainer/TableContainer.test.js
@@ -1,6 +1,7 @@
import * as React from 'react';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import TableContainer, { tableContainerClasses as classes } from '@mui/material/TableContainer';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/TableFooter/TableFooter.test.js b/packages/mui-material/src/TableFooter/TableFooter.test.js
index 7663e25c27f4df..b0ffcd15d9da50 100644
--- a/packages/mui-material/src/TableFooter/TableFooter.test.js
+++ b/packages/mui-material/src/TableFooter/TableFooter.test.js
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import TableFooter, { tableFooterClasses as classes } from '@mui/material/TableFooter';
import Tablelvl2Context from '../Table/Tablelvl2Context';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/TableHead/TableHead.test.js b/packages/mui-material/src/TableHead/TableHead.test.js
index 5a7203d1d8b08a..0d898aee753bc2 100644
--- a/packages/mui-material/src/TableHead/TableHead.test.js
+++ b/packages/mui-material/src/TableHead/TableHead.test.js
@@ -1,8 +1,9 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import TableHead, { tableHeadClasses as classes } from '@mui/material/TableHead';
import Tablelvl2Context from '../Table/Tablelvl2Context';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/TablePagination/TablePagination.test.js b/packages/mui-material/src/TablePagination/TablePagination.test.js
index a54a01d13f4d15..dd84205b454d2d 100644
--- a/packages/mui-material/src/TablePagination/TablePagination.test.js
+++ b/packages/mui-material/src/TablePagination/TablePagination.test.js
@@ -2,7 +2,7 @@ import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
import PropTypes from 'prop-types';
-import { describeConformance, fireEvent, createRenderer } from '@mui-internal/test-utils';
+import { fireEvent, createRenderer } from '@mui-internal/test-utils';
import TableFooter from '@mui/material/TableFooter';
import TableCell from '@mui/material/TableCell';
import TableRow from '@mui/material/TableRow';
@@ -13,6 +13,7 @@ import { filledInputClasses } from '@mui/material/FilledInput';
import IconButton, { iconButtonClasses } from '@mui/material/IconButton';
import { svgIconClasses } from '@mui/material/SvgIcon';
import { createSvgIcon } from '@mui/material/utils';
+import describeConformance from '../../test/describeConformance';
const ArrowBackIcon = createSvgIcon(, 'ArrowBack');
const ArrowForwardIcon = createSvgIcon(, 'ArrowForward');
diff --git a/packages/mui-material/src/TableRow/TableRow.test.js b/packages/mui-material/src/TableRow/TableRow.test.js
index 8d1adea00bf799..5dee6de9e0dc3e 100644
--- a/packages/mui-material/src/TableRow/TableRow.test.js
+++ b/packages/mui-material/src/TableRow/TableRow.test.js
@@ -1,7 +1,8 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import TableRow, { tableRowClasses as classes } from '@mui/material/TableRow';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/TableSortLabel/TableSortLabel.test.js b/packages/mui-material/src/TableSortLabel/TableSortLabel.test.js
index 90be63ef209d1d..21c751ee314a42 100644
--- a/packages/mui-material/src/TableSortLabel/TableSortLabel.test.js
+++ b/packages/mui-material/src/TableSortLabel/TableSortLabel.test.js
@@ -1,9 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import TableSortLabel, { tableSortLabelClasses as classes } from '@mui/material/TableSortLabel';
import ButtonBase from '@mui/material/ButtonBase';
import { createSvgIcon } from '@mui/material/utils';
+import describeConformance from '../../test/describeConformance';
const SortIcon = createSvgIcon(, 'Sort');
diff --git a/packages/mui-material/src/Tabs/Tabs.test.js b/packages/mui-material/src/Tabs/Tabs.test.js
index 6fe2d04b122c1b..bc3ff1e1cbb555 100644
--- a/packages/mui-material/src/Tabs/Tabs.test.js
+++ b/packages/mui-material/src/Tabs/Tabs.test.js
@@ -2,7 +2,6 @@ import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
import {
- describeConformance,
act,
createRenderer,
fireEvent,
@@ -16,6 +15,7 @@ import { svgIconClasses } from '@mui/material/SvgIcon';
import { createTheme, ThemeProvider } from '@mui/material/styles';
import { createSvgIcon } from '@mui/material/utils';
import capitalize from '../utils/capitalize';
+import describeConformance from '../../test/describeConformance';
const ArrowBackIcon = createSvgIcon(, 'ArrowBack');
const ArrowForwardIcon = createSvgIcon(, 'ArrowForward');
diff --git a/packages/mui-material/src/TextField/TextField.test.js b/packages/mui-material/src/TextField/TextField.test.js
index 4c28246272c122..ee4827320da6df 100644
--- a/packages/mui-material/src/TextField/TextField.test.js
+++ b/packages/mui-material/src/TextField/TextField.test.js
@@ -1,12 +1,13 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import { createRenderer, describeConformance, fireEvent } from '@mui-internal/test-utils';
+import { createRenderer, fireEvent } from '@mui-internal/test-utils';
import FormControl from '@mui/material/FormControl';
import { inputBaseClasses } from '@mui/material/InputBase';
import MenuItem from '@mui/material/MenuItem';
import { outlinedInputClasses } from '@mui/material/OutlinedInput';
import TextField, { textFieldClasses as classes } from '@mui/material/TextField';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/ToggleButton/ToggleButton.test.js b/packages/mui-material/src/ToggleButton/ToggleButton.test.js
index f0b11ae00b3842..a273fdd6c80678 100644
--- a/packages/mui-material/src/ToggleButton/ToggleButton.test.js
+++ b/packages/mui-material/src/ToggleButton/ToggleButton.test.js
@@ -1,9 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import ToggleButton, { toggleButtonClasses as classes } from '@mui/material/ToggleButton';
import ButtonBase from '@mui/material/ButtonBase';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render, renderToString } = createRenderer();
diff --git a/packages/mui-material/src/ToggleButtonGroup/ToggleButtonGroup.test.js b/packages/mui-material/src/ToggleButtonGroup/ToggleButtonGroup.test.js
index ff8d7c19461d55..142ffc45a3ef5e 100644
--- a/packages/mui-material/src/ToggleButtonGroup/ToggleButtonGroup.test.js
+++ b/packages/mui-material/src/ToggleButtonGroup/ToggleButtonGroup.test.js
@@ -1,12 +1,13 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import { describeConformance, createRenderer, screen } from '@mui-internal/test-utils';
+import { createRenderer, screen } from '@mui-internal/test-utils';
import ToggleButtonGroup, {
toggleButtonGroupClasses as classes,
} from '@mui/material/ToggleButtonGroup';
import ToggleButton, { toggleButtonClasses } from '@mui/material/ToggleButton';
import Tooltip from '@mui/material/Tooltip';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/Toolbar/Toolbar.test.js b/packages/mui-material/src/Toolbar/Toolbar.test.js
index 4c25e64e3ff726..18e81a43afdbcd 100644
--- a/packages/mui-material/src/Toolbar/Toolbar.test.js
+++ b/packages/mui-material/src/Toolbar/Toolbar.test.js
@@ -1,7 +1,8 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import Toolbar, { toolbarClasses as classes } from '@mui/material/Toolbar';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/Tooltip/Tooltip.test.js b/packages/mui-material/src/Tooltip/Tooltip.test.js
index 3449b13e53dd61..c47cfcc379085f 100644
--- a/packages/mui-material/src/Tooltip/Tooltip.test.js
+++ b/packages/mui-material/src/Tooltip/Tooltip.test.js
@@ -2,7 +2,6 @@ import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
import {
- describeConformance,
act,
createRenderer,
fireEvent,
@@ -14,6 +13,7 @@ import {
import { camelCase } from 'lodash/string';
import Tooltip, { tooltipClasses as classes } from '@mui/material/Tooltip';
import { testReset } from './Tooltip';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { clock, render } = createRenderer({ clock: 'fake' });
diff --git a/packages/mui-material/src/Typography/Typography.test.js b/packages/mui-material/src/Typography/Typography.test.js
index 99ac1bf1be7247..7dce4e414d9147 100644
--- a/packages/mui-material/src/Typography/Typography.test.js
+++ b/packages/mui-material/src/Typography/Typography.test.js
@@ -1,8 +1,9 @@
// @ts-check
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import Typography, { typographyClasses as classes } from '@mui/material/Typography';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/src/Unstable_Grid2/Grid2.test.js b/packages/mui-material/src/Unstable_Grid2/Grid2.test.js
index 034a45b4145ab4..026320553bdd9a 100644
--- a/packages/mui-material/src/Unstable_Grid2/Grid2.test.js
+++ b/packages/mui-material/src/Unstable_Grid2/Grid2.test.js
@@ -1,6 +1,7 @@
import * as React from 'react';
-import { describeConformance, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import Grid2, { grid2Classes as classes } from '@mui/material/Unstable_Grid2';
+import describeConformance from '../../test/describeConformance';
// The main tests are in mui-system Unstable_Grid folder
describe('', () => {
diff --git a/packages/mui-material/src/Zoom/Zoom.test.js b/packages/mui-material/src/Zoom/Zoom.test.js
index 78a1da94103b5c..c3d272f2dd0650 100644
--- a/packages/mui-material/src/Zoom/Zoom.test.js
+++ b/packages/mui-material/src/Zoom/Zoom.test.js
@@ -1,10 +1,11 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import { describeConformance, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { Transition } from 'react-transition-group';
import Zoom from '@mui/material/Zoom';
import { ThemeProvider, createTheme } from '@mui/material/styles';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { clock, render } = createRenderer();
diff --git a/packages/mui-material/src/internal/SwitchBase.test.js b/packages/mui-material/src/internal/SwitchBase.test.js
index a40e478f719c44..2a91f2a3a39085 100644
--- a/packages/mui-material/src/internal/SwitchBase.test.js
+++ b/packages/mui-material/src/internal/SwitchBase.test.js
@@ -1,11 +1,12 @@
import * as React from 'react';
import { expect } from 'chai';
import { spy } from 'sinon';
-import { describeConformance, act, createRenderer } from '@mui-internal/test-utils';
+import { act, createRenderer } from '@mui-internal/test-utils';
import SwitchBase from './SwitchBase';
import FormControl, { useFormControl } from '../FormControl';
import ButtonBase from '../ButtonBase';
import classes from './switchBaseClasses';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-material/test/describeConformance.ts b/packages/mui-material/test/describeConformance.ts
new file mode 100644
index 00000000000000..633cf72e03ebbe
--- /dev/null
+++ b/packages/mui-material/test/describeConformance.ts
@@ -0,0 +1,20 @@
+import {
+ describeConformance as baseDescribeConformance,
+ ConformanceOptions,
+} from '@mui-internal/test-utils';
+import { ThemeProvider, createTheme } from '@mui/material/styles';
+
+export default function describeConformance(
+ minimalElement: React.ReactElement,
+ getOptions: () => ConformanceOptions,
+) {
+ function getOptionsWithDefaults() {
+ return {
+ ThemeProvider,
+ createTheme,
+ ...getOptions(),
+ };
+ }
+
+ return baseDescribeConformance(minimalElement, getOptionsWithDefaults);
+}
diff --git a/packages/mui-system/src/Box/Box.test.js b/packages/mui-system/src/Box/Box.test.js
index 6e03f46a484c97..07874d991f1df8 100644
--- a/packages/mui-system/src/Box/Box.test.js
+++ b/packages/mui-system/src/Box/Box.test.js
@@ -1,10 +1,10 @@
/* eslint-disable material-ui/no-empty-box */
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { Box, ThemeProvider, boxClasses as classes } from '@mui/system';
-
import createTheme from '@mui/system/createTheme';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-system/src/Container/Container.test.js b/packages/mui-system/src/Container/Container.test.js
index 66b70b2dca95b3..50c6909983142c 100644
--- a/packages/mui-system/src/Container/Container.test.js
+++ b/packages/mui-system/src/Container/Container.test.js
@@ -1,7 +1,8 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, createRenderer } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import { Container, containerClasses as classes } from '@mui/system';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-system/src/Stack/Stack.test.js b/packages/mui-system/src/Stack/Stack.test.js
index 6da5266b210e2b..85649885796bb0 100644
--- a/packages/mui-system/src/Stack/Stack.test.js
+++ b/packages/mui-system/src/Stack/Stack.test.js
@@ -1,9 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
-import { createRenderer, describeConformance } from '@mui-internal/test-utils';
+import { createRenderer } from '@mui-internal/test-utils';
import Stack from '@mui/system/Stack';
import createTheme from '@mui/system/createTheme';
import { style } from './createStack';
+import describeConformance from '../../test/describeConformance';
describe('', () => {
const { render } = createRenderer();
diff --git a/packages/mui-system/src/Unstable_Grid/Grid.test.js b/packages/mui-system/src/Unstable_Grid/Grid.test.js
index 83308842e38ccd..7657b793721842 100644
--- a/packages/mui-system/src/Unstable_Grid/Grid.test.js
+++ b/packages/mui-system/src/Unstable_Grid/Grid.test.js
@@ -1,9 +1,10 @@
import * as React from 'react';
import { expect } from 'chai';
-import { describeConformance, createRenderer, screen } from '@mui-internal/test-utils';
+import { createRenderer, screen } from '@mui-internal/test-utils';
import { ThemeProvider } from '@mui/system';
import createTheme from '@mui/system/createTheme';
import Grid, { gridClasses as classes } from '@mui/system/Unstable_Grid';
+import describeConformance from '../../test/describeConformance';
describe('System ', () => {
const { render } = createRenderer();
diff --git a/packages/mui-system/test/describeConformance.ts b/packages/mui-system/test/describeConformance.ts
new file mode 100644
index 00000000000000..85ce541f937df4
--- /dev/null
+++ b/packages/mui-system/test/describeConformance.ts
@@ -0,0 +1,20 @@
+import {
+ describeConformance as baseDescribeConformance,
+ ConformanceOptions,
+} from '@mui-internal/test-utils';
+import { ThemeProvider, createTheme } from '@mui/system';
+
+export default function describeConformance(
+ minimalElement: React.ReactElement,
+ getOptions: () => ConformanceOptions,
+) {
+ function getOptionsWithDefaults() {
+ return {
+ ThemeProvider,
+ createTheme,
+ ...getOptions(),
+ };
+ }
+
+ return baseDescribeConformance(minimalElement, getOptionsWithDefaults);
+}
diff --git a/packages/test-utils/src/describeConformance.tsx b/packages/test-utils/src/describeConformance.tsx
index 9927231cb9ef8e..09297cd1ffad00 100644
--- a/packages/test-utils/src/describeConformance.tsx
+++ b/packages/test-utils/src/describeConformance.tsx
@@ -2,17 +2,16 @@
import * as React from 'react';
import { expect } from 'chai';
import { ReactWrapper } from 'enzyme';
-import {
- ThemeProvider as MDThemeProvider,
- createTheme as mdCreateTheme,
-} from '@mui/material/styles';
-import { unstable_capitalize as capitalize } from '@mui/utils';
import ReactTestRenderer from 'react-test-renderer';
import createMount from './createMount';
import createDescribe from './createDescribe';
import findOutermostIntrinsic from './findOutermostIntrinsic';
import { MuiRenderResult } from './createRenderer';
+function capitalize(string: string): string {
+ return string.charAt(0).toUpperCase() + string.slice(1);
+}
+
export interface SlotTestingOptions {
/**
* A custom React component to test if the receiving props are correct.
@@ -40,13 +39,14 @@ interface SlotTestOverride {
slotClassName?: string;
}
-export interface InputConformanceOptions {
+export interface ConformanceOptions {
muiName: string;
classes: { root: string };
refInstanceof: any;
after?: () => void;
inheritComponent?: React.ElementType;
render: (node: React.ReactElement) => MuiRenderResult;
+ mount?: (node: React.ReactElement) => ReactWrapper;
only?: Array;
skip?: Array;
testComponentsRootPropWith?: string;
@@ -65,10 +65,6 @@ export interface InputConformanceOptions {
createTheme?: (arg: any) => any;
}
-export interface ConformanceOptions extends InputConformanceOptions {
- mount: (node: React.ReactElement) => ReactWrapper;
-}
-
/**
* @param {object} node
* @returns
@@ -87,7 +83,12 @@ function testRef(
mount: ConformanceOptions['mount'],
onRef: (instance: unknown, wrapper: import('enzyme').ReactWrapper) => void = assertDOMNode,
) {
+ if (!mount) {
+ throwMissingPropError('mount');
+ }
+
const ref = React.createRef();
+
const wrapper = mount({React.cloneElement(element, { ref })});
onRef(ref.current, wrapper);
}
@@ -117,7 +118,7 @@ export function randomStringValue() {
return `s${Math.random().toString(36).slice(2)}`;
}
-function throwMissingPropError(field: string) {
+function throwMissingPropError(field: string): never {
throw new Error(`missing "${field}" in options
> describeConformance(element, () => options)
@@ -131,6 +132,10 @@ function throwMissingPropError(field: string) {
export function testClassName(element: React.ReactElement, getOptions: () => ConformanceOptions) {
it('applies the className to the root component', () => {
const { mount } = getOptions();
+ if (!mount) {
+ throwMissingPropError('mount');
+ }
+
const className = randomStringValue();
const wrapper = mount(React.cloneElement(element, { className }));
@@ -150,6 +155,9 @@ export function testComponentProp(
describe('prop: component', () => {
it('can render another root component with the `component` prop', () => {
const { mount, testComponentPropWith: component = 'em' } = getOptions();
+ if (!mount) {
+ throwMissingPropError('mount');
+ }
const wrapper = mount(React.cloneElement(element, { component }));
@@ -165,6 +173,10 @@ export function testPropsSpread(element: React.ReactElement, getOptions: () => C
it(`spreads props to the root component`, () => {
// type def in ConformanceOptions
const { inheritComponent, mount } = getOptions();
+ if (!mount) {
+ throwMissingPropError('mount');
+ }
+
if (inheritComponent === undefined) {
throw new TypeError(
'Unable to test props spread without `inheritComponent`. Either skip the test or pass a React element type.',
@@ -560,6 +572,9 @@ function testComponentsProp(element: React.ReactElement, getOptions: () => Confo
describe('prop components:', () => {
it('can render another root component with the `components` prop', () => {
const { mount, testComponentsRootPropWith: component = 'em' } = getOptions();
+ if (!mount) {
+ throwMissingPropError('mount');
+ }
const wrapper = mount(React.cloneElement(element, { components: { Root: component } }));
@@ -576,12 +591,7 @@ function testThemeDefaultProps(element: React.ReactElement, getOptions: () => Co
describe('theme default components:', () => {
it("respect theme's defaultProps", () => {
const testProp = 'data-id';
- const {
- muiName,
- render,
- ThemeProvider = MDThemeProvider,
- createTheme = mdCreateTheme,
- } = getOptions();
+ const { muiName, render, ThemeProvider, createTheme } = getOptions();
if (!muiName) {
throwMissingPropError('muiName');
@@ -591,6 +601,14 @@ function testThemeDefaultProps(element: React.ReactElement, getOptions: () => Co
throwMissingPropError('render');
}
+ if (!ThemeProvider) {
+ throwMissingPropError('ThemeProvider');
+ }
+
+ if (!createTheme) {
+ throwMissingPropError('createTheme');
+ }
+
const theme = createTheme({
components: {
[muiName]: {
@@ -621,13 +639,7 @@ function testThemeStyleOverrides(
if (/jsdom/.test(window.navigator.userAgent)) {
this.skip();
}
- const {
- muiName,
- testStateOverrides,
- render,
- ThemeProvider = MDThemeProvider,
- createTheme = mdCreateTheme,
- } = getOptions();
+ const { muiName, testStateOverrides, render, ThemeProvider, createTheme } = getOptions();
if (!testStateOverrides) {
return;
@@ -641,6 +653,14 @@ function testThemeStyleOverrides(
throwMissingPropError('render');
}
+ if (!ThemeProvider) {
+ throwMissingPropError('ThemeProvider');
+ }
+
+ if (!createTheme) {
+ throwMissingPropError('createTheme');
+ }
+
const testStyle = {
marginTop: '13px',
};
@@ -680,10 +700,18 @@ function testThemeStyleOverrides(
testDeepOverrides,
testRootOverrides = { slotName: 'root' },
render,
- ThemeProvider = MDThemeProvider,
- createTheme = mdCreateTheme,
+ ThemeProvider,
+ createTheme,
} = getOptions();
+ if (!ThemeProvider) {
+ throwMissingPropError('ThemeProvider');
+ }
+
+ if (!createTheme) {
+ throwMissingPropError('createTheme');
+ }
+
const testStyle = {
mixBlendMode: 'darken',
};
@@ -778,14 +806,16 @@ function testThemeStyleOverrides(
this.skip();
}
- const {
- muiName,
- classes,
- testStateOverrides,
- render,
- ThemeProvider = MDThemeProvider,
- createTheme = mdCreateTheme,
- } = getOptions();
+ const { muiName, classes, testStateOverrides, render, ThemeProvider, createTheme } =
+ getOptions();
+
+ if (!ThemeProvider) {
+ throwMissingPropError('ThemeProvider');
+ }
+
+ if (!createTheme) {
+ throwMissingPropError('createTheme');
+ }
const classKeys = Object.keys(classes);
@@ -854,13 +884,7 @@ function testThemeVariants(element: React.ReactElement, getOptions: () => Confor
this.skip();
}
- const {
- muiName,
- testVariantProps,
- render,
- ThemeProvider = MDThemeProvider,
- createTheme = mdCreateTheme,
- } = getOptions();
+ const { muiName, testVariantProps, render, ThemeProvider, createTheme } = getOptions();
if (!testVariantProps) {
throw new Error('missing testVariantProps');
@@ -874,6 +898,14 @@ function testThemeVariants(element: React.ReactElement, getOptions: () => Confor
throwMissingPropError('render');
}
+ if (!ThemeProvider) {
+ throwMissingPropError('ThemeProvider');
+ }
+
+ if (!createTheme) {
+ throwMissingPropError('createTheme');
+ }
+
const testStyle = {
mixBlendMode: 'darken',
};
@@ -907,13 +939,15 @@ function testThemeVariants(element: React.ReactElement, getOptions: () => Confor
this.skip();
}
- const {
- muiName,
- testCustomVariant,
- render,
- ThemeProvider = MDThemeProvider,
- createTheme = mdCreateTheme,
- } = getOptions();
+ const { muiName, testCustomVariant, render, ThemeProvider, createTheme } = getOptions();
+
+ if (!ThemeProvider) {
+ throwMissingPropError('ThemeProvider');
+ }
+
+ if (!createTheme) {
+ throwMissingPropError('createTheme');
+ }
if (!testCustomVariant) {
return;
@@ -966,7 +1000,7 @@ const fullSuite = {
*/
function describeConformance(
minimalElement: React.ReactElement,
- getOptions: () => InputConformanceOptions,
+ getOptions: () => ConformanceOptions,
) {
let originalMatchmedia: typeof window.matchMedia;
const storage: Record = {};
diff --git a/packages/test-utils/src/index.ts b/packages/test-utils/src/index.ts
index c09a82e27aca25..6f0e1527448056 100644
--- a/packages/test-utils/src/index.ts
+++ b/packages/test-utils/src/index.ts
@@ -2,7 +2,7 @@ import * as React from 'react';
export * from './components';
export { default as describeConformance } from './describeConformance';
-export { default as describeConformanceUnstyled } from './describeConformanceUnstyled';
+export * from './describeConformance';
export { default as createDescribe } from './createDescribe';
export * from './createRenderer';
export { default as createMount } from './createMount';