diff --git a/docs/src/modules/components/HighlightedCode.test.js b/docs/src/modules/components/HighlightedCode.test.js index 737a50cb584195..f369d9d726a307 100644 --- a/docs/src/modules/components/HighlightedCode.test.js +++ b/docs/src/modules/components/HighlightedCode.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import { ThemeProvider, createTheme } from '@mui/material/styles'; import { getDesignTokens } from 'docs/src/modules/brandingTheme'; import HighlightedCode from 'docs/src/modules/components/HighlightedCode'; diff --git a/packages/eslint-plugin-material-ui/src/rules/disallow-active-elements-as-key-event-target.test.js b/packages/eslint-plugin-material-ui/src/rules/disallow-active-elements-as-key-event-target.test.js index eb3e7a8ddead5d..d76ae53c57b0bd 100644 --- a/packages/eslint-plugin-material-ui/src/rules/disallow-active-elements-as-key-event-target.test.js +++ b/packages/eslint-plugin-material-ui/src/rules/disallow-active-elements-as-key-event-target.test.js @@ -7,13 +7,13 @@ const ruleTester = new eslint.RuleTester({ }); ruleTester.run('disallow-active-element-as-key-event-target', rule, { valid: [ - "import { fireEvent } from 'test/utils';\nfireEvent.keyDown(getByRole('button'), { key: ' ' })", - "import { fireEvent } from 'test/utils';\nfireEvent.keyDown(document.body, { key: 'Esc' })", - "import { fireEvent } from 'test/utils';\nfireEvent.keyUp(document.body, { key: 'Tab' })", + "import { fireEvent } from '@mui-internal/test-utilities';\nfireEvent.keyDown(getByRole('button'), { key: ' ' })", + "import { fireEvent } from '@mui-internal/test-utilities';\nfireEvent.keyDown(document.body, { key: 'Esc' })", + "import { fireEvent } from '@mui-internal/test-utilities';\nfireEvent.keyUp(document.body, { key: 'Tab' })", ], invalid: [ { - code: "import { fireEvent } from 'test/utils';\nfireEvent.keyUp(document.activeElement, { key: 'LeftArrow' })", + code: "import { fireEvent } from '@mui-internal/test-utilities';\nfireEvent.keyUp(document.activeElement, { key: 'LeftArrow' })", errors: [ { message: @@ -23,7 +23,7 @@ ruleTester.run('disallow-active-element-as-key-event-target', rule, { ], }, { - code: "import { fireEvent } from 'test/utils';\nfireEvent.keyDown(document.activeElement, { key: 'DownArrow' })", + code: "import { fireEvent } from '@mui-internal/test-utilities';\nfireEvent.keyDown(document.activeElement, { key: 'DownArrow' })", errors: [ { message: @@ -54,7 +54,7 @@ ruleTester.run('disallow-active-element-as-key-event-target', rule, { }, { // test non-null assertion operator - code: "import { fireEvent } from 'test/utils';\nfireEvent.keyUp(document.activeElement!, { key: 'LeftArrow' })", + code: "import { fireEvent } from '@mui-internal/test-utilities';\nfireEvent.keyUp(document.activeElement!, { key: 'LeftArrow' })", errors: [ { message: diff --git a/packages/mui-base/package.json b/packages/mui-base/package.json index 1236c2b3efce42..d16fe54fb366ca 100644 --- a/packages/mui-base/package.json +++ b/packages/mui-base/package.json @@ -51,6 +51,7 @@ }, "devDependencies": { "@mui/material": "^5.14.10", + "@mui-internal/test-utilities": "^1.0.0", "@testing-library/react": "^14.0.0", "@testing-library/user-event": "^14.4.3", "@types/chai": "^4.3.5", @@ -63,8 +64,7 @@ "lodash": "^4.17.21", "react": "^18.2.0", "react-dom": "^18.2.0", - "sinon": "^15.2.0", - "test": "^5.0.0" + "sinon": "^15.2.0" }, "peerDependencies": { "@types/react": "^17.0.0 || ^18.0.0", diff --git a/packages/mui-base/src/Badge/Badge.test.tsx b/packages/mui-base/src/Badge/Badge.test.tsx index e49cf7c4e487ca..1bd6a9cdb10051 100644 --- a/packages/mui-base/src/Badge/Badge.test.tsx +++ b/packages/mui-base/src/Badge/Badge.test.tsx @@ -1,5 +1,9 @@ import * as React from 'react'; -import { createRenderer, createMount, describeConformanceUnstyled } from 'test/utils'; +import { + createRenderer, + createMount, + describeConformanceUnstyled, +} from '@mui-internal/test-utilities'; import { Badge, badgeClasses as classes } from '@mui/base/Badge'; describe('', () => { diff --git a/packages/mui-base/src/Button/Button.test.tsx b/packages/mui-base/src/Button/Button.test.tsx index 38877a7f18c83b..6e813eaa57cd3b 100644 --- a/packages/mui-base/src/Button/Button.test.tsx +++ b/packages/mui-base/src/Button/Button.test.tsx @@ -5,7 +5,7 @@ import { createRenderer, describeConformanceUnstyled, fireEvent, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import { expect } from 'chai'; import { spy } from 'sinon'; import { Button, buttonClasses } from '@mui/base/Button'; diff --git a/packages/mui-base/src/ClickAwayListener/ClickAwayListener.test.js b/packages/mui-base/src/ClickAwayListener/ClickAwayListener.test.js index a72f3d0da0cc76..956cf47977a265 100644 --- a/packages/mui-base/src/ClickAwayListener/ClickAwayListener.test.js +++ b/packages/mui-base/src/ClickAwayListener/ClickAwayListener.test.js @@ -2,7 +2,13 @@ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { act, createRenderer, fireEvent, fireDiscreteEvent, screen } from 'test/utils'; +import { + act, + createRenderer, + fireEvent, + fireDiscreteEvent, + screen, +} from '@mui-internal/test-utilities'; import { Portal } from '@mui/base/Portal'; import { ClickAwayListener } from '@mui/base/ClickAwayListener'; diff --git a/packages/mui-base/src/Dropdown/Dropdown.test.tsx b/packages/mui-base/src/Dropdown/Dropdown.test.tsx index 1144a2290b1f46..c3451c027a8cb7 100644 --- a/packages/mui-base/src/Dropdown/Dropdown.test.tsx +++ b/packages/mui-base/src/Dropdown/Dropdown.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { act, createRenderer } from 'test/utils'; +import { act, createRenderer } from '@mui-internal/test-utilities'; import { Dropdown } from '@mui/base/Dropdown'; import { DropdownContext } from '@mui/base/useDropdown'; import { MenuButton } from '@mui/base/MenuButton'; diff --git a/packages/mui-base/src/FocusTrap/FocusTrap.test.tsx b/packages/mui-base/src/FocusTrap/FocusTrap.test.tsx index 54d37b3cf80f25..5b8facdd2c2803 100644 --- a/packages/mui-base/src/FocusTrap/FocusTrap.test.tsx +++ b/packages/mui-base/src/FocusTrap/FocusTrap.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import { expect } from 'chai'; -import { act, createRenderer, screen } from 'test/utils'; +import { act, createRenderer, screen } from '@mui-internal/test-utilities'; import { FocusTrap } from '@mui/base/FocusTrap'; import { Portal } from '@mui/base/Portal'; diff --git a/packages/mui-base/src/FormControl/FormControl.test.tsx b/packages/mui-base/src/FormControl/FormControl.test.tsx index e977ed3605f244..501ba0ff6c68c5 100644 --- a/packages/mui-base/src/FormControl/FormControl.test.tsx +++ b/packages/mui-base/src/FormControl/FormControl.test.tsx @@ -1,7 +1,12 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { createMount, createRenderer, describeConformanceUnstyled, fireEvent } from 'test/utils'; +import { + createMount, + createRenderer, + describeConformanceUnstyled, + fireEvent, +} from '@mui-internal/test-utilities'; import { FormControl, formControlClasses, useFormControlContext } from '@mui/base/FormControl'; describe('', () => { diff --git a/packages/mui-base/src/Input/Input.test.tsx b/packages/mui-base/src/Input/Input.test.tsx index 59f8458827d73e..5a444b51bab8f2 100644 --- a/packages/mui-base/src/Input/Input.test.tsx +++ b/packages/mui-base/src/Input/Input.test.tsx @@ -5,7 +5,7 @@ import { describeConformanceUnstyled, fireEvent, screen, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import { expect } from 'chai'; import { spy } from 'sinon'; import { Input, inputClasses } from '@mui/base/Input'; diff --git a/packages/mui-base/src/Menu/Menu.test.tsx b/packages/mui-base/src/Menu/Menu.test.tsx index 7d2d637910bd1b..c1784585f294b8 100644 --- a/packages/mui-base/src/Menu/Menu.test.tsx +++ b/packages/mui-base/src/Menu/Menu.test.tsx @@ -7,7 +7,7 @@ import { describeConformanceUnstyled, fireEvent, act, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import { Menu, menuClasses } from '@mui/base/Menu'; import { MenuItem } from '@mui/base/MenuItem'; import { DropdownContext, DropdownContextValue } from '@mui/base/useDropdown'; diff --git a/packages/mui-base/src/MenuButton/MenuButton.test.tsx b/packages/mui-base/src/MenuButton/MenuButton.test.tsx index 49ec949c233d06..d5781cb7da0576 100644 --- a/packages/mui-base/src/MenuButton/MenuButton.test.tsx +++ b/packages/mui-base/src/MenuButton/MenuButton.test.tsx @@ -7,7 +7,7 @@ import { createRenderer, describeConformanceUnstyled, fireEvent, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import { MenuButton, menuButtonClasses } from '@mui/base/MenuButton'; import { DropdownContext, DropdownContextValue, DropdownActionTypes } from '@mui/base/useDropdown'; diff --git a/packages/mui-base/src/MenuItem/MenuItem.test.tsx b/packages/mui-base/src/MenuItem/MenuItem.test.tsx index e9f4f8953c6882..d5875b7683f444 100644 --- a/packages/mui-base/src/MenuItem/MenuItem.test.tsx +++ b/packages/mui-base/src/MenuItem/MenuItem.test.tsx @@ -1,5 +1,9 @@ import * as React from 'react'; -import { createMount, createRenderer, describeConformanceUnstyled } from 'test/utils'; +import { + createMount, + createRenderer, + describeConformanceUnstyled, +} from '@mui-internal/test-utilities'; import { MenuItem, menuItemClasses } from '@mui/base/MenuItem'; import { MenuProvider } from '@mui/base/useMenu'; diff --git a/packages/mui-base/src/Modal/Modal.test.tsx b/packages/mui-base/src/Modal/Modal.test.tsx index 35061f632f30cc..e2d5add0301a12 100644 --- a/packages/mui-base/src/Modal/Modal.test.tsx +++ b/packages/mui-base/src/Modal/Modal.test.tsx @@ -1,6 +1,10 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createMount, createRenderer, describeConformanceUnstyled } from 'test/utils'; +import { + createMount, + createRenderer, + describeConformanceUnstyled, +} from '@mui-internal/test-utilities'; import { Modal, modalClasses as classes, ModalRootSlotProps } from '@mui/base/Modal'; describe('', () => { diff --git a/packages/mui-base/src/NoSsr/NoSsr.test.tsx b/packages/mui-base/src/NoSsr/NoSsr.test.tsx index e0ccc25f82ec6e..7490f0f5ed0cc8 100644 --- a/packages/mui-base/src/NoSsr/NoSsr.test.tsx +++ b/packages/mui-base/src/NoSsr/NoSsr.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import { NoSsr } from '@mui/base/NoSsr'; describe('', () => { diff --git a/packages/mui-base/src/Option/Option.test.tsx b/packages/mui-base/src/Option/Option.test.tsx index 9a9d294939919c..50b1563ee66e97 100644 --- a/packages/mui-base/src/Option/Option.test.tsx +++ b/packages/mui-base/src/Option/Option.test.tsx @@ -1,5 +1,9 @@ import * as React from 'react'; -import { createMount, createRenderer, describeConformanceUnstyled } from 'test/utils'; +import { + createMount, + createRenderer, + describeConformanceUnstyled, +} from '@mui-internal/test-utilities'; import { Option, optionClasses } from '@mui/base/Option'; import { SelectProvider } from '../useSelect/SelectProvider'; diff --git a/packages/mui-base/src/OptionGroup/OptionGroup.test.tsx b/packages/mui-base/src/OptionGroup/OptionGroup.test.tsx index 320687241f5242..1d6f66e1d13981 100644 --- a/packages/mui-base/src/OptionGroup/OptionGroup.test.tsx +++ b/packages/mui-base/src/OptionGroup/OptionGroup.test.tsx @@ -1,5 +1,9 @@ import * as React from 'react'; -import { createMount, createRenderer, describeConformanceUnstyled } from 'test/utils'; +import { + createMount, + createRenderer, + describeConformanceUnstyled, +} from '@mui-internal/test-utilities'; import { OptionGroup, optionGroupClasses } from '@mui/base/OptionGroup'; describe('', () => { diff --git a/packages/mui-base/src/Popper/Popper.test.tsx b/packages/mui-base/src/Popper/Popper.test.tsx index 194972e0a63c4f..afda4bdfdb7f80 100644 --- a/packages/mui-base/src/Popper/Popper.test.tsx +++ b/packages/mui-base/src/Popper/Popper.test.tsx @@ -1,6 +1,11 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, createMount, describeConformanceUnstyled, screen } from 'test/utils'; +import { + createRenderer, + createMount, + describeConformanceUnstyled, + screen, +} from '@mui-internal/test-utilities'; import { Popper, popperClasses } from '@mui/base/Popper'; describe('', () => { diff --git a/packages/mui-base/src/Portal/Portal.test.tsx b/packages/mui-base/src/Portal/Portal.test.tsx index 382af766bfae9c..9a5b441ed95ce0 100644 --- a/packages/mui-base/src/Portal/Portal.test.tsx +++ b/packages/mui-base/src/Portal/Portal.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import { Portal, PortalProps } from '@mui/base/Portal'; describe('', () => { diff --git a/packages/mui-base/src/Select/Select.test.tsx b/packages/mui-base/src/Select/Select.test.tsx index 3511327037c924..1d264b0f36808d 100644 --- a/packages/mui-base/src/Select/Select.test.tsx +++ b/packages/mui-base/src/Select/Select.test.tsx @@ -9,7 +9,7 @@ import { userEvent, act, screen, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import { Select, SelectListboxSlotProps, selectClasses } from '@mui/base/Select'; import { useOption, SelectOption } from '@mui/base/useOption'; import { Option, OptionProps, optionClasses } from '@mui/base/Option'; diff --git a/packages/mui-base/src/Slider/Slider.test.tsx b/packages/mui-base/src/Slider/Slider.test.tsx index 787b7ddd2e1b85..0b54b908e1f243 100644 --- a/packages/mui-base/src/Slider/Slider.test.tsx +++ b/packages/mui-base/src/Slider/Slider.test.tsx @@ -8,7 +8,7 @@ import { describeConformanceUnstyled, fireEvent, screen, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import { Slider, sliderClasses as classes, diff --git a/packages/mui-base/src/Snackbar/Snackbar.test.tsx b/packages/mui-base/src/Snackbar/Snackbar.test.tsx index 11f1a5431e74e2..3fe1c3ac73f9dc 100644 --- a/packages/mui-base/src/Snackbar/Snackbar.test.tsx +++ b/packages/mui-base/src/Snackbar/Snackbar.test.tsx @@ -7,7 +7,7 @@ import { createMount, describeConformanceUnstyled, fireEvent, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import { Snackbar, snackbarClasses as classes } from '@mui/base/Snackbar'; describe('', () => { diff --git a/packages/mui-base/src/Switch/Switch.test.tsx b/packages/mui-base/src/Switch/Switch.test.tsx index 65b603e83a347d..c93adf758436c8 100644 --- a/packages/mui-base/src/Switch/Switch.test.tsx +++ b/packages/mui-base/src/Switch/Switch.test.tsx @@ -1,5 +1,9 @@ import * as React from 'react'; -import { createMount, createRenderer, describeConformanceUnstyled } from 'test/utils'; +import { + createMount, + createRenderer, + describeConformanceUnstyled, +} from '@mui-internal/test-utilities'; import { expect } from 'chai'; import { Switch, SwitchOwnerState, switchClasses } from '@mui/base/Switch'; diff --git a/packages/mui-base/src/Tab/Tab.test.tsx b/packages/mui-base/src/Tab/Tab.test.tsx index 056cbf45483e74..1cdcb4469257d1 100644 --- a/packages/mui-base/src/Tab/Tab.test.tsx +++ b/packages/mui-base/src/Tab/Tab.test.tsx @@ -1,5 +1,9 @@ import * as React from 'react'; -import { createMount, createRenderer, describeConformanceUnstyled } from 'test/utils'; +import { + createMount, + createRenderer, + describeConformanceUnstyled, +} from '@mui-internal/test-utilities'; import { Tab, tabClasses } from '@mui/base/Tab'; import { TabsListProvider, TabsListProviderValue } from '../useTabsList'; import { TabsContext } from '../Tabs'; diff --git a/packages/mui-base/src/TabPanel/TabPanel.test.tsx b/packages/mui-base/src/TabPanel/TabPanel.test.tsx index 453984c6c60334..fc0d17fac8ce8c 100644 --- a/packages/mui-base/src/TabPanel/TabPanel.test.tsx +++ b/packages/mui-base/src/TabPanel/TabPanel.test.tsx @@ -1,5 +1,9 @@ import * as React from 'react'; -import { createMount, createRenderer, describeConformanceUnstyled } from 'test/utils'; +import { + createMount, + createRenderer, + describeConformanceUnstyled, +} from '@mui-internal/test-utilities'; import { TabPanel, tabPanelClasses } from '@mui/base/TabPanel'; import { TabsProvider, TabsProviderValue } from '../useTabs'; diff --git a/packages/mui-base/src/TablePagination/TablePagination.test.tsx b/packages/mui-base/src/TablePagination/TablePagination.test.tsx index fb55ab9d930756..5e37b01af0e036 100644 --- a/packages/mui-base/src/TablePagination/TablePagination.test.tsx +++ b/packages/mui-base/src/TablePagination/TablePagination.test.tsx @@ -2,7 +2,12 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; import PropTypes from 'prop-types'; -import { describeConformanceUnstyled, fireEvent, createRenderer, createMount } from 'test/utils'; +import { + describeConformanceUnstyled, + fireEvent, + createRenderer, + createMount, +} from '@mui-internal/test-utilities'; import TableFooter from '@mui/material/TableFooter'; import TableRow from '@mui/material/TableRow'; import { diff --git a/packages/mui-base/src/Tabs/Tabs.test.tsx b/packages/mui-base/src/Tabs/Tabs.test.tsx index 564a59877784c8..db2a254daef93d 100644 --- a/packages/mui-base/src/Tabs/Tabs.test.tsx +++ b/packages/mui-base/src/Tabs/Tabs.test.tsx @@ -8,7 +8,7 @@ import { fireEvent, screen, createMount, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import { Tab } from '@mui/base/Tab'; import { Tabs, tabsClasses as classes, TabsProps } from '@mui/base/Tabs'; import { TabsList } from '@mui/base/TabsList'; diff --git a/packages/mui-base/src/TabsList/TabsList.test.tsx b/packages/mui-base/src/TabsList/TabsList.test.tsx index 2294d482656af6..5e7cce737c1c02 100644 --- a/packages/mui-base/src/TabsList/TabsList.test.tsx +++ b/packages/mui-base/src/TabsList/TabsList.test.tsx @@ -1,5 +1,9 @@ import * as React from 'react'; -import { createMount, createRenderer, describeConformanceUnstyled } from 'test/utils'; +import { + createMount, + createRenderer, + describeConformanceUnstyled, +} from '@mui-internal/test-utilities'; import { TabsContext } from '@mui/base/Tabs'; import { TabsList, tabsListClasses } from '@mui/base/TabsList'; diff --git a/packages/mui-base/src/TextareaAutosize/TextareaAutosize.test.tsx b/packages/mui-base/src/TextareaAutosize/TextareaAutosize.test.tsx index 3d70576baacd46..5d7b7cd7687dce 100644 --- a/packages/mui-base/src/TextareaAutosize/TextareaAutosize.test.tsx +++ b/packages/mui-base/src/TextareaAutosize/TextareaAutosize.test.tsx @@ -10,7 +10,7 @@ import { createRenderer, fireEvent, strictModeDoubleLoggingSuppressed, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import { TextareaAutosize } from '@mui/base/TextareaAutosize'; function getStyleValue(value: string) { diff --git a/packages/mui-base/src/Unstable_NumberInput/NumberInput.test.tsx b/packages/mui-base/src/Unstable_NumberInput/NumberInput.test.tsx index d5b18aa48c9ef3..5e058cf715a12a 100644 --- a/packages/mui-base/src/Unstable_NumberInput/NumberInput.test.tsx +++ b/packages/mui-base/src/Unstable_NumberInput/NumberInput.test.tsx @@ -8,7 +8,7 @@ import { createRenderer, describeConformanceUnstyled, fireEvent, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import { Unstable_NumberInput as NumberInput, numberInputClasses, diff --git a/packages/mui-base/src/Unstable_Popup/Popup.test.tsx b/packages/mui-base/src/Unstable_Popup/Popup.test.tsx index 958b6d9be06c84..95eee260dc3a32 100644 --- a/packages/mui-base/src/Unstable_Popup/Popup.test.tsx +++ b/packages/mui-base/src/Unstable_Popup/Popup.test.tsx @@ -7,7 +7,7 @@ import { describeConformanceUnstyled, screen, fireEvent, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import { Unstable_Popup as Popup, popupClasses, diff --git a/packages/mui-base/src/unstable_useNumberInput/useNumberInput.test.tsx b/packages/mui-base/src/unstable_useNumberInput/useNumberInput.test.tsx index 53946ece059bdb..8a89cab2e853c2 100644 --- a/packages/mui-base/src/unstable_useNumberInput/useNumberInput.test.tsx +++ b/packages/mui-base/src/unstable_useNumberInput/useNumberInput.test.tsx @@ -2,7 +2,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; import userEvent from '@testing-library/user-event'; -import { createRenderer, screen } from 'test/utils'; +import { createRenderer, screen } from '@mui-internal/test-utilities'; import { unstable_useNumberInput as useNumberInput, UseNumberInputParameters, diff --git a/packages/mui-base/src/useAutocomplete/useAutocomplete.test.js b/packages/mui-base/src/useAutocomplete/useAutocomplete.test.js index 5ae4fc1a476188..d56aee03858fbe 100644 --- a/packages/mui-base/src/useAutocomplete/useAutocomplete.test.js +++ b/packages/mui-base/src/useAutocomplete/useAutocomplete.test.js @@ -1,6 +1,12 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, screen, ErrorBoundary, act, fireEvent } from 'test/utils'; +import { + createRenderer, + screen, + ErrorBoundary, + act, + fireEvent, +} from '@mui-internal/test-utilities'; import { spy } from 'sinon'; import { useAutocomplete, createFilterOptions } from '@mui/base/useAutocomplete'; diff --git a/packages/mui-base/src/useButton/useButton.test.tsx b/packages/mui-base/src/useButton/useButton.test.tsx index a0315a28a60ef9..6b3a7d09a6c733 100644 --- a/packages/mui-base/src/useButton/useButton.test.tsx +++ b/packages/mui-base/src/useButton/useButton.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { act, createRenderer, fireEvent } from 'test/utils'; +import { act, createRenderer, fireEvent } from '@mui-internal/test-utilities'; import { expect } from 'chai'; import { spy } from 'sinon'; import { useButton } from '@mui/base/useButton'; diff --git a/packages/mui-base/src/useInput/useInput.test.tsx b/packages/mui-base/src/useInput/useInput.test.tsx index 8cf1ef0b52f0c2..637b467f514a12 100644 --- a/packages/mui-base/src/useInput/useInput.test.tsx +++ b/packages/mui-base/src/useInput/useInput.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { act, createRenderer } from 'test/utils'; +import { act, createRenderer } from '@mui-internal/test-utilities'; import { expect } from 'chai'; import { spy } from 'sinon'; import { useInput } from './useInput'; diff --git a/packages/mui-base/src/useList/useList.test.tsx b/packages/mui-base/src/useList/useList.test.tsx index 31689bb6e4a82e..d515127c63c554 100644 --- a/packages/mui-base/src/useList/useList.test.tsx +++ b/packages/mui-base/src/useList/useList.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { SinonSpy, spy } from 'sinon'; -import { createRenderer, createEvent, fireEvent } from 'test/utils'; +import { createRenderer, createEvent, fireEvent } from '@mui-internal/test-utilities'; import { useList } from './useList'; describe('useList', () => { diff --git a/packages/mui-base/src/useSnackbar/useSnackbar.test.tsx b/packages/mui-base/src/useSnackbar/useSnackbar.test.tsx index c3608906ab554c..b336e14da27cbb 100644 --- a/packages/mui-base/src/useSnackbar/useSnackbar.test.tsx +++ b/packages/mui-base/src/useSnackbar/useSnackbar.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { fireEvent, createRenderer } from 'test/utils'; +import { fireEvent, createRenderer } from '@mui-internal/test-utilities'; import { useSnackbar, UseSnackbarParameters } from '@mui/base/useSnackbar'; describe('useSnackbar', () => { diff --git a/packages/mui-base/src/useSwitch/useSwitch.test.tsx b/packages/mui-base/src/useSwitch/useSwitch.test.tsx index 194f05069afabe..ecdc6e7675c454 100644 --- a/packages/mui-base/src/useSwitch/useSwitch.test.tsx +++ b/packages/mui-base/src/useSwitch/useSwitch.test.tsx @@ -8,7 +8,7 @@ import { programmaticFocusTriggersFocusVisible, screen, simulatePointerDevice, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import { useSwitch, UseSwitchParameters } from '@mui/base/useSwitch'; describe('useSwitch', () => { diff --git a/packages/mui-base/src/utils/ClassNameConfigurator.test.tsx b/packages/mui-base/src/utils/ClassNameConfigurator.test.tsx index 27a38e3a1611d5..74909bf4b58038 100644 --- a/packages/mui-base/src/utils/ClassNameConfigurator.test.tsx +++ b/packages/mui-base/src/utils/ClassNameConfigurator.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import { expect } from 'chai'; import { Switch, switchClasses } from '@mui/base/Switch'; import { ClassNameConfigurator } from '@mui/base/utils/ClassNameConfigurator'; diff --git a/packages/mui-base/src/utils/prepareForSlot.test.tsx b/packages/mui-base/src/utils/prepareForSlot.test.tsx index 29fe298bde164a..1120a2eed6f499 100644 --- a/packages/mui-base/src/utils/prepareForSlot.test.tsx +++ b/packages/mui-base/src/utils/prepareForSlot.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import { Button } from '@mui/base/Button'; import { prepareForSlot } from './prepareForSlot'; diff --git a/packages/mui-base/src/utils/useCompound.test.tsx b/packages/mui-base/src/utils/useCompound.test.tsx index a7214fda0efc54..1f70344cacd707 100644 --- a/packages/mui-base/src/utils/useCompound.test.tsx +++ b/packages/mui-base/src/utils/useCompound.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { render } from 'test/utils'; +import { render } from '@mui-internal/test-utilities'; import { CompoundComponentContext, useCompoundParent } from './useCompound'; import { useCompoundItem } from './useCompoundItem'; diff --git a/packages/mui-base/src/utils/useControllableReducer.test.tsx b/packages/mui-base/src/utils/useControllableReducer.test.tsx index 87b4b1204b7a29..62ec51c9a1611b 100644 --- a/packages/mui-base/src/utils/useControllableReducer.test.tsx +++ b/packages/mui-base/src/utils/useControllableReducer.test.tsx @@ -1,7 +1,7 @@ import { expect } from 'chai'; import * as React from 'react'; import { spy } from 'sinon'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import { useControllableReducer } from './useControllableReducer'; import { ControllableReducerParameters } from './useControllableReducer.types'; diff --git a/packages/mui-base/src/utils/useSlotProps.test.tsx b/packages/mui-base/src/utils/useSlotProps.test.tsx index 600ba65a066e50..55c16dae1cecc6 100644 --- a/packages/mui-base/src/utils/useSlotProps.test.tsx +++ b/packages/mui-base/src/utils/useSlotProps.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import { EventHandlers } from '@mui/base'; import { useSlotProps, UseSlotPropsParameters, UseSlotPropsResult } from './useSlotProps'; diff --git a/packages/mui-joy/package.json b/packages/mui-joy/package.json index c58bf59e2f3c50..9a790c9eb95e6b 100644 --- a/packages/mui-joy/package.json +++ b/packages/mui-joy/package.json @@ -49,6 +49,7 @@ }, "devDependencies": { "@mui/material": "^5.14.10", + "@mui-internal/test-utilities": "^1.0.0", "@types/chai": "^4.3.5", "@types/prop-types": "^15.7.5", "@types/react": "^18.2.21", @@ -60,8 +61,7 @@ "next": "^13.4.19", "react": "^18.2.0", "react-dom": "^18.2.0", - "sinon": "^15.2.0", - "test": "^5.0.0" + "sinon": "^15.2.0" }, "peerDependencies": { "@emotion/react": "^11.5.0", diff --git a/packages/mui-joy/src/Accordion/Accordion.test.tsx b/packages/mui-joy/src/Accordion/Accordion.test.tsx index f6139486246885..132dfca04de51a 100644 --- a/packages/mui-joy/src/Accordion/Accordion.test.tsx +++ b/packages/mui-joy/src/Accordion/Accordion.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { createRenderer, describeConformance, fireEvent } from 'test/utils'; +import { createRenderer, describeConformance, fireEvent } from '@mui-internal/test-utilities'; import { ThemeProvider } from '@mui/joy/styles'; import Accordion, { accordionClasses as classes } from '@mui/joy/Accordion'; import AccordionSummary from '@mui/joy/AccordionSummary'; diff --git a/packages/mui-joy/src/AccordionDetails/AccordionDetails.test.tsx b/packages/mui-joy/src/AccordionDetails/AccordionDetails.test.tsx index 2051ac9c97a0a2..fa5d62eead40f0 100644 --- a/packages/mui-joy/src/AccordionDetails/AccordionDetails.test.tsx +++ b/packages/mui-joy/src/AccordionDetails/AccordionDetails.test.tsx @@ -1,6 +1,11 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance, fireEvent, screen } from 'test/utils'; +import { + createRenderer, + describeConformance, + fireEvent, + screen, +} from '@mui-internal/test-utilities'; import { ThemeProvider } from '@mui/joy/styles'; import Accordion from '@mui/joy/Accordion'; import AccordionSummary from '@mui/joy/AccordionSummary'; diff --git a/packages/mui-joy/src/AccordionGroup/AccordionGroup.test.tsx b/packages/mui-joy/src/AccordionGroup/AccordionGroup.test.tsx index abb5e61b810f29..df32181e363a1c 100644 --- a/packages/mui-joy/src/AccordionGroup/AccordionGroup.test.tsx +++ b/packages/mui-joy/src/AccordionGroup/AccordionGroup.test.tsx @@ -1,6 +1,10 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance, describeJoyColorInversion } from 'test/utils'; +import { + createRenderer, + describeConformance, + describeJoyColorInversion, +} from '@mui-internal/test-utilities'; import { ThemeProvider } from '@mui/joy/styles'; import AccordionGroup, { accordionGroupClasses as classes } from '@mui/joy/AccordionGroup'; diff --git a/packages/mui-joy/src/AccordionSummary/AccordionSummary.test.tsx b/packages/mui-joy/src/AccordionSummary/AccordionSummary.test.tsx index 38e6992b813812..550c07612dd6a7 100644 --- a/packages/mui-joy/src/AccordionSummary/AccordionSummary.test.tsx +++ b/packages/mui-joy/src/AccordionSummary/AccordionSummary.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import { ThemeProvider } from '@mui/joy/styles'; import AccordionSummary, { accordionSummaryClasses as classes } from '@mui/joy/AccordionSummary'; diff --git a/packages/mui-joy/src/Alert/Alert.test.tsx b/packages/mui-joy/src/Alert/Alert.test.tsx index 8edc33de165dd9..7d330877dd945b 100644 --- a/packages/mui-joy/src/Alert/Alert.test.tsx +++ b/packages/mui-joy/src/Alert/Alert.test.tsx @@ -1,6 +1,10 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance, describeJoyColorInversion } from 'test/utils'; +import { + createRenderer, + describeConformance, + describeJoyColorInversion, +} from '@mui-internal/test-utilities'; import { unstable_capitalize as capitalize } from '@mui/utils'; import { ThemeProvider } from '@mui/joy/styles'; import Alert, { AlertClassKey, alertClasses as classes } from '@mui/joy/Alert'; diff --git a/packages/mui-joy/src/AspectRatio/AspectRatio.test.tsx b/packages/mui-joy/src/AspectRatio/AspectRatio.test.tsx index 5dc77a5ba452fb..df6e33a876a273 100644 --- a/packages/mui-joy/src/AspectRatio/AspectRatio.test.tsx +++ b/packages/mui-joy/src/AspectRatio/AspectRatio.test.tsx @@ -1,6 +1,10 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance, describeJoyColorInversion } from 'test/utils'; +import { + createRenderer, + describeConformance, + describeJoyColorInversion, +} from '@mui-internal/test-utilities'; import { unstable_capitalize as capitalize } from '@mui/utils'; import { ThemeProvider } from '@mui/joy/styles'; import AspectRatio, { diff --git a/packages/mui-joy/src/Autocomplete/Autocomplete.test.tsx b/packages/mui-joy/src/Autocomplete/Autocomplete.test.tsx index 1c3da3551ba3b0..f9f89097eb5fda 100644 --- a/packages/mui-joy/src/Autocomplete/Autocomplete.test.tsx +++ b/packages/mui-joy/src/Autocomplete/Autocomplete.test.tsx @@ -10,7 +10,7 @@ import { fireEvent, strictModeDoubleLoggingSuppressed, describeJoyColorInversion, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import Autocomplete, { autocompleteClasses as classes, createFilterOptions, diff --git a/packages/mui-joy/src/AutocompleteListbox/AutocompleteListbox.test.tsx b/packages/mui-joy/src/AutocompleteListbox/AutocompleteListbox.test.tsx index 5a134270a0dddb..06bcbff8c62b1e 100644 --- a/packages/mui-joy/src/AutocompleteListbox/AutocompleteListbox.test.tsx +++ b/packages/mui-joy/src/AutocompleteListbox/AutocompleteListbox.test.tsx @@ -1,6 +1,10 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, createRenderer, describeJoyColorInversion } from 'test/utils'; +import { + describeConformance, + createRenderer, + describeJoyColorInversion, +} from '@mui-internal/test-utilities'; import { ThemeProvider } from '@mui/joy/styles'; import AutocompleteListbox, { autocompleteListboxClasses as classes, diff --git a/packages/mui-joy/src/AutocompleteOption/AutocompleteOption.test.tsx b/packages/mui-joy/src/AutocompleteOption/AutocompleteOption.test.tsx index 30337a4f1c2664..88596bab18118d 100644 --- a/packages/mui-joy/src/AutocompleteOption/AutocompleteOption.test.tsx +++ b/packages/mui-joy/src/AutocompleteOption/AutocompleteOption.test.tsx @@ -1,6 +1,10 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, createRenderer, describeJoyColorInversion } from 'test/utils'; +import { + describeConformance, + createRenderer, + describeJoyColorInversion, +} from '@mui-internal/test-utilities'; import { ThemeProvider } from '@mui/joy/styles'; import AutocompleteOption, { autocompleteOptionClasses as classes, diff --git a/packages/mui-joy/src/Avatar/Avatar.test.tsx b/packages/mui-joy/src/Avatar/Avatar.test.tsx index e37db3caf2b486..63e125571015d6 100644 --- a/packages/mui-joy/src/Avatar/Avatar.test.tsx +++ b/packages/mui-joy/src/Avatar/Avatar.test.tsx @@ -6,7 +6,7 @@ import { describeConformance, describeJoyColorInversion, fireEvent, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import { unstable_capitalize as capitalize } from '@mui/utils'; import { ThemeProvider } from '@mui/joy/styles'; import Avatar, { AvatarClassKey, avatarClasses as classes } from '@mui/joy/Avatar'; diff --git a/packages/mui-joy/src/AvatarGroup/AvatarGroup.test.tsx b/packages/mui-joy/src/AvatarGroup/AvatarGroup.test.tsx index 3b66ccbf96c150..689e8295acdb77 100644 --- a/packages/mui-joy/src/AvatarGroup/AvatarGroup.test.tsx +++ b/packages/mui-joy/src/AvatarGroup/AvatarGroup.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import { ThemeProvider } from '@mui/joy/styles'; import AvatarGroup, { avatarGroupClasses as classes } from '@mui/joy/AvatarGroup'; import Avatar, { avatarClasses } from '@mui/joy/Avatar'; diff --git a/packages/mui-joy/src/Badge/Badge.test.tsx b/packages/mui-joy/src/Badge/Badge.test.tsx index 13921cb3f5d864..d7625361bd1e2c 100644 --- a/packages/mui-joy/src/Badge/Badge.test.tsx +++ b/packages/mui-joy/src/Badge/Badge.test.tsx @@ -1,6 +1,10 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance, describeJoyColorInversion } from 'test/utils'; +import { + createRenderer, + describeConformance, + describeJoyColorInversion, +} from '@mui-internal/test-utilities'; 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'; diff --git a/packages/mui-joy/src/Box/Box.test.tsx b/packages/mui-joy/src/Box/Box.test.tsx index 552cdfa3b30d23..3572688fe5d190 100644 --- a/packages/mui-joy/src/Box/Box.test.tsx +++ b/packages/mui-joy/src/Box/Box.test.tsx @@ -1,7 +1,7 @@ /* eslint-disable material-ui/no-empty-box */ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import { ThemeProvider, CssVarsProvider, extendTheme, PalettePrimary } from '@mui/joy/styles'; import { unstable_ClassNameGenerator as ClassNameGenerator } from '@mui/joy/className'; import Box from '@mui/joy/Box'; diff --git a/packages/mui-joy/src/Breadcrumbs/Breadcrumbs.test.tsx b/packages/mui-joy/src/Breadcrumbs/Breadcrumbs.test.tsx index 4768e6c84d5edb..d88942128d5056 100644 --- a/packages/mui-joy/src/Breadcrumbs/Breadcrumbs.test.tsx +++ b/packages/mui-joy/src/Breadcrumbs/Breadcrumbs.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import { unstable_capitalize as capitalize } from '@mui/utils'; import { ThemeProvider } from '@mui/joy/styles'; import Breadcrumbs, { diff --git a/packages/mui-joy/src/Button/Button.test.tsx b/packages/mui-joy/src/Button/Button.test.tsx index 0770d8664f43b2..122d3648910ad8 100644 --- a/packages/mui-joy/src/Button/Button.test.tsx +++ b/packages/mui-joy/src/Button/Button.test.tsx @@ -1,6 +1,10 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, createRenderer, describeJoyColorInversion } from 'test/utils'; +import { + describeConformance, + createRenderer, + describeJoyColorInversion, +} from '@mui-internal/test-utilities'; import Button, { buttonClasses as classes } from '@mui/joy/Button'; import { ThemeProvider } from '@mui/joy/styles'; diff --git a/packages/mui-joy/src/ButtonGroup/ButtonGroup.test.tsx b/packages/mui-joy/src/ButtonGroup/ButtonGroup.test.tsx index a709c1e23ab5fc..c8209df95bbf04 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 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import { unstable_capitalize as capitalize } from '@mui/utils'; import { ThemeProvider } from '@mui/joy/styles'; import ButtonGroup, { diff --git a/packages/mui-joy/src/Card/Card.test.tsx b/packages/mui-joy/src/Card/Card.test.tsx index ae773620f6869e..44b9d575096f82 100644 --- a/packages/mui-joy/src/Card/Card.test.tsx +++ b/packages/mui-joy/src/Card/Card.test.tsx @@ -1,6 +1,10 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance, describeJoyColorInversion } from 'test/utils'; +import { + createRenderer, + describeConformance, + describeJoyColorInversion, +} from '@mui-internal/test-utilities'; import { unstable_capitalize as capitalize } from '@mui/utils'; import { ThemeProvider } from '@mui/joy/styles'; import Card, { cardClasses as classes, CardClassKey } from '@mui/joy/Card'; diff --git a/packages/mui-joy/src/CardActions/CardActions.test.tsx b/packages/mui-joy/src/CardActions/CardActions.test.tsx index d128e67c0f692f..4df71b73595d2a 100644 --- a/packages/mui-joy/src/CardActions/CardActions.test.tsx +++ b/packages/mui-joy/src/CardActions/CardActions.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import { ThemeProvider } from '@mui/joy/styles'; import CardActions, { cardActionsClasses as classes } from '@mui/joy/CardActions'; diff --git a/packages/mui-joy/src/CardContent/CardContent.test.tsx b/packages/mui-joy/src/CardContent/CardContent.test.tsx index bcedfa180b8f33..f50e07aff0c2df 100644 --- a/packages/mui-joy/src/CardContent/CardContent.test.tsx +++ b/packages/mui-joy/src/CardContent/CardContent.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import { ThemeProvider } from '@mui/joy/styles'; import CardContent, { cardContentClasses as classes } from '@mui/joy/CardContent'; diff --git a/packages/mui-joy/src/CardCover/CardCover.test.tsx b/packages/mui-joy/src/CardCover/CardCover.test.tsx index ec5b940bf75130..81f62d5905ca23 100644 --- a/packages/mui-joy/src/CardCover/CardCover.test.tsx +++ b/packages/mui-joy/src/CardCover/CardCover.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import { ThemeProvider } from '@mui/joy/styles'; import CardCover, { cardCoverClasses as classes } from '@mui/joy/CardCover'; diff --git a/packages/mui-joy/src/CardOverflow/CardOverflow.test.tsx b/packages/mui-joy/src/CardOverflow/CardOverflow.test.tsx index 0a677d2469d4da..6efc608fda8b88 100644 --- a/packages/mui-joy/src/CardOverflow/CardOverflow.test.tsx +++ b/packages/mui-joy/src/CardOverflow/CardOverflow.test.tsx @@ -1,6 +1,10 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance, describeJoyColorInversion } from 'test/utils'; +import { + createRenderer, + describeConformance, + describeJoyColorInversion, +} from '@mui-internal/test-utilities'; import { unstable_capitalize as capitalize } from '@mui/utils'; import { ThemeProvider } from '@mui/joy/styles'; import CardOverflow, { diff --git a/packages/mui-joy/src/Checkbox/Checkbox.test.tsx b/packages/mui-joy/src/Checkbox/Checkbox.test.tsx index 61c396d2840a17..519c6ed8aa5beb 100644 --- a/packages/mui-joy/src/Checkbox/Checkbox.test.tsx +++ b/packages/mui-joy/src/Checkbox/Checkbox.test.tsx @@ -6,7 +6,7 @@ import { createRenderer, fireEvent, describeJoyColorInversion, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import Checkbox, { checkboxClasses as classes } from '@mui/joy/Checkbox'; import { ThemeProvider } from '@mui/joy/styles'; import CloseIcon from '../internal/svg-icons/Close'; diff --git a/packages/mui-joy/src/Chip/Chip.test.tsx b/packages/mui-joy/src/Chip/Chip.test.tsx index 1a45600c0ecb88..1e45f0739266ce 100644 --- a/packages/mui-joy/src/Chip/Chip.test.tsx +++ b/packages/mui-joy/src/Chip/Chip.test.tsx @@ -6,7 +6,7 @@ import { describeConformance, describeJoyColorInversion, fireEvent, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import { unstable_capitalize as capitalize } from '@mui/utils'; import { ThemeProvider } from '@mui/joy/styles'; import Chip, { ChipClassKey, chipClasses as classes } from '@mui/joy/Chip'; diff --git a/packages/mui-joy/src/ChipDelete/ChipDelete.test.tsx b/packages/mui-joy/src/ChipDelete/ChipDelete.test.tsx index ba9328c78b8d51..13c7d942b3f52d 100644 --- a/packages/mui-joy/src/ChipDelete/ChipDelete.test.tsx +++ b/packages/mui-joy/src/ChipDelete/ChipDelete.test.tsx @@ -7,7 +7,7 @@ import { describeJoyColorInversion, act, fireEvent, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import { ThemeProvider } from '@mui/joy/styles'; import Chip from '@mui/joy/Chip'; import ChipDelete, { chipDeleteClasses as classes } from '@mui/joy/ChipDelete'; diff --git a/packages/mui-joy/src/CircularProgress/CircularProgress.test.tsx b/packages/mui-joy/src/CircularProgress/CircularProgress.test.tsx index 6e4b421cbc37c4..fa7f94fc0cc971 100644 --- a/packages/mui-joy/src/CircularProgress/CircularProgress.test.tsx +++ b/packages/mui-joy/src/CircularProgress/CircularProgress.test.tsx @@ -1,6 +1,10 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance, describeJoyColorInversion } from 'test/utils'; +import { + createRenderer, + describeConformance, + describeJoyColorInversion, +} from '@mui-internal/test-utilities'; import { unstable_capitalize as capitalize } from '@mui/utils'; import { ThemeProvider } from '@mui/joy/styles'; import CircularProgress, { circularProgressClasses as classes } from '@mui/joy/CircularProgress'; diff --git a/packages/mui-joy/src/Container/Container.test.tsx b/packages/mui-joy/src/Container/Container.test.tsx index 4fd0d207ed2b46..efedfb4cd848e8 100644 --- a/packages/mui-joy/src/Container/Container.test.tsx +++ b/packages/mui-joy/src/Container/Container.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { describeConformance, createRenderer } from 'test/utils'; +import { describeConformance, createRenderer } from '@mui-internal/test-utilities'; import { ThemeProvider } from '@mui/joy/styles'; import Container, { containerClasses as classes } from '@mui/joy/Container'; diff --git a/packages/mui-joy/src/DialogActions/DialogActions.test.tsx b/packages/mui-joy/src/DialogActions/DialogActions.test.tsx index 22185193135585..8bac9c8b5a1198 100644 --- a/packages/mui-joy/src/DialogActions/DialogActions.test.tsx +++ b/packages/mui-joy/src/DialogActions/DialogActions.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import { ThemeProvider } from '@mui/joy/styles'; import DialogActions, { dialogActionsClasses as classes } from '@mui/joy/DialogActions'; diff --git a/packages/mui-joy/src/DialogContent/DialogContent.test.tsx b/packages/mui-joy/src/DialogContent/DialogContent.test.tsx index f764ffcbb98439..ac0e264bea20fb 100644 --- a/packages/mui-joy/src/DialogContent/DialogContent.test.tsx +++ b/packages/mui-joy/src/DialogContent/DialogContent.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import { ThemeProvider } from '@mui/joy/styles'; import DialogContent, { dialogContentClasses as classes } from '@mui/joy/DialogContent'; diff --git a/packages/mui-joy/src/DialogTitle/DialogTitle.test.tsx b/packages/mui-joy/src/DialogTitle/DialogTitle.test.tsx index bcedfa180b8f33..f50e07aff0c2df 100644 --- a/packages/mui-joy/src/DialogTitle/DialogTitle.test.tsx +++ b/packages/mui-joy/src/DialogTitle/DialogTitle.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import { ThemeProvider } from '@mui/joy/styles'; import CardContent, { cardContentClasses as classes } from '@mui/joy/CardContent'; diff --git a/packages/mui-joy/src/Divider/Divider.test.tsx b/packages/mui-joy/src/Divider/Divider.test.tsx index aab564a1f3848a..c886c485f4c5cc 100644 --- a/packages/mui-joy/src/Divider/Divider.test.tsx +++ b/packages/mui-joy/src/Divider/Divider.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, createRenderer } from 'test/utils'; +import { describeConformance, createRenderer } from '@mui-internal/test-utilities'; import { ThemeProvider } from '@mui/joy/styles'; import Divider, { dividerClasses as classes } from '@mui/joy/Divider'; diff --git a/packages/mui-joy/src/Drawer/Drawer.test.tsx b/packages/mui-joy/src/Drawer/Drawer.test.tsx index e57b781b144ec1..e6b066b11dd8f8 100644 --- a/packages/mui-joy/src/Drawer/Drawer.test.tsx +++ b/packages/mui-joy/src/Drawer/Drawer.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import { ThemeProvider } from '@mui/joy/styles'; import Drawer, { drawerClasses as classes } from '@mui/joy/Drawer'; diff --git a/packages/mui-joy/src/FormControl/FormControl.test.tsx b/packages/mui-joy/src/FormControl/FormControl.test.tsx index b3dc5d7d9a8cbb..121951d38a50a3 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 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import { unstable_capitalize as capitalize } from '@mui/utils'; import { ThemeProvider } from '@mui/joy/styles'; import FormControl, { formControlClasses as classes } from '@mui/joy/FormControl'; diff --git a/packages/mui-joy/src/FormHelperText/FormHelperText.test.tsx b/packages/mui-joy/src/FormHelperText/FormHelperText.test.tsx index e82dd4d6108661..18a369687eca68 100644 --- a/packages/mui-joy/src/FormHelperText/FormHelperText.test.tsx +++ b/packages/mui-joy/src/FormHelperText/FormHelperText.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, createRenderer } from 'test/utils'; +import { describeConformance, createRenderer } from '@mui-internal/test-utilities'; import { ThemeProvider } from '@mui/joy/styles'; import FormHelperText, { formHelperTextClasses as classes } from '@mui/joy/FormHelperText'; diff --git a/packages/mui-joy/src/FormLabel/FormLabel.test.tsx b/packages/mui-joy/src/FormLabel/FormLabel.test.tsx index a98c55e967c2c9..19af6122e3fa46 100644 --- a/packages/mui-joy/src/FormLabel/FormLabel.test.tsx +++ b/packages/mui-joy/src/FormLabel/FormLabel.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, createRenderer } from 'test/utils'; +import { describeConformance, createRenderer } from '@mui-internal/test-utilities'; import { ThemeProvider } from '@mui/joy/styles'; import FormLabel, { formLabelClasses as classes } from '@mui/joy/FormLabel'; diff --git a/packages/mui-joy/src/Grid/Grid.test.tsx b/packages/mui-joy/src/Grid/Grid.test.tsx index 577d6c75187ae1..9cc493566feac2 100644 --- a/packages/mui-joy/src/Grid/Grid.test.tsx +++ b/packages/mui-joy/src/Grid/Grid.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, createRenderer } from 'test/utils'; +import { describeConformance, createRenderer } from '@mui-internal/test-utilities'; import { ThemeProvider } from '@mui/joy/styles'; import Grid, { gridClasses as classes } from '@mui/joy/Grid'; diff --git a/packages/mui-joy/src/IconButton/IconButton.test.tsx b/packages/mui-joy/src/IconButton/IconButton.test.tsx index 258fa9025a7977..cb7040df398307 100644 --- a/packages/mui-joy/src/IconButton/IconButton.test.tsx +++ b/packages/mui-joy/src/IconButton/IconButton.test.tsx @@ -1,6 +1,10 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, createRenderer, describeJoyColorInversion } from 'test/utils'; +import { + describeConformance, + createRenderer, + describeJoyColorInversion, +} from '@mui-internal/test-utilities'; import IconButton, { iconButtonClasses as classes } from '@mui/joy/IconButton'; import { ThemeProvider } from '@mui/joy/styles'; diff --git a/packages/mui-joy/src/Input/Input.test.tsx b/packages/mui-joy/src/Input/Input.test.tsx index 991362f9522b98..6b9d8523c086b5 100644 --- a/packages/mui-joy/src/Input/Input.test.tsx +++ b/packages/mui-joy/src/Input/Input.test.tsx @@ -8,7 +8,7 @@ import { screen, act, fireEvent, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import Input, { inputClasses as classes } from '@mui/joy/Input'; import { ThemeProvider } from '@mui/joy/styles'; diff --git a/packages/mui-joy/src/LinearProgress/LinearProgress.test.tsx b/packages/mui-joy/src/LinearProgress/LinearProgress.test.tsx index ceb9ced2abb27a..bff1c65d66032e 100644 --- a/packages/mui-joy/src/LinearProgress/LinearProgress.test.tsx +++ b/packages/mui-joy/src/LinearProgress/LinearProgress.test.tsx @@ -1,6 +1,10 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance, describeJoyColorInversion } from 'test/utils'; +import { + createRenderer, + describeConformance, + describeJoyColorInversion, +} from '@mui-internal/test-utilities'; import { unstable_capitalize as capitalize } from '@mui/utils'; import { ThemeProvider } from '@mui/joy/styles'; import LinearProgress, { linearProgressClasses as classes } from '@mui/joy/LinearProgress'; diff --git a/packages/mui-joy/src/Link/Link.test.tsx b/packages/mui-joy/src/Link/Link.test.tsx index 33c188aa2fab95..122f60a0ea9ca5 100644 --- a/packages/mui-joy/src/Link/Link.test.tsx +++ b/packages/mui-joy/src/Link/Link.test.tsx @@ -7,7 +7,7 @@ import { fireEvent, describeConformance, describeJoyColorInversion, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import { unstable_capitalize as capitalize } from '@mui/utils'; import Link, { LinkClassKey, linkClasses as classes } from '@mui/joy/Link'; import Typography from '@mui/joy/Typography'; diff --git a/packages/mui-joy/src/List/List.test.tsx b/packages/mui-joy/src/List/List.test.tsx index d1d4c908eecb0b..78b44af28b34fd 100644 --- a/packages/mui-joy/src/List/List.test.tsx +++ b/packages/mui-joy/src/List/List.test.tsx @@ -1,6 +1,11 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, createRenderer, screen, describeJoyColorInversion } from 'test/utils'; +import { + describeConformance, + createRenderer, + screen, + describeJoyColorInversion, +} from '@mui-internal/test-utilities'; import { ThemeProvider } from '@mui/joy/styles'; import List, { listClasses as classes } from '@mui/joy/List'; import ListItem from '@mui/joy/ListItem'; diff --git a/packages/mui-joy/src/ListDivider/ListDivider.test.tsx b/packages/mui-joy/src/ListDivider/ListDivider.test.tsx index fc7c2bde18cf6c..cc54f70e48a6ec 100644 --- a/packages/mui-joy/src/ListDivider/ListDivider.test.tsx +++ b/packages/mui-joy/src/ListDivider/ListDivider.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, createRenderer, screen } from 'test/utils'; +import { describeConformance, createRenderer, screen } from '@mui-internal/test-utilities'; import { ThemeProvider } from '@mui/joy/styles'; import List from '@mui/joy/List'; import ListDivider, { listDividerClasses as classes } from '@mui/joy/ListDivider'; diff --git a/packages/mui-joy/src/ListItem/ListItem.test.tsx b/packages/mui-joy/src/ListItem/ListItem.test.tsx index bc10d7db269953..6713d68ce0063d 100644 --- a/packages/mui-joy/src/ListItem/ListItem.test.tsx +++ b/packages/mui-joy/src/ListItem/ListItem.test.tsx @@ -1,6 +1,11 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, createRenderer, screen, describeJoyColorInversion } from 'test/utils'; +import { + describeConformance, + createRenderer, + screen, + describeJoyColorInversion, +} from '@mui-internal/test-utilities'; import { ThemeProvider } from '@mui/joy/styles'; import MenuList from '@mui/joy/MenuList'; import List from '@mui/joy/List'; diff --git a/packages/mui-joy/src/ListItemButton/ListItemButton.test.tsx b/packages/mui-joy/src/ListItemButton/ListItemButton.test.tsx index 5ab7c298db99fb..cdc45dfc48c470 100644 --- a/packages/mui-joy/src/ListItemButton/ListItemButton.test.tsx +++ b/packages/mui-joy/src/ListItemButton/ListItemButton.test.tsx @@ -6,7 +6,7 @@ import { createRenderer, act, fireEvent, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import { ThemeProvider } from '@mui/joy/styles'; import ListItemButton, { listItemButtonClasses as classes } from '@mui/joy/ListItemButton'; diff --git a/packages/mui-joy/src/ListItemContent/ListItemContent.test.tsx b/packages/mui-joy/src/ListItemContent/ListItemContent.test.tsx index 63b0ba0d99328e..08eb74620c5d39 100644 --- a/packages/mui-joy/src/ListItemContent/ListItemContent.test.tsx +++ b/packages/mui-joy/src/ListItemContent/ListItemContent.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, createRenderer } from 'test/utils'; +import { describeConformance, createRenderer } from '@mui-internal/test-utilities'; import { ThemeProvider } from '@mui/joy/styles'; import ListItemContent, { listItemContentClasses as classes } from '@mui/joy/ListItemContent'; diff --git a/packages/mui-joy/src/ListItemDecorator/ListItemDecorator.test.tsx b/packages/mui-joy/src/ListItemDecorator/ListItemDecorator.test.tsx index 79aed7bc933374..65723010a7ebd0 100644 --- a/packages/mui-joy/src/ListItemDecorator/ListItemDecorator.test.tsx +++ b/packages/mui-joy/src/ListItemDecorator/ListItemDecorator.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, createRenderer } from 'test/utils'; +import { describeConformance, createRenderer } from '@mui-internal/test-utilities'; import { ThemeProvider } from '@mui/joy/styles'; import ListItemDecorator, { listItemDecoratorClasses as classes } from '@mui/joy/ListItemDecorator'; diff --git a/packages/mui-joy/src/ListSubheader/ListSubheader.test.tsx b/packages/mui-joy/src/ListSubheader/ListSubheader.test.tsx index d09aadf428a89a..fad82aec53fb3a 100644 --- a/packages/mui-joy/src/ListSubheader/ListSubheader.test.tsx +++ b/packages/mui-joy/src/ListSubheader/ListSubheader.test.tsx @@ -1,7 +1,11 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { describeConformance, createRenderer, describeJoyColorInversion } from 'test/utils'; +import { + describeConformance, + createRenderer, + describeJoyColorInversion, +} from '@mui-internal/test-utilities'; import { ThemeProvider } from '@mui/joy/styles'; import ListSubheader, { listSubheaderClasses as classes } from '@mui/joy/ListSubheader'; import ListSubheaderDispatch from './ListSubheaderContext'; diff --git a/packages/mui-joy/src/Menu/Menu.test.tsx b/packages/mui-joy/src/Menu/Menu.test.tsx index 6a9abc45921766..681f7878b61205 100644 --- a/packages/mui-joy/src/Menu/Menu.test.tsx +++ b/packages/mui-joy/src/Menu/Menu.test.tsx @@ -8,7 +8,7 @@ import { screen, fireEvent, describeJoyColorInversion, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import { Popper as PopperUnstyled } from '@mui/base/Popper'; import { DropdownContext, DropdownContextValue } from '@mui/base/useDropdown'; import { ThemeProvider } from '@mui/joy/styles'; diff --git a/packages/mui-joy/src/MenuButton/MenuButton.test.tsx b/packages/mui-joy/src/MenuButton/MenuButton.test.tsx index db611630242781..0535aeb2dadab0 100644 --- a/packages/mui-joy/src/MenuButton/MenuButton.test.tsx +++ b/packages/mui-joy/src/MenuButton/MenuButton.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import { DropdownContext, DropdownContextValue } from '@mui/base/useDropdown'; import { ThemeProvider } from '@mui/joy/styles'; import MenuButton, { menuButtonClasses as classes } from '@mui/joy/MenuButton'; diff --git a/packages/mui-joy/src/MenuItem/MenuItem.test.tsx b/packages/mui-joy/src/MenuItem/MenuItem.test.tsx index 661ce4dadecf81..511e778866aee4 100644 --- a/packages/mui-joy/src/MenuItem/MenuItem.test.tsx +++ b/packages/mui-joy/src/MenuItem/MenuItem.test.tsx @@ -8,7 +8,7 @@ import { fireEvent, screen, describeJoyColorInversion, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import { MenuProvider, MenuProviderValue } from '@mui/base/useMenu'; import { ThemeProvider } from '@mui/joy/styles'; import MenuItem, { menuItemClasses as classes } from '@mui/joy/MenuItem'; diff --git a/packages/mui-joy/src/MenuList/MenuList.test.tsx b/packages/mui-joy/src/MenuList/MenuList.test.tsx index 8861d7d436f146..d6a55d88de8bdb 100644 --- a/packages/mui-joy/src/MenuList/MenuList.test.tsx +++ b/packages/mui-joy/src/MenuList/MenuList.test.tsx @@ -1,6 +1,11 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, createRenderer, screen, describeJoyColorInversion } from 'test/utils'; +import { + describeConformance, + createRenderer, + screen, + describeJoyColorInversion, +} from '@mui-internal/test-utilities'; import { ThemeProvider } from '@mui/joy/styles'; import MenuList, { menuListClasses as classes } from '@mui/joy/MenuList'; diff --git a/packages/mui-joy/src/Modal/Modal.test.tsx b/packages/mui-joy/src/Modal/Modal.test.tsx index 15415281cb7593..183c436d42bab8 100644 --- a/packages/mui-joy/src/Modal/Modal.test.tsx +++ b/packages/mui-joy/src/Modal/Modal.test.tsx @@ -2,7 +2,13 @@ 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 'test/utils'; +import { + createRenderer, + describeConformance, + act, + fireEvent, + within, +} from '@mui-internal/test-utilities'; import { ThemeProvider } from '@mui/joy/styles'; import Modal, { modalClasses as classes, ModalProps } from '@mui/joy/Modal'; diff --git a/packages/mui-joy/src/ModalClose/ModalClose.test.tsx b/packages/mui-joy/src/ModalClose/ModalClose.test.tsx index 48f9a37da4c332..fc0f501bd03a0b 100644 --- a/packages/mui-joy/src/ModalClose/ModalClose.test.tsx +++ b/packages/mui-joy/src/ModalClose/ModalClose.test.tsx @@ -6,7 +6,7 @@ import { describeConformance, describeJoyColorInversion, fireEvent, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import { unstable_capitalize as capitalize } from '@mui/utils'; import { ThemeProvider } from '@mui/joy/styles'; import Modal from '@mui/joy/Modal'; diff --git a/packages/mui-joy/src/ModalDialog/ModalDialog.test.tsx b/packages/mui-joy/src/ModalDialog/ModalDialog.test.tsx index 437c52036b6fc8..66d2e45fd836cf 100644 --- a/packages/mui-joy/src/ModalDialog/ModalDialog.test.tsx +++ b/packages/mui-joy/src/ModalDialog/ModalDialog.test.tsx @@ -1,6 +1,10 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance, describeJoyColorInversion } from 'test/utils'; +import { + createRenderer, + describeConformance, + describeJoyColorInversion, +} from '@mui-internal/test-utilities'; import { unstable_capitalize as capitalize } from '@mui/utils'; import { ThemeProvider } from '@mui/joy/styles'; import ModalDialog, { modalDialogClasses as classes } from '@mui/joy/ModalDialog'; diff --git a/packages/mui-joy/src/ModalOverflow/ModalOverflow.test.tsx b/packages/mui-joy/src/ModalOverflow/ModalOverflow.test.tsx index 6b2268cc25fffb..2eebb3ebb929a2 100644 --- a/packages/mui-joy/src/ModalOverflow/ModalOverflow.test.tsx +++ b/packages/mui-joy/src/ModalOverflow/ModalOverflow.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import { ThemeProvider } from '@mui/joy/styles'; import ModalOverflow, { modalOverflowClasses as classes } from '@mui/joy/ModalOverflow'; diff --git a/packages/mui-joy/src/Radio/Radio.test.tsx b/packages/mui-joy/src/Radio/Radio.test.tsx index a3460d781e2260..cb48646a3dc22e 100644 --- a/packages/mui-joy/src/Radio/Radio.test.tsx +++ b/packages/mui-joy/src/Radio/Radio.test.tsx @@ -6,7 +6,7 @@ import { createRenderer, fireEvent, describeJoyColorInversion, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import Radio, { radioClasses as classes } from '@mui/joy/Radio'; import { ThemeProvider } from '@mui/joy/styles'; diff --git a/packages/mui-joy/src/RadioGroup/RadioGroup.test.tsx b/packages/mui-joy/src/RadioGroup/RadioGroup.test.tsx index 90f2665ad56884..4664c85ebf5b37 100644 --- a/packages/mui-joy/src/RadioGroup/RadioGroup.test.tsx +++ b/packages/mui-joy/src/RadioGroup/RadioGroup.test.tsx @@ -2,7 +2,13 @@ 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 'test/utils'; +import { + describeConformance, + act, + createRenderer, + fireEvent, + screen, +} from '@mui-internal/test-utilities'; import RadioGroup, { radioGroupClasses as classes, RadioGroupProps } from '@mui/joy/RadioGroup'; import Radio from '@mui/joy/Radio'; import { ThemeProvider } from '@mui/joy/styles'; diff --git a/packages/mui-joy/src/ScopedCssBaseline/ScopedCssBaseline.test.tsx b/packages/mui-joy/src/ScopedCssBaseline/ScopedCssBaseline.test.tsx index 19802b8143d99f..f9e995a2c6244d 100644 --- a/packages/mui-joy/src/ScopedCssBaseline/ScopedCssBaseline.test.tsx +++ b/packages/mui-joy/src/ScopedCssBaseline/ScopedCssBaseline.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import { ThemeProvider } from '@mui/joy/styles'; import ScopedCssBaseline, { scopedCssBaselineClasses as classes } from '@mui/joy/ScopedCssBaseline'; diff --git a/packages/mui-joy/src/Select/Select.test.tsx b/packages/mui-joy/src/Select/Select.test.tsx index 5a777cde503109..3b0752f235b1e7 100644 --- a/packages/mui-joy/src/Select/Select.test.tsx +++ b/packages/mui-joy/src/Select/Select.test.tsx @@ -8,7 +8,7 @@ import { createRenderer, fireEvent, screen, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import { ThemeProvider } from '@mui/joy/styles'; import Select, { selectClasses as classes, SelectOption } from '@mui/joy/Select'; import Option from '@mui/joy/Option'; diff --git a/packages/mui-joy/src/Sheet/Sheet.test.tsx b/packages/mui-joy/src/Sheet/Sheet.test.tsx index 210529638d6d8c..849f3c0ec8ecad 100644 --- a/packages/mui-joy/src/Sheet/Sheet.test.tsx +++ b/packages/mui-joy/src/Sheet/Sheet.test.tsx @@ -1,6 +1,10 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance, describeJoyColorInversion } from 'test/utils'; +import { + createRenderer, + describeConformance, + describeJoyColorInversion, +} from '@mui-internal/test-utilities'; import { unstable_capitalize as capitalize } from '@mui/utils'; import { ThemeProvider } from '@mui/joy/styles'; import Sheet, { sheetClasses as classes, SheetClassKey } from '@mui/joy/Sheet'; diff --git a/packages/mui-joy/src/Skeleton/Skeleton.test.tsx b/packages/mui-joy/src/Skeleton/Skeleton.test.tsx index 0c130cd18a70c9..acf09156e91c39 100644 --- a/packages/mui-joy/src/Skeleton/Skeleton.test.tsx +++ b/packages/mui-joy/src/Skeleton/Skeleton.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import { ThemeProvider } from '@mui/joy/styles'; import Skeleton, { skeletonClasses as classes } from '@mui/joy/Skeleton'; diff --git a/packages/mui-joy/src/Slider/Slider.test.tsx b/packages/mui-joy/src/Slider/Slider.test.tsx index 40767eb0060e85..df1f16e88825ba 100644 --- a/packages/mui-joy/src/Slider/Slider.test.tsx +++ b/packages/mui-joy/src/Slider/Slider.test.tsx @@ -1,6 +1,10 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, createRenderer, describeJoyColorInversion } from 'test/utils'; +import { + describeConformance, + createRenderer, + describeJoyColorInversion, +} from '@mui-internal/test-utilities'; import Slider, { sliderClasses as classes } from '@mui/joy/Slider'; import { ThemeProvider } from '@mui/joy/styles'; diff --git a/packages/mui-joy/src/Stack/Stack.test.tsx b/packages/mui-joy/src/Stack/Stack.test.tsx index 44dd7ecead741c..ef49cb3f7e451b 100644 --- a/packages/mui-joy/src/Stack/Stack.test.tsx +++ b/packages/mui-joy/src/Stack/Stack.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, createRenderer } from 'test/utils'; +import { describeConformance, createRenderer } from '@mui-internal/test-utilities'; import { ThemeProvider } from '@mui/joy/styles'; import Stack, { stackClasses as classes } from '@mui/joy/Stack'; diff --git a/packages/mui-joy/src/SvgIcon/SvgIcon.test.tsx b/packages/mui-joy/src/SvgIcon/SvgIcon.test.tsx index a24cf0f87cfe4c..c7a44d6c570a9c 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 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import { unstable_capitalize as capitalize } from '@mui/utils'; import SvgIcon, { svgIconClasses as classes, diff --git a/packages/mui-joy/src/Switch/Switch.test.tsx b/packages/mui-joy/src/Switch/Switch.test.tsx index ea44532064c45a..9fd068388be8aa 100644 --- a/packages/mui-joy/src/Switch/Switch.test.tsx +++ b/packages/mui-joy/src/Switch/Switch.test.tsx @@ -7,7 +7,7 @@ import { createRenderer, fireEvent, screen, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import Switch, { switchClasses as classes } from '@mui/joy/Switch'; import { ThemeProvider } from '@mui/joy/styles'; diff --git a/packages/mui-joy/src/Tab/Tab.test.tsx b/packages/mui-joy/src/Tab/Tab.test.tsx index a7ddb7a211d651..df5e1d22e1f791 100644 --- a/packages/mui-joy/src/Tab/Tab.test.tsx +++ b/packages/mui-joy/src/Tab/Tab.test.tsx @@ -1,6 +1,11 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, createRenderer, screen, describeJoyColorInversion } from 'test/utils'; +import { + describeConformance, + createRenderer, + screen, + describeJoyColorInversion, +} from '@mui-internal/test-utilities'; import { TabsProps } from '@mui/base/Tabs'; import { useTabs, TabsProvider as BaseTabsProvider } from '@mui/base/useTabs'; import { useTabsList, TabsListProvider as BaseTabsListProvider } from '@mui/base/useTabsList'; diff --git a/packages/mui-joy/src/TabList/TabList.test.tsx b/packages/mui-joy/src/TabList/TabList.test.tsx index e470696b27412c..ce19c4ee3f391c 100644 --- a/packages/mui-joy/src/TabList/TabList.test.tsx +++ b/packages/mui-joy/src/TabList/TabList.test.tsx @@ -1,6 +1,11 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, createRenderer, screen, describeJoyColorInversion } from 'test/utils'; +import { + describeConformance, + createRenderer, + screen, + describeJoyColorInversion, +} from '@mui-internal/test-utilities'; import { TabsProps } from '@mui/base/Tabs'; import { useTabs, TabsProvider as BaseTabsProvider } from '@mui/base/useTabs'; import { ThemeProvider } from '@mui/joy/styles'; diff --git a/packages/mui-joy/src/TabPanel/TabPanel.test.tsx b/packages/mui-joy/src/TabPanel/TabPanel.test.tsx index 5b92545f915479..910c4459ef23ce 100644 --- a/packages/mui-joy/src/TabPanel/TabPanel.test.tsx +++ b/packages/mui-joy/src/TabPanel/TabPanel.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, createRenderer, screen } from 'test/utils'; +import { describeConformance, createRenderer, screen } from '@mui-internal/test-utilities'; import { TabsProps } from '@mui/base/Tabs'; import { useTabs, TabsProvider as BaseTabsProvider } from '@mui/base/useTabs'; import { ThemeProvider } from '@mui/joy/styles'; diff --git a/packages/mui-joy/src/Table/Table.test.tsx b/packages/mui-joy/src/Table/Table.test.tsx index 13c88b34a59962..254046f03e8914 100644 --- a/packages/mui-joy/src/Table/Table.test.tsx +++ b/packages/mui-joy/src/Table/Table.test.tsx @@ -1,6 +1,10 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance, describeJoyColorInversion } from 'test/utils'; +import { + createRenderer, + describeConformance, + describeJoyColorInversion, +} from '@mui-internal/test-utilities'; import { unstable_capitalize as capitalize } from '@mui/utils'; import { ThemeProvider } from '@mui/joy/styles'; import Table, { tableClasses as classes } from '@mui/joy/Table'; diff --git a/packages/mui-joy/src/Tabs/Tabs.test.tsx b/packages/mui-joy/src/Tabs/Tabs.test.tsx index 3d470173bfb424..b5a2fcf6f41aba 100644 --- a/packages/mui-joy/src/Tabs/Tabs.test.tsx +++ b/packages/mui-joy/src/Tabs/Tabs.test.tsx @@ -1,6 +1,11 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, createRenderer, screen, describeJoyColorInversion } from 'test/utils'; +import { + describeConformance, + createRenderer, + screen, + describeJoyColorInversion, +} from '@mui-internal/test-utilities'; import { ThemeProvider } from '@mui/joy/styles'; import Tabs, { tabsClasses as classes } from '@mui/joy/Tabs'; import SizeTabsContext from './SizeTabsContext'; diff --git a/packages/mui-joy/src/Textarea/Textarea.test.tsx b/packages/mui-joy/src/Textarea/Textarea.test.tsx index dfe176c48421b9..ee94d3fb1a7087 100644 --- a/packages/mui-joy/src/Textarea/Textarea.test.tsx +++ b/packages/mui-joy/src/Textarea/Textarea.test.tsx @@ -8,7 +8,7 @@ import { screen, act, fireEvent, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import Textarea, { textareaClasses as classes } from '@mui/joy/Textarea'; import { ThemeProvider } from '@mui/joy/styles'; diff --git a/packages/mui-joy/src/ToggleButtonGroup/ToggleButtonGroup.test.tsx b/packages/mui-joy/src/ToggleButtonGroup/ToggleButtonGroup.test.tsx index 40a27fe0703948..35ebd6ed2da6aa 100644 --- a/packages/mui-joy/src/ToggleButtonGroup/ToggleButtonGroup.test.tsx +++ b/packages/mui-joy/src/ToggleButtonGroup/ToggleButtonGroup.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { createRenderer, describeConformance, screen } from 'test/utils'; +import { createRenderer, describeConformance, screen } from '@mui-internal/test-utilities'; import { ThemeProvider } from '@mui/joy/styles'; import ToggleButtonGroup, { toggleButtonGroupClasses as classes } from '@mui/joy/ToggleButtonGroup'; import Button from '@mui/joy/Button'; diff --git a/packages/mui-joy/src/Tooltip/Tooltip.test.tsx b/packages/mui-joy/src/Tooltip/Tooltip.test.tsx index fedcb3f3232120..b444790fdb235d 100644 --- a/packages/mui-joy/src/Tooltip/Tooltip.test.tsx +++ b/packages/mui-joy/src/Tooltip/Tooltip.test.tsx @@ -1,6 +1,10 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance, describeJoyColorInversion } from 'test/utils'; +import { + createRenderer, + describeConformance, + describeJoyColorInversion, +} from '@mui-internal/test-utilities'; import { unstable_capitalize as capitalize } from '@mui/utils'; import { PopperProps } from '@mui/base'; import { ThemeProvider } from '@mui/joy/styles'; diff --git a/packages/mui-joy/src/Typography/Typography.test.tsx b/packages/mui-joy/src/Typography/Typography.test.tsx index a3432137248a05..0b637ab7e42ad9 100644 --- a/packages/mui-joy/src/Typography/Typography.test.tsx +++ b/packages/mui-joy/src/Typography/Typography.test.tsx @@ -1,6 +1,10 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance, describeJoyColorInversion } from 'test/utils'; +import { + createRenderer, + describeConformance, + describeJoyColorInversion, +} from '@mui-internal/test-utilities'; import Typography, { typographyClasses as classes, TypographyProps } from '@mui/joy/Typography'; import { ThemeProvider } from '@mui/joy/styles'; diff --git a/packages/mui-joy/src/styles/ColorInversion.test.js b/packages/mui-joy/src/styles/ColorInversion.test.js index 6da281dde59606..98a7c5e8a75af7 100644 --- a/packages/mui-joy/src/styles/ColorInversion.test.js +++ b/packages/mui-joy/src/styles/ColorInversion.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import sinon from 'sinon'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import useThemeProps from './useThemeProps'; import ThemeProvider from './ThemeProvider'; import ColorInversion, { useColorInversion } from './ColorInversion'; diff --git a/packages/mui-joy/src/styles/CssVarsProvider.test.tsx b/packages/mui-joy/src/styles/CssVarsProvider.test.tsx index 038856181aa8fd..e168edbe3bc3ce 100644 --- a/packages/mui-joy/src/styles/CssVarsProvider.test.tsx +++ b/packages/mui-joy/src/styles/CssVarsProvider.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, screen } from 'test/utils'; +import { createRenderer, screen } from '@mui-internal/test-utilities'; import { CssVarsProvider, extendTheme, useTheme, shouldSkipGeneratingVar } from '@mui/joy/styles'; describe('[Joy] CssVarsProvider', () => { diff --git a/packages/mui-joy/src/styles/ThemeProvider.test.tsx b/packages/mui-joy/src/styles/ThemeProvider.test.tsx index ea4eabf0b0abdd..3453dd7b6c74b2 100644 --- a/packages/mui-joy/src/styles/ThemeProvider.test.tsx +++ b/packages/mui-joy/src/styles/ThemeProvider.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import { ThemeProvider, useTheme } from '@mui/joy/styles'; import defaultTheme from './defaultTheme'; diff --git a/packages/mui-joy/src/styles/extendTheme.test.js b/packages/mui-joy/src/styles/extendTheme.test.js index 93d26913c93f62..60caa0fa435640 100644 --- a/packages/mui-joy/src/styles/extendTheme.test.js +++ b/packages/mui-joy/src/styles/extendTheme.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import { extendTheme, useTheme, CssVarsProvider } from '@mui/joy/styles'; describe('extendTheme', () => { diff --git a/packages/mui-joy/src/styles/styled.test.tsx b/packages/mui-joy/src/styles/styled.test.tsx index 8ce677f6efd539..8f6e79602ad9d7 100644 --- a/packages/mui-joy/src/styles/styled.test.tsx +++ b/packages/mui-joy/src/styles/styled.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import { CssVarsProvider, ThemeProvider, styled, extendTheme } from '@mui/joy/styles'; import defaultTheme from './defaultTheme'; diff --git a/packages/mui-joy/src/styles/variantColorInheritance.test.tsx b/packages/mui-joy/src/styles/variantColorInheritance.test.tsx index e6271640e026a7..808aadf37701be 100644 --- a/packages/mui-joy/src/styles/variantColorInheritance.test.tsx +++ b/packages/mui-joy/src/styles/variantColorInheritance.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import { VariantColorProvider, useVariantColor } from './variantColorInheritance'; describe('VariantColorProvider', () => { diff --git a/packages/mui-joy/src/utils/useSlot.test.tsx b/packages/mui-joy/src/utils/useSlot.test.tsx index 3bac136dc2ed64..5cee65b078009c 100644 --- a/packages/mui-joy/src/utils/useSlot.test.tsx +++ b/packages/mui-joy/src/utils/useSlot.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import { Popper } from '@mui/base/Popper'; import { ColorPaletteProp, styled, VariantProp } from '../styles'; import { CreateSlotsAndSlotProps, SlotProps } from './types'; diff --git a/packages/mui-joy/test/integration/TabsIntegration.test.tsx b/packages/mui-joy/test/integration/TabsIntegration.test.tsx index b99a03e927a7a6..2aa5b49ae12064 100644 --- a/packages/mui-joy/test/integration/TabsIntegration.test.tsx +++ b/packages/mui-joy/test/integration/TabsIntegration.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import Tabs from '@mui/joy/Tabs'; import TabList from '@mui/joy/TabList'; import Tab from '@mui/joy/Tab'; diff --git a/packages/mui-lab/package.json b/packages/mui-lab/package.json index 5700aacffa39dd..e560c6419f186b 100644 --- a/packages/mui-lab/package.json +++ b/packages/mui-lab/package.json @@ -51,6 +51,7 @@ "prop-types": "^15.8.1" }, "devDependencies": { + "@mui-internal/test-utilities": "^1.0.0", "@types/chai": "^4.3.5", "@types/prop-types": "^15.7.5", "@types/react": "^18.2.21", @@ -59,8 +60,7 @@ "chai": "^4.3.7", "react": "^18.2.0", "react-dom": "^18.2.0", - "sinon": "^15.2.0", - "test": "^5.0.0" + "sinon": "^15.2.0" }, "peerDependencies": { "@emotion/react": "^11.5.0", diff --git a/packages/mui-lab/src/LoadingButton/LoadingButton.test.js b/packages/mui-lab/src/LoadingButton/LoadingButton.test.js index 6de4f929436a77..84c40808ad280a 100644 --- a/packages/mui-lab/src/LoadingButton/LoadingButton.test.js +++ b/packages/mui-lab/src/LoadingButton/LoadingButton.test.js @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, describeConformance, screen, within } from 'test/utils'; +import { createRenderer, describeConformance, screen, within } from '@mui-internal/test-utilities'; import { expect } from 'chai'; import Button from '@mui/material/Button'; import LoadingButton, { loadingButtonClasses as classes } from '@mui/lab/LoadingButton'; diff --git a/packages/mui-lab/src/Masonry/Masonry.test.js b/packages/mui-lab/src/Masonry/Masonry.test.js index f09a0c69b0ae27..0988b65748caff 100644 --- a/packages/mui-lab/src/Masonry/Masonry.test.js +++ b/packages/mui-lab/src/Masonry/Masonry.test.js @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import { expect } from 'chai'; import { createTheme } from '@mui/material/styles'; import defaultTheme from '@mui/material/styles/defaultTheme'; diff --git a/packages/mui-lab/src/TabContext/TabContext.test.js b/packages/mui-lab/src/TabContext/TabContext.test.js index 802c39e44b1f32..1af3c014534a8a 100644 --- a/packages/mui-lab/src/TabContext/TabContext.test.js +++ b/packages/mui-lab/src/TabContext/TabContext.test.js @@ -2,7 +2,7 @@ import * as React from 'react'; import * as ReactDOMServer from 'react-dom/server'; import { expect } from 'chai'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import TabContext, { getPanelId, getTabId, useTabContext } from './TabContext'; describe('', () => { diff --git a/packages/mui-lab/src/TabList/TabList.test.js b/packages/mui-lab/src/TabList/TabList.test.js index 8a99d65603c5b1..c514b7d793362b 100644 --- a/packages/mui-lab/src/TabList/TabList.test.js +++ b/packages/mui-lab/src/TabList/TabList.test.js @@ -1,7 +1,7 @@ // @ts-check import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import Tab from '@mui/material/Tab'; import Tabs, { tabsClasses as classes } from '@mui/material/Tabs'; import TabList from './TabList'; diff --git a/packages/mui-lab/src/TabPanel/TabPanel.test.tsx b/packages/mui-lab/src/TabPanel/TabPanel.test.tsx index 47908a1d1cd14b..efa20aa1134b3c 100644 --- a/packages/mui-lab/src/TabPanel/TabPanel.test.tsx +++ b/packages/mui-lab/src/TabPanel/TabPanel.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import TabPanel, { tabPanelClasses as classes } from '@mui/lab/TabPanel'; import TabContext from '../TabContext'; diff --git a/packages/mui-lab/src/Timeline/Timeline.test.tsx b/packages/mui-lab/src/Timeline/Timeline.test.tsx index 1c0aab5da7d025..fb57753371d3b8 100644 --- a/packages/mui-lab/src/Timeline/Timeline.test.tsx +++ b/packages/mui-lab/src/Timeline/Timeline.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance, screen } from 'test/utils'; +import { createRenderer, describeConformance, screen } from '@mui-internal/test-utilities'; import Timeline, { timelineClasses as classes } from '@mui/lab/Timeline'; describe('', () => { diff --git a/packages/mui-lab/src/TimelineConnector/TimelineConnector.test.js b/packages/mui-lab/src/TimelineConnector/TimelineConnector.test.js index d6e9bf06b43172..80b438a2a2743d 100644 --- a/packages/mui-lab/src/TimelineConnector/TimelineConnector.test.js +++ b/packages/mui-lab/src/TimelineConnector/TimelineConnector.test.js @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import TimelineConnector, { timelineConnectorClasses as classes } from '@mui/lab/TimelineConnector'; describe('', () => { diff --git a/packages/mui-lab/src/TimelineContent/TimelineContent.test.js b/packages/mui-lab/src/TimelineContent/TimelineContent.test.js index 7af431ccf15dcf..f854a9602044e0 100644 --- a/packages/mui-lab/src/TimelineContent/TimelineContent.test.js +++ b/packages/mui-lab/src/TimelineContent/TimelineContent.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import Typography from '@mui/material/Typography'; import Timeline from '@mui/lab/Timeline'; import TimelineItem from '@mui/lab/TimelineItem'; diff --git a/packages/mui-lab/src/TimelineDot/TimelineDot.test.js b/packages/mui-lab/src/TimelineDot/TimelineDot.test.js index 2e301df522812e..9a5f846c3f4c50 100644 --- a/packages/mui-lab/src/TimelineDot/TimelineDot.test.js +++ b/packages/mui-lab/src/TimelineDot/TimelineDot.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import TimelineDot, { timelineDotClasses as classes } from '@mui/lab/TimelineDot'; describe('', () => { diff --git a/packages/mui-lab/src/TimelineItem/TimelineItem.test.js b/packages/mui-lab/src/TimelineItem/TimelineItem.test.js index 961d96a7e285a0..d51b5e18dffdd3 100644 --- a/packages/mui-lab/src/TimelineItem/TimelineItem.test.js +++ b/packages/mui-lab/src/TimelineItem/TimelineItem.test.js @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import TimelineItem, { timelineItemClasses as classes } from '@mui/lab/TimelineItem'; describe('', () => { diff --git a/packages/mui-lab/src/TimelineOppositeContent/TimelineOppositeContent.test.js b/packages/mui-lab/src/TimelineOppositeContent/TimelineOppositeContent.test.js index d32183fdd18e0e..285355fa9f9389 100644 --- a/packages/mui-lab/src/TimelineOppositeContent/TimelineOppositeContent.test.js +++ b/packages/mui-lab/src/TimelineOppositeContent/TimelineOppositeContent.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import Typography from '@mui/material/Typography'; import Timeline from '@mui/lab/Timeline'; import TimelineItem from '@mui/lab/TimelineItem'; diff --git a/packages/mui-lab/src/TimelineSeparator/TimelineSeparator.test.js b/packages/mui-lab/src/TimelineSeparator/TimelineSeparator.test.js index 22d69543ab8872..eaa477b1f6eeb8 100644 --- a/packages/mui-lab/src/TimelineSeparator/TimelineSeparator.test.js +++ b/packages/mui-lab/src/TimelineSeparator/TimelineSeparator.test.js @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import TimelineSeparator, { timelineSeparatorClasses as classes } from '@mui/lab/TimelineSeparator'; describe('', () => { diff --git a/packages/mui-lab/test/integration/Tabs.test.js b/packages/mui-lab/test/integration/Tabs.test.js index 14537af5e135c3..861b0f9f82f4c8 100644 --- a/packages/mui-lab/test/integration/Tabs.test.js +++ b/packages/mui-lab/test/integration/Tabs.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import Tab from '@mui/material/Tab'; import TabContext from '@mui/lab/TabContext'; import TabList from '@mui/lab/TabList'; diff --git a/packages/mui-material-next/package.json b/packages/mui-material-next/package.json index c8b1a94e8ac2c7..945b48981b3749 100644 --- a/packages/mui-material-next/package.json +++ b/packages/mui-material-next/package.json @@ -52,6 +52,7 @@ "react-transition-group": "^4.4.5" }, "devDependencies": { + "@mui-internal/test-utilities": "^1.0.0", "@testing-library/user-event": "^14.4.3", "@types/chai": "^4.3.5", "@types/prop-types": "^15.7.5", @@ -63,8 +64,7 @@ "react": "^18.2.0", "react-dom": "^18.2.0", "react-router-dom": "^6.15.0", - "sinon": "^15.2.0", - "test": "^5.0.0" + "sinon": "^15.2.0" }, "peerDependencies": { "@emotion/react": "^11.5.0", diff --git a/packages/mui-material-next/src/Badge/Badge.test.tsx b/packages/mui-material-next/src/Badge/Badge.test.tsx index 0af87fc8dc9463..1bcd6849481cae 100644 --- a/packages/mui-material-next/src/Badge/Badge.test.tsx +++ b/packages/mui-material-next/src/Badge/Badge.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import Badge, { badgeClasses as classes } from '@mui/material-next/Badge'; import { CssVarsProvider, extendTheme } from '@mui/material-next/styles'; diff --git a/packages/mui-material-next/src/Button/Button.test.js b/packages/mui-material-next/src/Button/Button.test.js index 79e5a0017b72f4..a328f29c4cc8a9 100644 --- a/packages/mui-material-next/src/Button/Button.test.js +++ b/packages/mui-material-next/src/Button/Button.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { describeConformance, createRenderer, fireEvent, act } from 'test/utils'; +import { describeConformance, createRenderer, fireEvent, act } from '@mui-internal/test-utilities'; import { camelCase } from 'lodash'; import Button, { buttonClasses as classes } from '@mui/material-next/Button'; import { CssVarsProvider, extendTheme } from '@mui/material-next/styles'; diff --git a/packages/mui-material-next/src/ButtonBase/ButtonBase.test.tsx b/packages/mui-material-next/src/ButtonBase/ButtonBase.test.tsx index ab5d5da6070aba..a43c46e451c1d8 100644 --- a/packages/mui-material-next/src/ButtonBase/ButtonBase.test.tsx +++ b/packages/mui-material-next/src/ButtonBase/ButtonBase.test.tsx @@ -12,7 +12,7 @@ import { focusVisible, simulatePointerDevice, programmaticFocusTriggersFocusVisible, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import PropTypes from 'prop-types'; import { MuiCancellableEventHandler } from '@mui/base/utils/MuiCancellableEvent'; import { CssVarsProvider, extendTheme } from '@mui/material-next/styles'; diff --git a/packages/mui-material-next/src/ButtonBase/Ripple.test.js b/packages/mui-material-next/src/ButtonBase/Ripple.test.js index 6993128652e400..69f2250e60bb2b 100644 --- a/packages/mui-material-next/src/ButtonBase/Ripple.test.js +++ b/packages/mui-material-next/src/ButtonBase/Ripple.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import Ripple from './Ripple'; import classes from './touchRippleClasses'; diff --git a/packages/mui-material-next/src/ButtonBase/TouchRipple.test.js b/packages/mui-material-next/src/ButtonBase/TouchRipple.test.js index c2aedceff0a208..f89a0db6129758 100644 --- a/packages/mui-material-next/src/ButtonBase/TouchRipple.test.js +++ b/packages/mui-material-next/src/ButtonBase/TouchRipple.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, act, createRenderer } from 'test/utils'; +import { describeConformance, act, createRenderer } from '@mui-internal/test-utilities'; import TouchRipple, { DELAY_RIPPLE } from './TouchRipple'; const cb = () => {}; diff --git a/packages/mui-material-next/src/Chip/Chip.test.js b/packages/mui-material-next/src/Chip/Chip.test.js index 45f6cf1d9266a9..2ab0df7a962b05 100644 --- a/packages/mui-material-next/src/Chip/Chip.test.js +++ b/packages/mui-material-next/src/Chip/Chip.test.js @@ -9,7 +9,7 @@ import { focusVisible, simulatePointerDevice, programmaticFocusTriggersFocusVisible, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import { hexToRgb } from '@mui/system'; import { createTheme } from '@mui/material/styles'; import Avatar from '@mui/material/Avatar'; diff --git a/packages/mui-material-next/src/Input/Input.test.js b/packages/mui-material-next/src/Input/Input.test.js index 57cc9e4a9097fb..2cb0cbfa265b46 100644 --- a/packages/mui-material-next/src/Input/Input.test.js +++ b/packages/mui-material-next/src/Input/Input.test.js @@ -2,7 +2,13 @@ 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 'test/utils'; +import { + describeConformance, + act, + createRenderer, + fireEvent, + screen, +} from '@mui-internal/test-utilities'; import Input, { inputClasses as classes } from '@mui/material-next/Input'; describe('', () => { diff --git a/packages/mui-material-next/src/InputBase/InputBase.test.js b/packages/mui-material-next/src/InputBase/InputBase.test.js index a45e864d9e5917..6264182288dde6 100644 --- a/packages/mui-material-next/src/InputBase/InputBase.test.js +++ b/packages/mui-material-next/src/InputBase/InputBase.test.js @@ -3,7 +3,13 @@ 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 'test/utils'; +import { + describeConformance, + act, + createRenderer, + fireEvent, + screen, +} from '@mui-internal/test-utilities'; import { ThemeProvider } from '@emotion/react'; import FormControl, { useFormControl } from '@mui/material/FormControl'; import InputAdornment from '@mui/material/InputAdornment'; diff --git a/packages/mui-material-next/src/Slider/Slider.test.js b/packages/mui-material-next/src/Slider/Slider.test.js index 2dd6de50c8a409..9fc4852c0b5c59 100644 --- a/packages/mui-material-next/src/Slider/Slider.test.js +++ b/packages/mui-material-next/src/Slider/Slider.test.js @@ -2,7 +2,13 @@ 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 'test/utils'; +import { + describeConformance, + act, + createRenderer, + fireEvent, + screen, +} from '@mui-internal/test-utilities'; 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'; diff --git a/packages/mui-material-next/src/Tab/Tab.test.js b/packages/mui-material-next/src/Tab/Tab.test.js index 9aada780240f64..be784a145c08a2 100644 --- a/packages/mui-material-next/src/Tab/Tab.test.js +++ b/packages/mui-material-next/src/Tab/Tab.test.js @@ -3,7 +3,7 @@ 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 'test/utils'; +import { act, createRenderer, describeConformance, fireEvent } from '@mui-internal/test-utilities'; 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 4b4834d442141e..d15cdc720be705 100644 --- a/packages/mui-material-next/src/TabScrollButton/TabScrollButton.test.js +++ b/packages/mui-material-next/src/TabScrollButton/TabScrollButton.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import TabScrollButton, { tabScrollButtonClasses as classes, } from '@mui/material-next/TabScrollButton'; diff --git a/packages/mui-material-next/src/TablePagination/TablePagination.test.js b/packages/mui-material-next/src/TablePagination/TablePagination.test.js index e3052bb9bbe3ab..88f854d7828375 100644 --- a/packages/mui-material-next/src/TablePagination/TablePagination.test.js +++ b/packages/mui-material-next/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 'test/utils'; +import { describeConformance, fireEvent, createRenderer } from '@mui-internal/test-utilities'; import TableFooter from '@mui/material/TableFooter'; import TableCell from '@mui/material/TableCell'; import TableRow from '@mui/material/TableRow'; diff --git a/packages/mui-material-next/src/Tabs/ScrollbarSize.test.js b/packages/mui-material-next/src/Tabs/ScrollbarSize.test.js index 261a636223a50b..b3ef873726cc5b 100644 --- a/packages/mui-material-next/src/Tabs/ScrollbarSize.test.js +++ b/packages/mui-material-next/src/Tabs/ScrollbarSize.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy, stub } from 'sinon'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import ScrollbarSize from './ScrollbarSize'; describe('', () => { diff --git a/packages/mui-material-next/src/Tabs/Tabs.test.js b/packages/mui-material-next/src/Tabs/Tabs.test.js index cc68b2830a8fe8..079ef5c107bec4 100644 --- a/packages/mui-material-next/src/Tabs/Tabs.test.js +++ b/packages/mui-material-next/src/Tabs/Tabs.test.js @@ -8,7 +8,7 @@ import { fireEvent, screen, strictModeDoubleLoggingSuppressed, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import { createTheme, ThemeProvider } from '@mui/material/styles'; import { unstable_capitalize as capitalize } from '@mui/utils'; import Tab from '@mui/material-next/Tab'; diff --git a/packages/mui-material-next/src/styles/styled.test.js b/packages/mui-material-next/src/styles/styled.test.js index 28d4a0ef06dae6..66628a263c0a2a 100644 --- a/packages/mui-material-next/src/styles/styled.test.js +++ b/packages/mui-material-next/src/styles/styled.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, screen } from 'test/utils'; +import { createRenderer, screen } from '@mui-internal/test-utilities'; import { styled } from '@mui/material-next/styles'; describe('styled', () => { diff --git a/packages/mui-material/package.json b/packages/mui-material/package.json index 0674d53907cc7a..7050550514ce0e 100644 --- a/packages/mui-material/package.json +++ b/packages/mui-material/package.json @@ -59,6 +59,7 @@ "@mui/icons-material": "^5.14.9", "@mui/lab": "^5.0.0-alpha.145", "@mui/styles": "^5.14.10", + "@mui-internal/test-utilities": "^1.0.0", "@popperjs/core": "^2.11.8", "@rollup/plugin-replace": "^5.0.2", "@testing-library/dom": "^9.3.1", @@ -84,8 +85,7 @@ "rollup-plugin-node-globals": "^1.4.0", "rollup-plugin-node-resolve": "^5.2.0", "rollup-plugin-terser": "^7.0.2", - "sinon": "^15.2.0", - "test": "^5.0.0" + "sinon": "^15.2.0" }, "peerDependencies": { "@emotion/react": "^11.5.0", diff --git a/packages/mui-material/src/Accordion/Accordion.test.js b/packages/mui-material/src/Accordion/Accordion.test.js index ac7b9507bedd24..ebc37b62747a3b 100644 --- a/packages/mui-material/src/Accordion/Accordion.test.js +++ b/packages/mui-material/src/Accordion/Accordion.test.js @@ -2,7 +2,7 @@ import * as React from 'react'; import PropTypes from 'prop-types'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { describeConformance, createRenderer, fireEvent } from 'test/utils'; +import { describeConformance, createRenderer, fireEvent } from '@mui-internal/test-utilities'; import Accordion, { accordionClasses as classes } from '@mui/material/Accordion'; import Paper from '@mui/material/Paper'; import AccordionSummary from '@mui/material/AccordionSummary'; diff --git a/packages/mui-material/src/AccordionActions/AccordionActions.test.js b/packages/mui-material/src/AccordionActions/AccordionActions.test.js index 03ab384751d557..fad75b57e6b290 100644 --- a/packages/mui-material/src/AccordionActions/AccordionActions.test.js +++ b/packages/mui-material/src/AccordionActions/AccordionActions.test.js @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import AccordionActions, { accordionActionsClasses as classes, } from '@mui/material/AccordionActions'; diff --git a/packages/mui-material/src/AccordionDetails/AccordionDetails.test.js b/packages/mui-material/src/AccordionDetails/AccordionDetails.test.js index 08d38664921cbd..129295d603698e 100644 --- a/packages/mui-material/src/AccordionDetails/AccordionDetails.test.js +++ b/packages/mui-material/src/AccordionDetails/AccordionDetails.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import AccordionDetails, { accordionDetailsClasses as classes, } from '@mui/material/AccordionDetails'; diff --git a/packages/mui-material/src/AccordionSummary/AccordionSummary.test.js b/packages/mui-material/src/AccordionSummary/AccordionSummary.test.js index 10f24117c82498..fa5f6e00dc197d 100644 --- a/packages/mui-material/src/AccordionSummary/AccordionSummary.test.js +++ b/packages/mui-material/src/AccordionSummary/AccordionSummary.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { describeConformance, act, createRenderer, fireEvent } from 'test/utils'; +import { describeConformance, act, createRenderer, fireEvent } from '@mui-internal/test-utilities'; import AccordionSummary, { accordionSummaryClasses as classes, } from '@mui/material/AccordionSummary'; diff --git a/packages/mui-material/src/Alert/Alert.test.js b/packages/mui-material/src/Alert/Alert.test.js index 430d6880d42a0d..ccc71d725394d7 100644 --- a/packages/mui-material/src/Alert/Alert.test.js +++ b/packages/mui-material/src/Alert/Alert.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance, screen } from 'test/utils'; +import { createRenderer, describeConformance, screen } from '@mui-internal/test-utilities'; import { ThemeProvider, createTheme } from '@mui/material/styles'; import Alert, { alertClasses as classes } from '@mui/material/Alert'; import Paper, { paperClasses } from '@mui/material/Paper'; diff --git a/packages/mui-material/src/AlertTitle/AlertTitle.test.js b/packages/mui-material/src/AlertTitle/AlertTitle.test.js index 642af29b0ee89e..e79a81000a2f3a 100644 --- a/packages/mui-material/src/AlertTitle/AlertTitle.test.js +++ b/packages/mui-material/src/AlertTitle/AlertTitle.test.js @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import AlertTitle, { alertTitleClasses as classes } from '@mui/material/AlertTitle'; import Typography from '@mui/material/Typography'; diff --git a/packages/mui-material/src/AppBar/AppBar.test.js b/packages/mui-material/src/AppBar/AppBar.test.js index 066f137f40c5c3..fce3a68aafb6dd 100644 --- a/packages/mui-material/src/AppBar/AppBar.test.js +++ b/packages/mui-material/src/AppBar/AppBar.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance, screen } from 'test/utils'; +import { createRenderer, describeConformance, screen } from '@mui-internal/test-utilities'; import AppBar, { appBarClasses as classes } from '@mui/material/AppBar'; import Paper from '@mui/material/Paper'; diff --git a/packages/mui-material/src/Autocomplete/Autocomplete.test.js b/packages/mui-material/src/Autocomplete/Autocomplete.test.js index c8705e8f340829..e6644558a949e9 100644 --- a/packages/mui-material/src/Autocomplete/Autocomplete.test.js +++ b/packages/mui-material/src/Autocomplete/Autocomplete.test.js @@ -8,7 +8,7 @@ import { fireEvent, screen, strictModeDoubleLoggingSuppressed, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import { spy } from 'sinon'; import userEvent from '@testing-library/user-event'; import Box from '@mui/system/Box'; diff --git a/packages/mui-material/src/Avatar/Avatar.test.js b/packages/mui-material/src/Avatar/Avatar.test.js index 0d5ef55142e152..5e75c078e390ce 100644 --- a/packages/mui-material/src/Avatar/Avatar.test.js +++ b/packages/mui-material/src/Avatar/Avatar.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, fireEvent, describeConformance } from 'test/utils'; +import { createRenderer, fireEvent, describeConformance } from '@mui-internal/test-utilities'; import { spy } from 'sinon'; import Avatar, { avatarClasses as classes } from '@mui/material/Avatar'; import { createTheme, ThemeProvider } from '@mui/material/styles'; diff --git a/packages/mui-material/src/AvatarGroup/AvatarGroup.test.js b/packages/mui-material/src/AvatarGroup/AvatarGroup.test.js index 632a2b182c3418..555cfd12e2729c 100644 --- a/packages/mui-material/src/AvatarGroup/AvatarGroup.test.js +++ b/packages/mui-material/src/AvatarGroup/AvatarGroup.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, createRenderer } from 'test/utils'; +import { describeConformance, createRenderer } from '@mui-internal/test-utilities'; import Avatar from '@mui/material/Avatar'; import AvatarGroup, { avatarGroupClasses as classes } from '@mui/material/AvatarGroup'; diff --git a/packages/mui-material/src/Backdrop/Backdrop.test.js b/packages/mui-material/src/Backdrop/Backdrop.test.js index 6433b5712a7235..e9f40f7e5c843f 100644 --- a/packages/mui-material/src/Backdrop/Backdrop.test.js +++ b/packages/mui-material/src/Backdrop/Backdrop.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import Backdrop, { backdropClasses as classes } from '@mui/material/Backdrop'; import Fade from '@mui/material/Fade'; diff --git a/packages/mui-material/src/Badge/Badge.test.js b/packages/mui-material/src/Badge/Badge.test.js index 2206c1a8661a38..2a4ae49da9318b 100644 --- a/packages/mui-material/src/Badge/Badge.test.js +++ b/packages/mui-material/src/Badge/Badge.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import Badge, { badgeClasses as classes } from '@mui/material/Badge'; function findBadgeRoot(container) { diff --git a/packages/mui-material/src/BottomNavigation/BottomNavigation.test.js b/packages/mui-material/src/BottomNavigation/BottomNavigation.test.js index b92cd86fab4cde..6a3a238c009bf3 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 'test/utils'; +import { describeConformance, createRenderer, fireEvent } from '@mui-internal/test-utilities'; import BottomNavigation, { bottomNavigationClasses as classes, } from '@mui/material/BottomNavigation'; diff --git a/packages/mui-material/src/BottomNavigationAction/BottomNavigationAction.test.js b/packages/mui-material/src/BottomNavigationAction/BottomNavigationAction.test.js index 70ecd2b506c3e6..5f4ab250c7383f 100644 --- a/packages/mui-material/src/BottomNavigationAction/BottomNavigationAction.test.js +++ b/packages/mui-material/src/BottomNavigationAction/BottomNavigationAction.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { describeConformance, createRenderer, within } from 'test/utils'; +import { describeConformance, createRenderer, within } from '@mui-internal/test-utilities'; import BottomNavigationAction, { bottomNavigationActionClasses as classes, } from '@mui/material/BottomNavigationAction'; diff --git a/packages/mui-material/src/Box/Box.test.js b/packages/mui-material/src/Box/Box.test.js index aef94b0454fef9..56c708284a506a 100644 --- a/packages/mui-material/src/Box/Box.test.js +++ b/packages/mui-material/src/Box/Box.test.js @@ -1,7 +1,7 @@ /* eslint-disable material-ui/no-empty-box */ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import { createTheme, ThemeProvider } from '@mui/material/styles'; import Box from '@mui/material/Box'; import { unstable_ClassNameGenerator as ClassNameGenerator } from '@mui/material/className'; diff --git a/packages/mui-material/src/Breadcrumbs/BreadcrumbCollapsed.test.js b/packages/mui-material/src/Breadcrumbs/BreadcrumbCollapsed.test.js index 141b323a513aa5..0b426505b3ae94 100644 --- a/packages/mui-material/src/Breadcrumbs/BreadcrumbCollapsed.test.js +++ b/packages/mui-material/src/Breadcrumbs/BreadcrumbCollapsed.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { fireEvent, createRenderer } from 'test/utils'; +import { fireEvent, createRenderer } from '@mui-internal/test-utilities'; import BreadcrumbCollapsed from './BreadcrumbCollapsed'; describe('', () => { diff --git a/packages/mui-material/src/Breadcrumbs/Breadcrumbs.test.js b/packages/mui-material/src/Breadcrumbs/Breadcrumbs.test.js index 912c95172ec178..fc617af3758693 100644 --- a/packages/mui-material/src/Breadcrumbs/Breadcrumbs.test.js +++ b/packages/mui-material/src/Breadcrumbs/Breadcrumbs.test.js @@ -6,7 +6,7 @@ import { createRenderer, screen, strictModeDoubleLoggingSuppressed, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import Breadcrumbs, { breadcrumbsClasses as classes } from '@mui/material/Breadcrumbs'; import Typography from '@mui/material/Typography'; import FirstPageIcon from '../internal/svg-icons/FirstPage'; diff --git a/packages/mui-material/src/Button/Button.test.js b/packages/mui-material/src/Button/Button.test.js index a531e303a12243..bcee04a095523d 100644 --- a/packages/mui-material/src/Button/Button.test.js +++ b/packages/mui-material/src/Button/Button.test.js @@ -1,6 +1,12 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, act, createRenderer, fireEvent, screen } from 'test/utils'; +import { + describeConformance, + act, + createRenderer, + fireEvent, + screen, +} from '@mui-internal/test-utilities'; import { ClassNames } from '@emotion/react'; import { ThemeProvider, createTheme } from '@mui/material/styles'; import Button, { buttonClasses as classes } from '@mui/material/Button'; diff --git a/packages/mui-material/src/ButtonBase/ButtonBase.test.js b/packages/mui-material/src/ButtonBase/ButtonBase.test.js index 079846a3ea0d78..b24d679e095abd 100644 --- a/packages/mui-material/src/ButtonBase/ButtonBase.test.js +++ b/packages/mui-material/src/ButtonBase/ButtonBase.test.js @@ -11,7 +11,7 @@ import { focusVisible, simulatePointerDevice, programmaticFocusTriggersFocusVisible, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import PropTypes from 'prop-types'; import { ThemeProvider, createTheme } from '@mui/material/styles'; import ButtonBase, { buttonBaseClasses as classes } from '@mui/material/ButtonBase'; diff --git a/packages/mui-material/src/ButtonBase/Ripple.test.js b/packages/mui-material/src/ButtonBase/Ripple.test.js index 4c445dc4f6c065..bea058039f8807 100644 --- a/packages/mui-material/src/ButtonBase/Ripple.test.js +++ b/packages/mui-material/src/ButtonBase/Ripple.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import Ripple from './Ripple'; import classes from './touchRippleClasses'; diff --git a/packages/mui-material/src/ButtonBase/TouchRipple.test.js b/packages/mui-material/src/ButtonBase/TouchRipple.test.js index 5342e235152473..f8e0a4caf5e96b 100644 --- a/packages/mui-material/src/ButtonBase/TouchRipple.test.js +++ b/packages/mui-material/src/ButtonBase/TouchRipple.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, act, createRenderer } from 'test/utils'; +import { describeConformance, act, createRenderer } from '@mui-internal/test-utilities'; import TouchRipple, { DELAY_RIPPLE } from './TouchRipple'; const cb = () => {}; diff --git a/packages/mui-material/src/ButtonGroup/ButtonGroup.test.js b/packages/mui-material/src/ButtonGroup/ButtonGroup.test.js index e79439f7b13cba..184e3ae857954f 100644 --- a/packages/mui-material/src/ButtonGroup/ButtonGroup.test.js +++ b/packages/mui-material/src/ButtonGroup/ButtonGroup.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance, screen } from 'test/utils'; +import { createRenderer, describeConformance, screen } from '@mui-internal/test-utilities'; import ButtonGroup, { buttonGroupClasses as classes } from '@mui/material/ButtonGroup'; import { ThemeProvider, createTheme } from '@mui/material/styles'; import Button, { buttonClasses } from '@mui/material/Button'; diff --git a/packages/mui-material/src/Card/Card.test.tsx b/packages/mui-material/src/Card/Card.test.tsx index 11d7bb2a21c93a..9c25b6c30f4a2a 100644 --- a/packages/mui-material/src/Card/Card.test.tsx +++ b/packages/mui-material/src/Card/Card.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import Card, { cardClasses as classes } from '@mui/material/Card'; import Paper from '@mui/material/Paper'; diff --git a/packages/mui-material/src/CardActionArea/CardActionArea.test.js b/packages/mui-material/src/CardActionArea/CardActionArea.test.js index d3d9db7d1ce49c..ccb026fad1a37c 100644 --- a/packages/mui-material/src/CardActionArea/CardActionArea.test.js +++ b/packages/mui-material/src/CardActionArea/CardActionArea.test.js @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import CardActionArea, { cardActionAreaClasses as classes } from '@mui/material/CardActionArea'; import ButtonBase from '@mui/material/ButtonBase'; diff --git a/packages/mui-material/src/CardActions/CardActions.test.js b/packages/mui-material/src/CardActions/CardActions.test.js index 821827d7a516ff..56bddad7214e1b 100644 --- a/packages/mui-material/src/CardActions/CardActions.test.js +++ b/packages/mui-material/src/CardActions/CardActions.test.js @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import CardActions, { cardActionsClasses as classes } from '@mui/material/CardActions'; describe('', () => { diff --git a/packages/mui-material/src/CardContent/CardContent.test.js b/packages/mui-material/src/CardContent/CardContent.test.js index d7c92860c2f9f4..e2fb96160408ba 100644 --- a/packages/mui-material/src/CardContent/CardContent.test.js +++ b/packages/mui-material/src/CardContent/CardContent.test.js @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import CardContent, { cardContentClasses as classes } from '@mui/material/CardContent'; describe('', () => { diff --git a/packages/mui-material/src/CardHeader/CardHeader.test.js b/packages/mui-material/src/CardHeader/CardHeader.test.js index 59de5b89f0e2fe..b547b1eec50bd6 100644 --- a/packages/mui-material/src/CardHeader/CardHeader.test.js +++ b/packages/mui-material/src/CardHeader/CardHeader.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import { typographyClasses } from '@mui/material/Typography'; import CardHeader, { cardHeaderClasses as classes } from '@mui/material/CardHeader'; diff --git a/packages/mui-material/src/CardMedia/CardMedia.test.js b/packages/mui-material/src/CardMedia/CardMedia.test.js index 294346fe273fc7..d9ad1bc2355ab0 100644 --- a/packages/mui-material/src/CardMedia/CardMedia.test.js +++ b/packages/mui-material/src/CardMedia/CardMedia.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import PropTypes from 'prop-types'; import { expect } from 'chai'; -import { createRenderer, describeConformance, screen } from 'test/utils'; +import { createRenderer, describeConformance, screen } from '@mui-internal/test-utilities'; import CardMedia, { cardMediaClasses as classes } from '@mui/material/CardMedia'; describe('', () => { diff --git a/packages/mui-material/src/Checkbox/Checkbox.test.js b/packages/mui-material/src/Checkbox/Checkbox.test.js index 9d7f03b8b267cc..0aedb22a937592 100644 --- a/packages/mui-material/src/Checkbox/Checkbox.test.js +++ b/packages/mui-material/src/Checkbox/Checkbox.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { describeConformance, act, createRenderer } from 'test/utils'; +import { describeConformance, act, createRenderer } from '@mui-internal/test-utilities'; import Checkbox, { checkboxClasses as classes } from '@mui/material/Checkbox'; import FormControl from '@mui/material/FormControl'; import ButtonBase from '@mui/material/ButtonBase'; diff --git a/packages/mui-material/src/Chip/Chip.test.js b/packages/mui-material/src/Chip/Chip.test.js index dd5c45175c6f48..c6139a82ee4d7e 100644 --- a/packages/mui-material/src/Chip/Chip.test.js +++ b/packages/mui-material/src/Chip/Chip.test.js @@ -9,7 +9,7 @@ import { focusVisible, simulatePointerDevice, programmaticFocusTriggersFocusVisible, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import Avatar from '@mui/material/Avatar'; import Chip, { chipClasses as classes } from '@mui/material/Chip'; import { diff --git a/packages/mui-material/src/CircularProgress/CircularProgress.test.js b/packages/mui-material/src/CircularProgress/CircularProgress.test.js index 9df1871fea0270..ebe50c535bddb7 100644 --- a/packages/mui-material/src/CircularProgress/CircularProgress.test.js +++ b/packages/mui-material/src/CircularProgress/CircularProgress.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import CircularProgress, { circularProgressClasses as classes, } from '@mui/material/CircularProgress'; diff --git a/packages/mui-material/src/Collapse/Collapse.test.js b/packages/mui-material/src/Collapse/Collapse.test.js index afc48de4aebaf5..0f3ed83e34e600 100644 --- a/packages/mui-material/src/Collapse/Collapse.test.js +++ b/packages/mui-material/src/Collapse/Collapse.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy, stub } from 'sinon'; -import { act, createRenderer, describeConformance } from 'test/utils'; +import { act, createRenderer, describeConformance } from '@mui-internal/test-utilities'; import { Transition } from 'react-transition-group'; import { ThemeProvider, createTheme } from '@mui/material/styles'; import Collapse, { collapseClasses as classes } from '@mui/material/Collapse'; diff --git a/packages/mui-material/src/Container/Container.test.js b/packages/mui-material/src/Container/Container.test.js index c0ed5d82ab34b1..3649ee415c0096 100644 --- a/packages/mui-material/src/Container/Container.test.js +++ b/packages/mui-material/src/Container/Container.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, createRenderer } from 'test/utils'; +import { describeConformance, createRenderer } from '@mui-internal/test-utilities'; import Container, { containerClasses as classes } from '@mui/material/Container'; describe('', () => { diff --git a/packages/mui-material/src/CssBaseline/CssBaseline.test.js b/packages/mui-material/src/CssBaseline/CssBaseline.test.js index b6a443ac148bd0..0cc911b76dcf20 100644 --- a/packages/mui-material/src/CssBaseline/CssBaseline.test.js +++ b/packages/mui-material/src/CssBaseline/CssBaseline.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import CssBaseline from '@mui/material/CssBaseline'; import { ThemeProvider, createTheme, hexToRgb } from '@mui/material/styles'; diff --git a/packages/mui-material/src/Dialog/Dialog.test.js b/packages/mui-material/src/Dialog/Dialog.test.js index 6373cf216ab6be..ddff37476b8e27 100644 --- a/packages/mui-material/src/Dialog/Dialog.test.js +++ b/packages/mui-material/src/Dialog/Dialog.test.js @@ -1,7 +1,13 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { describeConformance, act, createRenderer, fireEvent, screen } from 'test/utils'; +import { + describeConformance, + act, + createRenderer, + fireEvent, + screen, +} from '@mui-internal/test-utilities'; import Modal from '@mui/material/Modal'; import Dialog, { dialogClasses as classes } from '@mui/material/Dialog'; import { ThemeProvider, createTheme } from '@mui/material/styles'; @@ -19,14 +25,14 @@ function userClick(element) { } /** - * @param {typeof import('test/utils').screen} view + * @param {typeof import('@mui-internal/test-utilities').screen} view */ function findBackdrop(view) { return view.getByRole('dialog').parentElement; } /** - * @param {typeof import('test/utils').screen} view + * @param {typeof import('@mui-internal/test-utilities').screen} view */ function clickBackdrop(view) { userClick(findBackdrop(view)); diff --git a/packages/mui-material/src/DialogActions/DialogActions.test.js b/packages/mui-material/src/DialogActions/DialogActions.test.js index e852dc8669a48a..537930d1a02497 100644 --- a/packages/mui-material/src/DialogActions/DialogActions.test.js +++ b/packages/mui-material/src/DialogActions/DialogActions.test.js @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import DialogActions, { dialogActionsClasses as classes } from '@mui/material/DialogActions'; describe('', () => { diff --git a/packages/mui-material/src/DialogContent/DialogContent.test.js b/packages/mui-material/src/DialogContent/DialogContent.test.js index 7c482c8f66772e..52e49dbeed93ae 100644 --- a/packages/mui-material/src/DialogContent/DialogContent.test.js +++ b/packages/mui-material/src/DialogContent/DialogContent.test.js @@ -1,5 +1,5 @@ import * as React from 'react'; -import { describeConformance, createRenderer } from 'test/utils'; +import { describeConformance, createRenderer } from '@mui-internal/test-utilities'; import DialogContent, { dialogContentClasses as classes } from '@mui/material/DialogContent'; describe('', () => { diff --git a/packages/mui-material/src/DialogContentText/DialogContentText.test.js b/packages/mui-material/src/DialogContentText/DialogContentText.test.js index 19c1b639ee40c7..ebdbd12364e39c 100644 --- a/packages/mui-material/src/DialogContentText/DialogContentText.test.js +++ b/packages/mui-material/src/DialogContentText/DialogContentText.test.js @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import Typography from '@mui/material/Typography'; import DialogContentText, { dialogContentTextClasses as classes, diff --git a/packages/mui-material/src/DialogTitle/DialogTitle.test.js b/packages/mui-material/src/DialogTitle/DialogTitle.test.js index 25d50a50d3c306..af85250983560d 100644 --- a/packages/mui-material/src/DialogTitle/DialogTitle.test.js +++ b/packages/mui-material/src/DialogTitle/DialogTitle.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, createRenderer } from 'test/utils'; +import { describeConformance, createRenderer } from '@mui-internal/test-utilities'; import Typography from '@mui/material/Typography'; import DialogTitle, { dialogTitleClasses as classes } from '@mui/material/DialogTitle'; import Dialog from '@mui/material/Dialog'; diff --git a/packages/mui-material/src/Divider/Divider.test.js b/packages/mui-material/src/Divider/Divider.test.js index 91280cfa6e0419..9f4beffd14bef9 100644 --- a/packages/mui-material/src/Divider/Divider.test.js +++ b/packages/mui-material/src/Divider/Divider.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, createRenderer } from 'test/utils'; +import { describeConformance, createRenderer } from '@mui-internal/test-utilities'; import Divider, { dividerClasses as classes } from '@mui/material/Divider'; describe('', () => { diff --git a/packages/mui-material/src/Drawer/Drawer.test.js b/packages/mui-material/src/Drawer/Drawer.test.js index c78c0f66e82c11..d93409d87b7c7a 100644 --- a/packages/mui-material/src/Drawer/Drawer.test.js +++ b/packages/mui-material/src/Drawer/Drawer.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { createRenderer, describeConformance, screen } from 'test/utils'; +import { createRenderer, describeConformance, screen } from '@mui-internal/test-utilities'; import { ThemeProvider, createTheme } from '@mui/material/styles'; import Drawer, { drawerClasses as classes } from '@mui/material/Drawer'; import { getAnchor, isHorizontal } from './Drawer'; diff --git a/packages/mui-material/src/Fab/Fab.test.js b/packages/mui-material/src/Fab/Fab.test.js index 78b91555a67cd7..19c2c376e3f805 100644 --- a/packages/mui-material/src/Fab/Fab.test.js +++ b/packages/mui-material/src/Fab/Fab.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, createRenderer, act, fireEvent } from 'test/utils'; +import { describeConformance, createRenderer, act, fireEvent } from '@mui-internal/test-utilities'; import Fab, { fabClasses as classes } from '@mui/material/Fab'; import ButtonBase, { touchRippleClasses } from '@mui/material/ButtonBase'; import Icon from '@mui/material/Icon'; diff --git a/packages/mui-material/src/Fade/Fade.test.js b/packages/mui-material/src/Fade/Fade.test.js index 3b1621e5622c29..8246e4fb8a5689 100644 --- a/packages/mui-material/src/Fade/Fade.test.js +++ b/packages/mui-material/src/Fade/Fade.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import { Transition } from 'react-transition-group'; import Fade from '@mui/material/Fade'; import { ThemeProvider, createTheme } from '@mui/material/styles'; diff --git a/packages/mui-material/src/FilledInput/FilledInput.test.js b/packages/mui-material/src/FilledInput/FilledInput.test.js index 12d05b68974504..af1154c1217230 100644 --- a/packages/mui-material/src/FilledInput/FilledInput.test.js +++ b/packages/mui-material/src/FilledInput/FilledInput.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import FilledInput, { filledInputClasses as classes } from '@mui/material/FilledInput'; import InputBase from '@mui/material/InputBase'; diff --git a/packages/mui-material/src/FormControl/FormControl.test.js b/packages/mui-material/src/FormControl/FormControl.test.js index 0cb5aa7d738929..8ab7a0bbe85ad3 100644 --- a/packages/mui-material/src/FormControl/FormControl.test.js +++ b/packages/mui-material/src/FormControl/FormControl.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { describeConformance, act, createRenderer } from 'test/utils'; +import { describeConformance, act, createRenderer } from '@mui-internal/test-utilities'; import FormControl, { formControlClasses as classes } from '@mui/material/FormControl'; import Input from '@mui/material/Input'; import Select from '@mui/material/Select'; diff --git a/packages/mui-material/src/FormControlLabel/FormControlLabel.test.js b/packages/mui-material/src/FormControlLabel/FormControlLabel.test.js index f2ef25f819bd64..f430f073986721 100644 --- a/packages/mui-material/src/FormControlLabel/FormControlLabel.test.js +++ b/packages/mui-material/src/FormControlLabel/FormControlLabel.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import FormControlLabel, { formControlLabelClasses as classes, } from '@mui/material/FormControlLabel'; diff --git a/packages/mui-material/src/FormGroup/FormGroup.test.js b/packages/mui-material/src/FormGroup/FormGroup.test.js index 9321816aa6c2db..7087a2833714ff 100644 --- a/packages/mui-material/src/FormGroup/FormGroup.test.js +++ b/packages/mui-material/src/FormGroup/FormGroup.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import FormGroup, { formGroupClasses as classes } from '@mui/material/FormGroup'; import FormControl from '@mui/material/FormControl'; diff --git a/packages/mui-material/src/FormHelperText/FormHelperText.test.js b/packages/mui-material/src/FormHelperText/FormHelperText.test.js index 9d367aac2a5f07..800061ef8df96b 100644 --- a/packages/mui-material/src/FormHelperText/FormHelperText.test.js +++ b/packages/mui-material/src/FormHelperText/FormHelperText.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import FormHelperText, { formHelperTextClasses as classes } from '@mui/material/FormHelperText'; import FormControl from '@mui/material/FormControl'; diff --git a/packages/mui-material/src/FormLabel/FormLabel.test.js b/packages/mui-material/src/FormLabel/FormLabel.test.js index 3fd3411cd7756a..6c6fbd94e1a618 100644 --- a/packages/mui-material/src/FormLabel/FormLabel.test.js +++ b/packages/mui-material/src/FormLabel/FormLabel.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import PropTypes from 'prop-types'; import { expect } from 'chai'; -import { describeConformance, act, createRenderer } from 'test/utils'; +import { describeConformance, act, createRenderer } from '@mui-internal/test-utilities'; import FormLabel, { formLabelClasses as classes } from '@mui/material/FormLabel'; import FormControl, { useFormControl } from '@mui/material/FormControl'; import { hexToRgb } from '@mui/material/styles'; diff --git a/packages/mui-material/src/GlobalStyles/GlobalStyles.test.js b/packages/mui-material/src/GlobalStyles/GlobalStyles.test.js index 17f9fb7086a77a..b15a0fd5037f31 100644 --- a/packages/mui-material/src/GlobalStyles/GlobalStyles.test.js +++ b/packages/mui-material/src/GlobalStyles/GlobalStyles.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import GlobalStyles from '@mui/material/GlobalStyles'; import { ThemeProvider, createTheme } from '@mui/material//styles/'; diff --git a/packages/mui-material/src/Grid/Grid.test.js b/packages/mui-material/src/Grid/Grid.test.js index c7b031abdb8446..f952182163b9f9 100644 --- a/packages/mui-material/src/Grid/Grid.test.js +++ b/packages/mui-material/src/Grid/Grid.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, createRenderer, screen } from 'test/utils'; +import { describeConformance, createRenderer, screen } from '@mui-internal/test-utilities'; import { createTheme, ThemeProvider } from '@mui/material/styles'; import defaultTheme from '@mui/material/styles/defaultTheme'; import Grid, { gridClasses as classes } from '@mui/material/Grid'; diff --git a/packages/mui-material/src/Grow/Grow.test.js b/packages/mui-material/src/Grow/Grow.test.js index 9848c3d54dc1af..5845834e271a3c 100644 --- a/packages/mui-material/src/Grow/Grow.test.js +++ b/packages/mui-material/src/Grow/Grow.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import { Transition } from 'react-transition-group'; import { createTheme, ThemeProvider } from '@mui/material/styles'; import Grow from '@mui/material/Grow'; diff --git a/packages/mui-material/src/Hidden/Hidden.test.js b/packages/mui-material/src/Hidden/Hidden.test.js index 2ab58034152857..1f131ea1dc9b86 100644 --- a/packages/mui-material/src/Hidden/Hidden.test.js +++ b/packages/mui-material/src/Hidden/Hidden.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import Hidden from '@mui/material/Hidden'; describe('', () => { diff --git a/packages/mui-material/src/Hidden/HiddenCss.test.js b/packages/mui-material/src/Hidden/HiddenCss.test.js index 83f7c4f279b0a5..36a90afa0208fd 100644 --- a/packages/mui-material/src/Hidden/HiddenCss.test.js +++ b/packages/mui-material/src/Hidden/HiddenCss.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, strictModeDoubleLoggingSuppressed } from 'test/utils'; +import { createRenderer, strictModeDoubleLoggingSuppressed } from '@mui-internal/test-utilities'; import HiddenCss from './HiddenCss'; import { createTheme, ThemeProvider } from '../styles'; import classes from './hiddenCssClasses'; diff --git a/packages/mui-material/src/Hidden/HiddenJs.test.js b/packages/mui-material/src/Hidden/HiddenJs.test.js index d96dab021d81da..005af110748cdb 100644 --- a/packages/mui-material/src/Hidden/HiddenJs.test.js +++ b/packages/mui-material/src/Hidden/HiddenJs.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import HiddenJs from './HiddenJs'; describe('', () => { diff --git a/packages/mui-material/src/Icon/Icon.test.js b/packages/mui-material/src/Icon/Icon.test.js index e1c22af46319d5..bcf5c55009765b 100644 --- a/packages/mui-material/src/Icon/Icon.test.js +++ b/packages/mui-material/src/Icon/Icon.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import Icon, { iconClasses as classes } from '@mui/material/Icon'; describe('', () => { diff --git a/packages/mui-material/src/IconButton/IconButton.test.js b/packages/mui-material/src/IconButton/IconButton.test.js index 8dcad452cc84f7..e0b8cfdc4fdc64 100644 --- a/packages/mui-material/src/IconButton/IconButton.test.js +++ b/packages/mui-material/src/IconButton/IconButton.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import PropTypes from 'prop-types'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import { unstable_capitalize as capitalize } from '@mui/utils'; import { ThemeProvider, createTheme } from '@mui/material/styles'; import IconButton, { iconButtonClasses as classes } from '@mui/material/IconButton'; diff --git a/packages/mui-material/src/ImageList/ImageList.test.js b/packages/mui-material/src/ImageList/ImageList.test.js index 724dc0dabc8178..5179d7656a8fcd 100644 --- a/packages/mui-material/src/ImageList/ImageList.test.js +++ b/packages/mui-material/src/ImageList/ImageList.test.js @@ -1,6 +1,6 @@ import { expect } from 'chai'; import * as React from 'react'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import ImageList, { imageListClasses as classes } from '@mui/material/ImageList'; const itemsData = [ diff --git a/packages/mui-material/src/ImageListItem/ImageListItem.test.js b/packages/mui-material/src/ImageListItem/ImageListItem.test.js index d5be030ecccdde..a39e46db1093bc 100644 --- a/packages/mui-material/src/ImageListItem/ImageListItem.test.js +++ b/packages/mui-material/src/ImageListItem/ImageListItem.test.js @@ -1,6 +1,6 @@ import { expect } from 'chai'; import * as React from 'react'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import ImageList from '@mui/material/ImageList'; import ImageListItem, { imageListItemClasses as classes } from '@mui/material/ImageListItem'; diff --git a/packages/mui-material/src/ImageListItemBar/ImageListItemBar.test.js b/packages/mui-material/src/ImageListItemBar/ImageListItemBar.test.js index d1165a5c0595f3..b1c397c748141a 100644 --- a/packages/mui-material/src/ImageListItemBar/ImageListItemBar.test.js +++ b/packages/mui-material/src/ImageListItemBar/ImageListItemBar.test.js @@ -1,6 +1,6 @@ import { expect } from 'chai'; import * as React from 'react'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import ImageListItemBar, { imageListItemBarClasses as classes, } from '@mui/material/ImageListItemBar'; diff --git a/packages/mui-material/src/Input/Input.test.js b/packages/mui-material/src/Input/Input.test.js index 111685214225c6..59d444574802dc 100644 --- a/packages/mui-material/src/Input/Input.test.js +++ b/packages/mui-material/src/Input/Input.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import InputBase from '@mui/material/InputBase'; import Input, { inputClasses as classes } from '@mui/material/Input'; diff --git a/packages/mui-material/src/InputAdornment/InputAdornment.test.js b/packages/mui-material/src/InputAdornment/InputAdornment.test.js index bf7020be5bec60..19d0778733e740 100644 --- a/packages/mui-material/src/InputAdornment/InputAdornment.test.js +++ b/packages/mui-material/src/InputAdornment/InputAdornment.test.js @@ -1,6 +1,10 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance, strictModeDoubleLoggingSuppressed } from 'test/utils'; +import { + createRenderer, + describeConformance, + strictModeDoubleLoggingSuppressed, +} from '@mui-internal/test-utilities'; import { typographyClasses } from '@mui/material/Typography'; import InputAdornment, { inputAdornmentClasses as classes } from '@mui/material/InputAdornment'; import TextField from '@mui/material/TextField'; diff --git a/packages/mui-material/src/InputBase/InputBase.test.js b/packages/mui-material/src/InputBase/InputBase.test.js index 789df2c66cf233..076fddf081c6d2 100644 --- a/packages/mui-material/src/InputBase/InputBase.test.js +++ b/packages/mui-material/src/InputBase/InputBase.test.js @@ -2,7 +2,13 @@ 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 'test/utils'; +import { + describeConformance, + act, + createRenderer, + fireEvent, + screen, +} from '@mui-internal/test-utilities'; import { ThemeProvider } from '@emotion/react'; import FormControl, { useFormControl } from '@mui/material/FormControl'; import InputAdornment from '@mui/material/InputAdornment'; diff --git a/packages/mui-material/src/InputLabel/InputLabel.test.js b/packages/mui-material/src/InputLabel/InputLabel.test.js index 3027ef9374aa11..7b3905f767f0cb 100644 --- a/packages/mui-material/src/InputLabel/InputLabel.test.js +++ b/packages/mui-material/src/InputLabel/InputLabel.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import PropTypes from 'prop-types'; import { expect } from 'chai'; -import { describeConformance, act, createRenderer } from 'test/utils'; +import { describeConformance, act, createRenderer } from '@mui-internal/test-utilities'; import { ClassNames } from '@emotion/react'; import FormControl from '@mui/material/FormControl'; import Input from '@mui/material/Input'; diff --git a/packages/mui-material/src/LinearProgress/LinearProgress.test.js b/packages/mui-material/src/LinearProgress/LinearProgress.test.js index ac41f4bb04c7d9..9a0a6a03581dc8 100644 --- a/packages/mui-material/src/LinearProgress/LinearProgress.test.js +++ b/packages/mui-material/src/LinearProgress/LinearProgress.test.js @@ -5,7 +5,7 @@ import { screen, describeConformance, strictModeDoubleLoggingSuppressed, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import LinearProgress, { linearProgressClasses as classes } from '@mui/material/LinearProgress'; describe('', () => { diff --git a/packages/mui-material/src/Link/Link.test.js b/packages/mui-material/src/Link/Link.test.js index 14a934324e0cce..f0a28c32abf0b9 100644 --- a/packages/mui-material/src/Link/Link.test.js +++ b/packages/mui-material/src/Link/Link.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { act, createRenderer, fireEvent, describeConformance } from 'test/utils'; +import { act, createRenderer, fireEvent, describeConformance } from '@mui-internal/test-utilities'; import Link, { linkClasses as classes } from '@mui/material/Link'; import Typography, { typographyClasses } from '@mui/material/Typography'; diff --git a/packages/mui-material/src/List/List.test.js b/packages/mui-material/src/List/List.test.js index dbaaed4f12af2d..f637c9486c32b3 100644 --- a/packages/mui-material/src/List/List.test.js +++ b/packages/mui-material/src/List/List.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, createRenderer } from 'test/utils'; +import { describeConformance, createRenderer } from '@mui-internal/test-utilities'; import ListSubheader, { listSubheaderClasses } from '@mui/material/ListSubheader'; import ListItem, { listItemClasses } from '@mui/material/ListItem'; import List, { listClasses as classes } from '@mui/material/List'; diff --git a/packages/mui-material/src/ListItem/ListItem.test.js b/packages/mui-material/src/ListItem/ListItem.test.js index 8552b641a0435b..dfc32f959dd7be 100644 --- a/packages/mui-material/src/ListItem/ListItem.test.js +++ b/packages/mui-material/src/ListItem/ListItem.test.js @@ -1,7 +1,13 @@ import * as React from 'react'; import { expect } from 'chai'; import PropTypes from 'prop-types'; -import { describeConformance, act, createRenderer, fireEvent, queries } from 'test/utils'; +import { + describeConformance, + act, + createRenderer, + fireEvent, + queries, +} from '@mui-internal/test-utilities'; import { ThemeProvider, createTheme } from '@mui/material/styles'; import ListItemText from '@mui/material/ListItemText'; import ListItemSecondaryAction from '@mui/material/ListItemSecondaryAction'; diff --git a/packages/mui-material/src/ListItemAvatar/ListItemAvatar.test.js b/packages/mui-material/src/ListItemAvatar/ListItemAvatar.test.js index 76ddec77e5a99e..147cd4e6405f35 100644 --- a/packages/mui-material/src/ListItemAvatar/ListItemAvatar.test.js +++ b/packages/mui-material/src/ListItemAvatar/ListItemAvatar.test.js @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import ListItemAvatar, { listItemAvatarClasses as classes } from '@mui/material/ListItemAvatar'; describe('', () => { diff --git a/packages/mui-material/src/ListItemButton/ListItemButton.test.js b/packages/mui-material/src/ListItemButton/ListItemButton.test.js index 0803b23f795338..c45ee91b972287 100644 --- a/packages/mui-material/src/ListItemButton/ListItemButton.test.js +++ b/packages/mui-material/src/ListItemButton/ListItemButton.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, act, createRenderer, fireEvent } from 'test/utils'; +import { describeConformance, act, createRenderer, fireEvent } from '@mui-internal/test-utilities'; import ListItemButton, { listItemButtonClasses as classes } from '@mui/material/ListItemButton'; import ButtonBase from '@mui/material/ButtonBase'; import { ThemeProvider, createTheme } from '@mui/material/styles'; diff --git a/packages/mui-material/src/ListItemIcon/ListItemIcon.test.js b/packages/mui-material/src/ListItemIcon/ListItemIcon.test.js index 5c8b2482458e8e..a08ad62e428a9b 100644 --- a/packages/mui-material/src/ListItemIcon/ListItemIcon.test.js +++ b/packages/mui-material/src/ListItemIcon/ListItemIcon.test.js @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import ListItemIcon, { listItemIconClasses as classes } from '@mui/material/ListItemIcon'; describe('', () => { diff --git a/packages/mui-material/src/ListItemSecondaryAction/ListItemSecondaryAction.test.js b/packages/mui-material/src/ListItemSecondaryAction/ListItemSecondaryAction.test.js index e2e16012d35203..5a490b2a280739 100644 --- a/packages/mui-material/src/ListItemSecondaryAction/ListItemSecondaryAction.test.js +++ b/packages/mui-material/src/ListItemSecondaryAction/ListItemSecondaryAction.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import ListItem from '@mui/material/ListItem'; import ListItemSecondaryAction, { listItemSecondaryActionClasses as classes, diff --git a/packages/mui-material/src/ListItemText/ListItemText.test.js b/packages/mui-material/src/ListItemText/ListItemText.test.js index 74c763665191f8..f504eb2123f1a8 100644 --- a/packages/mui-material/src/ListItemText/ListItemText.test.js +++ b/packages/mui-material/src/ListItemText/ListItemText.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import Typography, { typographyClasses } from '@mui/material/Typography'; import ListItemText, { listItemTextClasses as classes } from '@mui/material/ListItemText'; diff --git a/packages/mui-material/src/ListSubheader/ListSubheader.test.js b/packages/mui-material/src/ListSubheader/ListSubheader.test.js index a22f9dcc689f64..01e64afc3c345f 100644 --- a/packages/mui-material/src/ListSubheader/ListSubheader.test.js +++ b/packages/mui-material/src/ListSubheader/ListSubheader.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, createRenderer } from 'test/utils'; +import { describeConformance, createRenderer } from '@mui-internal/test-utilities'; import ListSubheader, { listSubheaderClasses as classes } from '@mui/material/ListSubheader'; describe('', () => { diff --git a/packages/mui-material/src/Menu/Menu.test.js b/packages/mui-material/src/Menu/Menu.test.js index 902a5843441dd6..0f2fd5437ac46b 100644 --- a/packages/mui-material/src/Menu/Menu.test.js +++ b/packages/mui-material/src/Menu/Menu.test.js @@ -8,7 +8,7 @@ import { screen, fireEvent, strictModeDoubleLoggingSuppressed, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import Menu, { menuClasses as classes } from '@mui/material/Menu'; import Popover from '@mui/material/Popover'; import { createTheme, ThemeProvider } from '@mui/material/styles'; diff --git a/packages/mui-material/src/MenuItem/MenuItem.test.js b/packages/mui-material/src/MenuItem/MenuItem.test.js index 4289ae49302788..94173d5eb0ebcf 100644 --- a/packages/mui-material/src/MenuItem/MenuItem.test.js +++ b/packages/mui-material/src/MenuItem/MenuItem.test.js @@ -1,7 +1,13 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { act, describeConformance, createRenderer, fireEvent, screen } from 'test/utils'; +import { + act, + describeConformance, + createRenderer, + fireEvent, + screen, +} from '@mui-internal/test-utilities'; import MenuItem, { menuItemClasses as classes } from '@mui/material/MenuItem'; import ButtonBase from '@mui/material/ButtonBase'; import ListContext from '../List/ListContext'; diff --git a/packages/mui-material/src/MenuList/MenuList.test.js b/packages/mui-material/src/MenuList/MenuList.test.js index c59f6678e1af80..64538a9e7046a8 100644 --- a/packages/mui-material/src/MenuList/MenuList.test.js +++ b/packages/mui-material/src/MenuList/MenuList.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { stub } from 'sinon'; -import { describeConformance, createRenderer } from 'test/utils'; +import { describeConformance, createRenderer } from '@mui-internal/test-utilities'; import Divider from '@mui/material/Divider'; import MenuList from '@mui/material/MenuList'; import MenuItem from '@mui/material/MenuItem'; diff --git a/packages/mui-material/src/MobileStepper/MobileStepper.test.js b/packages/mui-material/src/MobileStepper/MobileStepper.test.js index fc124bd985f772..e850cef0913723 100644 --- a/packages/mui-material/src/MobileStepper/MobileStepper.test.js +++ b/packages/mui-material/src/MobileStepper/MobileStepper.test.js @@ -1,6 +1,11 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance, fireEvent, screen } from 'test/utils'; +import { + createRenderer, + describeConformance, + fireEvent, + screen, +} from '@mui-internal/test-utilities'; import Paper, { paperClasses } from '@mui/material/Paper'; import Button from '@mui/material/Button'; import MobileStepper, { mobileStepperClasses as classes } from '@mui/material/MobileStepper'; diff --git a/packages/mui-material/src/Modal/Modal.test.js b/packages/mui-material/src/Modal/Modal.test.js index 48fb7f34dd6eb1..a299ac51021bc6 100644 --- a/packages/mui-material/src/Modal/Modal.test.js +++ b/packages/mui-material/src/Modal/Modal.test.js @@ -3,7 +3,14 @@ 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 'test/utils'; +import { + act, + createRenderer, + fireEvent, + within, + describeConformance, + screen, +} from '@mui-internal/test-utilities'; import { createTheme, ThemeProvider } from '@mui/material/styles'; import Fade from '@mui/material/Fade'; import Modal, { modalClasses as classes } from '@mui/material/Modal'; diff --git a/packages/mui-material/src/NativeSelect/NativeSelect.test.js b/packages/mui-material/src/NativeSelect/NativeSelect.test.js index 0d0a538bba2a9a..987638ddeb8fa7 100644 --- a/packages/mui-material/src/NativeSelect/NativeSelect.test.js +++ b/packages/mui-material/src/NativeSelect/NativeSelect.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import { createTheme, ThemeProvider, styled } from '@mui/material/styles'; import NativeSelect, { nativeSelectClasses as classes } from '@mui/material/NativeSelect'; import Input, { inputClasses } from '@mui/material/Input'; diff --git a/packages/mui-material/src/NativeSelect/NativeSelectInput.test.js b/packages/mui-material/src/NativeSelect/NativeSelectInput.test.js index 28e4a4867f5a0c..97ce1d97a1f388 100644 --- a/packages/mui-material/src/NativeSelect/NativeSelectInput.test.js +++ b/packages/mui-material/src/NativeSelect/NativeSelectInput.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { describeConformance, createRenderer, fireEvent } from 'test/utils'; +import { describeConformance, createRenderer, fireEvent } from '@mui-internal/test-utilities'; import { createTheme, ThemeProvider } from '@mui/material/styles'; import NativeSelectInput from './NativeSelectInput'; import nativeSelectClasses from './nativeSelectClasses'; diff --git a/packages/mui-material/src/OutlinedInput/NotchedOutline.test.js b/packages/mui-material/src/OutlinedInput/NotchedOutline.test.js index 5b398479a4ceba..ae4b26b46343e7 100644 --- a/packages/mui-material/src/OutlinedInput/NotchedOutline.test.js +++ b/packages/mui-material/src/OutlinedInput/NotchedOutline.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import { ThemeProvider, createTheme } from '@mui/material/styles'; import NotchedOutline from './NotchedOutline'; diff --git a/packages/mui-material/src/OutlinedInput/OutlinedInput.test.js b/packages/mui-material/src/OutlinedInput/OutlinedInput.test.js index cbca44086563f3..618a90249c07e0 100644 --- a/packages/mui-material/src/OutlinedInput/OutlinedInput.test.js +++ b/packages/mui-material/src/OutlinedInput/OutlinedInput.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import { ThemeProvider, createTheme } from '@mui/material/styles'; import OutlinedInput, { outlinedInputClasses as classes } from '@mui/material/OutlinedInput'; import InputBase from '@mui/material/InputBase'; diff --git a/packages/mui-material/src/Pagination/Pagination.test.js b/packages/mui-material/src/Pagination/Pagination.test.js index efe1ae31100c3f..60094d32da1734 100644 --- a/packages/mui-material/src/Pagination/Pagination.test.js +++ b/packages/mui-material/src/Pagination/Pagination.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { describeConformance, createRenderer } from 'test/utils'; +import { describeConformance, createRenderer } from '@mui-internal/test-utilities'; import { createTheme, ThemeProvider } from '@mui/material/styles'; import Pagination, { paginationClasses as classes } from '@mui/material/Pagination'; import { paginationItemClasses } from '@mui/material/PaginationItem'; diff --git a/packages/mui-material/src/PaginationItem/PaginationItem.test.js b/packages/mui-material/src/PaginationItem/PaginationItem.test.js index 39efb6fe667581..f7c9acd3d93db4 100644 --- a/packages/mui-material/src/PaginationItem/PaginationItem.test.js +++ b/packages/mui-material/src/PaginationItem/PaginationItem.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import PaginationItem, { paginationItemClasses as classes } from '@mui/material/PaginationItem'; describe('', () => { diff --git a/packages/mui-material/src/Paper/Paper.test.js b/packages/mui-material/src/Paper/Paper.test.js index 98664deeaff0d3..75f6d5439dac3e 100644 --- a/packages/mui-material/src/Paper/Paper.test.js +++ b/packages/mui-material/src/Paper/Paper.test.js @@ -1,7 +1,11 @@ import * as React from 'react'; import { expect } from 'chai'; import PropTypes from 'prop-types'; -import { createRenderer, describeConformance, strictModeDoubleLoggingSuppressed } from 'test/utils'; +import { + createRenderer, + describeConformance, + strictModeDoubleLoggingSuppressed, +} from '@mui-internal/test-utilities'; import Paper, { paperClasses as classes } from '@mui/material/Paper'; import { createTheme, ThemeProvider } from '@mui/material/styles'; diff --git a/packages/mui-material/src/Popover/Popover.test.js b/packages/mui-material/src/Popover/Popover.test.js index e39d353d37111e..03ffca26eaefdd 100644 --- a/packages/mui-material/src/Popover/Popover.test.js +++ b/packages/mui-material/src/Popover/Popover.test.js @@ -1,7 +1,13 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy, stub, match } from 'sinon'; -import { act, createMount, createRenderer, describeConformance, screen } from 'test/utils'; +import { + act, + createMount, + createRenderer, + describeConformance, + screen, +} from '@mui-internal/test-utilities'; import PropTypes from 'prop-types'; import Grow from '@mui/material/Grow'; import Modal from '@mui/material/Modal'; diff --git a/packages/mui-material/src/Popper/Popper.test.js b/packages/mui-material/src/Popper/Popper.test.js index 6fd5ff0aa0df02..3cd00e9ab7dc90 100644 --- a/packages/mui-material/src/Popper/Popper.test.js +++ b/packages/mui-material/src/Popper/Popper.test.js @@ -1,6 +1,12 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, act, createRenderer, fireEvent, screen } from 'test/utils'; +import { + describeConformance, + act, + createRenderer, + fireEvent, + screen, +} from '@mui-internal/test-utilities'; import { ThemeProvider, createTheme } from '@mui/system'; import Grow from '@mui/material/Grow'; import Popper from '@mui/material/Popper'; diff --git a/packages/mui-material/src/Radio/Radio.test.js b/packages/mui-material/src/Radio/Radio.test.js index 41a6f49919f911..2a76f0d203439f 100644 --- a/packages/mui-material/src/Radio/Radio.test.js +++ b/packages/mui-material/src/Radio/Radio.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, createRenderer } from 'test/utils'; +import { describeConformance, createRenderer } from '@mui-internal/test-utilities'; import Radio, { radioClasses as classes } from '@mui/material/Radio'; import FormControl from '@mui/material/FormControl'; import ButtonBase from '@mui/material/ButtonBase'; diff --git a/packages/mui-material/src/RadioGroup/RadioGroup.test.js b/packages/mui-material/src/RadioGroup/RadioGroup.test.js index cbbd5ada49d98f..fee1f40d085763 100644 --- a/packages/mui-material/src/RadioGroup/RadioGroup.test.js +++ b/packages/mui-material/src/RadioGroup/RadioGroup.test.js @@ -2,7 +2,13 @@ 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 'test/utils'; +import { + describeConformance, + act, + createRenderer, + fireEvent, + screen, +} from '@mui-internal/test-utilities'; import FormGroup from '@mui/material/FormGroup'; import Radio from '@mui/material/Radio'; import RadioGroup, { useRadioGroup } from '@mui/material/RadioGroup'; diff --git a/packages/mui-material/src/Rating/Rating.test.js b/packages/mui-material/src/Rating/Rating.test.js index 8323fb3238ba35..4921b9cd44b27f 100644 --- a/packages/mui-material/src/Rating/Rating.test.js +++ b/packages/mui-material/src/Rating/Rating.test.js @@ -1,7 +1,13 @@ import * as React from 'react'; import { expect } from 'chai'; import { stub, spy } from 'sinon'; -import { act, describeConformance, createRenderer, fireEvent, screen } from 'test/utils'; +import { + act, + describeConformance, + createRenderer, + fireEvent, + screen, +} from '@mui-internal/test-utilities'; import Rating, { ratingClasses as classes } from '@mui/material/Rating'; import { createTheme, ThemeProvider } from '@mui/material/styles'; diff --git a/packages/mui-material/src/ScopedCssBaseline/ScopedCssBaseline.test.js b/packages/mui-material/src/ScopedCssBaseline/ScopedCssBaseline.test.js index 860223aba311d7..75c0f04fc7fbf7 100644 --- a/packages/mui-material/src/ScopedCssBaseline/ScopedCssBaseline.test.js +++ b/packages/mui-material/src/ScopedCssBaseline/ScopedCssBaseline.test.js @@ -1,5 +1,5 @@ import * as React from 'react'; -import { describeConformance, createRenderer } from 'test/utils'; +import { describeConformance, createRenderer } from '@mui-internal/test-utilities'; import ScopedCssBaseline, { scopedCssBaselineClasses as classes, } from '@mui/material/ScopedCssBaseline'; diff --git a/packages/mui-material/src/Select/Select.test.js b/packages/mui-material/src/Select/Select.test.js index cf99abe6b161f9..a0b5df7684bc7a 100644 --- a/packages/mui-material/src/Select/Select.test.js +++ b/packages/mui-material/src/Select/Select.test.js @@ -8,7 +8,7 @@ import { createRenderer, fireEvent, screen, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import { createTheme, ThemeProvider } from '@mui/material/styles'; import MenuItem, { menuItemClasses } from '@mui/material/MenuItem'; import ListSubheader from '@mui/material/ListSubheader'; diff --git a/packages/mui-material/src/Skeleton/Skeleton.test.js b/packages/mui-material/src/Skeleton/Skeleton.test.js index 8ec3201c3c7ef1..53b1da64299aaf 100644 --- a/packages/mui-material/src/Skeleton/Skeleton.test.js +++ b/packages/mui-material/src/Skeleton/Skeleton.test.js @@ -1,6 +1,6 @@ import { expect } from 'chai'; import * as React from 'react'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import Skeleton, { skeletonClasses as classes } from '@mui/material/Skeleton'; describe('', () => { diff --git a/packages/mui-material/src/Slide/Slide.test.js b/packages/mui-material/src/Slide/Slide.test.js index 8fad53168b56b8..1965701846da48 100644 --- a/packages/mui-material/src/Slide/Slide.test.js +++ b/packages/mui-material/src/Slide/Slide.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy, stub } from 'sinon'; -import { act, createRenderer, describeConformance } from 'test/utils'; +import { act, createRenderer, describeConformance } from '@mui-internal/test-utilities'; import { Transition } from 'react-transition-group'; import { createTheme, ThemeProvider } from '@mui/material/styles'; import Slide from '@mui/material/Slide'; diff --git a/packages/mui-material/src/Slider/Slider.test.js b/packages/mui-material/src/Slider/Slider.test.js index 728396a2cf84d1..6c60165f96d6d7 100644 --- a/packages/mui-material/src/Slider/Slider.test.js +++ b/packages/mui-material/src/Slider/Slider.test.js @@ -2,7 +2,13 @@ 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 'test/utils'; +import { + describeConformance, + act, + createRenderer, + fireEvent, + screen, +} from '@mui-internal/test-utilities'; import { Slider as BaseSlider } from '@mui/base/Slider'; import { ThemeProvider, createTheme } from '@mui/material/styles'; import Slider, { sliderClasses as classes } from '@mui/material/Slider'; diff --git a/packages/mui-material/src/Snackbar/Snackbar.test.js b/packages/mui-material/src/Snackbar/Snackbar.test.js index eb047ec23e714d..507d9dab55e9f1 100644 --- a/packages/mui-material/src/Snackbar/Snackbar.test.js +++ b/packages/mui-material/src/Snackbar/Snackbar.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { describeConformance, act, createRenderer, fireEvent } from 'test/utils'; +import { describeConformance, act, createRenderer, fireEvent } from '@mui-internal/test-utilities'; import Snackbar, { snackbarClasses as classes } from '@mui/material/Snackbar'; import { ThemeProvider, createTheme } from '@mui/material/styles'; diff --git a/packages/mui-material/src/SnackbarContent/SnackbarContent.test.js b/packages/mui-material/src/SnackbarContent/SnackbarContent.test.js index 82098f59278357..9d62907441cdc3 100644 --- a/packages/mui-material/src/SnackbarContent/SnackbarContent.test.js +++ b/packages/mui-material/src/SnackbarContent/SnackbarContent.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import Paper from '@mui/material/Paper'; import SnackbarContent, { snackbarContentClasses as classes } from '@mui/material/SnackbarContent'; diff --git a/packages/mui-material/src/SpeedDial/SpeedDial.test.js b/packages/mui-material/src/SpeedDial/SpeedDial.test.js index ac7ad19fd3b3c7..5e95efeda0cf0c 100644 --- a/packages/mui-material/src/SpeedDial/SpeedDial.test.js +++ b/packages/mui-material/src/SpeedDial/SpeedDial.test.js @@ -8,7 +8,7 @@ import { fireDiscreteEvent, screen, describeConformance, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import Icon from '@mui/material/Icon'; import SpeedDial, { speedDialClasses as classes } from '@mui/material/SpeedDial'; import SpeedDialAction from '@mui/material/SpeedDialAction'; diff --git a/packages/mui-material/src/SpeedDialAction/SpeedDialAction.test.js b/packages/mui-material/src/SpeedDialAction/SpeedDialAction.test.js index a78f5bebd31de0..68701611833d74 100644 --- a/packages/mui-material/src/SpeedDialAction/SpeedDialAction.test.js +++ b/packages/mui-material/src/SpeedDialAction/SpeedDialAction.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, createRenderer, fireEvent } from 'test/utils'; +import { describeConformance, createRenderer, fireEvent } from '@mui-internal/test-utilities'; import Icon from '@mui/material/Icon'; import Tooltip from '@mui/material/Tooltip'; import { fabClasses } from '@mui/material/Fab'; diff --git a/packages/mui-material/src/SpeedDialIcon/SpeedDialIcon.test.js b/packages/mui-material/src/SpeedDialIcon/SpeedDialIcon.test.js index fd09ff38ce2d0b..c0ec36b8eb7f31 100644 --- a/packages/mui-material/src/SpeedDialIcon/SpeedDialIcon.test.js +++ b/packages/mui-material/src/SpeedDialIcon/SpeedDialIcon.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import Icon from '@mui/material/Icon'; import SpeedDialIcon, { speedDialIconClasses as classes } from '@mui/material/SpeedDialIcon'; diff --git a/packages/mui-material/src/Stack/Stack.test.js b/packages/mui-material/src/Stack/Stack.test.js index a95d40de219861..12873c8a5b6e64 100644 --- a/packages/mui-material/src/Stack/Stack.test.js +++ b/packages/mui-material/src/Stack/Stack.test.js @@ -1,5 +1,5 @@ import * as React from 'react'; -import { describeConformance, createRenderer } from 'test/utils'; +import { describeConformance, createRenderer } from '@mui-internal/test-utilities'; import Stack, { stackClasses as classes } from '@mui/material/Stack'; // The main tests are in mui-system Stack folder diff --git a/packages/mui-material/src/Step/Step.test.js b/packages/mui-material/src/Step/Step.test.js index 9d744ff1082319..699390f747eb87 100644 --- a/packages/mui-material/src/Step/Step.test.js +++ b/packages/mui-material/src/Step/Step.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import Step, { stepClasses as classes } from '@mui/material/Step'; import Stepper from '@mui/material/Stepper'; import StepLabel, { stepLabelClasses } from '@mui/material/StepLabel'; diff --git a/packages/mui-material/src/StepButton/StepButton.test.js b/packages/mui-material/src/StepButton/StepButton.test.js index c5ef4c5e400911..5987790b145adb 100644 --- a/packages/mui-material/src/StepButton/StepButton.test.js +++ b/packages/mui-material/src/StepButton/StepButton.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import { fireEvent } from '@testing-library/dom'; import StepButton, { stepButtonClasses as classes } from '@mui/material/StepButton'; import Step from '@mui/material/Step'; diff --git a/packages/mui-material/src/StepConnector/StepConnector.test.js b/packages/mui-material/src/StepConnector/StepConnector.test.js index eff3dadaadcb4c..6e5d02df90bb10 100644 --- a/packages/mui-material/src/StepConnector/StepConnector.test.js +++ b/packages/mui-material/src/StepConnector/StepConnector.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import Stepper from '@mui/material/Stepper'; import Step from '@mui/material/Step'; import StepConnector, { stepConnectorClasses as classes } from '@mui/material/StepConnector'; diff --git a/packages/mui-material/src/StepContent/StepContent.test.js b/packages/mui-material/src/StepContent/StepContent.test.js index 401e523b1fe00b..54d2538ccf5b1e 100644 --- a/packages/mui-material/src/StepContent/StepContent.test.js +++ b/packages/mui-material/src/StepContent/StepContent.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import { collapseClasses } from '@mui/material/Collapse'; import Stepper from '@mui/material/Stepper'; import Step from '@mui/material/Step'; diff --git a/packages/mui-material/src/StepIcon/StepIcon.test.js b/packages/mui-material/src/StepIcon/StepIcon.test.js index 0bc49f279d115a..f76f0b4e9d9e4b 100644 --- a/packages/mui-material/src/StepIcon/StepIcon.test.js +++ b/packages/mui-material/src/StepIcon/StepIcon.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, createRenderer } from 'test/utils'; +import { describeConformance, createRenderer } from '@mui-internal/test-utilities'; import StepIcon, { stepIconClasses as classes } from '@mui/material/StepIcon'; describe('', () => { diff --git a/packages/mui-material/src/StepLabel/StepLabel.test.js b/packages/mui-material/src/StepLabel/StepLabel.test.js index fb00e634650b86..7e101769cb5452 100644 --- a/packages/mui-material/src/StepLabel/StepLabel.test.js +++ b/packages/mui-material/src/StepLabel/StepLabel.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import Typography from '@mui/material/Typography'; import Stepper from '@mui/material/Stepper'; import Step from '@mui/material/Step'; diff --git a/packages/mui-material/src/Stepper/Stepper.test.tsx b/packages/mui-material/src/Stepper/Stepper.test.tsx index 17138c559727b3..c9a726ffe45de9 100644 --- a/packages/mui-material/src/Stepper/Stepper.test.tsx +++ b/packages/mui-material/src/Stepper/Stepper.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import Step, { StepProps, stepClasses } from '@mui/material/Step'; import StepLabel from '@mui/material/StepLabel'; import StepConnector, { stepConnectorClasses } from '@mui/material/StepConnector'; diff --git a/packages/mui-material/src/SvgIcon/SvgIcon.test.js b/packages/mui-material/src/SvgIcon/SvgIcon.test.js index 27211f44e6811c..7782543cd08593 100644 --- a/packages/mui-material/src/SvgIcon/SvgIcon.test.js +++ b/packages/mui-material/src/SvgIcon/SvgIcon.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, createRenderer } from 'test/utils'; +import { describeConformance, createRenderer } from '@mui-internal/test-utilities'; import SvgIcon, { svgIconClasses as classes } from '@mui/material/SvgIcon'; describe('', () => { diff --git a/packages/mui-material/src/SwipeableDrawer/SwipeableDrawer.test.js b/packages/mui-material/src/SwipeableDrawer/SwipeableDrawer.test.js index f0b537504d53cd..4849670fb7da74 100644 --- a/packages/mui-material/src/SwipeableDrawer/SwipeableDrawer.test.js +++ b/packages/mui-material/src/SwipeableDrawer/SwipeableDrawer.test.js @@ -1,7 +1,12 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { fireEvent, createRenderer, describeConformance, screen } from 'test/utils'; +import { + fireEvent, + createRenderer, + describeConformance, + screen, +} from '@mui-internal/test-utilities'; import PropTypes, { checkPropTypes } from 'prop-types'; import SwipeableDrawer from '@mui/material/SwipeableDrawer'; import Drawer, { drawerClasses } from '@mui/material/Drawer'; diff --git a/packages/mui-material/src/Switch/Switch.test.js b/packages/mui-material/src/Switch/Switch.test.js index af1934d0459f1b..89f4085415eaaa 100644 --- a/packages/mui-material/src/Switch/Switch.test.js +++ b/packages/mui-material/src/Switch/Switch.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, act, createRenderer, fireEvent } from 'test/utils'; +import { describeConformance, act, createRenderer, fireEvent } from '@mui-internal/test-utilities'; import Switch, { switchClasses as classes } from '@mui/material/Switch'; import FormControl from '@mui/material/FormControl'; diff --git a/packages/mui-material/src/Tab/Tab.test.js b/packages/mui-material/src/Tab/Tab.test.js index b52f9dc1e7b66c..eacacced4f73fa 100644 --- a/packages/mui-material/src/Tab/Tab.test.js +++ b/packages/mui-material/src/Tab/Tab.test.js @@ -1,7 +1,7 @@ import { expect } from 'chai'; import * as React from 'react'; import { spy } from 'sinon'; -import { act, createRenderer, describeConformance, fireEvent } from 'test/utils'; +import { act, createRenderer, describeConformance, fireEvent } from '@mui-internal/test-utilities'; import Tab, { tabClasses as classes } from '@mui/material/Tab'; import ButtonBase from '@mui/material/ButtonBase'; diff --git a/packages/mui-material/src/TabScrollButton/TabScrollButton.test.js b/packages/mui-material/src/TabScrollButton/TabScrollButton.test.js index 5148ae68313fc1..df566e3a78674e 100644 --- a/packages/mui-material/src/TabScrollButton/TabScrollButton.test.js +++ b/packages/mui-material/src/TabScrollButton/TabScrollButton.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import ArrowBackIcon from '@mui/icons-material/ArrowBack'; import ArrowForwardIcon from '@mui/icons-material/ArrowForward'; import TabScrollButton, { tabScrollButtonClasses as classes } from '@mui/material/TabScrollButton'; diff --git a/packages/mui-material/src/Table/Table.test.js b/packages/mui-material/src/Table/Table.test.js index 243748ef7c50fc..d7c3d76890b8c5 100644 --- a/packages/mui-material/src/Table/Table.test.js +++ b/packages/mui-material/src/Table/Table.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import Table, { tableClasses as classes } from '@mui/material/Table'; import TableContext from './TableContext'; diff --git a/packages/mui-material/src/TableBody/TableBody.test.js b/packages/mui-material/src/TableBody/TableBody.test.js index be1e4789899b8a..037863a926711d 100644 --- a/packages/mui-material/src/TableBody/TableBody.test.js +++ b/packages/mui-material/src/TableBody/TableBody.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import TableBody, { tableBodyClasses as classes } from '@mui/material/TableBody'; import Tablelvl2Context from '../Table/Tablelvl2Context'; diff --git a/packages/mui-material/src/TableCell/TableCell.test.js b/packages/mui-material/src/TableCell/TableCell.test.js index 776ed9241ff7c6..883bae694129a3 100644 --- a/packages/mui-material/src/TableCell/TableCell.test.js +++ b/packages/mui-material/src/TableCell/TableCell.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import TableCell, { tableCellClasses as classes } from '@mui/material/TableCell'; import TableHead from '@mui/material/TableHead'; import TableRow from '@mui/material/TableRow'; diff --git a/packages/mui-material/src/TableContainer/TableContainer.test.js b/packages/mui-material/src/TableContainer/TableContainer.test.js index 2c2f58b42d54d3..675e889d1b4551 100644 --- a/packages/mui-material/src/TableContainer/TableContainer.test.js +++ b/packages/mui-material/src/TableContainer/TableContainer.test.js @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import TableContainer, { tableContainerClasses as classes } from '@mui/material/TableContainer'; describe('', () => { diff --git a/packages/mui-material/src/TableFooter/TableFooter.test.js b/packages/mui-material/src/TableFooter/TableFooter.test.js index 7a25ee32fb8ecf..5c81b313f5ce8b 100644 --- a/packages/mui-material/src/TableFooter/TableFooter.test.js +++ b/packages/mui-material/src/TableFooter/TableFooter.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import TableFooter, { tableFooterClasses as classes } from '@mui/material/TableFooter'; import Tablelvl2Context from '../Table/Tablelvl2Context'; diff --git a/packages/mui-material/src/TableHead/TableHead.test.js b/packages/mui-material/src/TableHead/TableHead.test.js index f24289d0411003..04bd5b448f3c70 100644 --- a/packages/mui-material/src/TableHead/TableHead.test.js +++ b/packages/mui-material/src/TableHead/TableHead.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import TableHead, { tableHeadClasses as classes } from '@mui/material/TableHead'; import Tablelvl2Context from '../Table/Tablelvl2Context'; diff --git a/packages/mui-material/src/TablePagination/TablePagination.test.js b/packages/mui-material/src/TablePagination/TablePagination.test.js index 53a3f7969ce6b4..215858c88448ab 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 'test/utils'; +import { describeConformance, fireEvent, createRenderer } from '@mui-internal/test-utilities'; import TableFooter from '@mui/material/TableFooter'; import TableCell from '@mui/material/TableCell'; import TableRow from '@mui/material/TableRow'; diff --git a/packages/mui-material/src/TableRow/TableRow.test.js b/packages/mui-material/src/TableRow/TableRow.test.js index 0c19fb067d1169..33acf2f68a107d 100644 --- a/packages/mui-material/src/TableRow/TableRow.test.js +++ b/packages/mui-material/src/TableRow/TableRow.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import TableRow, { tableRowClasses as classes } from '@mui/material/TableRow'; describe('', () => { diff --git a/packages/mui-material/src/TableSortLabel/TableSortLabel.test.js b/packages/mui-material/src/TableSortLabel/TableSortLabel.test.js index 20eeb8326c71e4..86879948071002 100644 --- a/packages/mui-material/src/TableSortLabel/TableSortLabel.test.js +++ b/packages/mui-material/src/TableSortLabel/TableSortLabel.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import SortIcon from '@mui/icons-material/Sort'; import TableSortLabel, { tableSortLabelClasses as classes } from '@mui/material/TableSortLabel'; import ButtonBase from '@mui/material/ButtonBase'; diff --git a/packages/mui-material/src/Tabs/ScrollbarSize.test.js b/packages/mui-material/src/Tabs/ScrollbarSize.test.js index 261a636223a50b..b3ef873726cc5b 100644 --- a/packages/mui-material/src/Tabs/ScrollbarSize.test.js +++ b/packages/mui-material/src/Tabs/ScrollbarSize.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy, stub } from 'sinon'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import ScrollbarSize from './ScrollbarSize'; describe('', () => { diff --git a/packages/mui-material/src/Tabs/Tabs.test.js b/packages/mui-material/src/Tabs/Tabs.test.js index e6bf75b31c0801..ac6e85aff7202c 100644 --- a/packages/mui-material/src/Tabs/Tabs.test.js +++ b/packages/mui-material/src/Tabs/Tabs.test.js @@ -9,7 +9,7 @@ import { screen, strictModeDoubleLoggingSuppressed, waitFor, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import ArrowBackIcon from '@mui/icons-material/ArrowBack'; import ArrowForwardIcon from '@mui/icons-material/ArrowForward'; import Tab from '@mui/material/Tab'; diff --git a/packages/mui-material/src/TextField/TextField.test.js b/packages/mui-material/src/TextField/TextField.test.js index b0910a0b22bbdb..be7535dcaa8a0c 100644 --- a/packages/mui-material/src/TextField/TextField.test.js +++ b/packages/mui-material/src/TextField/TextField.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { createRenderer, describeConformance, fireEvent } from 'test/utils'; +import { createRenderer, describeConformance, fireEvent } from '@mui-internal/test-utilities'; import FormControl from '@mui/material/FormControl'; import { inputBaseClasses } from '@mui/material/InputBase'; import MenuItem from '@mui/material/MenuItem'; diff --git a/packages/mui-material/src/ToggleButton/ToggleButton.test.js b/packages/mui-material/src/ToggleButton/ToggleButton.test.js index d262aca1baa5b2..eaf82ab2a06524 100644 --- a/packages/mui-material/src/ToggleButton/ToggleButton.test.js +++ b/packages/mui-material/src/ToggleButton/ToggleButton.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import ToggleButton, { toggleButtonClasses as classes } from '@mui/material/ToggleButton'; import ButtonBase from '@mui/material/ButtonBase'; diff --git a/packages/mui-material/src/ToggleButtonGroup/ToggleButtonGroup.test.js b/packages/mui-material/src/ToggleButtonGroup/ToggleButtonGroup.test.js index 37580b0bf8f5c1..f3ccadee4932fb 100644 --- a/packages/mui-material/src/ToggleButtonGroup/ToggleButtonGroup.test.js +++ b/packages/mui-material/src/ToggleButtonGroup/ToggleButtonGroup.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { describeConformance, createRenderer, screen } from 'test/utils'; +import { describeConformance, createRenderer, screen } from '@mui-internal/test-utilities'; import ToggleButtonGroup, { toggleButtonGroupClasses as classes, } from '@mui/material/ToggleButtonGroup'; diff --git a/packages/mui-material/src/Toolbar/Toolbar.test.js b/packages/mui-material/src/Toolbar/Toolbar.test.js index e47bb096b749c6..009c759a3faca2 100644 --- a/packages/mui-material/src/Toolbar/Toolbar.test.js +++ b/packages/mui-material/src/Toolbar/Toolbar.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import Toolbar, { toolbarClasses as classes } from '@mui/material/Toolbar'; describe('', () => { diff --git a/packages/mui-material/src/Tooltip/Tooltip.test.js b/packages/mui-material/src/Tooltip/Tooltip.test.js index ac548a591ca5a4..c853ab3934af9f 100644 --- a/packages/mui-material/src/Tooltip/Tooltip.test.js +++ b/packages/mui-material/src/Tooltip/Tooltip.test.js @@ -10,7 +10,7 @@ import { simulatePointerDevice, focusVisible, programmaticFocusTriggersFocusVisible, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import { camelCase } from 'lodash/string'; import Tooltip, { tooltipClasses as classes } from '@mui/material/Tooltip'; import { testReset } from './Tooltip'; diff --git a/packages/mui-material/src/Typography/Typography.test.js b/packages/mui-material/src/Typography/Typography.test.js index e6877e3339bb57..fda77683f6467b 100644 --- a/packages/mui-material/src/Typography/Typography.test.js +++ b/packages/mui-material/src/Typography/Typography.test.js @@ -1,7 +1,7 @@ // @ts-check import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import Typography, { typographyClasses as classes } from '@mui/material/Typography'; describe('', () => { diff --git a/packages/mui-material/src/Unstable_Grid2/Grid2.test.js b/packages/mui-material/src/Unstable_Grid2/Grid2.test.js index 43ccba34d379b0..df8bdc9566d149 100644 --- a/packages/mui-material/src/Unstable_Grid2/Grid2.test.js +++ b/packages/mui-material/src/Unstable_Grid2/Grid2.test.js @@ -1,5 +1,5 @@ import * as React from 'react'; -import { describeConformance, createRenderer } from 'test/utils'; +import { describeConformance, createRenderer } from '@mui-internal/test-utilities'; import Grid2, { grid2Classes as classes } from '@mui/material/Unstable_Grid2'; // The main tests are in mui-system Unstable_Grid folder diff --git a/packages/mui-material/src/Zoom/Zoom.test.js b/packages/mui-material/src/Zoom/Zoom.test.js index 13adbead2d08f5..68fdf2cd15bbed 100644 --- a/packages/mui-material/src/Zoom/Zoom.test.js +++ b/packages/mui-material/src/Zoom/Zoom.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { describeConformance, createRenderer } from 'test/utils'; +import { describeConformance, createRenderer } from '@mui-internal/test-utilities'; import { Transition } from 'react-transition-group'; import Zoom from '@mui/material/Zoom'; import { ThemeProvider, createTheme } from '@mui/material/styles'; diff --git a/packages/mui-material/src/internal/SwitchBase.test.js b/packages/mui-material/src/internal/SwitchBase.test.js index f197f98ab76c42..814c686dca6e9d 100644 --- a/packages/mui-material/src/internal/SwitchBase.test.js +++ b/packages/mui-material/src/internal/SwitchBase.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { describeConformance, act, createRenderer } from 'test/utils'; +import { describeConformance, act, createRenderer } from '@mui-internal/test-utilities'; import SwitchBase from './SwitchBase'; import FormControl, { useFormControl } from '../FormControl'; import ButtonBase from '../ButtonBase'; diff --git a/packages/mui-material/src/styles/CssVarsProvider.test.js b/packages/mui-material/src/styles/CssVarsProvider.test.js index b12643e48eb087..32d082b5781167 100644 --- a/packages/mui-material/src/styles/CssVarsProvider.test.js +++ b/packages/mui-material/src/styles/CssVarsProvider.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, screen } from 'test/utils'; +import { createRenderer, screen } from '@mui-internal/test-utilities'; import Box from '@mui/material/Box'; import { Experimental_CssVarsProvider as CssVarsProvider, useTheme } from '@mui/material/styles'; diff --git a/packages/mui-material/src/styles/ThemeProvider.test.tsx b/packages/mui-material/src/styles/ThemeProvider.test.tsx index b69df12d8ac103..09d66ff942e0cb 100644 --- a/packages/mui-material/src/styles/ThemeProvider.test.tsx +++ b/packages/mui-material/src/styles/ThemeProvider.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import { ThemeProvider } from '@mui/material/styles'; describe('ThemeProvider', () => { diff --git a/packages/mui-material/src/styles/createTheme.test.js b/packages/mui-material/src/styles/createTheme.test.js index 4e780610185c2d..cb5317d75929f7 100644 --- a/packages/mui-material/src/styles/createTheme.test.js +++ b/packages/mui-material/src/styles/createTheme.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import Button from '@mui/material/Button'; import Box from '@mui/material/Box'; import { ThemeProvider, createTheme } from '@mui/material/styles'; diff --git a/packages/mui-material/src/styles/experimental_extendTheme.test.js b/packages/mui-material/src/styles/experimental_extendTheme.test.js index 092a76ba8c910f..720c2a01114d62 100644 --- a/packages/mui-material/src/styles/experimental_extendTheme.test.js +++ b/packages/mui-material/src/styles/experimental_extendTheme.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import Button from '@mui/material/Button'; import { Experimental_CssVarsProvider as CssVarsProvider, diff --git a/packages/mui-material/src/styles/styled.test.js b/packages/mui-material/src/styles/styled.test.js index a6e3f2d0b30600..b19ee25c2bc1d7 100644 --- a/packages/mui-material/src/styles/styled.test.js +++ b/packages/mui-material/src/styles/styled.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, screen } from 'test/utils'; +import { createRenderer, screen } from '@mui-internal/test-utilities'; import createTheme from './createTheme'; import styled from './styled'; import ThemeProvider from './ThemeProvider'; diff --git a/packages/mui-material/src/useMediaQuery/useMediaQuery.test.js b/packages/mui-material/src/useMediaQuery/useMediaQuery.test.js index 2d29f806cb5126..cf1c7e67cd09ec 100644 --- a/packages/mui-material/src/useMediaQuery/useMediaQuery.test.js +++ b/packages/mui-material/src/useMediaQuery/useMediaQuery.test.js @@ -6,7 +6,7 @@ import { screen, RenderCounter, strictModeDoubleLoggingSuppressed, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import mediaQuery from 'css-mediaquery'; import { expect } from 'chai'; import { stub } from 'sinon'; diff --git a/packages/mui-material/src/usePagination/usePagination.test.js b/packages/mui-material/src/usePagination/usePagination.test.js index 93ed65e2a43c03..252f03fef61f1d 100644 --- a/packages/mui-material/src/usePagination/usePagination.test.js +++ b/packages/mui-material/src/usePagination/usePagination.test.js @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import { expect } from 'chai'; import usePagination from '@mui/material/usePagination'; diff --git a/packages/mui-material/src/useScrollTrigger/useScrollTrigger.test.js b/packages/mui-material/src/useScrollTrigger/useScrollTrigger.test.js index b1ff89955d8f6f..d44d2a705db95f 100644 --- a/packages/mui-material/src/useScrollTrigger/useScrollTrigger.test.js +++ b/packages/mui-material/src/useScrollTrigger/useScrollTrigger.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import PropTypes from 'prop-types'; import { expect } from 'chai'; -import { act, createRenderer, RenderCounter, screen } from 'test/utils'; +import { act, createRenderer, RenderCounter, screen } from '@mui-internal/test-utilities'; import useScrollTrigger from '@mui/material/useScrollTrigger'; import Container from '@mui/material/Container'; import Box from '@mui/material/Box'; diff --git a/packages/mui-material/test/integration/DialogIntegration.test.js b/packages/mui-material/test/integration/DialogIntegration.test.js index 47f9b16f9a0ecd..cf214c670d9e27 100644 --- a/packages/mui-material/test/integration/DialogIntegration.test.js +++ b/packages/mui-material/test/integration/DialogIntegration.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, screen } from 'test/utils'; +import { createRenderer, screen } from '@mui-internal/test-utilities'; import Dialog from '@mui/material/Dialog'; import DialogTitle from '@mui/material/DialogTitle'; diff --git a/packages/mui-material/test/integration/Menu.test.js b/packages/mui-material/test/integration/Menu.test.js index f13e8c10fef95b..96ff96ac911d30 100644 --- a/packages/mui-material/test/integration/Menu.test.js +++ b/packages/mui-material/test/integration/Menu.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import PropTypes from 'prop-types'; import { expect } from 'chai'; -import { act, createRenderer, fireEvent, screen } from 'test/utils'; +import { act, createRenderer, fireEvent, screen } from '@mui-internal/test-utilities'; import Button from '@mui/material/Button'; import MenuItem from '@mui/material/MenuItem'; import Menu from '@mui/material/Menu'; diff --git a/packages/mui-material/test/integration/MenuList.test.js b/packages/mui-material/test/integration/MenuList.test.js index 9a5d7a4be63d27..f861f2f2b133dc 100644 --- a/packages/mui-material/test/integration/MenuList.test.js +++ b/packages/mui-material/test/integration/MenuList.test.js @@ -7,7 +7,7 @@ import { fireEvent, screen, programmaticFocusTriggersFocusVisible, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import MenuList from '@mui/material/MenuList'; import MenuItem from '@mui/material/MenuItem'; import Divider from '@mui/material/Divider'; diff --git a/packages/mui-material/test/integration/NestedMenu.test.js b/packages/mui-material/test/integration/NestedMenu.test.js index f85c631d547798..83f7bca2065932 100644 --- a/packages/mui-material/test/integration/NestedMenu.test.js +++ b/packages/mui-material/test/integration/NestedMenu.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, within } from 'test/utils'; +import { createRenderer, within } from '@mui-internal/test-utilities'; import Menu from '@mui/material/Menu'; import MenuItem from '@mui/material/MenuItem'; diff --git a/packages/mui-material/test/integration/PopperChildrenLayout.test.js b/packages/mui-material/test/integration/PopperChildrenLayout.test.js index 9dca88ea85f718..ae2c4c1c535d23 100644 --- a/packages/mui-material/test/integration/PopperChildrenLayout.test.js +++ b/packages/mui-material/test/integration/PopperChildrenLayout.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import Collapse from '@mui/material/Collapse'; import Fade from '@mui/material/Fade'; import Grow from '@mui/material/Grow'; diff --git a/packages/mui-material/test/integration/Select.test.js b/packages/mui-material/test/integration/Select.test.js index 5c84179b168a7e..b55d04970db6b9 100644 --- a/packages/mui-material/test/integration/Select.test.js +++ b/packages/mui-material/test/integration/Select.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { act, createRenderer, fireEvent } from 'test/utils'; +import { act, createRenderer, fireEvent } from '@mui-internal/test-utilities'; import MenuItem from '@mui/material/MenuItem'; import Select from '@mui/material/Select'; import Dialog from '@mui/material/Dialog'; diff --git a/packages/mui-material/test/integration/TableCell.test.js b/packages/mui-material/test/integration/TableCell.test.js index 6d1007ed6cceb7..841f3ed251cdae 100644 --- a/packages/mui-material/test/integration/TableCell.test.js +++ b/packages/mui-material/test/integration/TableCell.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import TableCell, { tableCellClasses as classes } from '@mui/material/TableCell'; import Table from '@mui/material/Table'; import TableFooter from '@mui/material/TableFooter'; diff --git a/packages/mui-material/test/integration/TableRow.test.js b/packages/mui-material/test/integration/TableRow.test.js index 83f9dc6c9c4a75..55b8f86370145d 100644 --- a/packages/mui-material/test/integration/TableRow.test.js +++ b/packages/mui-material/test/integration/TableRow.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import TableFooter from '@mui/material/TableFooter'; import TableHead from '@mui/material/TableHead'; import TableRow, { tableRowClasses as classes } from '@mui/material/TableRow'; diff --git a/packages/mui-private-theming/package.json b/packages/mui-private-theming/package.json index 369592b43b89c5..a1a77cbb4a011f 100644 --- a/packages/mui-private-theming/package.json +++ b/packages/mui-private-theming/package.json @@ -46,11 +46,11 @@ "@mui/material": "^5.14.10", "@mui/styles": "^5.14.10", "@mui/types": "^7.2.4", + "@mui-internal/test-utilities": "^1.0.0", "@types/chai": "^4.3.5", "@types/react": "^18.2.21", "chai": "^4.3.7", - "react": "^18.2.0", - "test": "^5.0.0" + "react": "^18.2.0" }, "peerDependencies": { "@types/react": "^17.0.0 || ^18.0.0", diff --git a/packages/mui-private-theming/src/ThemeProvider/ThemeProvider.test.js b/packages/mui-private-theming/src/ThemeProvider/ThemeProvider.test.js index de0fe0cb55e789..4c2cb2274e526f 100644 --- a/packages/mui-private-theming/src/ThemeProvider/ThemeProvider.test.js +++ b/packages/mui-private-theming/src/ThemeProvider/ThemeProvider.test.js @@ -1,6 +1,10 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, RenderCounter, strictModeDoubleLoggingSuppressed } from 'test/utils'; +import { + createRenderer, + RenderCounter, + strictModeDoubleLoggingSuppressed, +} from '@mui-internal/test-utilities'; import useTheme from '../useTheme'; import ThemeProvider from './ThemeProvider'; diff --git a/packages/mui-private-theming/src/useTheme/useTheme.test.js b/packages/mui-private-theming/src/useTheme/useTheme.test.js index 27ef06f7615e5c..06df499b6b8e3f 100644 --- a/packages/mui-private-theming/src/useTheme/useTheme.test.js +++ b/packages/mui-private-theming/src/useTheme/useTheme.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import useTheme from './useTheme'; import ThemeProvider from '../ThemeProvider'; diff --git a/packages/mui-styled-engine-sc/package.json b/packages/mui-styled-engine-sc/package.json index e03a345ad732b1..6d9eeff6c0c4a3 100644 --- a/packages/mui-styled-engine-sc/package.json +++ b/packages/mui-styled-engine-sc/package.json @@ -43,13 +43,13 @@ "prop-types": "^15.8.1" }, "devDependencies": { + "@mui-internal/test-utilities": "^1.0.0", "@types/chai": "^4.3.5", "@types/react": "^18.2.21", "@types/styled-components": "^5.1.26", "chai": "^4.3.7", "react": "^18.2.0", - "styled-components": "^5.3.1", - "test": "^5.0.0" + "styled-components": "^5.3.1" }, "peerDependencies": { "@types/styled-components": "^5.1.14", diff --git a/packages/mui-styled-engine-sc/src/GlobalStyles/GlobalStyles.test.js b/packages/mui-styled-engine-sc/src/GlobalStyles/GlobalStyles.test.js index d656f98c4bbc0b..fe099b9dc6e009 100644 --- a/packages/mui-styled-engine-sc/src/GlobalStyles/GlobalStyles.test.js +++ b/packages/mui-styled-engine-sc/src/GlobalStyles/GlobalStyles.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import { ThemeProvider } from 'styled-components'; import styled from '..'; import GlobalStyles from './GlobalStyles'; diff --git a/packages/mui-styled-engine-sc/src/styled.test.js b/packages/mui-styled-engine-sc/src/styled.test.js index 959fb6a518d91b..8c56cd5254f552 100644 --- a/packages/mui-styled-engine-sc/src/styled.test.js +++ b/packages/mui-styled-engine-sc/src/styled.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import styled from '@mui/styled-engine-sc'; describe('styled', () => { diff --git a/packages/mui-styled-engine/package.json b/packages/mui-styled-engine/package.json index 74dd2b2e92ba35..510738093a1236 100644 --- a/packages/mui-styled-engine/package.json +++ b/packages/mui-styled-engine/package.json @@ -46,11 +46,11 @@ "devDependencies": { "@emotion/react": "^11.11.1", "@emotion/styled": "^11.11.0", + "@mui-internal/test-utilities": "^1.0.0", "@types/chai": "^4.3.5", "@types/react": "^18.2.21", "chai": "^4.3.7", - "react": "^18.2.0", - "test": "^5.0.0" + "react": "^18.2.0" }, "peerDependencies": { "@emotion/react": "^11.4.1", diff --git a/packages/mui-styled-engine/src/GlobalStyles/GlobalStyles.test.js b/packages/mui-styled-engine/src/GlobalStyles/GlobalStyles.test.js index 16ab9cb96c92ba..947f3787fec2d7 100644 --- a/packages/mui-styled-engine/src/GlobalStyles/GlobalStyles.test.js +++ b/packages/mui-styled-engine/src/GlobalStyles/GlobalStyles.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import { ThemeProvider } from '@emotion/react'; import styled from '..'; import GlobalStyles from './GlobalStyles'; diff --git a/packages/mui-styles/package.json b/packages/mui-styles/package.json index a8c8e7035c829f..7a276b00bda5fd 100644 --- a/packages/mui-styles/package.json +++ b/packages/mui-styles/package.json @@ -59,6 +59,7 @@ "devDependencies": { "@mui/joy": "5.0.0-beta.7", "@mui/material": "^5.14.10", + "@mui-internal/test-utilities": "^1.0.0", "@types/chai": "^4.3.5", "@types/react": "^18.2.21", "@types/react-dom": "^18.2.7", @@ -66,8 +67,7 @@ "chai": "^4.3.7", "react": "^18.2.0", "react-dom": "^18.2.0", - "sinon": "^15.2.0", - "test": "^5.0.0" + "sinon": "^15.2.0" }, "peerDependencies": { "@types/react": "^17.0.0 || ^18.0.0", diff --git a/packages/mui-styles/src/StylesProvider/StylesProvider.test.js b/packages/mui-styles/src/StylesProvider/StylesProvider.test.js index b278c8a1855901..7edb9427cc76c0 100644 --- a/packages/mui-styles/src/StylesProvider/StylesProvider.test.js +++ b/packages/mui-styles/src/StylesProvider/StylesProvider.test.js @@ -2,7 +2,7 @@ import * as React from 'react'; import * as ReactDOMServer from 'react-dom/server'; import { expect } from 'chai'; import { create, SheetsRegistry } from 'jss'; -import { createMount, strictModeDoubleLoggingSuppressed } from 'test/utils'; +import { createMount, strictModeDoubleLoggingSuppressed } from '@mui-internal/test-utilities'; import StylesProvider, { StylesContext } from './StylesProvider'; import makeStyles from '../makeStyles'; import createGenerateClassName from '../createGenerateClassName'; diff --git a/packages/mui-styles/src/ThemeProvider/ThemeProvider.test.js b/packages/mui-styles/src/ThemeProvider/ThemeProvider.test.js index 8cbf9005935046..a0b1c05e81b832 100644 --- a/packages/mui-styles/src/ThemeProvider/ThemeProvider.test.js +++ b/packages/mui-styles/src/ThemeProvider/ThemeProvider.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import ThemeProvider from '@mui/private-theming/ThemeProvider'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import makeStyles from '../makeStyles'; describe('ThemeProvider', () => { diff --git a/packages/mui-styles/src/makeStyles/makeStyles.test.js b/packages/mui-styles/src/makeStyles/makeStyles.test.js index 4e944c9220457d..fffb23e2a454f9 100644 --- a/packages/mui-styles/src/makeStyles/makeStyles.test.js +++ b/packages/mui-styles/src/makeStyles/makeStyles.test.js @@ -3,7 +3,7 @@ import * as React from 'react'; import PropTypes from 'prop-types'; import { SheetsRegistry } from 'jss'; import { act } from 'react-dom/test-utils'; -import { createMount } from 'test/utils'; +import { createMount } from '@mui-internal/test-utilities'; import { createTheme } from '@mui/material/styles'; import createGenerateClassName from '../createGenerateClassName'; import makeStyles from './makeStyles'; diff --git a/packages/mui-styles/src/styled/styled.test.js b/packages/mui-styles/src/styled/styled.test.js index ba90b28075d43d..63298d3794a19e 100644 --- a/packages/mui-styles/src/styled/styled.test.js +++ b/packages/mui-styles/src/styled/styled.test.js @@ -2,7 +2,7 @@ import * as React from 'react'; import { expect } from 'chai'; import PropTypes from 'prop-types'; import { SheetsRegistry } from 'jss'; -import { createRenderer, screen } from 'test/utils'; +import { createRenderer, screen } from '@mui-internal/test-utilities'; import { createGenerateClassName } from '@mui/styles'; import styled from './styled'; import StylesProvider from '../StylesProvider'; diff --git a/packages/mui-styles/src/useThemeVariants/useThemeVariants.test.js b/packages/mui-styles/src/useThemeVariants/useThemeVariants.test.js index 14fd15850a9d0c..88cf6f44d63418 100644 --- a/packages/mui-styles/src/useThemeVariants/useThemeVariants.test.js +++ b/packages/mui-styles/src/useThemeVariants/useThemeVariants.test.js @@ -1,6 +1,10 @@ import { expect } from 'chai'; import * as React from 'react'; -import { createRenderer, screen, strictModeDoubleLoggingSuppressed } from 'test/utils'; +import { + createRenderer, + screen, + strictModeDoubleLoggingSuppressed, +} from '@mui-internal/test-utilities'; import { createTheme } from '@mui/material/styles'; import ThemeProvider from '../ThemeProvider'; import useThemeVariants from './useThemeVariants'; diff --git a/packages/mui-styles/src/withStyles/withStyles.test.js b/packages/mui-styles/src/withStyles/withStyles.test.js index 7dd4d0f8dc6a70..7096abdce6659f 100644 --- a/packages/mui-styles/src/withStyles/withStyles.test.js +++ b/packages/mui-styles/src/withStyles/withStyles.test.js @@ -4,7 +4,7 @@ import PropTypes from 'prop-types'; import { stub } from 'sinon'; import { SheetsRegistry } from 'jss'; import Input from '@mui/material/Input'; -import { createRenderer, screen } from 'test/utils'; +import { createRenderer, screen } from '@mui-internal/test-utilities'; import { isMuiElement } from '@mui/material/utils'; import { createTheme } from '@mui/material/styles'; import StylesProvider from '../StylesProvider'; diff --git a/packages/mui-styles/src/withTheme/withTheme.test.js b/packages/mui-styles/src/withTheme/withTheme.test.js index 3f37b145a52713..5e990b359809ed 100644 --- a/packages/mui-styles/src/withTheme/withTheme.test.js +++ b/packages/mui-styles/src/withTheme/withTheme.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import Input from '@mui/material/Input'; import { isMuiElement } from '@mui/material/utils'; import PropTypes from 'prop-types'; diff --git a/packages/mui-styles/test/theme-scoping.test.tsx b/packages/mui-styles/test/theme-scoping.test.tsx index 66b747b7baba57..b679e94f1bb071 100644 --- a/packages/mui-styles/test/theme-scoping.test.tsx +++ b/packages/mui-styles/test/theme-scoping.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import * as material from '@mui/material/styles'; import * as joy from '@mui/joy/styles'; import { makeStyles } from '@mui/styles'; diff --git a/packages/mui-system/package.json b/packages/mui-system/package.json index 088be5f0798ecf..b6e3f6d3d6ed2c 100644 --- a/packages/mui-system/package.json +++ b/packages/mui-system/package.json @@ -55,6 +55,7 @@ "@mui/joy": "5.0.0-beta.7", "@mui/material": "^5.14.10", "@mui/material-next": "6.0.0-alpha.102", + "@mui-internal/test-utilities": "^1.0.0", "@types/chai": "^4.3.5", "@types/prop-types": "^15.7.5", "@types/react": "^18.2.21", @@ -65,8 +66,7 @@ "lodash": "^4.17.21", "react": "^18.2.0", "sinon": "^15.2.0", - "styled-components": "^5.3.11", - "test": "^5.0.0" + "styled-components": "^5.3.11" }, "peerDependencies": { "@emotion/react": "^11.5.0", diff --git a/packages/mui-system/src/Box/Box.test.js b/packages/mui-system/src/Box/Box.test.js index 0b1808815bd89e..4aeaa836d7f3ab 100644 --- a/packages/mui-system/src/Box/Box.test.js +++ b/packages/mui-system/src/Box/Box.test.js @@ -1,7 +1,7 @@ /* eslint-disable material-ui/no-empty-box */ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import { Box, createTheme, ThemeProvider } from '@mui/system'; describe('', () => { diff --git a/packages/mui-system/src/Container/Container.test.js b/packages/mui-system/src/Container/Container.test.js index a9ec4a3880bb7f..3446668f8cb4fe 100644 --- a/packages/mui-system/src/Container/Container.test.js +++ b/packages/mui-system/src/Container/Container.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, createRenderer } from 'test/utils'; +import { describeConformance, createRenderer } from '@mui-internal/test-utilities'; import { Container, containerClasses as classes } from '@mui/system'; describe('', () => { diff --git a/packages/mui-system/src/GlobalStyles/GlobalStyles.test.tsx b/packages/mui-system/src/GlobalStyles/GlobalStyles.test.tsx index fd278973209831..69b50f3884d6e4 100644 --- a/packages/mui-system/src/GlobalStyles/GlobalStyles.test.tsx +++ b/packages/mui-system/src/GlobalStyles/GlobalStyles.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import { GlobalStyles } from '@mui/system'; describe('', () => { diff --git a/packages/mui-system/src/Stack/Stack.test.js b/packages/mui-system/src/Stack/Stack.test.js index 355c90e820e959..c92f7c81301605 100644 --- a/packages/mui-system/src/Stack/Stack.test.js +++ b/packages/mui-system/src/Stack/Stack.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, describeConformance } from 'test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utilities'; import Stack from '@mui/system/Stack'; import { createTheme } from '@mui/system'; import { style } from './createStack'; diff --git a/packages/mui-system/src/ThemeProvider/ThemeProvider.test.js b/packages/mui-system/src/ThemeProvider/ThemeProvider.test.js index ccddf5420e9c6e..a7658f012584e5 100644 --- a/packages/mui-system/src/ThemeProvider/ThemeProvider.test.js +++ b/packages/mui-system/src/ThemeProvider/ThemeProvider.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import { useTheme as usePrivateTheme } from '@mui/private-theming'; import { ThemeContext } from '@mui/styled-engine'; import { ThemeProvider } from '@mui/system'; diff --git a/packages/mui-system/src/Unstable_Grid/Grid.test.js b/packages/mui-system/src/Unstable_Grid/Grid.test.js index b9f706a530362b..50432e9c2dda35 100644 --- a/packages/mui-system/src/Unstable_Grid/Grid.test.js +++ b/packages/mui-system/src/Unstable_Grid/Grid.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, createRenderer, screen } from 'test/utils'; +import { describeConformance, createRenderer, screen } from '@mui-internal/test-utilities'; import { ThemeProvider, createTheme } from '@mui/system'; import Grid, { gridClasses as classes } from '@mui/system/Unstable_Grid'; diff --git a/packages/mui-system/src/createBox.test.js b/packages/mui-system/src/createBox.test.js index 4236ac39da8b6d..15d3ea2abf5069 100644 --- a/packages/mui-system/src/createBox.test.js +++ b/packages/mui-system/src/createBox.test.js @@ -2,7 +2,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import { createBox, ThemeProvider } from '@mui/system'; describe('createBox', () => { diff --git a/packages/mui-system/src/createStyled.test.js b/packages/mui-system/src/createStyled.test.js index 87f57efe543645..7ed0443bbafdc6 100644 --- a/packages/mui-system/src/createStyled.test.js +++ b/packages/mui-system/src/createStyled.test.js @@ -2,7 +2,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; import { ThemeProvider, createTheme } from '@mui/material/styles'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import createStyled from './createStyled'; describe('createStyled', () => { diff --git a/packages/mui-system/src/createTheme/createTheme.test.js b/packages/mui-system/src/createTheme/createTheme.test.js index c86c8911ccae13..3c5418a5554717 100644 --- a/packages/mui-system/src/createTheme/createTheme.test.js +++ b/packages/mui-system/src/createTheme/createTheme.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import { createTheme, styled, ThemeProvider } from '@mui/system'; describe('createTheme', () => { diff --git a/packages/mui-system/src/cssVars/createCssVarsProvider.test.js b/packages/mui-system/src/cssVars/createCssVarsProvider.test.js index c51e7207031427..e17ba788c213ee 100644 --- a/packages/mui-system/src/cssVars/createCssVarsProvider.test.js +++ b/packages/mui-system/src/cssVars/createCssVarsProvider.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { createRenderer, screen, fireEvent } from 'test/utils'; +import { createRenderer, screen, fireEvent } from '@mui-internal/test-utilities'; import createCssVarsTheme from './createCssVarsTheme'; import createCssVarsProvider, { DISABLE_CSS_TRANSITION } from './createCssVarsProvider'; import { DEFAULT_ATTRIBUTE, DEFAULT_MODE_STORAGE_KEY } from './getInitColorSchemeScript'; diff --git a/packages/mui-system/src/cssVars/getInitColorSchemeScript.test.js b/packages/mui-system/src/cssVars/getInitColorSchemeScript.test.js index 28e8ba980a3dca..715c6416b815dd 100644 --- a/packages/mui-system/src/cssVars/getInitColorSchemeScript.test.js +++ b/packages/mui-system/src/cssVars/getInitColorSchemeScript.test.js @@ -1,6 +1,6 @@ /* eslint-disable no-eval */ import { expect } from 'chai'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import getInitColorSchemeScript, { DEFAULT_ATTRIBUTE, DEFAULT_MODE_STORAGE_KEY, diff --git a/packages/mui-system/src/cssVars/useCurrentColorScheme.test.js b/packages/mui-system/src/cssVars/useCurrentColorScheme.test.js index 92ca222b75d294..7c5d9d2bf1e5c4 100644 --- a/packages/mui-system/src/cssVars/useCurrentColorScheme.test.js +++ b/packages/mui-system/src/cssVars/useCurrentColorScheme.test.js @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { createRenderer, fireEvent, act, screen } from 'test/utils'; +import { createRenderer, fireEvent, act, screen } from '@mui-internal/test-utilities'; import { DEFAULT_MODE_STORAGE_KEY, DEFAULT_COLOR_SCHEME_STORAGE_KEY, diff --git a/packages/mui-system/src/styled.test.js b/packages/mui-system/src/styled.test.js index 995c4a7fabe95c..34f5dd1f795f93 100644 --- a/packages/mui-system/src/styled.test.js +++ b/packages/mui-system/src/styled.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, screen } from 'test/utils'; +import { createRenderer, screen } from '@mui-internal/test-utilities'; import { styled, createTheme, ThemeProvider } from '@mui/system'; describe('styled', () => { diff --git a/packages/mui-system/test/integration/theme-scoping.test.tsx b/packages/mui-system/test/integration/theme-scoping.test.tsx index b1b6384850c730..2a836deabe0b06 100644 --- a/packages/mui-system/test/integration/theme-scoping.test.tsx +++ b/packages/mui-system/test/integration/theme-scoping.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { createRenderer } from 'test/utils'; +import { createRenderer } from '@mui-internal/test-utilities'; import { ThemeContext } from '@mui/styled-engine'; import * as material from '@mui/material'; import * as joy from '@mui/joy'; diff --git a/packages/mui-utils/package.json b/packages/mui-utils/package.json index f7474e6b4f04a1..245a8b67fd4113 100644 --- a/packages/mui-utils/package.json +++ b/packages/mui-utils/package.json @@ -47,6 +47,7 @@ "devDependencies": { "@babel/helper-module-imports": "^7.22.15", "@mui/types": "^7.2.4", + "@mui-internal/test-utilities": "^1.0.0", "@types/babel-plugin-macros": "^3.1.0", "@types/chai": "^4.3.5", "@types/mocha": "^10.0.1", @@ -60,8 +61,7 @@ "chai": "^4.3.7", "react": "^18.2.0", "react-dom": "^18.2.0", - "sinon": "^15.2.0", - "test": "^5.0.0" + "sinon": "^15.2.0" }, "peerDependencies": { "@types/react": "^17.0.0 || ^18.0.0", diff --git a/packages/mui-utils/src/useControlled/useControlled.test.js b/packages/mui-utils/src/useControlled/useControlled.test.js index 0da2ceb0eddeb7..1bc8db143e8b56 100644 --- a/packages/mui-utils/src/useControlled/useControlled.test.js +++ b/packages/mui-utils/src/useControlled/useControlled.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { act, createRenderer } from 'test/utils'; +import { act, createRenderer } from '@mui-internal/test-utilities'; import useControlled from './useControlled'; const TestComponent = ({ value: valueProp, defaultValue, children }) => { diff --git a/packages/mui-utils/src/useForkRef/useForkRef.test.js b/packages/mui-utils/src/useForkRef/useForkRef.test.js index c15179247a409b..09c08836ea91c0 100644 --- a/packages/mui-utils/src/useForkRef/useForkRef.test.js +++ b/packages/mui-utils/src/useForkRef/useForkRef.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, screen } from 'test/utils'; +import { createRenderer, screen } from '@mui-internal/test-utilities'; import useForkRef from './useForkRef'; describe('useForkRef', () => { diff --git a/packages/mui-utils/src/useId/useId.test.js b/packages/mui-utils/src/useId/useId.test.js index ec238bdfaf932b..fa7fe89cfc6b0d 100644 --- a/packages/mui-utils/src/useId/useId.test.js +++ b/packages/mui-utils/src/useId/useId.test.js @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, screen } from 'test/utils'; +import { createRenderer, screen } from '@mui-internal/test-utilities'; import useId from './useId'; describe('useId', () => { diff --git a/packages/mui-utils/src/useIsFocusVisible.test.js b/packages/mui-utils/src/useIsFocusVisible.test.js index 52974ed1e1f941..6f9c2f147b4ade 100644 --- a/packages/mui-utils/src/useIsFocusVisible.test.js +++ b/packages/mui-utils/src/useIsFocusVisible.test.js @@ -7,7 +7,7 @@ import { focusVisible, simulatePointerDevice, programmaticFocusTriggersFocusVisible, -} from 'test/utils'; +} from '@mui-internal/test-utilities'; import useIsFocusVisible, { teardown as teardownFocusVisible } from './useIsFocusVisible'; import useForkRef from './useForkRef'; diff --git a/packages/mui-utils/tsconfig.json b/packages/mui-utils/tsconfig.json index e7d248754c9c1c..88c4875ab6e81e 100644 --- a/packages/mui-utils/tsconfig.json +++ b/packages/mui-utils/tsconfig.json @@ -3,5 +3,5 @@ "compilerOptions": { "types": ["react", "mocha", "node"] }, - "include": ["src/**/*", "../../test/utils/initMatchers.ts"] + "include": ["src/**/*"] } diff --git a/test/regressions/.mocharc.js b/test/regressions/.mocharc.js index dd09a7282915da..0546cb6af7d67e 100644 --- a/test/regressions/.mocharc.js +++ b/test/regressions/.mocharc.js @@ -3,5 +3,5 @@ module.exports = { slow: 500, timeout: (process.env.CIRCLECI === 'true' ? 4 : 2) * 1000, // Circle CI has low-performance CPUs. reporter: 'dot', - require: [require.resolve('../../packages/test-utils/src/setupBabelPlaywright')], + require: [require.resolve('@mui-internal/test-utilities/setupBabelPlaywright')], };