From 2b73c55d15311ea587a6c82b05a7a2bade7f50ab Mon Sep 17 00:00:00 2001 From: alexandre Date: Mon, 9 Oct 2023 14:01:26 +0200 Subject: [PATCH 1/8] Bump monorepo --- yarn.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yarn.lock b/yarn.lock index a39bf13b99fc..5657fd20f0d0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1850,8 +1850,8 @@ react-transition-group "^4.4.5" "@mui/monorepo@https://github.com/mui/material-ui.git#master": - version "5.14.10" - resolved "https://github.com/mui/material-ui.git#f1401844507519e09814bf8ea3ac338ec8011044" + version "5.14.11" + resolved "https://github.com/mui/material-ui.git#ba2b0c524ab9aeac88bc73c17cca4fe7a8cd71d5" "@mui/private-theming@^5.14.11": version "5.14.11" From 7a21a23644c1060f8d0de642cc289666e17080c0 Mon Sep 17 00:00:00 2001 From: alexandre Date: Mon, 9 Oct 2023 15:10:20 +0200 Subject: [PATCH 2/8] new test utils --- babel.config.js | 3 +++ .../x-data-grid-premium/src/tests/DataGridPremium.test.tsx | 2 +- .../src/tests/aggregation.DataGridPremium.test.tsx | 2 +- .../src/tests/cellSelection.DataGridPremium.test.tsx | 2 +- .../src/tests/clipboard.DataGridPremium.test.tsx | 2 +- .../src/tests/columns.DataGridPremium.test.tsx | 2 +- .../src/tests/exportExcel.DataGridPremium.test.tsx | 2 +- .../src/tests/license.DataGridPremium.test.tsx | 2 +- .../src/tests/rowGrouping.DataGridPremium.test.tsx | 2 +- .../src/tests/rowPinning.DataGridPremium.test.tsx | 2 +- .../src/tests/statePersistence.DataGridPremium.test.tsx | 2 +- packages/grid/x-data-grid-premium/tsconfig.json | 2 +- .../src/tests/accessibility.DataGridPro.test.tsx | 2 +- .../src/tests/cellEditing.DataGridPro.test.tsx | 2 +- .../x-data-grid-pro/src/tests/clipboard.DataGridPro.test.tsx | 2 +- .../src/tests/columnHeaders.DataGridPro.test.tsx | 2 +- .../src/tests/columnPinning.DataGridPro.test.tsx | 2 +- .../src/tests/columnReorder.DataGridPro.test.tsx | 2 +- .../src/tests/columnSpanning.DataGridPro.test.tsx | 2 +- .../x-data-grid-pro/src/tests/columns.DataGridPro.test.tsx | 2 +- .../src/tests/columnsVisibility.DataGridPro.test.tsx | 2 +- .../x-data-grid-pro/src/tests/components.DataGridPro.test.tsx | 2 +- .../src/tests/detailPanel.DataGridPro.test.tsx | 2 +- .../src/tests/editComponents.DataGridPro.test.tsx | 2 +- .../x-data-grid-pro/src/tests/events.DataGridPro.test.tsx | 2 +- .../x-data-grid-pro/src/tests/export.DataGridPro.test.tsx | 2 +- .../src/tests/filterPanel.DataGridPro.test.tsx | 2 +- .../x-data-grid-pro/src/tests/filtering.DataGridPro.test.tsx | 2 +- .../x-data-grid-pro/src/tests/layout.DataGridPro.test.tsx | 2 +- .../x-data-grid-pro/src/tests/lazyLoader.DataGridPro.test.tsx | 2 +- .../x-data-grid-pro/src/tests/license.DataGridPro.test.tsx | 2 +- .../x-data-grid-pro/src/tests/pagination.DataGridPro.test.tsx | 2 +- .../x-data-grid-pro/src/tests/printExport.DataGrid.test.tsx | 2 +- .../x-data-grid-pro/src/tests/rowEditing.DataGridPro.test.tsx | 2 +- .../x-data-grid-pro/src/tests/rowPinning.DataGridPro.test.tsx | 2 +- .../x-data-grid-pro/src/tests/rowReorder.DataGridPro.test.tsx | 2 +- .../src/tests/rowSelection.DataGridPro.test.tsx | 2 +- .../grid/x-data-grid-pro/src/tests/rows.DataGridPro.test.tsx | 2 +- .../x-data-grid-pro/src/tests/sorting.DataGridPro.test.tsx | 2 +- .../grid/x-data-grid-pro/src/tests/state.DataGridPro.test.tsx | 2 +- .../src/tests/statePersistence.DataGridPro.test.tsx | 2 +- .../x-data-grid-pro/src/tests/treeData.DataGridPro.test.tsx | 2 +- packages/grid/x-data-grid-pro/tsconfig.json | 2 +- .../grid/x-data-grid/src/components/panel/GridPanel.test.tsx | 2 +- .../src/hooks/utils/useGridApiEventHandler.test.tsx | 2 +- packages/grid/x-data-grid/src/tests/DataGrid.test.tsx | 2 +- packages/grid/x-data-grid/src/tests/cells.DataGrid.test.tsx | 2 +- .../x-data-grid/src/tests/columnHeaders.DataGrid.test.tsx | 2 +- .../x-data-grid/src/tests/columnSpanning.DataGrid.test.tsx | 2 +- packages/grid/x-data-grid/src/tests/columns.DataGrid.test.tsx | 2 +- .../x-data-grid/src/tests/columnsGrouping.DataGrid.test.tsx | 2 +- .../x-data-grid/src/tests/columnsVisibility.DataGrid.test.tsx | 2 +- .../grid/x-data-grid/src/tests/components.DataGrid.test.tsx | 2 +- packages/grid/x-data-grid/src/tests/export.DataGrid.test.tsx | 2 +- .../grid/x-data-grid/src/tests/filterPanel.DataGrid.test.tsx | 2 +- .../grid/x-data-grid/src/tests/filtering.DataGrid.test.tsx | 2 +- .../grid/x-data-grid/src/tests/keyboard.DataGrid.test.tsx | 2 +- packages/grid/x-data-grid/src/tests/layout.DataGrid.test.tsx | 2 +- .../grid/x-data-grid/src/tests/pagination.DataGrid.test.tsx | 2 +- .../x-data-grid/src/tests/quickFiltering.DataGrid.test.tsx | 2 +- .../grid/x-data-grid/src/tests/rowSelection.DataGrid.test.tsx | 2 +- packages/grid/x-data-grid/src/tests/rows.DataGrid.test.tsx | 2 +- packages/grid/x-data-grid/src/tests/sorting.DataGrid.test.tsx | 2 +- packages/grid/x-data-grid/src/tests/toolbar.DataGrid.test.tsx | 2 +- packages/grid/x-data-grid/tsconfig.json | 2 +- packages/x-charts/tsconfig.json | 2 +- packages/x-codemod/tsconfig.json | 2 +- .../src/DateRangeCalendar/DateRangeCalendar.test.tsx | 2 +- .../src/DateRangePicker/DateRangePicker.test.tsx | 2 +- .../src/DateRangePicker/describes.DateRangePicker.test.tsx | 2 +- .../src/DateRangePickerDay/DateRangePickerDay.test.tsx | 2 +- .../tests/DesktopDateRangePicker.test.tsx | 2 +- .../tests/describes.DesktopDateRangePicker.test.tsx | 2 +- .../tests/MobileDateRangePicker.test.tsx | 2 +- .../tests/describes.MobileDateRangePicker.test.tsx | 2 +- .../tests/MultiInputDateRangeField.conformance.test.tsx | 2 +- .../tests/MultiInputDateRangeField.validation.test.tsx | 4 ++-- .../tests/MultiInputDateTimeRangeField.conformance.test.tsx | 2 +- .../tests/MultiInputDateTimeRangeField.validation.test.tsx | 4 ++-- .../tests/MultiInputTimeRangeField.conformance.test.tsx | 2 +- .../tests/MultiInputTimeRangeField.validation.test.tsx | 4 ++-- .../tests/describes.SingleInputDateRangeField.test.tsx | 2 +- .../tests/editing.SingleInputDateRangeField.test.tsx | 2 +- .../tests/selection.SingleInputDateRangeField.test.tsx | 2 +- .../tests/describes.SingleInputDateTimeRangeField.test.tsx | 2 +- .../tests/describes.SingleInputTimeRangeField.test.tsx | 2 +- .../src/StaticDateRangePicker/StaticDateRangePicker.test.tsx | 2 +- packages/x-date-pickers-pro/tsconfig.json | 2 +- .../x-date-pickers/src/AdapterDateFns/AdapterDateFns.test.tsx | 2 +- .../src/AdapterDateFnsJalali/AdapterDateFnsJalali.test.tsx | 2 +- .../x-date-pickers/src/AdapterDayjs/AdapterDayjs.test.tsx | 2 +- .../x-date-pickers/src/AdapterLuxon/AdapterLuxon.test.tsx | 2 +- .../x-date-pickers/src/AdapterMoment/AdapterMoment.test.tsx | 2 +- .../src/AdapterMomentHijri/AdapterMomentHijri.test.tsx | 2 +- .../src/AdapterMomentJalaali/AdapterMomentJalaali.test.tsx | 2 +- .../src/DateCalendar/tests/DateCalendar.test.tsx | 2 +- .../src/DateCalendar/tests/describes.DateCalendar.test.tsx | 2 +- .../src/DateCalendar/tests/keyboard.DateCalendar.test.tsx | 2 +- .../src/DateCalendar/tests/timezone.DateCalendar.test.tsx | 2 +- .../src/DateCalendar/tests/validation.DateCalendar.test.tsx | 2 +- .../src/DateField/tests/describes.DateField.test.tsx | 2 +- .../src/DateField/tests/editing.DateField.test.tsx | 2 +- .../src/DateField/tests/selection.DateField.test.tsx | 2 +- .../x-date-pickers/src/DatePicker/tests/DatePicker.test.tsx | 2 +- .../src/DateTimeField/tests/describes.DateTimeField.test.tsx | 2 +- .../src/DateTimeField/tests/editing.DateTimeField.test.tsx | 2 +- .../src/DateTimeField/tests/timezone.DateTimeField.test.tsx | 2 +- .../src/DateTimePicker/tests/DateTimePicker.test.tsx | 2 +- .../src/DayCalendarSkeleton/DayCalendarSkeleton.test.tsx | 2 +- .../src/DesktopDatePicker/tests/DesktopDatePicker.test.tsx | 2 +- .../tests/describes.DesktopDatePicker.test.tsx | 2 +- .../DesktopDatePicker/tests/field.DesktopDatePicker.test.tsx | 2 +- .../tests/DesktopDateTimePicker.test.tsx | 2 +- .../tests/describes.DesktopDateTimePicker.test.tsx | 2 +- .../src/DesktopTimePicker/tests/DesktopTimePicker.test.tsx | 2 +- .../tests/describes.DesktopTimePicker.test.tsx | 2 +- .../src/DigitalClock/tests/describes.DigitalClock.test.tsx | 2 +- .../src/DigitalClock/tests/timezone.DigitalClock.test.tsx | 2 +- .../src/LocalizationProvider/LocalizationProvider.test.tsx | 2 +- .../src/MobileDatePicker/tests/MobileDatePicker.test.tsx | 2 +- .../tests/describes.MobileDatePicker.test.tsx | 2 +- .../MobileDateTimePicker/tests/MobileDateTimePicker.test.tsx | 2 +- .../tests/describes.MobileDateTimePicker.test.tsx | 2 +- .../src/MobileTimePicker/tests/MobileTimePicker.test.tsx | 2 +- .../tests/describes.MobileTimePicker.test.tsx | 2 +- .../src/MonthCalendar/tests/MonthCalendar.test.tsx | 2 +- .../src/MonthCalendar/tests/describes.MonthCalendar.test.tsx | 2 +- .../tests/describes.MultiSectionDigitalClock.test.tsx | 2 +- .../src/PickersActionBar/PickersActionBar.test.tsx | 2 +- packages/x-date-pickers/src/PickersDay/PickersDay.test.tsx | 2 +- .../src/StaticDatePicker/tests/StaticDatePicker.test.tsx | 2 +- .../StaticDatePicker/tests/StaticDatePickerKeyboard.test.tsx | 2 +- .../StaticDateTimePicker/tests/StaticDateTimePicker.test.tsx | 2 +- .../src/StaticTimePicker/StaticTimePicker.test.tsx | 2 +- .../x-date-pickers/src/TimeClock/tests/TimeClock.test.tsx | 2 +- .../src/TimeClock/tests/describes.TimeClock.test.tsx | 2 +- .../src/TimeClock/tests/timezone.TimeClock.test.tsx | 2 +- .../src/TimeField/tests/describes.TimeField.test.tsx | 2 +- .../src/TimeField/tests/editing.TimeField.test.tsx | 2 +- .../x-date-pickers/src/TimePicker/tests/TimePicker.test.tsx | 2 +- .../src/YearCalendar/tests/YearCalendar.test.tsx | 2 +- .../src/YearCalendar/tests/describes.YearCalendar.test.tsx | 2 +- .../src/tests/fieldKeyboardInteraction.test.tsx | 2 +- packages/x-date-pickers/tsconfig.json | 2 +- .../src/useLicenseVerifier/useLicenseVerifier.test.tsx | 2 +- packages/x-license-pro/tsconfig.json | 2 +- packages/x-tree-view/src/TreeItem/TreeItem.test.tsx | 2 +- packages/x-tree-view/src/TreeView/TreeView.test.tsx | 2 +- packages/x-tree-view/tsconfig.json | 2 +- test/karma.tests.js | 2 +- test/utils/helperFn.ts | 2 +- test/utils/init.ts | 2 +- test/utils/pickers/calendar.ts | 2 +- test/utils/pickers/clock.ts | 2 +- test/utils/pickers/createPickerRenderer.tsx | 2 +- test/utils/pickers/describeAdapters/describeAdapters.ts | 2 +- .../describeGregorianAdapter/describeGregorianAdapter.ts | 2 +- .../pickers/describeHijriAdapter/describeHijriAdapter.ts | 2 +- .../pickers/describeJalaliAdapter/describeJalaliAdapter.ts | 2 +- test/utils/pickers/describePicker/describePicker.tsx | 2 +- test/utils/pickers/describePicker/describePicker.types.ts | 2 +- .../describeRangeValidation/describeRangeValidation.tsx | 2 +- .../describeRangeValidation/testDayViewRangeValidation.tsx | 2 +- .../testTextFieldKeyboardRangeValidation.tsx | 4 ++-- .../describeRangeValidation/testTextFieldRangeValidation.tsx | 2 +- test/utils/pickers/describeValidation/describeValidation.ts | 2 +- .../pickers/describeValidation/describeValidation.types.ts | 2 +- .../pickers/describeValidation/testDayViewValidation.tsx | 2 +- .../pickers/describeValidation/testMinutesViewValidation.tsx | 2 +- .../pickers/describeValidation/testMonthViewValidation.tsx | 2 +- .../pickers/describeValidation/testTextFieldValidation.tsx | 2 +- .../pickers/describeValidation/testYearViewValidation.tsx | 2 +- test/utils/pickers/describeValue/describeValue.tsx | 2 +- test/utils/pickers/describeValue/describeValue.types.ts | 2 +- .../pickers/describeValue/testControlledUnControlled.tsx | 2 +- test/utils/pickers/describeValue/testPickerActionBar.tsx | 2 +- .../pickers/describeValue/testPickerOpenCloseLifeCycle.tsx | 2 +- test/utils/pickers/describeValue/testShortcuts.tsx | 2 +- test/utils/pickers/fields.tsx | 2 +- test/utils/pickers/openPicker.ts | 2 +- test/utils/pickers/viewHandlers.ts | 2 +- test/utils/setupJSDOM.js | 3 ++- tsconfig.json | 2 ++ 183 files changed, 191 insertions(+), 185 deletions(-) diff --git a/babel.config.js b/babel.config.js index 4e02caa2e3bd..6601d00c9a52 100644 --- a/babel.config.js +++ b/babel.config.js @@ -19,6 +19,9 @@ const defaultAlias = { '@mui/markdown': '@mui/monorepo/packages/markdown', '@mui-internal/api-docs-builder': '@mui/monorepo/packages/api-docs-builder', '@mui-internal/docs-utilities': '@mui/monorepo/packages/docs-utilities', + '@mui-internal/test-utils': resolveAliasPath( + './node_modules/@mui/monorepo/packages/test-utils/src', + ), 'typescript-to-proptypes': '@mui/monorepo/packages/typescript-to-proptypes/src', docs: resolveAliasPath('./node_modules/@mui/monorepo/docs'), test: resolveAliasPath('./test'), diff --git a/packages/grid/x-data-grid-premium/src/tests/DataGridPremium.test.tsx b/packages/grid/x-data-grid-premium/src/tests/DataGridPremium.test.tsx index 09521a4d2b07..d6c0fa758875 100644 --- a/packages/grid/x-data-grid-premium/src/tests/DataGridPremium.test.tsx +++ b/packages/grid/x-data-grid-premium/src/tests/DataGridPremium.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, act } from '@mui/monorepo/test/utils'; +import { createRenderer, act } from '@mui-internal/test-utils'; import { expect } from 'chai'; import { DataGridPremium as DataGrid, diff --git a/packages/grid/x-data-grid-premium/src/tests/aggregation.DataGridPremium.test.tsx b/packages/grid/x-data-grid-premium/src/tests/aggregation.DataGridPremium.test.tsx index 8b4d4509078a..e6e44d51931b 100644 --- a/packages/grid/x-data-grid-premium/src/tests/aggregation.DataGridPremium.test.tsx +++ b/packages/grid/x-data-grid-premium/src/tests/aggregation.DataGridPremium.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, screen, userEvent, within, act } from '@mui/monorepo/test/utils'; +import { createRenderer, screen, userEvent, within, act } from '@mui-internal/test-utils'; import { expect } from 'chai'; import { getColumnHeaderCell, getColumnValues } from 'test/utils/helperFn'; import { SinonSpy, spy } from 'sinon'; diff --git a/packages/grid/x-data-grid-premium/src/tests/cellSelection.DataGridPremium.test.tsx b/packages/grid/x-data-grid-premium/src/tests/cellSelection.DataGridPremium.test.tsx index d7d05dbbacd2..30ddfc94dc73 100644 --- a/packages/grid/x-data-grid-premium/src/tests/cellSelection.DataGridPremium.test.tsx +++ b/packages/grid/x-data-grid-premium/src/tests/cellSelection.DataGridPremium.test.tsx @@ -2,7 +2,7 @@ import * as React from 'react'; import { stub, SinonStub } from 'sinon'; import { expect } from 'chai'; import { spyApi, getCell } from 'test/utils/helperFn'; -import { createRenderer, fireEvent, act, userEvent } from '@mui/monorepo/test/utils'; +import { createRenderer, fireEvent, act, userEvent } from '@mui-internal/test-utils'; import { DataGridPremium, DataGridPremiumProps, diff --git a/packages/grid/x-data-grid-premium/src/tests/clipboard.DataGridPremium.test.tsx b/packages/grid/x-data-grid-premium/src/tests/clipboard.DataGridPremium.test.tsx index 70c9dbfaf836..97eb968aee15 100644 --- a/packages/grid/x-data-grid-premium/src/tests/clipboard.DataGridPremium.test.tsx +++ b/packages/grid/x-data-grid-premium/src/tests/clipboard.DataGridPremium.test.tsx @@ -7,7 +7,7 @@ import { GridColDef, } from '@mui/x-data-grid-premium'; // @ts-ignore Remove once the test utils are typed -import { createRenderer, fireEvent, userEvent, waitFor } from '@mui/monorepo/test/utils'; +import { createRenderer, fireEvent, userEvent, waitFor } from '@mui-internal/test-utils'; import { expect } from 'chai'; import { stub, SinonStub, spy } from 'sinon'; import { getCell, getColumnValues, sleep } from 'test/utils/helperFn'; diff --git a/packages/grid/x-data-grid-premium/src/tests/columns.DataGridPremium.test.tsx b/packages/grid/x-data-grid-premium/src/tests/columns.DataGridPremium.test.tsx index eb32d82a5e19..14267f4ac7dc 100644 --- a/packages/grid/x-data-grid-premium/src/tests/columns.DataGridPremium.test.tsx +++ b/packages/grid/x-data-grid-premium/src/tests/columns.DataGridPremium.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { act, createRenderer, fireEvent } from '@mui/monorepo/test/utils'; +import { act, createRenderer, fireEvent } from '@mui-internal/test-utils'; import { expect } from 'chai'; import { DataGridPremium, gridClasses } from '@mui/x-data-grid-premium'; import { getCell, getColumnHeaderCell } from 'test/utils/helperFn'; diff --git a/packages/grid/x-data-grid-premium/src/tests/exportExcel.DataGridPremium.test.tsx b/packages/grid/x-data-grid-premium/src/tests/exportExcel.DataGridPremium.test.tsx index 404c90c23749..a32314397bc2 100644 --- a/packages/grid/x-data-grid-premium/src/tests/exportExcel.DataGridPremium.test.tsx +++ b/packages/grid/x-data-grid-premium/src/tests/exportExcel.DataGridPremium.test.tsx @@ -8,7 +8,7 @@ import { DataGridPremiumProps, GridActionsCellItem, } from '@mui/x-data-grid-premium'; -import { createRenderer, screen, fireEvent, act } from '@mui/monorepo/test/utils'; +import { createRenderer, screen, fireEvent, act } from '@mui-internal/test-utils'; import { spy, SinonSpy } from 'sinon'; import { expect } from 'chai'; import Excel from 'exceljs'; diff --git a/packages/grid/x-data-grid-premium/src/tests/license.DataGridPremium.test.tsx b/packages/grid/x-data-grid-premium/src/tests/license.DataGridPremium.test.tsx index d99d0d1ee93f..96495a5572c9 100644 --- a/packages/grid/x-data-grid-premium/src/tests/license.DataGridPremium.test.tsx +++ b/packages/grid/x-data-grid-premium/src/tests/license.DataGridPremium.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import addYears from 'date-fns/addYears'; import { expect } from 'chai'; -import { createRenderer, screen, waitFor } from '@mui/monorepo/test/utils'; +import { createRenderer, screen, waitFor } from '@mui-internal/test-utils'; import { DataGridPremium } from '@mui/x-data-grid-premium'; import { generateLicense, LicenseInfo } from '@mui/x-license-pro'; diff --git a/packages/grid/x-data-grid-premium/src/tests/rowGrouping.DataGridPremium.test.tsx b/packages/grid/x-data-grid-premium/src/tests/rowGrouping.DataGridPremium.test.tsx index 74e7fce53bd9..60fb45c1802e 100644 --- a/packages/grid/x-data-grid-premium/src/tests/rowGrouping.DataGridPremium.test.tsx +++ b/packages/grid/x-data-grid-premium/src/tests/rowGrouping.DataGridPremium.test.tsx @@ -6,7 +6,7 @@ import { act, userEvent, waitFor, -} from '@mui/monorepo/test/utils'; +} from '@mui-internal/test-utils'; import { microtasks, getColumnHeaderCell, diff --git a/packages/grid/x-data-grid-premium/src/tests/rowPinning.DataGridPremium.test.tsx b/packages/grid/x-data-grid-premium/src/tests/rowPinning.DataGridPremium.test.tsx index acca8e87e40d..e0a103cbde2b 100644 --- a/packages/grid/x-data-grid-premium/src/tests/rowPinning.DataGridPremium.test.tsx +++ b/packages/grid/x-data-grid-premium/src/tests/rowPinning.DataGridPremium.test.tsx @@ -1,4 +1,4 @@ -import { createRenderer } from '@mui/monorepo/test/utils'; +import { createRenderer } from '@mui-internal/test-utils'; import * as React from 'react'; import { expect } from 'chai'; import { diff --git a/packages/grid/x-data-grid-premium/src/tests/statePersistence.DataGridPremium.test.tsx b/packages/grid/x-data-grid-premium/src/tests/statePersistence.DataGridPremium.test.tsx index 497722909eb6..a8a9a8411d1e 100644 --- a/packages/grid/x-data-grid-premium/src/tests/statePersistence.DataGridPremium.test.tsx +++ b/packages/grid/x-data-grid-premium/src/tests/statePersistence.DataGridPremium.test.tsx @@ -8,7 +8,7 @@ import { GridRowsProp, useGridApiRef, } from '@mui/x-data-grid-premium'; -import { createRenderer, act } from '@mui/monorepo/test/utils'; +import { createRenderer, act } from '@mui-internal/test-utils'; import { expect } from 'chai'; import { getColumnValues } from 'test/utils/helperFn'; diff --git a/packages/grid/x-data-grid-premium/tsconfig.json b/packages/grid/x-data-grid-premium/tsconfig.json index 3d20b7d6a4bb..3fcdd4421666 100644 --- a/packages/grid/x-data-grid-premium/tsconfig.json +++ b/packages/grid/x-data-grid-premium/tsconfig.json @@ -6,7 +6,7 @@ "include": [ "src/**/*", "../../test/utils/addChaiAssertions.ts", - "../../node_modules/@mui/monorepo/test/utils/initMatchers.ts", + "../../node_modules/@mui-internal/test-utils/initMatchers.ts", "../../../node_modules/@mui/material/themeCssVarsAugmentation" ] } diff --git a/packages/grid/x-data-grid-pro/src/tests/accessibility.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/accessibility.DataGridPro.test.tsx index 18bc9828f430..2c5402436274 100644 --- a/packages/grid/x-data-grid-pro/src/tests/accessibility.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/accessibility.DataGridPro.test.tsx @@ -3,7 +3,7 @@ import { expect } from 'chai'; import axe from 'axe-core'; import { DataGridPro } from '@mui/x-data-grid-pro'; import { useBasicDemoData } from '@mui/x-data-grid-generator'; -import { createRenderer } from '@mui/monorepo/test/utils'; +import { createRenderer } from '@mui-internal/test-utils'; function logViolations(violations: any) { if (violations.length !== 0) { diff --git a/packages/grid/x-data-grid-pro/src/tests/cellEditing.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/cellEditing.DataGridPro.test.tsx index 3edf22299bf8..7aa921856e0f 100644 --- a/packages/grid/x-data-grid-pro/src/tests/cellEditing.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/cellEditing.DataGridPro.test.tsx @@ -13,7 +13,7 @@ import { GridCellModes, } from '@mui/x-data-grid-pro'; import { getBasicGridData } from '@mui/x-data-grid-generator'; -import { createRenderer, fireEvent, act, userEvent } from '@mui/monorepo/test/utils'; +import { createRenderer, fireEvent, act, userEvent } from '@mui-internal/test-utils'; import { getCell, spyApi } from 'test/utils/helperFn'; describe(' - Cell editing', () => { diff --git a/packages/grid/x-data-grid-pro/src/tests/clipboard.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/clipboard.DataGridPro.test.tsx index 682f3986ce62..fb2a4721dbf9 100644 --- a/packages/grid/x-data-grid-pro/src/tests/clipboard.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/clipboard.DataGridPro.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { GridApi, useGridApiRef, DataGridPro, DataGridProProps } from '@mui/x-data-grid-pro'; -import { createRenderer, fireEvent, act, userEvent } from '@mui/monorepo/test/utils'; +import { createRenderer, fireEvent, act, userEvent } from '@mui-internal/test-utils'; import { expect } from 'chai'; import { stub, SinonStub } from 'sinon'; import { getCell } from 'test/utils/helperFn'; diff --git a/packages/grid/x-data-grid-pro/src/tests/columnHeaders.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/columnHeaders.DataGridPro.test.tsx index 30b10d39465e..6846a4fcfe29 100644 --- a/packages/grid/x-data-grid-pro/src/tests/columnHeaders.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/columnHeaders.DataGridPro.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, fireEvent, screen } from '@mui/monorepo/test/utils'; +import { createRenderer, fireEvent, screen } from '@mui-internal/test-utils'; import { expect } from 'chai'; import { gridClasses, DataGridPro, DataGridProProps } from '@mui/x-data-grid-pro'; import { getColumnHeaderCell, getColumnValues } from 'test/utils/helperFn'; diff --git a/packages/grid/x-data-grid-pro/src/tests/columnPinning.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/columnPinning.DataGridPro.test.tsx index 0957c1a1b478..b4435dff0b48 100644 --- a/packages/grid/x-data-grid-pro/src/tests/columnPinning.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/columnPinning.DataGridPro.test.tsx @@ -18,7 +18,7 @@ import { createEvent, act, userEvent, -} from '@mui/monorepo/test/utils'; +} from '@mui-internal/test-utils'; import { getCell, getColumnHeaderCell, getColumnHeadersTextContent } from 'test/utils/helperFn'; // TODO Move to utils diff --git a/packages/grid/x-data-grid-pro/src/tests/columnReorder.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/columnReorder.DataGridPro.test.tsx index d566f208b09d..10374c4da06d 100644 --- a/packages/grid/x-data-grid-pro/src/tests/columnReorder.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/columnReorder.DataGridPro.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, fireEvent, createEvent, act } from '@mui/monorepo/test/utils'; +import { createRenderer, fireEvent, createEvent, act } from '@mui-internal/test-utils'; import { getColumnHeadersTextContent, getColumnHeaderCell, diff --git a/packages/grid/x-data-grid-pro/src/tests/columnSpanning.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/columnSpanning.DataGridPro.test.tsx index ad4632ec1b07..06391336b3c8 100644 --- a/packages/grid/x-data-grid-pro/src/tests/columnSpanning.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/columnSpanning.DataGridPro.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, fireEvent, act, userEvent } from '@mui/monorepo/test/utils'; +import { createRenderer, fireEvent, act, userEvent } from '@mui-internal/test-utils'; import { expect } from 'chai'; import { DataGridPro, GridApi, useGridApiRef, GridColDef, gridClasses } from '@mui/x-data-grid-pro'; import { getActiveCell, getCell, getColumnHeaderCell } from 'test/utils/helperFn'; diff --git a/packages/grid/x-data-grid-pro/src/tests/columns.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/columns.DataGridPro.test.tsx index 9251992f3efc..fab2eb10e9ee 100644 --- a/packages/grid/x-data-grid-pro/src/tests/columns.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/columns.DataGridPro.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, fireEvent, screen, act } from '@mui/monorepo/test/utils'; +import { createRenderer, fireEvent, screen, act } from '@mui-internal/test-utils'; import { expect } from 'chai'; import { spy } from 'sinon'; import { diff --git a/packages/grid/x-data-grid-pro/src/tests/columnsVisibility.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/columnsVisibility.DataGridPro.test.tsx index 48c90c678a34..d6c9f05104e8 100644 --- a/packages/grid/x-data-grid-pro/src/tests/columnsVisibility.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/columnsVisibility.DataGridPro.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { spy } from 'sinon'; import { expect } from 'chai'; -import { createRenderer, fireEvent, act } from '@mui/monorepo/test/utils'; +import { createRenderer, fireEvent, act } from '@mui-internal/test-utils'; import { DataGridPro, DataGridProProps, diff --git a/packages/grid/x-data-grid-pro/src/tests/components.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/components.DataGridPro.test.tsx index b443a67fb19e..942019a4ee69 100644 --- a/packages/grid/x-data-grid-pro/src/tests/components.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/components.DataGridPro.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, EventType, fireEvent, userEvent } from '@mui/monorepo/test/utils'; +import { createRenderer, EventType, fireEvent, userEvent } from '@mui-internal/test-utils'; import { spy } from 'sinon'; import { expect } from 'chai'; import { diff --git a/packages/grid/x-data-grid-pro/src/tests/detailPanel.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/detailPanel.DataGridPro.test.tsx index 1e3d47813482..cd329d62029a 100644 --- a/packages/grid/x-data-grid-pro/src/tests/detailPanel.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/detailPanel.DataGridPro.test.tsx @@ -18,7 +18,7 @@ import { waitFor, act, userEvent, -} from '@mui/monorepo/test/utils'; +} from '@mui-internal/test-utils'; import { getRow, getCell, getColumnValues, getRows } from 'test/utils/helperFn'; const isJSDOM = /jsdom/.test(window.navigator.userAgent); diff --git a/packages/grid/x-data-grid-pro/src/tests/editComponents.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/editComponents.DataGridPro.test.tsx index f2cac621b16e..4a350ce9678b 100644 --- a/packages/grid/x-data-grid-pro/src/tests/editComponents.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/editComponents.DataGridPro.test.tsx @@ -10,7 +10,7 @@ import { renderEditInputCell, renderEditSingleSelectCell, } from '@mui/x-data-grid-pro'; -import { act, createRenderer, fireEvent, screen, userEvent } from '@mui/monorepo/test/utils'; +import { act, createRenderer, fireEvent, screen, userEvent } from '@mui-internal/test-utils'; import { expect } from 'chai'; import { getCell, spyApi } from 'test/utils/helperFn'; import { spy, SinonSpy } from 'sinon'; diff --git a/packages/grid/x-data-grid-pro/src/tests/events.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/events.DataGridPro.test.tsx index 83e4b6ae985d..f596ed6ad2a1 100644 --- a/packages/grid/x-data-grid-pro/src/tests/events.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/events.DataGridPro.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, fireEvent, screen, act } from '@mui/monorepo/test/utils'; +import { createRenderer, fireEvent, screen, act } from '@mui-internal/test-utils'; import { expect } from 'chai'; import { DataGridPro, diff --git a/packages/grid/x-data-grid-pro/src/tests/export.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/export.DataGridPro.test.tsx index 6a5cd4f56fea..fb3f9e902293 100644 --- a/packages/grid/x-data-grid-pro/src/tests/export.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/export.DataGridPro.test.tsx @@ -5,7 +5,7 @@ import { GridApi, DataGridProProps, } from '@mui/x-data-grid-pro'; -import { createRenderer, act } from '@mui/monorepo/test/utils'; +import { createRenderer, act } from '@mui-internal/test-utils'; import { expect } from 'chai'; import * as React from 'react'; diff --git a/packages/grid/x-data-grid-pro/src/tests/filterPanel.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/filterPanel.DataGridPro.test.tsx index 0477796e293e..d7f5333dfa1c 100644 --- a/packages/grid/x-data-grid-pro/src/tests/filterPanel.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/filterPanel.DataGridPro.test.tsx @@ -7,7 +7,7 @@ import { GridApi, useGridApiRef, } from '@mui/x-data-grid-pro'; -import { createRenderer, act } from '@mui/monorepo/test/utils'; +import { createRenderer, act } from '@mui-internal/test-utils'; const isJSDOM = /jsdom/.test(window.navigator.userAgent); diff --git a/packages/grid/x-data-grid-pro/src/tests/filtering.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/filtering.DataGridPro.test.tsx index 9e878e0a9e37..1ef195ec5933 100644 --- a/packages/grid/x-data-grid-pro/src/tests/filtering.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/filtering.DataGridPro.test.tsx @@ -15,7 +15,7 @@ import { gridExpandedSortedRowEntriesSelector, gridClasses, } from '@mui/x-data-grid-pro'; -import { createRenderer, fireEvent, screen, act, within } from '@mui/monorepo/test/utils'; +import { createRenderer, fireEvent, screen, act, within } from '@mui-internal/test-utils'; import { expect } from 'chai'; import * as React from 'react'; import { spy } from 'sinon'; diff --git a/packages/grid/x-data-grid-pro/src/tests/layout.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/layout.DataGridPro.test.tsx index d43165fce0c8..ded3a0d2b210 100644 --- a/packages/grid/x-data-grid-pro/src/tests/layout.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/layout.DataGridPro.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, screen, act } from '@mui/monorepo/test/utils'; +import { createRenderer, screen, act } from '@mui-internal/test-utils'; import { expect } from 'chai'; import { createTheme, ThemeProvider } from '@mui/material/styles'; import { GridApi, useGridApiRef, DataGridPro, ptBR, DataGridProProps } from '@mui/x-data-grid-pro'; diff --git a/packages/grid/x-data-grid-pro/src/tests/lazyLoader.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/lazyLoader.DataGridPro.test.tsx index b782cd3bc34e..b144e2d8640f 100644 --- a/packages/grid/x-data-grid-pro/src/tests/lazyLoader.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/lazyLoader.DataGridPro.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, fireEvent, act } from '@mui/monorepo/test/utils'; +import { createRenderer, fireEvent, act } from '@mui-internal/test-utils'; import { getColumnHeaderCell, getColumnValues, getRow } from 'test/utils/helperFn'; import { expect } from 'chai'; import { diff --git a/packages/grid/x-data-grid-pro/src/tests/license.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/license.DataGridPro.test.tsx index 7306eb5992d8..f2556186f253 100644 --- a/packages/grid/x-data-grid-pro/src/tests/license.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/license.DataGridPro.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, screen, waitFor } from '@mui/monorepo/test/utils'; +import { createRenderer, screen, waitFor } from '@mui-internal/test-utils'; import { DataGridPro } from '@mui/x-data-grid-pro'; import { LicenseInfo } from '@mui/x-license-pro'; diff --git a/packages/grid/x-data-grid-pro/src/tests/pagination.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/pagination.DataGridPro.test.tsx index 745fc9d5fc3c..55d78d03024f 100644 --- a/packages/grid/x-data-grid-pro/src/tests/pagination.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/pagination.DataGridPro.test.tsx @@ -1,4 +1,4 @@ -import { createRenderer, act } from '@mui/monorepo/test/utils'; +import { createRenderer, act } from '@mui-internal/test-utils'; import { getColumnValues } from 'test/utils/helperFn'; import * as React from 'react'; import { expect } from 'chai'; diff --git a/packages/grid/x-data-grid-pro/src/tests/printExport.DataGrid.test.tsx b/packages/grid/x-data-grid-pro/src/tests/printExport.DataGrid.test.tsx index d532723cba47..5a5433fe409f 100644 --- a/packages/grid/x-data-grid-pro/src/tests/printExport.DataGrid.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/printExport.DataGrid.test.tsx @@ -9,7 +9,7 @@ import { DataGridProProps, } from '@mui/x-data-grid-pro'; import { getBasicGridData } from '@mui/x-data-grid-generator'; -import { createRenderer, screen, fireEvent, act } from '@mui/monorepo/test/utils'; +import { createRenderer, screen, fireEvent, act } from '@mui-internal/test-utils'; describe(' - Print export', () => { const { render, clock } = createRenderer(); diff --git a/packages/grid/x-data-grid-pro/src/tests/rowEditing.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/rowEditing.DataGridPro.test.tsx index 7e8a2b7f28d0..a08ebe77322c 100644 --- a/packages/grid/x-data-grid-pro/src/tests/rowEditing.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/rowEditing.DataGridPro.test.tsx @@ -13,7 +13,7 @@ import { } from '@mui/x-data-grid-pro'; import Portal from '@mui/material/Portal'; import { getBasicGridData } from '@mui/x-data-grid-generator'; -import { createRenderer, fireEvent, act, userEvent, screen } from '@mui/monorepo/test/utils'; +import { createRenderer, fireEvent, act, userEvent, screen } from '@mui-internal/test-utils'; import { getCell, getRow, spyApi } from 'test/utils/helperFn'; describe(' - Row editing', () => { diff --git a/packages/grid/x-data-grid-pro/src/tests/rowPinning.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/rowPinning.DataGridPro.test.tsx index bb80ce265f76..878eb683e1f4 100644 --- a/packages/grid/x-data-grid-pro/src/tests/rowPinning.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/rowPinning.DataGridPro.test.tsx @@ -18,7 +18,7 @@ import { act, userEvent, waitFor, -} from '@mui/monorepo/test/utils'; +} from '@mui-internal/test-utils'; import { getActiveCell, getActiveColumnHeader, diff --git a/packages/grid/x-data-grid-pro/src/tests/rowReorder.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/rowReorder.DataGridPro.test.tsx index 7aee64b05493..3c56a545f6d0 100644 --- a/packages/grid/x-data-grid-pro/src/tests/rowReorder.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/rowReorder.DataGridPro.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { createRenderer, fireEvent, createEvent } from '@mui/monorepo/test/utils'; +import { createRenderer, fireEvent, createEvent } from '@mui-internal/test-utils'; import { getCell, getRowsFieldContent } from 'test/utils/helperFn'; import { useGridApiRef, DataGridPro, gridClasses, GridApi } from '@mui/x-data-grid-pro'; import { useBasicDemoData } from '@mui/x-data-grid-generator'; diff --git a/packages/grid/x-data-grid-pro/src/tests/rowSelection.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/rowSelection.DataGridPro.test.tsx index ed04365c0cf8..1666112dd0cd 100644 --- a/packages/grid/x-data-grid-pro/src/tests/rowSelection.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/rowSelection.DataGridPro.test.tsx @@ -2,7 +2,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; import { getCell, getColumnValues, getRows } from 'test/utils/helperFn'; -import { createRenderer, fireEvent, screen, act } from '@mui/monorepo/test/utils'; +import { createRenderer, fireEvent, screen, act } from '@mui-internal/test-utils'; import { GridApi, useGridApiRef, diff --git a/packages/grid/x-data-grid-pro/src/tests/rows.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/rows.DataGridPro.test.tsx index 2791f94b6307..8f3d464f6356 100644 --- a/packages/grid/x-data-grid-pro/src/tests/rows.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/rows.DataGridPro.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, fireEvent, act, userEvent } from '@mui/monorepo/test/utils'; +import { createRenderer, fireEvent, act, userEvent } from '@mui-internal/test-utils'; import { spy } from 'sinon'; import { expect } from 'chai'; import { diff --git a/packages/grid/x-data-grid-pro/src/tests/sorting.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/sorting.DataGridPro.test.tsx index cd77c3eb27ee..ab44035ffbf6 100644 --- a/packages/grid/x-data-grid-pro/src/tests/sorting.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/sorting.DataGridPro.test.tsx @@ -7,7 +7,7 @@ import { useGridApiRef, GridColDef, } from '@mui/x-data-grid-pro'; -import { createRenderer, fireEvent, act } from '@mui/monorepo/test/utils'; +import { createRenderer, fireEvent, act } from '@mui-internal/test-utils'; import { expect } from 'chai'; import { spy } from 'sinon'; import { getColumnValues, getCell, getColumnHeaderCell } from 'test/utils/helperFn'; diff --git a/packages/grid/x-data-grid-pro/src/tests/state.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/state.DataGridPro.test.tsx index 266afb032ca1..4b5090b4e277 100644 --- a/packages/grid/x-data-grid-pro/src/tests/state.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/state.DataGridPro.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, fireEvent, screen } from '@mui/monorepo/test/utils'; +import { createRenderer, fireEvent, screen } from '@mui-internal/test-utils'; import { getColumnValues } from 'test/utils/helperFn'; import { expect } from 'chai'; import { DataGridPro, useGridApiRef, GridApi, DataGridProProps } from '@mui/x-data-grid-pro'; diff --git a/packages/grid/x-data-grid-pro/src/tests/statePersistence.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/statePersistence.DataGridPro.test.tsx index 737a83f810b5..f21003436f85 100644 --- a/packages/grid/x-data-grid-pro/src/tests/statePersistence.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/statePersistence.DataGridPro.test.tsx @@ -10,7 +10,7 @@ import { GridRowsProp, useGridApiRef, } from '@mui/x-data-grid-pro'; -import { createRenderer, screen, act } from '@mui/monorepo/test/utils'; +import { createRenderer, screen, act } from '@mui-internal/test-utils'; import { expect } from 'chai'; import { getColumnHeaderCell, diff --git a/packages/grid/x-data-grid-pro/src/tests/treeData.DataGridPro.test.tsx b/packages/grid/x-data-grid-pro/src/tests/treeData.DataGridPro.test.tsx index 8b206fc60229..d8b2cf6c3e47 100644 --- a/packages/grid/x-data-grid-pro/src/tests/treeData.DataGridPro.test.tsx +++ b/packages/grid/x-data-grid-pro/src/tests/treeData.DataGridPro.test.tsx @@ -1,4 +1,4 @@ -import { createRenderer, fireEvent, screen, act, userEvent } from '@mui/monorepo/test/utils'; +import { createRenderer, fireEvent, screen, act, userEvent } from '@mui-internal/test-utils'; import { getCell, getColumnHeaderCell, diff --git a/packages/grid/x-data-grid-pro/tsconfig.json b/packages/grid/x-data-grid-pro/tsconfig.json index 3d20b7d6a4bb..3fcdd4421666 100644 --- a/packages/grid/x-data-grid-pro/tsconfig.json +++ b/packages/grid/x-data-grid-pro/tsconfig.json @@ -6,7 +6,7 @@ "include": [ "src/**/*", "../../test/utils/addChaiAssertions.ts", - "../../node_modules/@mui/monorepo/test/utils/initMatchers.ts", + "../../node_modules/@mui-internal/test-utils/initMatchers.ts", "../../../node_modules/@mui/material/themeCssVarsAugmentation" ] } diff --git a/packages/grid/x-data-grid/src/components/panel/GridPanel.test.tsx b/packages/grid/x-data-grid/src/components/panel/GridPanel.test.tsx index e201e19b16dc..093099c0c794 100644 --- a/packages/grid/x-data-grid/src/components/panel/GridPanel.test.tsx +++ b/packages/grid/x-data-grid/src/components/panel/GridPanel.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, describeConformance } from '@mui/monorepo/test/utils'; +import { createRenderer, describeConformance } from '@mui-internal/test-utils'; import { GridPanel, gridPanelClasses as classes, diff --git a/packages/grid/x-data-grid/src/hooks/utils/useGridApiEventHandler.test.tsx b/packages/grid/x-data-grid/src/hooks/utils/useGridApiEventHandler.test.tsx index 644a145a8dec..8619de8bf66f 100644 --- a/packages/grid/x-data-grid/src/hooks/utils/useGridApiEventHandler.test.tsx +++ b/packages/grid/x-data-grid/src/hooks/utils/useGridApiEventHandler.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { spy } from 'sinon'; import { expect } from 'chai'; -import { createRenderer } from '@mui/monorepo/test/utils'; +import { createRenderer } from '@mui-internal/test-utils'; import { sleep } from 'test/utils/helperFn'; import { createUseGridApiEventHandler } from './useGridApiEventHandler'; import { FinalizationRegistryBasedCleanupTracking } from '../../utils/cleanupTracking/FinalizationRegistryBasedCleanupTracking'; diff --git a/packages/grid/x-data-grid/src/tests/DataGrid.test.tsx b/packages/grid/x-data-grid/src/tests/DataGrid.test.tsx index 2038fa0bb7a5..0cdd1258c059 100644 --- a/packages/grid/x-data-grid/src/tests/DataGrid.test.tsx +++ b/packages/grid/x-data-grid/src/tests/DataGrid.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer } from '@mui/monorepo/test/utils'; +import { createRenderer } from '@mui-internal/test-utils'; import { expect } from 'chai'; import { DataGrid } from '@mui/x-data-grid'; diff --git a/packages/grid/x-data-grid/src/tests/cells.DataGrid.test.tsx b/packages/grid/x-data-grid/src/tests/cells.DataGrid.test.tsx index 2e30f5644374..14f2116a33e4 100644 --- a/packages/grid/x-data-grid/src/tests/cells.DataGrid.test.tsx +++ b/packages/grid/x-data-grid/src/tests/cells.DataGrid.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { spy } from 'sinon'; -import { createRenderer, fireEvent, userEvent } from '@mui/monorepo/test/utils'; +import { createRenderer, fireEvent, userEvent } from '@mui-internal/test-utils'; import { expect } from 'chai'; import { DataGrid } from '@mui/x-data-grid'; import { getCell } from 'test/utils/helperFn'; diff --git a/packages/grid/x-data-grid/src/tests/columnHeaders.DataGrid.test.tsx b/packages/grid/x-data-grid/src/tests/columnHeaders.DataGrid.test.tsx index c8e01b7bd041..51d1e7bb69f8 100644 --- a/packages/grid/x-data-grid/src/tests/columnHeaders.DataGrid.test.tsx +++ b/packages/grid/x-data-grid/src/tests/columnHeaders.DataGrid.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, fireEvent, screen, within, userEvent } from '@mui/monorepo/test/utils'; +import { createRenderer, fireEvent, screen, within, userEvent } from '@mui-internal/test-utils'; import { expect } from 'chai'; import { DataGrid } from '@mui/x-data-grid'; import { getColumnHeaderCell, getColumnHeadersTextContent } from 'test/utils/helperFn'; diff --git a/packages/grid/x-data-grid/src/tests/columnSpanning.DataGrid.test.tsx b/packages/grid/x-data-grid/src/tests/columnSpanning.DataGrid.test.tsx index cb28bda8cdf2..36165bbcff92 100644 --- a/packages/grid/x-data-grid/src/tests/columnSpanning.DataGrid.test.tsx +++ b/packages/grid/x-data-grid/src/tests/columnSpanning.DataGrid.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, fireEvent, screen, within, userEvent } from '@mui/monorepo/test/utils'; +import { createRenderer, fireEvent, screen, within, userEvent } from '@mui-internal/test-utils'; import { expect } from 'chai'; import { DataGrid, gridClasses, GridColDef } from '@mui/x-data-grid'; import { getCell, getActiveCell, getColumnHeaderCell } from 'test/utils/helperFn'; diff --git a/packages/grid/x-data-grid/src/tests/columns.DataGrid.test.tsx b/packages/grid/x-data-grid/src/tests/columns.DataGrid.test.tsx index 824d1b13e16d..c5f26f0911dd 100644 --- a/packages/grid/x-data-grid/src/tests/columns.DataGrid.test.tsx +++ b/packages/grid/x-data-grid/src/tests/columns.DataGrid.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer } from '@mui/monorepo/test/utils'; +import { createRenderer } from '@mui-internal/test-utils'; import { DataGrid, DataGridProps, GridRowsProp, GridColDef } from '@mui/x-data-grid'; import { getCell, getColumnHeaderCell, getColumnHeadersTextContent } from 'test/utils/helperFn'; diff --git a/packages/grid/x-data-grid/src/tests/columnsGrouping.DataGrid.test.tsx b/packages/grid/x-data-grid/src/tests/columnsGrouping.DataGrid.test.tsx index 0e241faaed69..8e49966b8515 100644 --- a/packages/grid/x-data-grid/src/tests/columnsGrouping.DataGrid.test.tsx +++ b/packages/grid/x-data-grid/src/tests/columnsGrouping.DataGrid.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, ErrorBoundary, screen } from '@mui/monorepo/test/utils'; +import { createRenderer, ErrorBoundary, screen } from '@mui-internal/test-utils'; import { DataGrid, DataGridProps, GridRowModel, GridColDef } from '@mui/x-data-grid'; const isJSDOM = /jsdom/.test(window.navigator.userAgent); diff --git a/packages/grid/x-data-grid/src/tests/columnsVisibility.DataGrid.test.tsx b/packages/grid/x-data-grid/src/tests/columnsVisibility.DataGrid.test.tsx index e932220f4648..a6f44f5d85d2 100644 --- a/packages/grid/x-data-grid/src/tests/columnsVisibility.DataGrid.test.tsx +++ b/packages/grid/x-data-grid/src/tests/columnsVisibility.DataGrid.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { createRenderer, fireEvent, screen } from '@mui/monorepo/test/utils'; +import { createRenderer, fireEvent, screen } from '@mui-internal/test-utils'; import { DataGrid, DataGridProps, GridRowsProp, GridColDef, GridToolbar } from '@mui/x-data-grid'; import { getColumnHeadersTextContent } from 'test/utils/helperFn'; diff --git a/packages/grid/x-data-grid/src/tests/components.DataGrid.test.tsx b/packages/grid/x-data-grid/src/tests/components.DataGrid.test.tsx index b34915df5b86..ca568342eb2d 100644 --- a/packages/grid/x-data-grid/src/tests/components.DataGrid.test.tsx +++ b/packages/grid/x-data-grid/src/tests/components.DataGrid.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, ErrorBoundary, fireEvent, screen } from '@mui/monorepo/test/utils'; +import { createRenderer, ErrorBoundary, fireEvent, screen } from '@mui-internal/test-utils'; import { expect } from 'chai'; import { spy } from 'sinon'; import { DataGrid, GridOverlay } from '@mui/x-data-grid'; diff --git a/packages/grid/x-data-grid/src/tests/export.DataGrid.test.tsx b/packages/grid/x-data-grid/src/tests/export.DataGrid.test.tsx index 89021247df41..3cf8c8f76b8a 100644 --- a/packages/grid/x-data-grid/src/tests/export.DataGrid.test.tsx +++ b/packages/grid/x-data-grid/src/tests/export.DataGrid.test.tsx @@ -3,7 +3,7 @@ import { expect } from 'chai'; import { spy, SinonSpy } from 'sinon'; import { DataGrid, DataGridProps, GridToolbar, GridToolbarExport } from '@mui/x-data-grid'; import { useBasicDemoData } from '@mui/x-data-grid-generator'; -import { createRenderer, screen, fireEvent } from '@mui/monorepo/test/utils'; +import { createRenderer, screen, fireEvent } from '@mui-internal/test-utils'; describe(' - Export', () => { const { render, clock } = createRenderer({ clock: 'fake' }); diff --git a/packages/grid/x-data-grid/src/tests/filterPanel.DataGrid.test.tsx b/packages/grid/x-data-grid/src/tests/filterPanel.DataGrid.test.tsx index 44f9e654c0a5..ff0fed047140 100644 --- a/packages/grid/x-data-grid/src/tests/filterPanel.DataGrid.test.tsx +++ b/packages/grid/x-data-grid/src/tests/filterPanel.DataGrid.test.tsx @@ -9,7 +9,7 @@ import { GridFilterInputValueProps, GridPreferencePanelsValue, } from '@mui/x-data-grid'; -import { createRenderer, fireEvent, screen } from '@mui/monorepo/test/utils'; +import { createRenderer, fireEvent, screen } from '@mui-internal/test-utils'; import { getColumnHeaderCell, getColumnValues } from 'test/utils/helperFn'; function setColumnValue(columnValue: string) { diff --git a/packages/grid/x-data-grid/src/tests/filtering.DataGrid.test.tsx b/packages/grid/x-data-grid/src/tests/filtering.DataGrid.test.tsx index 5747b8bfb283..004ae708b319 100644 --- a/packages/grid/x-data-grid/src/tests/filtering.DataGrid.test.tsx +++ b/packages/grid/x-data-grid/src/tests/filtering.DataGrid.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, fireEvent, screen } from '@mui/monorepo/test/utils'; +import { createRenderer, fireEvent, screen } from '@mui-internal/test-utils'; import { expect } from 'chai'; import { DataGrid, diff --git a/packages/grid/x-data-grid/src/tests/keyboard.DataGrid.test.tsx b/packages/grid/x-data-grid/src/tests/keyboard.DataGrid.test.tsx index b9a4b8cbfe45..036082a0ce0e 100644 --- a/packages/grid/x-data-grid/src/tests/keyboard.DataGrid.test.tsx +++ b/packages/grid/x-data-grid/src/tests/keyboard.DataGrid.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, fireEvent, screen, act, userEvent } from '@mui/monorepo/test/utils'; +import { createRenderer, fireEvent, screen, act, userEvent } from '@mui-internal/test-utils'; import { spy } from 'sinon'; import { expect } from 'chai'; import { diff --git a/packages/grid/x-data-grid/src/tests/layout.DataGrid.test.tsx b/packages/grid/x-data-grid/src/tests/layout.DataGrid.test.tsx index a4ea76ef2107..b0689738116d 100644 --- a/packages/grid/x-data-grid/src/tests/layout.DataGrid.test.tsx +++ b/packages/grid/x-data-grid/src/tests/layout.DataGrid.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, screen, ErrorBoundary, waitFor } from '@mui/monorepo/test/utils'; +import { createRenderer, screen, ErrorBoundary, waitFor } from '@mui-internal/test-utils'; import { stub, spy } from 'sinon'; import { expect } from 'chai'; import { diff --git a/packages/grid/x-data-grid/src/tests/pagination.DataGrid.test.tsx b/packages/grid/x-data-grid/src/tests/pagination.DataGrid.test.tsx index d714aad74cd0..bc5a7cf59460 100644 --- a/packages/grid/x-data-grid/src/tests/pagination.DataGrid.test.tsx +++ b/packages/grid/x-data-grid/src/tests/pagination.DataGrid.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { spy, stub, SinonStub, SinonSpy } from 'sinon'; import { expect } from 'chai'; -import { createRenderer, fireEvent, screen, userEvent, waitFor } from '@mui/monorepo/test/utils'; +import { createRenderer, fireEvent, screen, userEvent, waitFor } from '@mui-internal/test-utils'; import { DataGrid, DataGridProps, diff --git a/packages/grid/x-data-grid/src/tests/quickFiltering.DataGrid.test.tsx b/packages/grid/x-data-grid/src/tests/quickFiltering.DataGrid.test.tsx index 95c1d4002571..e96dd895cce5 100644 --- a/packages/grid/x-data-grid/src/tests/quickFiltering.DataGrid.test.tsx +++ b/packages/grid/x-data-grid/src/tests/quickFiltering.DataGrid.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, screen, fireEvent } from '@mui/monorepo/test/utils'; +import { createRenderer, screen, fireEvent } from '@mui-internal/test-utils'; import { expect } from 'chai'; import { spy } from 'sinon'; import { diff --git a/packages/grid/x-data-grid/src/tests/rowSelection.DataGrid.test.tsx b/packages/grid/x-data-grid/src/tests/rowSelection.DataGrid.test.tsx index 405fb351a60a..7b30a1952405 100644 --- a/packages/grid/x-data-grid/src/tests/rowSelection.DataGrid.test.tsx +++ b/packages/grid/x-data-grid/src/tests/rowSelection.DataGrid.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { createRenderer, fireEvent, screen, act, userEvent } from '@mui/monorepo/test/utils'; +import { createRenderer, fireEvent, screen, act, userEvent } from '@mui-internal/test-utils'; import { DataGrid, DataGridProps, diff --git a/packages/grid/x-data-grid/src/tests/rows.DataGrid.test.tsx b/packages/grid/x-data-grid/src/tests/rows.DataGrid.test.tsx index c8cb659bca43..dce134e2eaeb 100644 --- a/packages/grid/x-data-grid/src/tests/rows.DataGrid.test.tsx +++ b/packages/grid/x-data-grid/src/tests/rows.DataGrid.test.tsx @@ -7,7 +7,7 @@ import { userEvent, ErrorBoundary, waitFor, -} from '@mui/monorepo/test/utils'; +} from '@mui-internal/test-utils'; import clsx from 'clsx'; import { expect } from 'chai'; import { spy, stub } from 'sinon'; diff --git a/packages/grid/x-data-grid/src/tests/sorting.DataGrid.test.tsx b/packages/grid/x-data-grid/src/tests/sorting.DataGrid.test.tsx index aca6e0b84d83..da0251d355e6 100644 --- a/packages/grid/x-data-grid/src/tests/sorting.DataGrid.test.tsx +++ b/packages/grid/x-data-grid/src/tests/sorting.DataGrid.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, fireEvent, screen, act, waitFor } from '@mui/monorepo/test/utils'; +import { createRenderer, fireEvent, screen, act, waitFor } from '@mui-internal/test-utils'; import { expect } from 'chai'; import { DataGrid, DataGridProps, GridSortModel, useGridApiRef, GridApi } from '@mui/x-data-grid'; import { getColumnValues, getColumnHeaderCell } from 'test/utils/helperFn'; diff --git a/packages/grid/x-data-grid/src/tests/toolbar.DataGrid.test.tsx b/packages/grid/x-data-grid/src/tests/toolbar.DataGrid.test.tsx index 7260822b8bbb..e0eca83e1f08 100644 --- a/packages/grid/x-data-grid/src/tests/toolbar.DataGrid.test.tsx +++ b/packages/grid/x-data-grid/src/tests/toolbar.DataGrid.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, fireEvent, screen, act } from '@mui/monorepo/test/utils'; +import { createRenderer, fireEvent, screen, act } from '@mui-internal/test-utils'; import { getColumnHeadersTextContent } from 'test/utils/helperFn'; import { expect } from 'chai'; import { diff --git a/packages/grid/x-data-grid/tsconfig.json b/packages/grid/x-data-grid/tsconfig.json index 3d20b7d6a4bb..3fcdd4421666 100644 --- a/packages/grid/x-data-grid/tsconfig.json +++ b/packages/grid/x-data-grid/tsconfig.json @@ -6,7 +6,7 @@ "include": [ "src/**/*", "../../test/utils/addChaiAssertions.ts", - "../../node_modules/@mui/monorepo/test/utils/initMatchers.ts", + "../../node_modules/@mui-internal/test-utils/initMatchers.ts", "../../../node_modules/@mui/material/themeCssVarsAugmentation" ] } diff --git a/packages/x-charts/tsconfig.json b/packages/x-charts/tsconfig.json index 16bd9c3be1b6..42c63628f0ab 100644 --- a/packages/x-charts/tsconfig.json +++ b/packages/x-charts/tsconfig.json @@ -6,7 +6,7 @@ "include": [ "src/**/*", "../../test/utils/addChaiAssertions.ts", - "../../node_modules/@mui/monorepo/test/utils/initMatchers.ts", + "../../node_modules/@mui-internal/test-utils/initMatchers.ts", "../../node_modules/@mui/material/themeCssVarsAugmentation" ] } diff --git a/packages/x-codemod/tsconfig.json b/packages/x-codemod/tsconfig.json index 8f3781e0afa9..83de3decadc7 100644 --- a/packages/x-codemod/tsconfig.json +++ b/packages/x-codemod/tsconfig.json @@ -6,7 +6,7 @@ }, "include": [ "src/**/*", - "../../node_modules/@mui/monorepo/test/utils/initMatchers.ts", + "../../node_modules/@mui-internal/test-utils/initMatchers.ts", "../../node_modules/@mui/material/themeCssVarsAugmentation", "../../node_modules/date-fns", "../../node_modules/dayjs/plugin/utc.d.ts", diff --git a/packages/x-date-pickers-pro/src/DateRangeCalendar/DateRangeCalendar.test.tsx b/packages/x-date-pickers-pro/src/DateRangeCalendar/DateRangeCalendar.test.tsx index 106790ab40ef..d5ccf0d64d28 100644 --- a/packages/x-date-pickers-pro/src/DateRangeCalendar/DateRangeCalendar.test.tsx +++ b/packages/x-date-pickers-pro/src/DateRangeCalendar/DateRangeCalendar.test.tsx @@ -8,7 +8,7 @@ import { describeConformance, fireTouchChangedEvent, userEvent, -} from '@mui/monorepo/test/utils'; +} from '@mui-internal/test-utils'; import { adapterToUse, buildPickerDragInteractions, diff --git a/packages/x-date-pickers-pro/src/DateRangePicker/DateRangePicker.test.tsx b/packages/x-date-pickers-pro/src/DateRangePicker/DateRangePicker.test.tsx index de63cb3d2ef4..35d62b9a5d61 100644 --- a/packages/x-date-pickers-pro/src/DateRangePicker/DateRangePicker.test.tsx +++ b/packages/x-date-pickers-pro/src/DateRangePicker/DateRangePicker.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { DateRangePicker } from '@mui/x-date-pickers-pro/DateRangePicker'; -import { fireEvent, screen } from '@mui/monorepo/test/utils/createRenderer'; +import { fireEvent, screen } from '@mui-internal/test-utils/createRenderer'; import { expect } from 'chai'; import { createPickerRenderer, stubMatchMedia } from 'test/utils/pickers'; diff --git a/packages/x-date-pickers-pro/src/DateRangePicker/describes.DateRangePicker.test.tsx b/packages/x-date-pickers-pro/src/DateRangePicker/describes.DateRangePicker.test.tsx index 75f4c240c23a..a73fac7a776a 100644 --- a/packages/x-date-pickers-pro/src/DateRangePicker/describes.DateRangePicker.test.tsx +++ b/packages/x-date-pickers-pro/src/DateRangePicker/describes.DateRangePicker.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { describeConformance } from '@mui/monorepo/test/utils'; +import { describeConformance } from '@mui-internal/test-utils'; import { DateRangePicker } from '@mui/x-date-pickers-pro/DateRangePicker'; import { createPickerRenderer, wrapPickerMount } from 'test/utils/pickers'; diff --git a/packages/x-date-pickers-pro/src/DateRangePickerDay/DateRangePickerDay.test.tsx b/packages/x-date-pickers-pro/src/DateRangePickerDay/DateRangePickerDay.test.tsx index de40a4b2c83f..9d339f0a5eca 100644 --- a/packages/x-date-pickers-pro/src/DateRangePickerDay/DateRangePickerDay.test.tsx +++ b/packages/x-date-pickers-pro/src/DateRangePickerDay/DateRangePickerDay.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { describeConformance } from '@mui/monorepo/test/utils'; +import { describeConformance } from '@mui-internal/test-utils'; import { DateRangePickerDay, dateRangePickerDayClasses as classes, diff --git a/packages/x-date-pickers-pro/src/DesktopDateRangePicker/tests/DesktopDateRangePicker.test.tsx b/packages/x-date-pickers-pro/src/DesktopDateRangePicker/tests/DesktopDateRangePicker.test.tsx index 0f56616d9aad..1ca0d5c508e5 100644 --- a/packages/x-date-pickers-pro/src/DesktopDateRangePicker/tests/DesktopDateRangePicker.test.tsx +++ b/packages/x-date-pickers-pro/src/DesktopDateRangePicker/tests/DesktopDateRangePicker.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { screen, fireEvent, userEvent, act, getByRole } from '@mui/monorepo/test/utils'; +import { screen, fireEvent, userEvent, act, getByRole } from '@mui-internal/test-utils'; import { createTheme, ThemeProvider } from '@mui/material/styles'; import { DesktopDateRangePicker } from '@mui/x-date-pickers-pro/DesktopDateRangePicker'; import { DateRange, LocalizationProvider } from '@mui/x-date-pickers-pro'; diff --git a/packages/x-date-pickers-pro/src/DesktopDateRangePicker/tests/describes.DesktopDateRangePicker.test.tsx b/packages/x-date-pickers-pro/src/DesktopDateRangePicker/tests/describes.DesktopDateRangePicker.test.tsx index b46a1111e599..6284ed1070f0 100644 --- a/packages/x-date-pickers-pro/src/DesktopDateRangePicker/tests/describes.DesktopDateRangePicker.test.tsx +++ b/packages/x-date-pickers-pro/src/DesktopDateRangePicker/tests/describes.DesktopDateRangePicker.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { describeConformance, screen, userEvent } from '@mui/monorepo/test/utils'; +import { describeConformance, screen, userEvent } from '@mui-internal/test-utils'; import { adapterToUse, createPickerRenderer, diff --git a/packages/x-date-pickers-pro/src/MobileDateRangePicker/tests/MobileDateRangePicker.test.tsx b/packages/x-date-pickers-pro/src/MobileDateRangePicker/tests/MobileDateRangePicker.test.tsx index 4228c4d35835..6eaf629f3f2e 100644 --- a/packages/x-date-pickers-pro/src/MobileDateRangePicker/tests/MobileDateRangePicker.test.tsx +++ b/packages/x-date-pickers-pro/src/MobileDateRangePicker/tests/MobileDateRangePicker.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { spy } from 'sinon'; import { expect } from 'chai'; -import { screen, userEvent, fireEvent } from '@mui/monorepo/test/utils'; +import { screen, userEvent, fireEvent } from '@mui-internal/test-utils'; import { MobileDateRangePicker } from '@mui/x-date-pickers-pro/MobileDateRangePicker'; import { createPickerRenderer, adapterToUse, openPicker } from 'test/utils/pickers'; import { DateRange } from '@mui/x-date-pickers-pro'; diff --git a/packages/x-date-pickers-pro/src/MobileDateRangePicker/tests/describes.MobileDateRangePicker.test.tsx b/packages/x-date-pickers-pro/src/MobileDateRangePicker/tests/describes.MobileDateRangePicker.test.tsx index 722c328d0267..622e735e7729 100644 --- a/packages/x-date-pickers-pro/src/MobileDateRangePicker/tests/describes.MobileDateRangePicker.test.tsx +++ b/packages/x-date-pickers-pro/src/MobileDateRangePicker/tests/describes.MobileDateRangePicker.test.tsx @@ -4,7 +4,7 @@ import { screen, userEvent, fireDiscreteEvent, -} from '@mui/monorepo/test/utils'; +} from '@mui-internal/test-utils'; import { MobileDateRangePicker } from '@mui/x-date-pickers-pro/MobileDateRangePicker'; import { adapterToUse, diff --git a/packages/x-date-pickers-pro/src/MultiInputDateRangeField/tests/MultiInputDateRangeField.conformance.test.tsx b/packages/x-date-pickers-pro/src/MultiInputDateRangeField/tests/MultiInputDateRangeField.conformance.test.tsx index 1fd6874768b6..a932e07b69bd 100644 --- a/packages/x-date-pickers-pro/src/MultiInputDateRangeField/tests/MultiInputDateRangeField.conformance.test.tsx +++ b/packages/x-date-pickers-pro/src/MultiInputDateRangeField/tests/MultiInputDateRangeField.conformance.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { describeConformance } from '@mui/monorepo/test/utils'; +import { describeConformance } from '@mui-internal/test-utils'; import { MultiInputDateRangeField } from '@mui/x-date-pickers-pro/MultiInputDateRangeField'; import { createPickerRenderer, wrapPickerMount } from 'test/utils/pickers'; diff --git a/packages/x-date-pickers-pro/src/MultiInputDateRangeField/tests/MultiInputDateRangeField.validation.test.tsx b/packages/x-date-pickers-pro/src/MultiInputDateRangeField/tests/MultiInputDateRangeField.validation.test.tsx index d974d9889a2c..56348ce63bb1 100644 --- a/packages/x-date-pickers-pro/src/MultiInputDateRangeField/tests/MultiInputDateRangeField.validation.test.tsx +++ b/packages/x-date-pickers-pro/src/MultiInputDateRangeField/tests/MultiInputDateRangeField.validation.test.tsx @@ -1,5 +1,5 @@ -import { screen } from '@mui/monorepo/test/utils'; -import { fireEvent } from '@mui/monorepo/test/utils/createRenderer'; +import { screen } from '@mui-internal/test-utils'; +import { fireEvent } from '@mui-internal/test-utils/createRenderer'; import { MultiInputDateRangeField } from '@mui/x-date-pickers-pro/MultiInputDateRangeField'; import { createPickerRenderer, adapterToUse, describeRangeValidation } from 'test/utils/pickers'; diff --git a/packages/x-date-pickers-pro/src/MultiInputDateTimeRangeField/tests/MultiInputDateTimeRangeField.conformance.test.tsx b/packages/x-date-pickers-pro/src/MultiInputDateTimeRangeField/tests/MultiInputDateTimeRangeField.conformance.test.tsx index 42f3a8147ac9..9a94a0f980ce 100644 --- a/packages/x-date-pickers-pro/src/MultiInputDateTimeRangeField/tests/MultiInputDateTimeRangeField.conformance.test.tsx +++ b/packages/x-date-pickers-pro/src/MultiInputDateTimeRangeField/tests/MultiInputDateTimeRangeField.conformance.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { describeConformance } from '@mui/monorepo/test/utils'; +import { describeConformance } from '@mui-internal/test-utils'; import { MultiInputDateTimeRangeField } from '@mui/x-date-pickers-pro/MultiInputDateTimeRangeField'; import { createPickerRenderer, wrapPickerMount } from 'test/utils/pickers'; diff --git a/packages/x-date-pickers-pro/src/MultiInputDateTimeRangeField/tests/MultiInputDateTimeRangeField.validation.test.tsx b/packages/x-date-pickers-pro/src/MultiInputDateTimeRangeField/tests/MultiInputDateTimeRangeField.validation.test.tsx index b087c00a7f4b..d31a5dbcedc3 100644 --- a/packages/x-date-pickers-pro/src/MultiInputDateTimeRangeField/tests/MultiInputDateTimeRangeField.validation.test.tsx +++ b/packages/x-date-pickers-pro/src/MultiInputDateTimeRangeField/tests/MultiInputDateTimeRangeField.validation.test.tsx @@ -1,5 +1,5 @@ -import { screen } from '@mui/monorepo/test/utils'; -import { fireEvent } from '@mui/monorepo/test/utils/createRenderer'; +import { screen } from '@mui-internal/test-utils'; +import { fireEvent } from '@mui-internal/test-utils/createRenderer'; import { MultiInputDateTimeRangeField } from '@mui/x-date-pickers-pro/MultiInputDateTimeRangeField'; import { createPickerRenderer, adapterToUse, describeRangeValidation } from 'test/utils/pickers'; diff --git a/packages/x-date-pickers-pro/src/MultiInputTimeRangeField/tests/MultiInputTimeRangeField.conformance.test.tsx b/packages/x-date-pickers-pro/src/MultiInputTimeRangeField/tests/MultiInputTimeRangeField.conformance.test.tsx index 7d2eadc7584e..dc07dc69f3a0 100644 --- a/packages/x-date-pickers-pro/src/MultiInputTimeRangeField/tests/MultiInputTimeRangeField.conformance.test.tsx +++ b/packages/x-date-pickers-pro/src/MultiInputTimeRangeField/tests/MultiInputTimeRangeField.conformance.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { describeConformance } from '@mui/monorepo/test/utils'; +import { describeConformance } from '@mui-internal/test-utils'; import { MultiInputTimeRangeField } from '@mui/x-date-pickers-pro/MultiInputTimeRangeField'; import { createPickerRenderer, wrapPickerMount } from 'test/utils/pickers'; diff --git a/packages/x-date-pickers-pro/src/MultiInputTimeRangeField/tests/MultiInputTimeRangeField.validation.test.tsx b/packages/x-date-pickers-pro/src/MultiInputTimeRangeField/tests/MultiInputTimeRangeField.validation.test.tsx index e2c332b40438..18980367909e 100644 --- a/packages/x-date-pickers-pro/src/MultiInputTimeRangeField/tests/MultiInputTimeRangeField.validation.test.tsx +++ b/packages/x-date-pickers-pro/src/MultiInputTimeRangeField/tests/MultiInputTimeRangeField.validation.test.tsx @@ -1,5 +1,5 @@ -import { screen } from '@mui/monorepo/test/utils'; -import { fireEvent } from '@mui/monorepo/test/utils/createRenderer'; +import { screen } from '@mui-internal/test-utils'; +import { fireEvent } from '@mui-internal/test-utils/createRenderer'; import { MultiInputTimeRangeField } from '@mui/x-date-pickers-pro/MultiInputTimeRangeField'; import { createPickerRenderer, adapterToUse, describeRangeValidation } from 'test/utils/pickers'; diff --git a/packages/x-date-pickers-pro/src/SingleInputDateRangeField/tests/describes.SingleInputDateRangeField.test.tsx b/packages/x-date-pickers-pro/src/SingleInputDateRangeField/tests/describes.SingleInputDateRangeField.test.tsx index f73f07fc307c..0a79c9e39c54 100644 --- a/packages/x-date-pickers-pro/src/SingleInputDateRangeField/tests/describes.SingleInputDateRangeField.test.tsx +++ b/packages/x-date-pickers-pro/src/SingleInputDateRangeField/tests/describes.SingleInputDateRangeField.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import TextField from '@mui/material/TextField'; -import { describeConformance } from '@mui/monorepo/test/utils'; +import { describeConformance } from '@mui-internal/test-utils'; import { SingleInputDateRangeField } from '@mui/x-date-pickers-pro/SingleInputDateRangeField'; import { createPickerRenderer, wrapPickerMount, describeRangeValidation } from 'test/utils/pickers'; diff --git a/packages/x-date-pickers-pro/src/SingleInputDateRangeField/tests/editing.SingleInputDateRangeField.test.tsx b/packages/x-date-pickers-pro/src/SingleInputDateRangeField/tests/editing.SingleInputDateRangeField.test.tsx index 3ead60986297..14bd87eff653 100644 --- a/packages/x-date-pickers-pro/src/SingleInputDateRangeField/tests/editing.SingleInputDateRangeField.test.tsx +++ b/packages/x-date-pickers-pro/src/SingleInputDateRangeField/tests/editing.SingleInputDateRangeField.test.tsx @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { spy } from 'sinon'; import { SingleInputDateRangeField } from '@mui/x-date-pickers-pro/SingleInputDateRangeField'; -import { userEvent, fireEvent } from '@mui/monorepo/test/utils'; +import { userEvent, fireEvent } from '@mui-internal/test-utils'; import { expectInputValue, describeAdapters } from 'test/utils/pickers'; describe(' - Editing', () => { diff --git a/packages/x-date-pickers-pro/src/SingleInputDateRangeField/tests/selection.SingleInputDateRangeField.test.tsx b/packages/x-date-pickers-pro/src/SingleInputDateRangeField/tests/selection.SingleInputDateRangeField.test.tsx index c5fd65018455..063554cf19cc 100644 --- a/packages/x-date-pickers-pro/src/SingleInputDateRangeField/tests/selection.SingleInputDateRangeField.test.tsx +++ b/packages/x-date-pickers-pro/src/SingleInputDateRangeField/tests/selection.SingleInputDateRangeField.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { SingleInputDateRangeField } from '@mui/x-date-pickers-pro/SingleInputDateRangeField'; -import { act, userEvent } from '@mui/monorepo/test/utils'; +import { act, userEvent } from '@mui-internal/test-utils'; import { adapterToUse, buildFieldInteractions, diff --git a/packages/x-date-pickers-pro/src/SingleInputDateTimeRangeField/tests/describes.SingleInputDateTimeRangeField.test.tsx b/packages/x-date-pickers-pro/src/SingleInputDateTimeRangeField/tests/describes.SingleInputDateTimeRangeField.test.tsx index 085e686c5b5f..6535d00aba2d 100644 --- a/packages/x-date-pickers-pro/src/SingleInputDateTimeRangeField/tests/describes.SingleInputDateTimeRangeField.test.tsx +++ b/packages/x-date-pickers-pro/src/SingleInputDateTimeRangeField/tests/describes.SingleInputDateTimeRangeField.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { describeConformance } from '@mui/monorepo/test/utils'; +import { describeConformance } from '@mui-internal/test-utils'; import { SingleInputDateTimeRangeField } from '@mui/x-date-pickers-pro/SingleInputDateTimeRangeField'; import { createPickerRenderer, wrapPickerMount, describeRangeValidation } from 'test/utils/pickers'; diff --git a/packages/x-date-pickers-pro/src/SingleInputTimeRangeField/tests/describes.SingleInputTimeRangeField.test.tsx b/packages/x-date-pickers-pro/src/SingleInputTimeRangeField/tests/describes.SingleInputTimeRangeField.test.tsx index 109166d8a307..01d212338c9e 100644 --- a/packages/x-date-pickers-pro/src/SingleInputTimeRangeField/tests/describes.SingleInputTimeRangeField.test.tsx +++ b/packages/x-date-pickers-pro/src/SingleInputTimeRangeField/tests/describes.SingleInputTimeRangeField.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { describeConformance } from '@mui/monorepo/test/utils'; +import { describeConformance } from '@mui-internal/test-utils'; import { SingleInputTimeRangeField } from '@mui/x-date-pickers-pro/SingleInputTimeRangeField'; import { createPickerRenderer, wrapPickerMount, describeRangeValidation } from 'test/utils/pickers'; diff --git a/packages/x-date-pickers-pro/src/StaticDateRangePicker/StaticDateRangePicker.test.tsx b/packages/x-date-pickers-pro/src/StaticDateRangePicker/StaticDateRangePicker.test.tsx index 080ab8ac5843..b3402d6664b9 100644 --- a/packages/x-date-pickers-pro/src/StaticDateRangePicker/StaticDateRangePicker.test.tsx +++ b/packages/x-date-pickers-pro/src/StaticDateRangePicker/StaticDateRangePicker.test.tsx @@ -2,7 +2,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { isWeekend } from 'date-fns'; import { StaticDateRangePicker } from '@mui/x-date-pickers-pro/StaticDateRangePicker'; -import { describeConformance, screen } from '@mui/monorepo/test/utils'; +import { describeConformance, screen } from '@mui-internal/test-utils'; import { wrapPickerMount, createPickerRenderer, diff --git a/packages/x-date-pickers-pro/tsconfig.json b/packages/x-date-pickers-pro/tsconfig.json index 75f0e23cefbe..a62574f9ce7e 100644 --- a/packages/x-date-pickers-pro/tsconfig.json +++ b/packages/x-date-pickers-pro/tsconfig.json @@ -7,7 +7,7 @@ "include": [ "src/**/*", "../../test/utils/addChaiAssertions.ts", - "../../node_modules/@mui/monorepo/test/utils/initMatchers.ts", + "../../node_modules/@mui-internal/test-utils/initMatchers.ts", "../../node_modules/@mui/material/themeCssVarsAugmentation", "../../node_modules/dayjs/plugin/utc.d.ts", "../../node_modules/dayjs/plugin/timezone.d.ts", diff --git a/packages/x-date-pickers/src/AdapterDateFns/AdapterDateFns.test.tsx b/packages/x-date-pickers/src/AdapterDateFns/AdapterDateFns.test.tsx index 8d89823291f6..ae997c105d71 100644 --- a/packages/x-date-pickers/src/AdapterDateFns/AdapterDateFns.test.tsx +++ b/packages/x-date-pickers/src/AdapterDateFns/AdapterDateFns.test.tsx @@ -2,7 +2,7 @@ import * as React from 'react'; import { DateTimePicker } from '@mui/x-date-pickers/DateTimePicker'; import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFns'; import { AdapterFormats } from '@mui/x-date-pickers/models'; -import { screen } from '@mui/monorepo/test/utils/createRenderer'; +import { screen } from '@mui-internal/test-utils/createRenderer'; import { expect } from 'chai'; import { createPickerRenderer, diff --git a/packages/x-date-pickers/src/AdapterDateFnsJalali/AdapterDateFnsJalali.test.tsx b/packages/x-date-pickers/src/AdapterDateFnsJalali/AdapterDateFnsJalali.test.tsx index c1a49b008e15..659b57d69672 100644 --- a/packages/x-date-pickers/src/AdapterDateFnsJalali/AdapterDateFnsJalali.test.tsx +++ b/packages/x-date-pickers/src/AdapterDateFnsJalali/AdapterDateFnsJalali.test.tsx @@ -2,7 +2,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { DateTimePicker } from '@mui/x-date-pickers/DateTimePicker'; import { AdapterDateFnsJalali } from '@mui/x-date-pickers/AdapterDateFnsJalali'; -import { screen } from '@mui/monorepo/test/utils/createRenderer'; +import { screen } from '@mui-internal/test-utils/createRenderer'; import { createPickerRenderer, expectInputPlaceholder, diff --git a/packages/x-date-pickers/src/AdapterDayjs/AdapterDayjs.test.tsx b/packages/x-date-pickers/src/AdapterDayjs/AdapterDayjs.test.tsx index 14bc1b08bac6..bf10b9c81c51 100644 --- a/packages/x-date-pickers/src/AdapterDayjs/AdapterDayjs.test.tsx +++ b/packages/x-date-pickers/src/AdapterDayjs/AdapterDayjs.test.tsx @@ -5,7 +5,7 @@ import { DateTimePicker } from '@mui/x-date-pickers/DateTimePicker'; import { DateCalendar } from '@mui/x-date-pickers/DateCalendar'; import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'; import { AdapterFormats } from '@mui/x-date-pickers/models'; -import { screen, userEvent } from '@mui/monorepo/test/utils'; +import { screen, userEvent } from '@mui-internal/test-utils'; import { expect } from 'chai'; import { buildPickerDragInteractions, diff --git a/packages/x-date-pickers/src/AdapterLuxon/AdapterLuxon.test.tsx b/packages/x-date-pickers/src/AdapterLuxon/AdapterLuxon.test.tsx index a99bf7695fd0..c4caf3849737 100644 --- a/packages/x-date-pickers/src/AdapterLuxon/AdapterLuxon.test.tsx +++ b/packages/x-date-pickers/src/AdapterLuxon/AdapterLuxon.test.tsx @@ -4,7 +4,7 @@ import { DateTime, Settings } from 'luxon'; import { DateTimePicker } from '@mui/x-date-pickers/DateTimePicker'; import { AdapterLuxon } from '@mui/x-date-pickers/AdapterLuxon'; import { AdapterFormats } from '@mui/x-date-pickers/models'; -import { screen } from '@mui/monorepo/test/utils/createRenderer'; +import { screen } from '@mui-internal/test-utils/createRenderer'; import { cleanText, createPickerRenderer, diff --git a/packages/x-date-pickers/src/AdapterMoment/AdapterMoment.test.tsx b/packages/x-date-pickers/src/AdapterMoment/AdapterMoment.test.tsx index d49d46604206..c592f25d1cb4 100644 --- a/packages/x-date-pickers/src/AdapterMoment/AdapterMoment.test.tsx +++ b/packages/x-date-pickers/src/AdapterMoment/AdapterMoment.test.tsx @@ -4,7 +4,7 @@ import momentTZ from 'moment-timezone'; import { DateTimePicker } from '@mui/x-date-pickers/DateTimePicker'; import { AdapterMoment } from '@mui/x-date-pickers/AdapterMoment'; import { AdapterFormats } from '@mui/x-date-pickers/models'; -import { screen } from '@mui/monorepo/test/utils/createRenderer'; +import { screen } from '@mui-internal/test-utils/createRenderer'; import { expect } from 'chai'; import { spy } from 'sinon'; import { diff --git a/packages/x-date-pickers/src/AdapterMomentHijri/AdapterMomentHijri.test.tsx b/packages/x-date-pickers/src/AdapterMomentHijri/AdapterMomentHijri.test.tsx index 79156b7b6e1a..9dd52c850bcf 100644 --- a/packages/x-date-pickers/src/AdapterMomentHijri/AdapterMomentHijri.test.tsx +++ b/packages/x-date-pickers/src/AdapterMomentHijri/AdapterMomentHijri.test.tsx @@ -4,7 +4,7 @@ import { expect } from 'chai'; import { DateTimePicker } from '@mui/x-date-pickers/DateTimePicker'; import { AdapterMomentHijri } from '@mui/x-date-pickers/AdapterMomentHijri'; import { AdapterFormats } from '@mui/x-date-pickers/models'; -import { screen } from '@mui/monorepo/test/utils/createRenderer'; +import { screen } from '@mui-internal/test-utils/createRenderer'; import { createPickerRenderer, expectInputPlaceholder, diff --git a/packages/x-date-pickers/src/AdapterMomentJalaali/AdapterMomentJalaali.test.tsx b/packages/x-date-pickers/src/AdapterMomentJalaali/AdapterMomentJalaali.test.tsx index d97fa6ecc51a..6f66267176c4 100644 --- a/packages/x-date-pickers/src/AdapterMomentJalaali/AdapterMomentJalaali.test.tsx +++ b/packages/x-date-pickers/src/AdapterMomentJalaali/AdapterMomentJalaali.test.tsx @@ -4,7 +4,7 @@ import moment from 'moment'; import jMoment from 'moment-jalaali'; import { DateTimePicker } from '@mui/x-date-pickers/DateTimePicker'; import { AdapterMomentJalaali } from '@mui/x-date-pickers/AdapterMomentJalaali'; -import { screen } from '@mui/monorepo/test/utils/createRenderer'; +import { screen } from '@mui-internal/test-utils/createRenderer'; import { createPickerRenderer, expectInputPlaceholder, diff --git a/packages/x-date-pickers/src/DateCalendar/tests/DateCalendar.test.tsx b/packages/x-date-pickers/src/DateCalendar/tests/DateCalendar.test.tsx index ab5acc697f96..b3f59b807876 100644 --- a/packages/x-date-pickers/src/DateCalendar/tests/DateCalendar.test.tsx +++ b/packages/x-date-pickers/src/DateCalendar/tests/DateCalendar.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { fireEvent, userEvent, screen } from '@mui/monorepo/test/utils'; +import { fireEvent, userEvent, screen } from '@mui-internal/test-utils'; import { DateCalendar } from '@mui/x-date-pickers/DateCalendar'; import { PickersDay } from '@mui/x-date-pickers/PickersDay'; import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider'; diff --git a/packages/x-date-pickers/src/DateCalendar/tests/describes.DateCalendar.test.tsx b/packages/x-date-pickers/src/DateCalendar/tests/describes.DateCalendar.test.tsx index 0191cc7cd37d..41135ff7ba10 100644 --- a/packages/x-date-pickers/src/DateCalendar/tests/describes.DateCalendar.test.tsx +++ b/packages/x-date-pickers/src/DateCalendar/tests/describes.DateCalendar.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, screen, userEvent } from '@mui/monorepo/test/utils'; +import { describeConformance, screen, userEvent } from '@mui-internal/test-utils'; import { DateCalendar, dateCalendarClasses as classes } from '@mui/x-date-pickers/DateCalendar'; import { pickersDayClasses } from '@mui/x-date-pickers/PickersDay'; import { diff --git a/packages/x-date-pickers/src/DateCalendar/tests/keyboard.DateCalendar.test.tsx b/packages/x-date-pickers/src/DateCalendar/tests/keyboard.DateCalendar.test.tsx index ff3afd741120..f562523a5b70 100644 --- a/packages/x-date-pickers/src/DateCalendar/tests/keyboard.DateCalendar.test.tsx +++ b/packages/x-date-pickers/src/DateCalendar/tests/keyboard.DateCalendar.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { act, fireEvent, screen } from '@mui/monorepo/test/utils'; +import { act, fireEvent, screen } from '@mui-internal/test-utils'; import { DateCalendar } from '@mui/x-date-pickers/DateCalendar'; import { adapterToUse, createPickerRenderer } from 'test/utils/pickers'; diff --git a/packages/x-date-pickers/src/DateCalendar/tests/timezone.DateCalendar.test.tsx b/packages/x-date-pickers/src/DateCalendar/tests/timezone.DateCalendar.test.tsx index 56d73f4afab5..261af345fe21 100644 --- a/packages/x-date-pickers/src/DateCalendar/tests/timezone.DateCalendar.test.tsx +++ b/packages/x-date-pickers/src/DateCalendar/tests/timezone.DateCalendar.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { spy } from 'sinon'; import { expect } from 'chai'; -import { userEvent, screen } from '@mui/monorepo/test/utils'; +import { userEvent, screen } from '@mui-internal/test-utils'; import { describeAdapters } from 'test/utils/pickers'; import { DateCalendar } from '@mui/x-date-pickers/DateCalendar'; diff --git a/packages/x-date-pickers/src/DateCalendar/tests/validation.DateCalendar.test.tsx b/packages/x-date-pickers/src/DateCalendar/tests/validation.DateCalendar.test.tsx index 85cc4d44e7d0..293c07986ba6 100644 --- a/packages/x-date-pickers/src/DateCalendar/tests/validation.DateCalendar.test.tsx +++ b/packages/x-date-pickers/src/DateCalendar/tests/validation.DateCalendar.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { screen, fireEvent } from '@mui/monorepo/test/utils'; +import { screen, fireEvent } from '@mui-internal/test-utils'; import { DateCalendar, DateCalendarProps } from '@mui/x-date-pickers/DateCalendar'; import { createPickerRenderer, adapterToUse } from 'test/utils/pickers'; diff --git a/packages/x-date-pickers/src/DateField/tests/describes.DateField.test.tsx b/packages/x-date-pickers/src/DateField/tests/describes.DateField.test.tsx index 2507bf904081..4bbb2faf8a1c 100644 --- a/packages/x-date-pickers/src/DateField/tests/describes.DateField.test.tsx +++ b/packages/x-date-pickers/src/DateField/tests/describes.DateField.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { describeConformance, userEvent } from '@mui/monorepo/test/utils'; +import { describeConformance, userEvent } from '@mui-internal/test-utils'; import TextField from '@mui/material/TextField'; import { DateField } from '@mui/x-date-pickers/DateField'; import { diff --git a/packages/x-date-pickers/src/DateField/tests/editing.DateField.test.tsx b/packages/x-date-pickers/src/DateField/tests/editing.DateField.test.tsx index d4a5b87a48ef..c3238da26d8c 100644 --- a/packages/x-date-pickers/src/DateField/tests/editing.DateField.test.tsx +++ b/packages/x-date-pickers/src/DateField/tests/editing.DateField.test.tsx @@ -2,7 +2,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; import { DateField } from '@mui/x-date-pickers/DateField'; -import { act, userEvent, fireEvent } from '@mui/monorepo/test/utils'; +import { act, userEvent, fireEvent } from '@mui-internal/test-utils'; import { expectInputValue, getTextbox, describeAdapters } from 'test/utils/pickers'; describe(' - Editing', () => { diff --git a/packages/x-date-pickers/src/DateField/tests/selection.DateField.test.tsx b/packages/x-date-pickers/src/DateField/tests/selection.DateField.test.tsx index da57ee886422..935fb69cce37 100644 --- a/packages/x-date-pickers/src/DateField/tests/selection.DateField.test.tsx +++ b/packages/x-date-pickers/src/DateField/tests/selection.DateField.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { DateField } from '@mui/x-date-pickers/DateField'; -import { act, userEvent } from '@mui/monorepo/test/utils'; +import { act, userEvent } from '@mui-internal/test-utils'; import { createPickerRenderer, expectInputValue, diff --git a/packages/x-date-pickers/src/DatePicker/tests/DatePicker.test.tsx b/packages/x-date-pickers/src/DatePicker/tests/DatePicker.test.tsx index 378f37c7483d..01cc75d86735 100644 --- a/packages/x-date-pickers/src/DatePicker/tests/DatePicker.test.tsx +++ b/packages/x-date-pickers/src/DatePicker/tests/DatePicker.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { DatePicker } from '@mui/x-date-pickers/DatePicker'; -import { screen } from '@mui/monorepo/test/utils/createRenderer'; +import { screen } from '@mui-internal/test-utils/createRenderer'; import { createPickerRenderer, stubMatchMedia } from 'test/utils/pickers'; describe('', () => { diff --git a/packages/x-date-pickers/src/DateTimeField/tests/describes.DateTimeField.test.tsx b/packages/x-date-pickers/src/DateTimeField/tests/describes.DateTimeField.test.tsx index 4d1a36f18479..21dd0dfbdf9c 100644 --- a/packages/x-date-pickers/src/DateTimeField/tests/describes.DateTimeField.test.tsx +++ b/packages/x-date-pickers/src/DateTimeField/tests/describes.DateTimeField.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import TextField from '@mui/material/TextField'; -import { describeConformance, userEvent } from '@mui/monorepo/test/utils'; +import { describeConformance, userEvent } from '@mui-internal/test-utils'; import { DateTimeField } from '@mui/x-date-pickers/DateTimeField'; import { adapterToUse, diff --git a/packages/x-date-pickers/src/DateTimeField/tests/editing.DateTimeField.test.tsx b/packages/x-date-pickers/src/DateTimeField/tests/editing.DateTimeField.test.tsx index 070c0254962d..99e81989203f 100644 --- a/packages/x-date-pickers/src/DateTimeField/tests/editing.DateTimeField.test.tsx +++ b/packages/x-date-pickers/src/DateTimeField/tests/editing.DateTimeField.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { userEvent, screen } from '@mui/monorepo/test/utils'; +import { userEvent, screen } from '@mui-internal/test-utils'; import { DateTimeField } from '@mui/x-date-pickers/DateTimeField'; import { adapterToUse, buildFieldInteractions, createPickerRenderer } from 'test/utils/pickers'; diff --git a/packages/x-date-pickers/src/DateTimeField/tests/timezone.DateTimeField.test.tsx b/packages/x-date-pickers/src/DateTimeField/tests/timezone.DateTimeField.test.tsx index 8421b0933c8d..330d2b0d7329 100644 --- a/packages/x-date-pickers/src/DateTimeField/tests/timezone.DateTimeField.test.tsx +++ b/packages/x-date-pickers/src/DateTimeField/tests/timezone.DateTimeField.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { spy } from 'sinon'; import { expect } from 'chai'; -import { userEvent } from '@mui/monorepo/test/utils'; +import { userEvent } from '@mui-internal/test-utils'; import { DateTimeField } from '@mui/x-date-pickers/DateTimeField'; import { createPickerRenderer, diff --git a/packages/x-date-pickers/src/DateTimePicker/tests/DateTimePicker.test.tsx b/packages/x-date-pickers/src/DateTimePicker/tests/DateTimePicker.test.tsx index 63ba1c109959..cac1fdb4074d 100644 --- a/packages/x-date-pickers/src/DateTimePicker/tests/DateTimePicker.test.tsx +++ b/packages/x-date-pickers/src/DateTimePicker/tests/DateTimePicker.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { DateTimePicker } from '@mui/x-date-pickers/DateTimePicker'; -import { screen } from '@mui/monorepo/test/utils/createRenderer'; +import { screen } from '@mui-internal/test-utils/createRenderer'; import { createPickerRenderer, stubMatchMedia } from 'test/utils/pickers'; describe('', () => { diff --git a/packages/x-date-pickers/src/DayCalendarSkeleton/DayCalendarSkeleton.test.tsx b/packages/x-date-pickers/src/DayCalendarSkeleton/DayCalendarSkeleton.test.tsx index 048fe9cad807..9555f053f31e 100644 --- a/packages/x-date-pickers/src/DayCalendarSkeleton/DayCalendarSkeleton.test.tsx +++ b/packages/x-date-pickers/src/DayCalendarSkeleton/DayCalendarSkeleton.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { describeConformance } from '@mui/monorepo/test/utils'; +import { describeConformance } from '@mui-internal/test-utils'; import { DayCalendarSkeleton, dayCalendarSkeletonClasses as classes, diff --git a/packages/x-date-pickers/src/DesktopDatePicker/tests/DesktopDatePicker.test.tsx b/packages/x-date-pickers/src/DesktopDatePicker/tests/DesktopDatePicker.test.tsx index fc8df6b93681..65c4e340d9b3 100644 --- a/packages/x-date-pickers/src/DesktopDatePicker/tests/DesktopDatePicker.test.tsx +++ b/packages/x-date-pickers/src/DesktopDatePicker/tests/DesktopDatePicker.test.tsx @@ -3,7 +3,7 @@ import { expect } from 'chai'; import { spy } from 'sinon'; import { TransitionProps } from '@mui/material/transitions'; import { inputBaseClasses } from '@mui/material/InputBase'; -import { fireEvent, screen, userEvent } from '@mui/monorepo/test/utils'; +import { fireEvent, screen, userEvent } from '@mui-internal/test-utils'; import { DesktopDatePicker } from '@mui/x-date-pickers/DesktopDatePicker'; import { createPickerRenderer, diff --git a/packages/x-date-pickers/src/DesktopDatePicker/tests/describes.DesktopDatePicker.test.tsx b/packages/x-date-pickers/src/DesktopDatePicker/tests/describes.DesktopDatePicker.test.tsx index 114ddde47537..37656e7a8647 100644 --- a/packages/x-date-pickers/src/DesktopDatePicker/tests/describes.DesktopDatePicker.test.tsx +++ b/packages/x-date-pickers/src/DesktopDatePicker/tests/describes.DesktopDatePicker.test.tsx @@ -1,4 +1,4 @@ -import { screen, userEvent } from '@mui/monorepo/test/utils'; +import { screen, userEvent } from '@mui-internal/test-utils'; import { createPickerRenderer, adapterToUse, diff --git a/packages/x-date-pickers/src/DesktopDatePicker/tests/field.DesktopDatePicker.test.tsx b/packages/x-date-pickers/src/DesktopDatePicker/tests/field.DesktopDatePicker.test.tsx index 19633846c1ba..fd6944bdaa07 100644 --- a/packages/x-date-pickers/src/DesktopDatePicker/tests/field.DesktopDatePicker.test.tsx +++ b/packages/x-date-pickers/src/DesktopDatePicker/tests/field.DesktopDatePicker.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { fireEvent, userEvent } from '@mui/monorepo/test/utils'; +import { fireEvent, userEvent } from '@mui-internal/test-utils'; import { DesktopDatePicker, DesktopDatePickerProps } from '@mui/x-date-pickers/DesktopDatePicker'; import { createPickerRenderer, diff --git a/packages/x-date-pickers/src/DesktopDateTimePicker/tests/DesktopDateTimePicker.test.tsx b/packages/x-date-pickers/src/DesktopDateTimePicker/tests/DesktopDateTimePicker.test.tsx index 1e1a87665f10..bb87dc61066b 100644 --- a/packages/x-date-pickers/src/DesktopDateTimePicker/tests/DesktopDateTimePicker.test.tsx +++ b/packages/x-date-pickers/src/DesktopDateTimePicker/tests/DesktopDateTimePicker.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { screen, userEvent } from '@mui/monorepo/test/utils'; +import { screen, userEvent } from '@mui-internal/test-utils'; import { DesktopDateTimePicker } from '@mui/x-date-pickers/DesktopDateTimePicker'; import { adapterToUse, createPickerRenderer, openPicker } from 'test/utils/pickers'; diff --git a/packages/x-date-pickers/src/DesktopDateTimePicker/tests/describes.DesktopDateTimePicker.test.tsx b/packages/x-date-pickers/src/DesktopDateTimePicker/tests/describes.DesktopDateTimePicker.test.tsx index ff5a2bbf4871..25b94f71c33c 100644 --- a/packages/x-date-pickers/src/DesktopDateTimePicker/tests/describes.DesktopDateTimePicker.test.tsx +++ b/packages/x-date-pickers/src/DesktopDateTimePicker/tests/describes.DesktopDateTimePicker.test.tsx @@ -1,4 +1,4 @@ -import { screen, userEvent } from '@mui/monorepo/test/utils'; +import { screen, userEvent } from '@mui-internal/test-utils'; import { createPickerRenderer, adapterToUse, diff --git a/packages/x-date-pickers/src/DesktopTimePicker/tests/DesktopTimePicker.test.tsx b/packages/x-date-pickers/src/DesktopTimePicker/tests/DesktopTimePicker.test.tsx index 3ec04eafc7ab..a98180cffe74 100644 --- a/packages/x-date-pickers/src/DesktopTimePicker/tests/DesktopTimePicker.test.tsx +++ b/packages/x-date-pickers/src/DesktopTimePicker/tests/DesktopTimePicker.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { screen, userEvent } from '@mui/monorepo/test/utils'; +import { screen, userEvent } from '@mui-internal/test-utils'; import { DesktopTimePicker } from '@mui/x-date-pickers/DesktopTimePicker'; import { createPickerRenderer, openPicker } from 'test/utils/pickers'; diff --git a/packages/x-date-pickers/src/DesktopTimePicker/tests/describes.DesktopTimePicker.test.tsx b/packages/x-date-pickers/src/DesktopTimePicker/tests/describes.DesktopTimePicker.test.tsx index fafea603f861..7ed56f2cf615 100644 --- a/packages/x-date-pickers/src/DesktopTimePicker/tests/describes.DesktopTimePicker.test.tsx +++ b/packages/x-date-pickers/src/DesktopTimePicker/tests/describes.DesktopTimePicker.test.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { screen, userEvent, describeConformance } from '@mui/monorepo/test/utils'; +import { screen, userEvent, describeConformance } from '@mui-internal/test-utils'; import { createPickerRenderer, wrapPickerMount, diff --git a/packages/x-date-pickers/src/DigitalClock/tests/describes.DigitalClock.test.tsx b/packages/x-date-pickers/src/DigitalClock/tests/describes.DigitalClock.test.tsx index 0f2b1fbfcd9a..32ef3633fe3b 100644 --- a/packages/x-date-pickers/src/DigitalClock/tests/describes.DigitalClock.test.tsx +++ b/packages/x-date-pickers/src/DigitalClock/tests/describes.DigitalClock.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { screen, describeConformance } from '@mui/monorepo/test/utils'; +import { screen, describeConformance } from '@mui-internal/test-utils'; import { createPickerRenderer, wrapPickerMount, diff --git a/packages/x-date-pickers/src/DigitalClock/tests/timezone.DigitalClock.test.tsx b/packages/x-date-pickers/src/DigitalClock/tests/timezone.DigitalClock.test.tsx index e9543a084d50..50d692bfe679 100644 --- a/packages/x-date-pickers/src/DigitalClock/tests/timezone.DigitalClock.test.tsx +++ b/packages/x-date-pickers/src/DigitalClock/tests/timezone.DigitalClock.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { spy } from 'sinon'; import { expect } from 'chai'; -import { screen, userEvent } from '@mui/monorepo/test/utils'; +import { screen, userEvent } from '@mui-internal/test-utils'; import { DigitalClock } from '@mui/x-date-pickers/DigitalClock'; import { getDateOffset, describeAdapters } from 'test/utils/pickers'; diff --git a/packages/x-date-pickers/src/LocalizationProvider/LocalizationProvider.test.tsx b/packages/x-date-pickers/src/LocalizationProvider/LocalizationProvider.test.tsx index 550589dc372d..b7120b6f6c0c 100644 --- a/packages/x-date-pickers/src/LocalizationProvider/LocalizationProvider.test.tsx +++ b/packages/x-date-pickers/src/LocalizationProvider/LocalizationProvider.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { createRenderer } from '@mui/monorepo/test/utils'; +import { createRenderer } from '@mui-internal/test-utils'; import { createTheme, ThemeProvider } from '@mui/material/styles'; import { useLocalizationContext } from '@mui/x-date-pickers/internals'; import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider'; diff --git a/packages/x-date-pickers/src/MobileDatePicker/tests/MobileDatePicker.test.tsx b/packages/x-date-pickers/src/MobileDatePicker/tests/MobileDatePicker.test.tsx index 618299f987e8..629fff7605d6 100644 --- a/packages/x-date-pickers/src/MobileDatePicker/tests/MobileDatePicker.test.tsx +++ b/packages/x-date-pickers/src/MobileDatePicker/tests/MobileDatePicker.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { fireEvent, screen, userEvent } from '@mui/monorepo/test/utils'; +import { fireEvent, screen, userEvent } from '@mui-internal/test-utils'; import { PickersDay } from '@mui/x-date-pickers/PickersDay'; import { DayCalendarSkeleton } from '@mui/x-date-pickers/DayCalendarSkeleton'; import { MobileDatePicker } from '@mui/x-date-pickers/MobileDatePicker'; diff --git a/packages/x-date-pickers/src/MobileDatePicker/tests/describes.MobileDatePicker.test.tsx b/packages/x-date-pickers/src/MobileDatePicker/tests/describes.MobileDatePicker.test.tsx index 8c27d3fe3dbd..68411cd23471 100644 --- a/packages/x-date-pickers/src/MobileDatePicker/tests/describes.MobileDatePicker.test.tsx +++ b/packages/x-date-pickers/src/MobileDatePicker/tests/describes.MobileDatePicker.test.tsx @@ -1,4 +1,4 @@ -import { screen, userEvent } from '@mui/monorepo/test/utils'; +import { screen, userEvent } from '@mui-internal/test-utils'; import { createPickerRenderer, adapterToUse, diff --git a/packages/x-date-pickers/src/MobileDateTimePicker/tests/MobileDateTimePicker.test.tsx b/packages/x-date-pickers/src/MobileDateTimePicker/tests/MobileDateTimePicker.test.tsx index 98116ef31ad3..bf6301ebee72 100644 --- a/packages/x-date-pickers/src/MobileDateTimePicker/tests/MobileDateTimePicker.test.tsx +++ b/packages/x-date-pickers/src/MobileDateTimePicker/tests/MobileDateTimePicker.test.tsx @@ -2,7 +2,7 @@ import * as React from 'react'; import TextField from '@mui/material/TextField'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { fireTouchChangedEvent, screen, userEvent } from '@mui/monorepo/test/utils'; +import { fireTouchChangedEvent, screen, userEvent } from '@mui-internal/test-utils'; import { MobileDateTimePicker } from '@mui/x-date-pickers/MobileDateTimePicker'; import { adapterToUse, diff --git a/packages/x-date-pickers/src/MobileDateTimePicker/tests/describes.MobileDateTimePicker.test.tsx b/packages/x-date-pickers/src/MobileDateTimePicker/tests/describes.MobileDateTimePicker.test.tsx index 7995c5b96571..21a60e4d696a 100644 --- a/packages/x-date-pickers/src/MobileDateTimePicker/tests/describes.MobileDateTimePicker.test.tsx +++ b/packages/x-date-pickers/src/MobileDateTimePicker/tests/describes.MobileDateTimePicker.test.tsx @@ -1,4 +1,4 @@ -import { screen, userEvent, fireTouchChangedEvent } from '@mui/monorepo/test/utils'; +import { screen, userEvent, fireTouchChangedEvent } from '@mui-internal/test-utils'; import { createPickerRenderer, adapterToUse, diff --git a/packages/x-date-pickers/src/MobileTimePicker/tests/MobileTimePicker.test.tsx b/packages/x-date-pickers/src/MobileTimePicker/tests/MobileTimePicker.test.tsx index f278b9276bcf..c8b8f2774628 100644 --- a/packages/x-date-pickers/src/MobileTimePicker/tests/MobileTimePicker.test.tsx +++ b/packages/x-date-pickers/src/MobileTimePicker/tests/MobileTimePicker.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { spy } from 'sinon'; import { expect } from 'chai'; -import { fireTouchChangedEvent, screen, userEvent, act } from '@mui/monorepo/test/utils'; +import { fireTouchChangedEvent, screen, userEvent, act } from '@mui-internal/test-utils'; import { MobileTimePicker } from '@mui/x-date-pickers/MobileTimePicker'; import { createPickerRenderer, diff --git a/packages/x-date-pickers/src/MobileTimePicker/tests/describes.MobileTimePicker.test.tsx b/packages/x-date-pickers/src/MobileTimePicker/tests/describes.MobileTimePicker.test.tsx index 84c88ed82ee8..4ea3654013c2 100644 --- a/packages/x-date-pickers/src/MobileTimePicker/tests/describes.MobileTimePicker.test.tsx +++ b/packages/x-date-pickers/src/MobileTimePicker/tests/describes.MobileTimePicker.test.tsx @@ -4,7 +4,7 @@ import { screen, userEvent, fireTouchChangedEvent, -} from '@mui/monorepo/test/utils'; +} from '@mui-internal/test-utils'; import { createPickerRenderer, wrapPickerMount, diff --git a/packages/x-date-pickers/src/MonthCalendar/tests/MonthCalendar.test.tsx b/packages/x-date-pickers/src/MonthCalendar/tests/MonthCalendar.test.tsx index a7ad33089833..398e6c51f78b 100644 --- a/packages/x-date-pickers/src/MonthCalendar/tests/MonthCalendar.test.tsx +++ b/packages/x-date-pickers/src/MonthCalendar/tests/MonthCalendar.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { spy } from 'sinon'; import { expect } from 'chai'; -import { fireEvent, screen } from '@mui/monorepo/test/utils'; +import { fireEvent, screen } from '@mui-internal/test-utils'; import { MonthCalendar } from '@mui/x-date-pickers/MonthCalendar'; import { createPickerRenderer, adapterToUse } from 'test/utils/pickers'; diff --git a/packages/x-date-pickers/src/MonthCalendar/tests/describes.MonthCalendar.test.tsx b/packages/x-date-pickers/src/MonthCalendar/tests/describes.MonthCalendar.test.tsx index 01591f6c82de..89ddd554b862 100644 --- a/packages/x-date-pickers/src/MonthCalendar/tests/describes.MonthCalendar.test.tsx +++ b/packages/x-date-pickers/src/MonthCalendar/tests/describes.MonthCalendar.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, userEvent, screen } from '@mui/monorepo/test/utils'; +import { describeConformance, userEvent, screen } from '@mui-internal/test-utils'; import { wrapPickerMount, createPickerRenderer, diff --git a/packages/x-date-pickers/src/MultiSectionDigitalClock/tests/describes.MultiSectionDigitalClock.test.tsx b/packages/x-date-pickers/src/MultiSectionDigitalClock/tests/describes.MultiSectionDigitalClock.test.tsx index 4210a53a3fea..2cfd9786188f 100644 --- a/packages/x-date-pickers/src/MultiSectionDigitalClock/tests/describes.MultiSectionDigitalClock.test.tsx +++ b/packages/x-date-pickers/src/MultiSectionDigitalClock/tests/describes.MultiSectionDigitalClock.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { screen, describeConformance } from '@mui/monorepo/test/utils'; +import { screen, describeConformance } from '@mui-internal/test-utils'; import { createPickerRenderer, wrapPickerMount, diff --git a/packages/x-date-pickers/src/PickersActionBar/PickersActionBar.test.tsx b/packages/x-date-pickers/src/PickersActionBar/PickersActionBar.test.tsx index 60b1fb41f9d7..066f60e07b48 100644 --- a/packages/x-date-pickers/src/PickersActionBar/PickersActionBar.test.tsx +++ b/packages/x-date-pickers/src/PickersActionBar/PickersActionBar.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { screen, userEvent } from '@mui/monorepo/test/utils'; +import { screen, userEvent } from '@mui-internal/test-utils'; import { PickersActionBar } from '@mui/x-date-pickers/PickersActionBar'; import { createPickerRenderer } from 'test/utils/pickers'; diff --git a/packages/x-date-pickers/src/PickersDay/PickersDay.test.tsx b/packages/x-date-pickers/src/PickersDay/PickersDay.test.tsx index aa01c26312a6..c7d516e73092 100644 --- a/packages/x-date-pickers/src/PickersDay/PickersDay.test.tsx +++ b/packages/x-date-pickers/src/PickersDay/PickersDay.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { describeConformance, fireEvent, screen } from '@mui/monorepo/test/utils'; +import { describeConformance, fireEvent, screen } from '@mui-internal/test-utils'; import ButtonBase from '@mui/material/ButtonBase'; import { PickersDay, pickersDayClasses as classes } from '@mui/x-date-pickers/PickersDay'; import { adapterToUse, wrapPickerMount, createPickerRenderer } from 'test/utils/pickers'; diff --git a/packages/x-date-pickers/src/StaticDatePicker/tests/StaticDatePicker.test.tsx b/packages/x-date-pickers/src/StaticDatePicker/tests/StaticDatePicker.test.tsx index a4162257d2db..307da572d4e0 100644 --- a/packages/x-date-pickers/src/StaticDatePicker/tests/StaticDatePicker.test.tsx +++ b/packages/x-date-pickers/src/StaticDatePicker/tests/StaticDatePicker.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { fireEvent, screen } from '@mui/monorepo/test/utils'; +import { fireEvent, screen } from '@mui-internal/test-utils'; import { StaticDatePicker } from '@mui/x-date-pickers/StaticDatePicker'; import { createPickerRenderer, adapterToUse } from 'test/utils/pickers'; diff --git a/packages/x-date-pickers/src/StaticDatePicker/tests/StaticDatePickerKeyboard.test.tsx b/packages/x-date-pickers/src/StaticDatePicker/tests/StaticDatePickerKeyboard.test.tsx index 10600e40e094..779db5f95e10 100644 --- a/packages/x-date-pickers/src/StaticDatePicker/tests/StaticDatePickerKeyboard.test.tsx +++ b/packages/x-date-pickers/src/StaticDatePicker/tests/StaticDatePickerKeyboard.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { act, fireEvent, screen } from '@mui/monorepo/test/utils'; +import { act, fireEvent, screen } from '@mui-internal/test-utils'; import { StaticDatePicker } from '@mui/x-date-pickers/StaticDatePicker'; import { DateView } from '@mui/x-date-pickers/models'; import { createPickerRenderer, adapterToUse } from 'test/utils/pickers'; diff --git a/packages/x-date-pickers/src/StaticDateTimePicker/tests/StaticDateTimePicker.test.tsx b/packages/x-date-pickers/src/StaticDateTimePicker/tests/StaticDateTimePicker.test.tsx index d88b9df429f2..2a78e406fb59 100644 --- a/packages/x-date-pickers/src/StaticDateTimePicker/tests/StaticDateTimePicker.test.tsx +++ b/packages/x-date-pickers/src/StaticDateTimePicker/tests/StaticDateTimePicker.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { fireEvent, screen } from '@mui/monorepo/test/utils'; +import { fireEvent, screen } from '@mui-internal/test-utils'; import { StaticDateTimePicker } from '@mui/x-date-pickers/StaticDateTimePicker'; import { createPickerRenderer, adapterToUse } from 'test/utils/pickers'; import { DateTimePickerTabs, DateTimePickerTabsProps } from '../../DateTimePicker'; diff --git a/packages/x-date-pickers/src/StaticTimePicker/StaticTimePicker.test.tsx b/packages/x-date-pickers/src/StaticTimePicker/StaticTimePicker.test.tsx index b84dd15abc08..28d9f536650d 100644 --- a/packages/x-date-pickers/src/StaticTimePicker/StaticTimePicker.test.tsx +++ b/packages/x-date-pickers/src/StaticTimePicker/StaticTimePicker.test.tsx @@ -7,7 +7,7 @@ import { screen, getAllByRole, fireEvent, -} from '@mui/monorepo/test/utils'; +} from '@mui-internal/test-utils'; import { adapterToUse, wrapPickerMount, diff --git a/packages/x-date-pickers/src/TimeClock/tests/TimeClock.test.tsx b/packages/x-date-pickers/src/TimeClock/tests/TimeClock.test.tsx index e2221b91cbe0..aeb95cd302a9 100644 --- a/packages/x-date-pickers/src/TimeClock/tests/TimeClock.test.tsx +++ b/packages/x-date-pickers/src/TimeClock/tests/TimeClock.test.tsx @@ -7,7 +7,7 @@ import { screen, within, getAllByRole, -} from '@mui/monorepo/test/utils'; +} from '@mui-internal/test-utils'; import { TimeClock } from '@mui/x-date-pickers/TimeClock'; import { createPickerRenderer, adapterToUse, timeClockHandler } from 'test/utils/pickers'; diff --git a/packages/x-date-pickers/src/TimeClock/tests/describes.TimeClock.test.tsx b/packages/x-date-pickers/src/TimeClock/tests/describes.TimeClock.test.tsx index 2f203dc27d0c..52a53102831a 100644 --- a/packages/x-date-pickers/src/TimeClock/tests/describes.TimeClock.test.tsx +++ b/packages/x-date-pickers/src/TimeClock/tests/describes.TimeClock.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { describeConformance, screen } from '@mui/monorepo/test/utils'; +import { describeConformance, screen } from '@mui-internal/test-utils'; import { clockPointerClasses, TimeClock, diff --git a/packages/x-date-pickers/src/TimeClock/tests/timezone.TimeClock.test.tsx b/packages/x-date-pickers/src/TimeClock/tests/timezone.TimeClock.test.tsx index ae969850df26..0ef7ac322471 100644 --- a/packages/x-date-pickers/src/TimeClock/tests/timezone.TimeClock.test.tsx +++ b/packages/x-date-pickers/src/TimeClock/tests/timezone.TimeClock.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { spy } from 'sinon'; import { expect } from 'chai'; -import { screen, fireTouchChangedEvent } from '@mui/monorepo/test/utils'; +import { screen, fireTouchChangedEvent } from '@mui-internal/test-utils'; import { TimeClock } from '@mui/x-date-pickers/TimeClock'; import { getClockTouchEvent, diff --git a/packages/x-date-pickers/src/TimeField/tests/describes.TimeField.test.tsx b/packages/x-date-pickers/src/TimeField/tests/describes.TimeField.test.tsx index 9836fd9dcdbd..f114972a5fb5 100644 --- a/packages/x-date-pickers/src/TimeField/tests/describes.TimeField.test.tsx +++ b/packages/x-date-pickers/src/TimeField/tests/describes.TimeField.test.tsx @@ -1,4 +1,4 @@ -import { userEvent } from '@mui/monorepo/test/utils'; +import { userEvent } from '@mui-internal/test-utils'; import { adapterToUse, createPickerRenderer, diff --git a/packages/x-date-pickers/src/TimeField/tests/editing.TimeField.test.tsx b/packages/x-date-pickers/src/TimeField/tests/editing.TimeField.test.tsx index bbef59c8c23e..140a5af79d94 100644 --- a/packages/x-date-pickers/src/TimeField/tests/editing.TimeField.test.tsx +++ b/packages/x-date-pickers/src/TimeField/tests/editing.TimeField.test.tsx @@ -1,7 +1,7 @@ import { expect } from 'chai'; import { spy } from 'sinon'; import { TimeField } from '@mui/x-date-pickers/TimeField'; -import { userEvent, fireEvent } from '@mui/monorepo/test/utils'; +import { userEvent, fireEvent } from '@mui-internal/test-utils'; import { expectInputValue, getCleanedSelectedContent, describeAdapters } from 'test/utils/pickers'; describe(' - Editing', () => { diff --git a/packages/x-date-pickers/src/TimePicker/tests/TimePicker.test.tsx b/packages/x-date-pickers/src/TimePicker/tests/TimePicker.test.tsx index be3374130f24..902c910ddcf5 100644 --- a/packages/x-date-pickers/src/TimePicker/tests/TimePicker.test.tsx +++ b/packages/x-date-pickers/src/TimePicker/tests/TimePicker.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { TimePicker } from '@mui/x-date-pickers/TimePicker'; -import { screen } from '@mui/monorepo/test/utils/createRenderer'; +import { screen } from '@mui-internal/test-utils/createRenderer'; import { expect } from 'chai'; import { createPickerRenderer, stubMatchMedia } from 'test/utils/pickers'; diff --git a/packages/x-date-pickers/src/YearCalendar/tests/YearCalendar.test.tsx b/packages/x-date-pickers/src/YearCalendar/tests/YearCalendar.test.tsx index d9269ddb0484..3d979bd7f2ce 100644 --- a/packages/x-date-pickers/src/YearCalendar/tests/YearCalendar.test.tsx +++ b/packages/x-date-pickers/src/YearCalendar/tests/YearCalendar.test.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { spy } from 'sinon'; import { expect } from 'chai'; -import { act, fireEvent, screen } from '@mui/monorepo/test/utils'; +import { act, fireEvent, screen } from '@mui-internal/test-utils'; import { YearCalendar } from '@mui/x-date-pickers/YearCalendar'; import { createPickerRenderer, adapterToUse } from 'test/utils/pickers'; diff --git a/packages/x-date-pickers/src/YearCalendar/tests/describes.YearCalendar.test.tsx b/packages/x-date-pickers/src/YearCalendar/tests/describes.YearCalendar.test.tsx index 5ccdc819d33c..7aaf18d0752a 100644 --- a/packages/x-date-pickers/src/YearCalendar/tests/describes.YearCalendar.test.tsx +++ b/packages/x-date-pickers/src/YearCalendar/tests/describes.YearCalendar.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { userEvent, screen, describeConformance } from '@mui/monorepo/test/utils'; +import { userEvent, screen, describeConformance } from '@mui-internal/test-utils'; import { pickersYearClasses, YearCalendar, diff --git a/packages/x-date-pickers/src/tests/fieldKeyboardInteraction.test.tsx b/packages/x-date-pickers/src/tests/fieldKeyboardInteraction.test.tsx index 741399ada210..c737504a1e8b 100644 --- a/packages/x-date-pickers/src/tests/fieldKeyboardInteraction.test.tsx +++ b/packages/x-date-pickers/src/tests/fieldKeyboardInteraction.test.tsx @@ -2,7 +2,7 @@ import * as React from 'react'; import { expect } from 'chai'; import moment from 'moment/moment'; import jMoment from 'moment-jalaali'; -import { userEvent } from '@mui/monorepo/test/utils'; +import { userEvent } from '@mui-internal/test-utils'; import { createTheme, ThemeProvider } from '@mui/material/styles'; import { buildFieldInteractions, diff --git a/packages/x-date-pickers/tsconfig.json b/packages/x-date-pickers/tsconfig.json index 75f0e23cefbe..a62574f9ce7e 100644 --- a/packages/x-date-pickers/tsconfig.json +++ b/packages/x-date-pickers/tsconfig.json @@ -7,7 +7,7 @@ "include": [ "src/**/*", "../../test/utils/addChaiAssertions.ts", - "../../node_modules/@mui/monorepo/test/utils/initMatchers.ts", + "../../node_modules/@mui-internal/test-utils/initMatchers.ts", "../../node_modules/@mui/material/themeCssVarsAugmentation", "../../node_modules/dayjs/plugin/utc.d.ts", "../../node_modules/dayjs/plugin/timezone.d.ts", diff --git a/packages/x-license-pro/src/useLicenseVerifier/useLicenseVerifier.test.tsx b/packages/x-license-pro/src/useLicenseVerifier/useLicenseVerifier.test.tsx index 9a84aecc9731..3b7c24e4534b 100644 --- a/packages/x-license-pro/src/useLicenseVerifier/useLicenseVerifier.test.tsx +++ b/packages/x-license-pro/src/useLicenseVerifier/useLicenseVerifier.test.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { createRenderer, screen } from '@mui/monorepo/test/utils'; +import { createRenderer, screen } from '@mui-internal/test-utils'; import { useLicenseVerifier, LicenseInfo, diff --git a/packages/x-license-pro/tsconfig.json b/packages/x-license-pro/tsconfig.json index 16bd9c3be1b6..42c63628f0ab 100644 --- a/packages/x-license-pro/tsconfig.json +++ b/packages/x-license-pro/tsconfig.json @@ -6,7 +6,7 @@ "include": [ "src/**/*", "../../test/utils/addChaiAssertions.ts", - "../../node_modules/@mui/monorepo/test/utils/initMatchers.ts", + "../../node_modules/@mui-internal/test-utils/initMatchers.ts", "../../node_modules/@mui/material/themeCssVarsAugmentation" ] } diff --git a/packages/x-tree-view/src/TreeItem/TreeItem.test.tsx b/packages/x-tree-view/src/TreeItem/TreeItem.test.tsx index 26a5749d71be..da7a2a2f2646 100644 --- a/packages/x-tree-view/src/TreeItem/TreeItem.test.tsx +++ b/packages/x-tree-view/src/TreeItem/TreeItem.test.tsx @@ -9,7 +9,7 @@ import { createRenderer, fireEvent, screen, -} from '@mui/monorepo/test/utils'; +} from '@mui-internal/test-utils'; import { TreeView } from '@mui/x-tree-view/TreeView'; import { TreeItem, treeItemClasses as classes } from '@mui/x-tree-view/TreeItem'; diff --git a/packages/x-tree-view/src/TreeView/TreeView.test.tsx b/packages/x-tree-view/src/TreeView/TreeView.test.tsx index bf31525e504b..2ada3feaa24e 100644 --- a/packages/x-tree-view/src/TreeView/TreeView.test.tsx +++ b/packages/x-tree-view/src/TreeView/TreeView.test.tsx @@ -8,7 +8,7 @@ import { fireEvent, screen, describeConformance, -} from '@mui/monorepo/test/utils'; +} from '@mui-internal/test-utils'; import Portal from '@mui/material/Portal'; import { TreeView, treeViewClasses as classes } from '@mui/x-tree-view/TreeView'; import { TreeItem } from '@mui/x-tree-view/TreeItem'; diff --git a/packages/x-tree-view/tsconfig.json b/packages/x-tree-view/tsconfig.json index 05b4710dac12..7a6ac9cfc6ef 100644 --- a/packages/x-tree-view/tsconfig.json +++ b/packages/x-tree-view/tsconfig.json @@ -7,7 +7,7 @@ "include": [ "src/**/*", "../../test/utils/addChaiAssertions.ts", - "../../node_modules/@mui/monorepo/test/utils/initMatchers.ts", + "../../node_modules/@mui-internal/test-utils/initMatchers.ts", "../../node_modules/@mui/material/themeCssVarsAugmentation" ] } diff --git a/test/karma.tests.js b/test/karma.tests.js index a3e136308844..c701b7a5916d 100644 --- a/test/karma.tests.js +++ b/test/karma.tests.js @@ -1,5 +1,5 @@ /* eslint-env mocha */ -import '@mui/monorepo/test/utils/setupKarma'; +import '@mui-internal/test-utils/setupKarma'; import './utils/init'; import { createXMochaHooks } from './utils/mochaHooks'; diff --git a/test/utils/helperFn.ts b/test/utils/helperFn.ts index c0b808493e25..0c72d6fcc421 100644 --- a/test/utils/helperFn.ts +++ b/test/utils/helperFn.ts @@ -1,5 +1,5 @@ import { spy } from 'sinon'; -import { act } from '@mui/monorepo/test/utils'; +import { act } from '@mui-internal/test-utils'; import { unwrapPrivateAPI } from '@mui/x-data-grid/internals'; import type { GridApiCommon } from '@mui/x-data-grid/models/api/gridApiCommon'; diff --git a/test/utils/init.ts b/test/utils/init.ts index 59ebefd4b81c..9691ca052c83 100644 --- a/test/utils/init.ts +++ b/test/utils/init.ts @@ -1,4 +1,4 @@ -import '@mui/monorepo/test/utils/init'; +import '@mui-internal/test-utils/init'; import './licenseRelease'; import './addChaiAssertions'; import './setupPickers'; diff --git a/test/utils/pickers/calendar.ts b/test/utils/pickers/calendar.ts index 5074cf9f9d91..00d90d8d5059 100644 --- a/test/utils/pickers/calendar.ts +++ b/test/utils/pickers/calendar.ts @@ -1,4 +1,4 @@ -import { fireEvent, createEvent } from '@mui/monorepo/test/utils'; +import { fireEvent, createEvent } from '@mui-internal/test-utils'; export const rangeCalendarDayTouches = { '2018-01-01': { diff --git a/test/utils/pickers/clock.ts b/test/utils/pickers/clock.ts index e14c7cdad5fa..c2f00bcc1f3a 100644 --- a/test/utils/pickers/clock.ts +++ b/test/utils/pickers/clock.ts @@ -1,6 +1,6 @@ import { CLOCK_WIDTH } from '@mui/x-date-pickers/TimeClock/shared'; import { clockPointerClasses } from '@mui/x-date-pickers/TimeClock'; -import { screen } from '@mui/monorepo/test/utils'; +import { screen } from '@mui-internal/test-utils'; export const getClockTouchEvent = ( value: number | string, diff --git a/test/utils/pickers/createPickerRenderer.tsx b/test/utils/pickers/createPickerRenderer.tsx index 16c7b5f5d2ae..7d13e994f8cd 100644 --- a/test/utils/pickers/createPickerRenderer.tsx +++ b/test/utils/pickers/createPickerRenderer.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { LocalizationProvider } from '@mui/x-date-pickers/LocalizationProvider'; -import { createRenderer, CreateRendererOptions, RenderOptions } from '@mui/monorepo/test/utils'; +import { createRenderer, CreateRendererOptions, RenderOptions } from '@mui-internal/test-utils'; import { AdapterClassToUse, AdapterName, adapterToUse, availableAdapters } from './adapters'; interface CreatePickerRendererOptions extends CreateRendererOptions { diff --git a/test/utils/pickers/describeAdapters/describeAdapters.ts b/test/utils/pickers/describeAdapters/describeAdapters.ts index 432587949b4f..c60e40927456 100644 --- a/test/utils/pickers/describeAdapters/describeAdapters.ts +++ b/test/utils/pickers/describeAdapters/describeAdapters.ts @@ -1,7 +1,7 @@ import * as React from 'react'; import moment from 'moment'; import momentTZ from 'moment-timezone'; -import createDescribe from '@mui/monorepo/test/utils/createDescribe'; +import createDescribe from '@mui-internal/test-utils/createDescribe'; import { AdapterName, buildFieldInteractions, diff --git a/test/utils/pickers/describeGregorianAdapter/describeGregorianAdapter.ts b/test/utils/pickers/describeGregorianAdapter/describeGregorianAdapter.ts index 2f6d7ed0e3b2..bf658a29826e 100644 --- a/test/utils/pickers/describeGregorianAdapter/describeGregorianAdapter.ts +++ b/test/utils/pickers/describeGregorianAdapter/describeGregorianAdapter.ts @@ -1,4 +1,4 @@ -import createDescribe from '@mui/monorepo/test/utils/createDescribe'; +import createDescribe from '@mui-internal/test-utils/createDescribe'; import { MuiPickersAdapter } from '@mui/x-date-pickers'; import { testCalculations } from './testCalculations'; import { testLocalization } from './testLocalization'; diff --git a/test/utils/pickers/describeHijriAdapter/describeHijriAdapter.ts b/test/utils/pickers/describeHijriAdapter/describeHijriAdapter.ts index 199c178b0ad1..4aacc9ced531 100644 --- a/test/utils/pickers/describeHijriAdapter/describeHijriAdapter.ts +++ b/test/utils/pickers/describeHijriAdapter/describeHijriAdapter.ts @@ -1,4 +1,4 @@ -import createDescribe from '@mui/monorepo/test/utils/createDescribe'; +import createDescribe from '@mui-internal/test-utils/createDescribe'; import { MuiPickersAdapter } from '@mui/x-date-pickers'; import { testCalculations } from './testCalculations'; import { testLocalization } from './testLocalization'; diff --git a/test/utils/pickers/describeJalaliAdapter/describeJalaliAdapter.ts b/test/utils/pickers/describeJalaliAdapter/describeJalaliAdapter.ts index fd7b4edd223f..a1e711245797 100644 --- a/test/utils/pickers/describeJalaliAdapter/describeJalaliAdapter.ts +++ b/test/utils/pickers/describeJalaliAdapter/describeJalaliAdapter.ts @@ -1,4 +1,4 @@ -import createDescribe from '@mui/monorepo/test/utils/createDescribe'; +import createDescribe from '@mui-internal/test-utils/createDescribe'; import { MuiPickersAdapter } from '@mui/x-date-pickers'; import { testCalculations } from './testCalculations'; import { testLocalization } from './testLocalization'; diff --git a/test/utils/pickers/describePicker/describePicker.tsx b/test/utils/pickers/describePicker/describePicker.tsx index 418b003a4cea..d535c1140844 100644 --- a/test/utils/pickers/describePicker/describePicker.tsx +++ b/test/utils/pickers/describePicker/describePicker.tsx @@ -2,7 +2,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { screen, fireEvent, createDescribe } from '@mui/monorepo/test/utils'; +import { screen, fireEvent, createDescribe } from '@mui-internal/test-utils'; import SvgIcon, { SvgIconProps } from '@mui/material/SvgIcon'; import { DescribePickerOptions } from './describePicker.types'; diff --git a/test/utils/pickers/describePicker/describePicker.types.ts b/test/utils/pickers/describePicker/describePicker.types.ts index 8b6beec38800..0d620ec32abc 100644 --- a/test/utils/pickers/describePicker/describePicker.types.ts +++ b/test/utils/pickers/describePicker/describePicker.types.ts @@ -1,5 +1,5 @@ import * as React from 'react'; -import { MuiRenderResult } from '@mui/monorepo/test/utils/createRenderer'; +import { MuiRenderResult } from '@mui-internal/test-utils/createRenderer'; export interface DescribePickerOptions { fieldType: 'single-input' | 'multi-input'; diff --git a/test/utils/pickers/describeRangeValidation/describeRangeValidation.tsx b/test/utils/pickers/describeRangeValidation/describeRangeValidation.tsx index 0220265975d0..c54414e161f6 100644 --- a/test/utils/pickers/describeRangeValidation/describeRangeValidation.tsx +++ b/test/utils/pickers/describeRangeValidation/describeRangeValidation.tsx @@ -1,6 +1,6 @@ /* eslint-env mocha */ import * as React from 'react'; -import createDescribe from '@mui/monorepo/test/utils/createDescribe'; +import createDescribe from '@mui-internal/test-utils/createDescribe'; import { testDayViewRangeValidation } from './testDayViewRangeValidation'; import { testTextFieldRangeValidation } from './testTextFieldRangeValidation'; import { DescribeRangeValidationInputOptions } from './describeRangeValidation.types'; diff --git a/test/utils/pickers/describeRangeValidation/testDayViewRangeValidation.tsx b/test/utils/pickers/describeRangeValidation/testDayViewRangeValidation.tsx index 32c43da0f63a..febd79849cb4 100644 --- a/test/utils/pickers/describeRangeValidation/testDayViewRangeValidation.tsx +++ b/test/utils/pickers/describeRangeValidation/testDayViewRangeValidation.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { screen } from '@mui/monorepo/test/utils'; +import { screen } from '@mui-internal/test-utils'; import { adapterToUse } from 'test/utils/pickers'; const isDisable = (el: HTMLElement) => el.getAttribute('disabled') !== null; diff --git a/test/utils/pickers/describeRangeValidation/testTextFieldKeyboardRangeValidation.tsx b/test/utils/pickers/describeRangeValidation/testTextFieldKeyboardRangeValidation.tsx index 8224126c8b49..3399602ea1db 100644 --- a/test/utils/pickers/describeRangeValidation/testTextFieldKeyboardRangeValidation.tsx +++ b/test/utils/pickers/describeRangeValidation/testTextFieldKeyboardRangeValidation.tsx @@ -1,9 +1,9 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { screen } from '@mui/monorepo/test/utils'; +import { screen } from '@mui-internal/test-utils'; import { adapterToUse } from 'test/utils/pickers'; -import { act } from '@mui/monorepo/test/utils/createRenderer'; +import { act } from '@mui-internal/test-utils/createRenderer'; import { DescribeRangeValidationTestSuite } from './describeRangeValidation.types'; const testInvalidStatus = (expectedAnswer: boolean[], isSingleInput?: boolean) => { diff --git a/test/utils/pickers/describeRangeValidation/testTextFieldRangeValidation.tsx b/test/utils/pickers/describeRangeValidation/testTextFieldRangeValidation.tsx index b550ed40efa1..83a2844b4cc7 100644 --- a/test/utils/pickers/describeRangeValidation/testTextFieldRangeValidation.tsx +++ b/test/utils/pickers/describeRangeValidation/testTextFieldRangeValidation.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { screen } from '@mui/monorepo/test/utils'; +import { screen } from '@mui-internal/test-utils'; import { adapterToUse } from 'test/utils/pickers'; import { DescribeRangeValidationTestSuite } from './describeRangeValidation.types'; diff --git a/test/utils/pickers/describeValidation/describeValidation.ts b/test/utils/pickers/describeValidation/describeValidation.ts index 24c37acbda44..2804f418ee9c 100644 --- a/test/utils/pickers/describeValidation/describeValidation.ts +++ b/test/utils/pickers/describeValidation/describeValidation.ts @@ -1,6 +1,6 @@ /* eslint-env mocha */ import * as React from 'react'; -import createDescribe from '@mui/monorepo/test/utils/createDescribe'; +import createDescribe from '@mui-internal/test-utils/createDescribe'; import { testDayViewValidation } from './testDayViewValidation'; import { testMonthViewValidation } from './testMonthViewValidation'; import { testTextFieldValidation } from './testTextFieldValidation'; diff --git a/test/utils/pickers/describeValidation/describeValidation.types.ts b/test/utils/pickers/describeValidation/describeValidation.types.ts index 49c5a59557ba..8c6c60dea047 100644 --- a/test/utils/pickers/describeValidation/describeValidation.types.ts +++ b/test/utils/pickers/describeValidation/describeValidation.types.ts @@ -1,5 +1,5 @@ import * as React from 'react'; -import { MuiRenderResult, createRenderer } from '@mui/monorepo/test/utils/createRenderer'; +import { MuiRenderResult, createRenderer } from '@mui-internal/test-utils/createRenderer'; import { DateOrTimeView } from '@mui/x-date-pickers/models'; import { PickerComponentFamily } from '../describe.types'; diff --git a/test/utils/pickers/describeValidation/testDayViewValidation.tsx b/test/utils/pickers/describeValidation/testDayViewValidation.tsx index 30bd53274706..074e32fa6c3c 100644 --- a/test/utils/pickers/describeValidation/testDayViewValidation.tsx +++ b/test/utils/pickers/describeValidation/testDayViewValidation.tsx @@ -1,6 +1,6 @@ import { expect } from 'chai'; import * as React from 'react'; -import { screen } from '@mui/monorepo/test/utils'; +import { screen } from '@mui-internal/test-utils'; import { adapterToUse } from 'test/utils/pickers'; import { DescribeValidationTestSuite } from './describeValidation.types'; diff --git a/test/utils/pickers/describeValidation/testMinutesViewValidation.tsx b/test/utils/pickers/describeValidation/testMinutesViewValidation.tsx index 647b609530c4..0bd0a4d01cbe 100644 --- a/test/utils/pickers/describeValidation/testMinutesViewValidation.tsx +++ b/test/utils/pickers/describeValidation/testMinutesViewValidation.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { screen } from '@mui/monorepo/test/utils'; +import { screen } from '@mui-internal/test-utils'; import { adapterToUse } from 'test/utils/pickers'; import { DescribeValidationTestSuite } from './describeValidation.types'; diff --git a/test/utils/pickers/describeValidation/testMonthViewValidation.tsx b/test/utils/pickers/describeValidation/testMonthViewValidation.tsx index 31df27359c55..1e7896e371fb 100644 --- a/test/utils/pickers/describeValidation/testMonthViewValidation.tsx +++ b/test/utils/pickers/describeValidation/testMonthViewValidation.tsx @@ -1,6 +1,6 @@ import { expect } from 'chai'; import * as React from 'react'; -import { screen } from '@mui/monorepo/test/utils'; +import { screen } from '@mui-internal/test-utils'; import { adapterToUse } from 'test/utils/pickers'; import { DescribeValidationTestSuite } from './describeValidation.types'; diff --git a/test/utils/pickers/describeValidation/testTextFieldValidation.tsx b/test/utils/pickers/describeValidation/testTextFieldValidation.tsx index 432b2ef51b6f..15557750bd2f 100644 --- a/test/utils/pickers/describeValidation/testTextFieldValidation.tsx +++ b/test/utils/pickers/describeValidation/testTextFieldValidation.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { screen } from '@mui/monorepo/test/utils'; +import { screen } from '@mui-internal/test-utils'; import { TimeView } from '@mui/x-date-pickers/models'; import { adapterToUse } from 'test/utils/pickers'; import { DescribeValidationTestSuite } from './describeValidation.types'; diff --git a/test/utils/pickers/describeValidation/testYearViewValidation.tsx b/test/utils/pickers/describeValidation/testYearViewValidation.tsx index d5f9e647e41f..4e94df8f1019 100644 --- a/test/utils/pickers/describeValidation/testYearViewValidation.tsx +++ b/test/utils/pickers/describeValidation/testYearViewValidation.tsx @@ -1,6 +1,6 @@ import * as React from 'react'; import { expect } from 'chai'; -import { screen } from '@mui/monorepo/test/utils'; +import { screen } from '@mui-internal/test-utils'; import { adapterToUse } from 'test/utils/pickers'; import { DescribeValidationTestSuite } from './describeValidation.types'; diff --git a/test/utils/pickers/describeValue/describeValue.tsx b/test/utils/pickers/describeValue/describeValue.tsx index 9c371cc03922..bf4e8f4240cc 100644 --- a/test/utils/pickers/describeValue/describeValue.tsx +++ b/test/utils/pickers/describeValue/describeValue.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import createDescribe from '@mui/monorepo/test/utils/createDescribe'; +import createDescribe from '@mui-internal/test-utils/createDescribe'; import { BasePickerInputProps, UsePickerValueNonStaticProps } from '@mui/x-date-pickers/internals'; import { FieldSection } from '@mui/x-date-pickers/models'; import { buildFieldInteractions, BuildFieldInteractionsResponse } from 'test/utils/pickers'; diff --git a/test/utils/pickers/describeValue/describeValue.types.ts b/test/utils/pickers/describeValue/describeValue.types.ts index f7eef83e131b..b728d5a61cf9 100644 --- a/test/utils/pickers/describeValue/describeValue.types.ts +++ b/test/utils/pickers/describeValue/describeValue.types.ts @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, MuiRenderResult } from '@mui/monorepo/test/utils/createRenderer'; +import { createRenderer, MuiRenderResult } from '@mui-internal/test-utils/createRenderer'; import { BuildFieldInteractionsResponse, FieldSectionSelector, diff --git a/test/utils/pickers/describeValue/testControlledUnControlled.tsx b/test/utils/pickers/describeValue/testControlledUnControlled.tsx index b7d7be538fc5..70a04814db84 100644 --- a/test/utils/pickers/describeValue/testControlledUnControlled.tsx +++ b/test/utils/pickers/describeValue/testControlledUnControlled.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { screen, act, userEvent } from '@mui/monorepo/test/utils'; +import { screen, act, userEvent } from '@mui-internal/test-utils'; import { inputBaseClasses } from '@mui/material/InputBase'; import { getExpectedOnChangeCount } from 'test/utils/pickers'; import { DescribeValueOptions, DescribeValueTestSuite } from './describeValue.types'; diff --git a/test/utils/pickers/describeValue/testPickerActionBar.tsx b/test/utils/pickers/describeValue/testPickerActionBar.tsx index 225692e064d1..cf47839de4d2 100644 --- a/test/utils/pickers/describeValue/testPickerActionBar.tsx +++ b/test/utils/pickers/describeValue/testPickerActionBar.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { screen, userEvent } from '@mui/monorepo/test/utils'; +import { screen, userEvent } from '@mui-internal/test-utils'; import { adapterToUse, getExpectedOnChangeCount, diff --git a/test/utils/pickers/describeValue/testPickerOpenCloseLifeCycle.tsx b/test/utils/pickers/describeValue/testPickerOpenCloseLifeCycle.tsx index 4ca193922b13..ee4810988742 100644 --- a/test/utils/pickers/describeValue/testPickerOpenCloseLifeCycle.tsx +++ b/test/utils/pickers/describeValue/testPickerOpenCloseLifeCycle.tsx @@ -1,7 +1,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; -import { screen, userEvent } from '@mui/monorepo/test/utils'; +import { screen, userEvent } from '@mui-internal/test-utils'; import { getExpectedOnChangeCount, getTextbox, openPicker } from 'test/utils/pickers'; import { DescribeValueTestSuite } from './describeValue.types'; diff --git a/test/utils/pickers/describeValue/testShortcuts.tsx b/test/utils/pickers/describeValue/testShortcuts.tsx index e3e5fad5b77f..bf19d543468e 100644 --- a/test/utils/pickers/describeValue/testShortcuts.tsx +++ b/test/utils/pickers/describeValue/testShortcuts.tsx @@ -2,7 +2,7 @@ import * as React from 'react'; import { expect } from 'chai'; import { spy } from 'sinon'; import { expectPickerChangeHandlerValue } from 'test/utils/pickers'; -import { userEvent, screen } from '@mui/monorepo/test/utils'; +import { userEvent, screen } from '@mui-internal/test-utils'; import { DescribeValueTestSuite } from './describeValue.types'; export const testShortcuts: DescribeValueTestSuite = (ElementToTest, options) => { diff --git a/test/utils/pickers/fields.tsx b/test/utils/pickers/fields.tsx index af0004e86362..cc09f19724fa 100644 --- a/test/utils/pickers/fields.tsx +++ b/test/utils/pickers/fields.tsx @@ -1,5 +1,5 @@ import * as React from 'react'; -import { createRenderer, screen, userEvent, act, fireEvent } from '@mui/monorepo/test/utils'; +import { createRenderer, screen, userEvent, act, fireEvent } from '@mui-internal/test-utils'; import { FieldRef, FieldSection, FieldSectionType } from '@mui/x-date-pickers/models'; import { expectInputValue } from './assertions'; diff --git a/test/utils/pickers/openPicker.ts b/test/utils/pickers/openPicker.ts index 831c92305582..acda78eb35bc 100644 --- a/test/utils/pickers/openPicker.ts +++ b/test/utils/pickers/openPicker.ts @@ -1,4 +1,4 @@ -import { screen, userEvent } from '@mui/monorepo/test/utils'; +import { screen, userEvent } from '@mui-internal/test-utils'; export type OpenPickerParams = | { diff --git a/test/utils/pickers/viewHandlers.ts b/test/utils/pickers/viewHandlers.ts index 0546a06f5b50..0496eab0ef77 100644 --- a/test/utils/pickers/viewHandlers.ts +++ b/test/utils/pickers/viewHandlers.ts @@ -1,4 +1,4 @@ -import { fireTouchChangedEvent, userEvent, screen } from '@mui/monorepo/test/utils'; +import { fireTouchChangedEvent, userEvent, screen } from '@mui-internal/test-utils'; import { getClockTouchEvent } from 'test/utils/pickers'; import { MuiPickersAdapter, TimeView } from '@mui/x-date-pickers/models'; import { formatMeridiem } from '@mui/x-date-pickers/internals/utils/date-utils'; diff --git a/test/utils/setupJSDOM.js b/test/utils/setupJSDOM.js index 9f17daa80826..c99ab9ee3407 100644 --- a/test/utils/setupJSDOM.js +++ b/test/utils/setupJSDOM.js @@ -1,4 +1,5 @@ -const coreExports = require('@mui/monorepo/test/utils/setupJSDOM'); +const coreExports = require('@mui-internal/test-utils/setupJSDOM'); + require('./licenseRelease'); require('./addChaiAssertions'); require('./setupPickers'); diff --git a/tsconfig.json b/tsconfig.json index 1473b721f37f..d31ee09a6213 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -26,6 +26,8 @@ "@mui/x-tree-view/*": ["./packages/x-tree-view/src/*"], "@mui/x-license-pro": ["./packages/x-license-pro/src"], "@mui/x-license-pro/*": ["./packages/x-license-pro/src/*"], + "@mui-internal/test-utils": ["./node_modules/@mui/monorepo/packages/test-utils/src"], + "@mui-internal/test-utils/*": ["./node_modules/@mui/monorepo/packages/test-utils/src/*"], "test/*": ["./test/*"], "docs/*": ["./node_modules/@mui/monorepo/docs"], "docsx/*": ["./docs/*"] From d2e201144b88834979f7d5d858fbec14bd322585 Mon Sep 17 00:00:00 2001 From: alexandre Date: Mon, 9 Oct 2023 15:25:21 +0200 Subject: [PATCH 3/8] fix direct path import --- packages/grid/x-data-grid-premium/tsconfig.json | 2 +- packages/grid/x-data-grid-pro/tsconfig.json | 2 +- packages/grid/x-data-grid/tsconfig.json | 2 +- packages/x-charts/tsconfig.json | 2 +- packages/x-codemod/tsconfig.json | 2 +- packages/x-date-pickers-pro/tsconfig.json | 2 +- packages/x-date-pickers/tsconfig.json | 2 +- packages/x-license-pro/tsconfig.json | 2 +- packages/x-tree-view/tsconfig.json | 2 +- 9 files changed, 9 insertions(+), 9 deletions(-) diff --git a/packages/grid/x-data-grid-premium/tsconfig.json b/packages/grid/x-data-grid-premium/tsconfig.json index 3fcdd4421666..79824ab24546 100644 --- a/packages/grid/x-data-grid-premium/tsconfig.json +++ b/packages/grid/x-data-grid-premium/tsconfig.json @@ -6,7 +6,7 @@ "include": [ "src/**/*", "../../test/utils/addChaiAssertions.ts", - "../../node_modules/@mui-internal/test-utils/initMatchers.ts", + "../../node_modules/@mui/monorepo/packages/test-utils/src/initMatchers.ts", "../../../node_modules/@mui/material/themeCssVarsAugmentation" ] } diff --git a/packages/grid/x-data-grid-pro/tsconfig.json b/packages/grid/x-data-grid-pro/tsconfig.json index 3fcdd4421666..79824ab24546 100644 --- a/packages/grid/x-data-grid-pro/tsconfig.json +++ b/packages/grid/x-data-grid-pro/tsconfig.json @@ -6,7 +6,7 @@ "include": [ "src/**/*", "../../test/utils/addChaiAssertions.ts", - "../../node_modules/@mui-internal/test-utils/initMatchers.ts", + "../../node_modules/@mui/monorepo/packages/test-utils/src/initMatchers.ts", "../../../node_modules/@mui/material/themeCssVarsAugmentation" ] } diff --git a/packages/grid/x-data-grid/tsconfig.json b/packages/grid/x-data-grid/tsconfig.json index 3fcdd4421666..79824ab24546 100644 --- a/packages/grid/x-data-grid/tsconfig.json +++ b/packages/grid/x-data-grid/tsconfig.json @@ -6,7 +6,7 @@ "include": [ "src/**/*", "../../test/utils/addChaiAssertions.ts", - "../../node_modules/@mui-internal/test-utils/initMatchers.ts", + "../../node_modules/@mui/monorepo/packages/test-utils/src/initMatchers.ts", "../../../node_modules/@mui/material/themeCssVarsAugmentation" ] } diff --git a/packages/x-charts/tsconfig.json b/packages/x-charts/tsconfig.json index 42c63628f0ab..6a8e1ed5b14f 100644 --- a/packages/x-charts/tsconfig.json +++ b/packages/x-charts/tsconfig.json @@ -6,7 +6,7 @@ "include": [ "src/**/*", "../../test/utils/addChaiAssertions.ts", - "../../node_modules/@mui-internal/test-utils/initMatchers.ts", + "../../node_modules/@mui/monorepo/packages/test-utils/src/initMatchers.ts", "../../node_modules/@mui/material/themeCssVarsAugmentation" ] } diff --git a/packages/x-codemod/tsconfig.json b/packages/x-codemod/tsconfig.json index 83de3decadc7..9a29c6850498 100644 --- a/packages/x-codemod/tsconfig.json +++ b/packages/x-codemod/tsconfig.json @@ -6,7 +6,7 @@ }, "include": [ "src/**/*", - "../../node_modules/@mui-internal/test-utils/initMatchers.ts", + "../../node_modules/@mui/monorepo/packages/test-utils/src/initMatchers.ts", "../../node_modules/@mui/material/themeCssVarsAugmentation", "../../node_modules/date-fns", "../../node_modules/dayjs/plugin/utc.d.ts", diff --git a/packages/x-date-pickers-pro/tsconfig.json b/packages/x-date-pickers-pro/tsconfig.json index a62574f9ce7e..9db9967fdf72 100644 --- a/packages/x-date-pickers-pro/tsconfig.json +++ b/packages/x-date-pickers-pro/tsconfig.json @@ -7,7 +7,7 @@ "include": [ "src/**/*", "../../test/utils/addChaiAssertions.ts", - "../../node_modules/@mui-internal/test-utils/initMatchers.ts", + "../../node_modules/@mui/monorepo/packages/test-utils/src/initMatchers.ts", "../../node_modules/@mui/material/themeCssVarsAugmentation", "../../node_modules/dayjs/plugin/utc.d.ts", "../../node_modules/dayjs/plugin/timezone.d.ts", diff --git a/packages/x-date-pickers/tsconfig.json b/packages/x-date-pickers/tsconfig.json index a62574f9ce7e..9db9967fdf72 100644 --- a/packages/x-date-pickers/tsconfig.json +++ b/packages/x-date-pickers/tsconfig.json @@ -7,7 +7,7 @@ "include": [ "src/**/*", "../../test/utils/addChaiAssertions.ts", - "../../node_modules/@mui-internal/test-utils/initMatchers.ts", + "../../node_modules/@mui/monorepo/packages/test-utils/src/initMatchers.ts", "../../node_modules/@mui/material/themeCssVarsAugmentation", "../../node_modules/dayjs/plugin/utc.d.ts", "../../node_modules/dayjs/plugin/timezone.d.ts", diff --git a/packages/x-license-pro/tsconfig.json b/packages/x-license-pro/tsconfig.json index 42c63628f0ab..6a8e1ed5b14f 100644 --- a/packages/x-license-pro/tsconfig.json +++ b/packages/x-license-pro/tsconfig.json @@ -6,7 +6,7 @@ "include": [ "src/**/*", "../../test/utils/addChaiAssertions.ts", - "../../node_modules/@mui-internal/test-utils/initMatchers.ts", + "../../node_modules/@mui/monorepo/packages/test-utils/src/initMatchers.ts", "../../node_modules/@mui/material/themeCssVarsAugmentation" ] } diff --git a/packages/x-tree-view/tsconfig.json b/packages/x-tree-view/tsconfig.json index 7a6ac9cfc6ef..b615deabf797 100644 --- a/packages/x-tree-view/tsconfig.json +++ b/packages/x-tree-view/tsconfig.json @@ -7,7 +7,7 @@ "include": [ "src/**/*", "../../test/utils/addChaiAssertions.ts", - "../../node_modules/@mui-internal/test-utils/initMatchers.ts", + "../../node_modules/@mui/monorepo/packages/test-utils/src/initMatchers.ts", "../../node_modules/@mui/material/themeCssVarsAugmentation" ] } From 748ea16b1adbc2f7d2891c2ddf8efd750167eac7 Mon Sep 17 00:00:00 2001 From: alexandre Date: Mon, 9 Oct 2023 15:49:47 +0200 Subject: [PATCH 4/8] install --- package.json | 1 + yarn.lock | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+) diff --git a/package.json b/package.json index c28fcdc0adf1..8726d55e0b80 100644 --- a/package.json +++ b/package.json @@ -87,6 +87,7 @@ "@mui/material": "^5.14.11", "@mui/monorepo": "https://github.com/mui/material-ui.git#master", "@mui/utils": "^5.14.11", + "@next/eslint-plugin-next": "^13.5.4", "@octokit/plugin-retry": "^6.0.1", "@octokit/rest": "^20.0.2", "@playwright/test": "1.38.1", diff --git a/yarn.lock b/yarn.lock index 5657fd20f0d0..a4bf4e03778c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1929,6 +1929,13 @@ resolved "https://registry.yarnpkg.com/@next/env/-/env-13.4.19.tgz#46905b4e6f62da825b040343cbc233144e9578d3" integrity sha512-FsAT5x0jF2kkhNkKkukhsyYOrRqtSxrEhfliniIq0bwWbuXLgyt3Gv0Ml+b91XwjwArmuP7NxCiGd++GGKdNMQ== +"@next/eslint-plugin-next@^13.5.4": + version "13.5.4" + resolved "https://registry.yarnpkg.com/@next/eslint-plugin-next/-/eslint-plugin-next-13.5.4.tgz#ec70af509f07dc4e545df25834ac94d2c341c36a" + integrity sha512-vI94U+D7RNgX6XypSyjeFrOzxGlZyxOplU0dVE5norIfZGn/LDjJYPHdvdsR5vN1eRtl6PDAsOHmycFEOljK5A== + dependencies: + glob "7.1.7" + "@next/swc-darwin-arm64@13.4.19": version "13.4.19" resolved "https://registry.yarnpkg.com/@next/swc-darwin-arm64/-/swc-darwin-arm64-13.4.19.tgz#77ad462b5ced4efdc26cb5a0053968d2c7dac1b6" @@ -7439,6 +7446,18 @@ glob@7.1.6: once "^1.3.0" path-is-absolute "^1.0.0" +glob@7.1.7: + version "7.1.7" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.7.tgz#3b193e9233f01d42d0b3f78294bbeeb418f94a90" + integrity sha512-OvD9ENzPLbegENnYP5UUfJIirTg4+XwMWGaQfQTY0JenxNvvIKP3U3/tAQSPIu/lHxXYSZmpXlUHeqAIdKzBLQ== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.0.4" + once "^1.3.0" + path-is-absolute "^1.0.0" + glob@7.2.0: version "7.2.0" resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.0.tgz#d15535af7732e02e948f4c41628bd910293f6023" From 4ca1ed51b7e9c06083c458dad1c543d50be148ae Mon Sep 17 00:00:00 2001 From: alexandre Date: Tue, 10 Oct 2023 11:20:14 +0200 Subject: [PATCH 5/8] fix link --- docs/data/date-pickers/base-concepts/ComponentFamilies.js | 5 +++-- docs/data/date-pickers/base-concepts/ComponentFamilies.tsx | 5 +++-- docs/data/date-pickers/overview/CommonlyUsedComponents.js | 5 +++-- docs/data/date-pickers/overview/CommonlyUsedComponents.tsx | 5 +++-- 4 files changed, 12 insertions(+), 8 deletions(-) diff --git a/docs/data/date-pickers/base-concepts/ComponentFamilies.js b/docs/data/date-pickers/base-concepts/ComponentFamilies.js index ac81f4a141f8..1466da83eadb 100644 --- a/docs/data/date-pickers/base-concepts/ComponentFamilies.js +++ b/docs/data/date-pickers/base-concepts/ComponentFamilies.js @@ -1,4 +1,5 @@ import * as React from 'react'; +import Link from 'next/link'; import dayjs from 'dayjs'; import { DemoContainer, DemoItem } from '@mui/x-date-pickers/internals/demo'; import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'; @@ -16,9 +17,9 @@ function ProLabel({ children }) { return ( - + - + {children} diff --git a/docs/data/date-pickers/base-concepts/ComponentFamilies.tsx b/docs/data/date-pickers/base-concepts/ComponentFamilies.tsx index 0d381520068e..9d0b94fc655e 100644 --- a/docs/data/date-pickers/base-concepts/ComponentFamilies.tsx +++ b/docs/data/date-pickers/base-concepts/ComponentFamilies.tsx @@ -1,4 +1,5 @@ import * as React from 'react'; +import Link from 'next/link'; import dayjs from 'dayjs'; import { DemoContainer, DemoItem } from '@mui/x-date-pickers/internals/demo'; import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'; @@ -16,9 +17,9 @@ function ProLabel({ children }: { children: React.ReactNode }) { return ( - + - + {children} diff --git a/docs/data/date-pickers/overview/CommonlyUsedComponents.js b/docs/data/date-pickers/overview/CommonlyUsedComponents.js index 3bf2d5d176ca..998657c63796 100644 --- a/docs/data/date-pickers/overview/CommonlyUsedComponents.js +++ b/docs/data/date-pickers/overview/CommonlyUsedComponents.js @@ -1,4 +1,5 @@ import * as React from 'react'; +import Link from 'next/link'; import Tooltip from '@mui/material/Tooltip'; import Stack from '@mui/material/Stack'; import { DemoContainer, DemoItem } from '@mui/x-date-pickers/internals/demo'; @@ -20,9 +21,9 @@ function Label({ componentName, valueType, isProOnly }) { return ( - + - + {content} diff --git a/docs/data/date-pickers/overview/CommonlyUsedComponents.tsx b/docs/data/date-pickers/overview/CommonlyUsedComponents.tsx index 41459182b6f2..8bce409df504 100644 --- a/docs/data/date-pickers/overview/CommonlyUsedComponents.tsx +++ b/docs/data/date-pickers/overview/CommonlyUsedComponents.tsx @@ -1,4 +1,5 @@ import * as React from 'react'; +import Link from 'next/link'; import Tooltip from '@mui/material/Tooltip'; import Stack from '@mui/material/Stack'; import { DemoContainer, DemoItem } from '@mui/x-date-pickers/internals/demo'; @@ -28,9 +29,9 @@ function Label({ return ( - + - + {content} From 07c6751d59c1f6c6cb95ca4331bb8d66f9b9d987 Mon Sep 17 00:00:00 2001 From: alexandre Date: Tue, 10 Oct 2023 11:20:34 +0200 Subject: [PATCH 6/8] remove no-continue --- .../src/hooks/features/columns/gridColumnsUtils.ts | 1 - .../x-data-grid/src/hooks/features/filter/gridFilterUtils.ts | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/grid/x-data-grid/src/hooks/features/columns/gridColumnsUtils.ts b/packages/grid/x-data-grid/src/hooks/features/columns/gridColumnsUtils.ts index 9033f55d15e4..5043488df742 100644 --- a/packages/grid/x-data-grid/src/hooks/features/columns/gridColumnsUtils.ts +++ b/packages/grid/x-data-grid/src/hooks/features/columns/gridColumnsUtils.ts @@ -94,7 +94,6 @@ export function computeFlexColumnsWidth({ flexColumnsLookup.all[column.field] && flexColumnsLookup.all[column.field].frozen === true ) { - // eslint-disable-next-line no-continue continue; } diff --git a/packages/grid/x-data-grid/src/hooks/features/filter/gridFilterUtils.ts b/packages/grid/x-data-grid/src/hooks/features/filter/gridFilterUtils.ts index 42a9d37ec3ce..b33d8ff33edb 100644 --- a/packages/grid/x-data-grid/src/hooks/features/filter/gridFilterUtils.ts +++ b/packages/grid/x-data-grid/src/hooks/features/filter/gridFilterUtils.ts @@ -374,7 +374,7 @@ export const buildAggregatedQuickFilterApplier = ( const result = {} as GridQuickFilterValueResult; const usedCellParams = {} as { [field: string]: GridCellParams }; - /* eslint-disable no-restricted-syntax, no-labels, no-continue */ + /* eslint-disable no-restricted-syntax, no-labels */ outer: for (let v = 0; v < quickFilterValues.length; v += 1) { const filterValue = quickFilterValues[v]; @@ -415,7 +415,7 @@ export const buildAggregatedQuickFilterApplier = ( result[filterValue] = false; } - /* eslint-enable no-restricted-syntax, no-labels, no-continue */ + /* eslint-enable no-restricted-syntax, no-labels */ return result; }; From fe7e87dcc2090bb4ac1b7ae3205c25d7aab67e44 Mon Sep 17 00:00:00 2001 From: alexandre Date: Tue, 10 Oct 2023 11:21:17 +0200 Subject: [PATCH 7/8] bump bump bump :) --- yarn.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yarn.lock b/yarn.lock index a4bf4e03778c..3d40613222d4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1851,7 +1851,7 @@ "@mui/monorepo@https://github.com/mui/material-ui.git#master": version "5.14.11" - resolved "https://github.com/mui/material-ui.git#ba2b0c524ab9aeac88bc73c17cca4fe7a8cd71d5" + resolved "https://github.com/mui/material-ui.git#7f9c09fea69759f0f621cbe3eb0f738d51c8201e" "@mui/private-theming@^5.14.11": version "5.14.11" From bead06ffa4eefcf72cc8362d899a8e3acd2c6d7b Mon Sep 17 00:00:00 2001 From: Bilal Shafi Date: Thu, 12 Oct 2023 17:35:26 +0500 Subject: [PATCH 8/8] Fix build --- packages/grid/x-data-grid/src/locales/roRO.ts | 2 +- webpackBaseConfig.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/grid/x-data-grid/src/locales/roRO.ts b/packages/grid/x-data-grid/src/locales/roRO.ts index 4a7421fdd047..6c3dd716d4a3 100644 --- a/packages/grid/x-data-grid/src/locales/roRO.ts +++ b/packages/grid/x-data-grid/src/locales/roRO.ts @@ -86,7 +86,7 @@ const roROGrid: Partial = { headerFilterOperatorIs: 'Este', headerFilterOperatorNot: 'Nu este', headerFilterOperatorAfter: 'Este după', - headerFilterOperatorOnOrAfter: 'Este la sau „după”', + headerFilterOperatorOnOrAfter: 'Este la sau după', headerFilterOperatorBefore: 'Este înainte de', headerFilterOperatorOnOrBefore: 'este la sau înainte de', headerFilterOperatorIsEmpty: 'Este gol', diff --git a/webpackBaseConfig.js b/webpackBaseConfig.js index 6426167f47fd..6720867f6ae1 100644 --- a/webpackBaseConfig.js +++ b/webpackBaseConfig.js @@ -23,6 +23,10 @@ module.exports = { '@mui/x-tree-view': path.resolve(__dirname, './packages/x-tree-view/src'), '@mui/x-license-pro': path.resolve(__dirname, './packages/x-license-pro/src'), '@mui/markdown': path.resolve(__dirname, './node_modules/@mui/monorepo/packages/markdown'), + '@mui-internal/test-utils': path.resolve( + __dirname, + './node_modules/@mui/monorepo/packages/test-utils/src', + ), docs: path.resolve(__dirname, './node_modules/@mui/monorepo/docs'), docsx: path.resolve(__dirname, './docs'), },