Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core] Support @mui/material@6 peer dependency #14142

Merged
merged 120 commits into from
Aug 29, 2024
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
Show all changes
120 commits
Select commit Hold shift + click to select a range
b11d987
add @mui/material@^6 to peer dependencies
cherniavskii Aug 8, 2024
e6456ff
log @mui/material version in tests
cherniavskii Aug 8, 2024
b521dce
temp: add @mui/material@next to dev deps
cherniavskii Aug 8, 2024
c30d0b5
fix matchMedia stub
cherniavskii Aug 8, 2024
fb12801
fix failing test
cherniavskii Aug 8, 2024
29c5ec4
temp: use monorepo version from the PR
cherniavskii Aug 9, 2024
1e4d2c1
Revert "temp: use monorepo version from the PR"
cherniavskii Aug 9, 2024
b198bcb
temp: use test utils from a PR
cherniavskii Aug 9, 2024
7e4e8c7
pnpm dedupe
cherniavskii Aug 9, 2024
0ef6096
Merge branch 'master' into material-ui-v6
cherniavskii Aug 12, 2024
080e02c
fix test
cherniavskii Aug 12, 2024
38a27b4
lint
cherniavskii Aug 12, 2024
f1ca4a5
use material ui v6 in the docs
cherniavskii Aug 12, 2024
e9f9c0f
Merge branch 'master' into material-ui-v6
cherniavskii Aug 13, 2024
4a90723
bump material in the root package.json
cherniavskii Aug 13, 2024
5fb0be8
proptypes
LukasTy Aug 13, 2024
9c9bece
Propagate `slots` and `slotProps` to fields
LukasTy Aug 13, 2024
ff76fa7
Bumo remaining dev material deps to v6
LukasTy Aug 14, 2024
658db02
Merge remote-tracking branch 'upstream/master' into material-ui-v6
LukasTy Aug 14, 2024
13299eb
Fix import
LukasTy Aug 14, 2024
4210fbe
Merge remote-tracking branch 'upstream/master' into material-ui-v6
LukasTy Aug 14, 2024
0e7395b
docs:api
LukasTy Aug 14, 2024
706969e
Bump `system` and `utils` to v6
LukasTy Aug 14, 2024
3ea45df
Use stable `CssVarsProvider`
LukasTy Aug 14, 2024
52753e9
Use stable grid and working API
LukasTy Aug 14, 2024
70a5b1d
Merge branch 'master' into material-ui-v6
cherniavskii Aug 16, 2024
0fd9edb
Merge branch 'master' into material-ui-v6
cherniavskii Aug 19, 2024
938c714
fix failing test
cherniavskii Aug 19, 2024
1ef093e
dedupe
LukasTy Aug 19, 2024
367a893
Merge remote-tracking branch 'upstream/master' into material-ui-v6
LukasTy Aug 19, 2024
6d8c54e
dedupe
LukasTy Aug 19, 2024
2f39b71
Merge branch 'master' into material-ui-v6
cherniavskii Aug 19, 2024
f3b885b
use waitFor where necessary only
cherniavskii Aug 19, 2024
5115974
remove waitFor
cherniavskii Aug 19, 2024
f8a13ab
fix act warnings in test:unit
cherniavskii Aug 19, 2024
8a5b09f
Merge branch 'master' into material-ui-v6
cherniavskii Aug 19, 2024
4080545
Merge remote-tracking branch 'upstream/master' into material-ui-v6
LukasTy Aug 20, 2024
c14d7f7
Fix lock file
LukasTy Aug 20, 2024
6ccf1b8
get rid of waitFor
cherniavskii Aug 20, 2024
1e43dc0
Merge branch 'master' into material-ui-v6
cherniavskii Aug 20, 2024
683a4d7
update lockfile
cherniavskii Aug 20, 2024
511a9b4
fix merge
cherniavskii Aug 20, 2024
69412eb
temp: Revert "Propagate `slots` and `slotProps` to fields"
cherniavskii Aug 20, 2024
bf0c1be
fix ts issues
cherniavskii Aug 20, 2024
fbbcd55
fix errors in jsdom tests
cherniavskii Aug 20, 2024
9933919
fix errors in jsdom tests
cherniavskii Aug 20, 2024
8734cc5
fix browser tests
cherniavskii Aug 20, 2024
0df4c92
flush microtasks
cherniavskii Aug 20, 2024
bb4ed81
mock deprecated methods as well
cherniavskii Aug 20, 2024
1cdb9d2
Merge branch 'master' into material-ui-v6
cherniavskii Aug 20, 2024
052064d
Merge remote-tracking branch 'mui/master' into material-ui-v6
cherniavskii Aug 21, 2024
28878a2
automate @mui/material version testing
cherniavskii Aug 21, 2024
5f387e6
use @mui/material v5
cherniavskii Aug 21, 2024
c63a240
use v5 imports
cherniavskii Aug 21, 2024
e7e1ded
Merge remote-tracking branch 'mui/master' into material-ui-v6
cherniavskii Aug 21, 2024
d43e721
update lockfile
cherniavskii Aug 21, 2024
bf97234
proptypes
LukasTy Aug 21, 2024
32ef7c5
docs:api
LukasTy Aug 21, 2024
88fefcd
Use `>=` v6 specifier
LukasTy Aug 21, 2024
8455ec7
Use more specific v6 `^` version specifier
LukasTy Aug 21, 2024
9f509d4
update supported version range for @mui/material peer dep
cherniavskii Aug 21, 2024
65ba268
add use-material-ui-v6 script
cherniavskii Aug 21, 2024
9c6b41d
add material-ui-v6 workflow
cherniavskii Aug 21, 2024
cbf3d26
fix workflow
cherniavskii Aug 21, 2024
52004b4
try to fix skipped step
cherniavskii Aug 21, 2024
03793d1
exit with proper code
cherniavskii Aug 21, 2024
ec08b52
--no-frozen-lockfile
cherniavskii Aug 21, 2024
3ce39ea
fix jobs names
cherniavskii Aug 21, 2024
8175906
Merge remote-tracking branch 'mui/master' into material-ui-v6
cherniavskii Aug 21, 2024
4663687
Avoid using `Grid2` because of unstable behavior between v6 and v5
LukasTy Aug 22, 2024
d5694b9
Merge remote-tracking branch 'upstream/master' into material-ui-v6
LukasTy Aug 22, 2024
e03bf63
remove unnecessary from the readme
cherniavskii Aug 22, 2024
33b61ac
update readme
cherniavskii Aug 22, 2024
5c0267c
format
cherniavskii Aug 22, 2024
1a9b909
update readme
cherniavskii Aug 22, 2024
e8ed9c9
update readme
cherniavskii Aug 22, 2024
cc54863
update patch
cherniavskii Aug 22, 2024
10684a9
fix applying 0-unified patch
cherniavskii Aug 22, 2024
30ba53b
update readme
cherniavskii Aug 22, 2024
8bc293b
ignore material ui v6 warnings
cherniavskii Aug 22, 2024
983e44e
use createTheme instead of extendTheme
cherniavskii Aug 22, 2024
a7789df
add test_types job to material-ui-v6 workflow
cherniavskii Aug 22, 2024
6fc6b5f
only diff specific folders after docs:typescript:formatted
cherniavskii Aug 22, 2024
2856ca6
Make `@mui/system` a peer dep
LukasTy Aug 23, 2024
4fa883e
update patch
cherniavskii Aug 23, 2024
30b0113
fix ignored warnings check
cherniavskii Aug 23, 2024
27719dd
Merge remote-tracking branch 'mui/master' into material-ui-v6
cherniavskii Aug 23, 2024
6262ce2
use pnpm update instead of git patch
cherniavskii Aug 23, 2024
e84a016
format test/package.json
cherniavskii Aug 23, 2024
0fdb1a7
Test `@mui/system` dependency with `||` case
LukasTy Aug 23, 2024
ae64e19
Test `>=` specifier
LukasTy Aug 26, 2024
567b805
Revert "Test `>=` specifier"
LukasTy Aug 26, 2024
087882a
Revert "Test `@mui/system` dependency with `||` case"
LukasTy Aug 26, 2024
20b8a85
Align `@mui/system` peer dep version with `@mui/material`
LukasTy Aug 26, 2024
8fa45f1
Merge remote-tracking branch 'upstream/master' into material-ui-v6
LukasTy Aug 26, 2024
555d8e1
Don't update `@mui/system` as it's a peer dependency now
LukasTy Aug 26, 2024
af2f7f3
Try updating only what is relevant to packages (excluding `docs`)
LukasTy Aug 26, 2024
98fcced
prettier
LukasTy Aug 26, 2024
5932ead
fix failing browser test
cherniavskii Aug 26, 2024
9b8d679
Merge branch 'master' into material-ui-v6
cherniavskii Aug 26, 2024
c045f74
avoid visual regression with material-ui-v6
cherniavskii Aug 26, 2024
ba041e2
avoid visual regressions between v5 and v6
cherniavskii Aug 26, 2024
e5650dd
Merge branch 'master' into material-ui-v6
cherniavskii Aug 27, 2024
ddcb5c7
Merge branch 'master' into material-ui-v6
cherniavskii Aug 27, 2024
442ad04
Remove no longer needed version case
LukasTy Aug 27, 2024
9234725
Use `6.x` in the script for material v6
LukasTy Aug 27, 2024
00d0080
Merge remote-tracking branch 'upstream/master' into material-ui-v6
LukasTy Aug 27, 2024
6e5c397
dedupe
LukasTy Aug 27, 2024
767d9f1
Forgot this one :(
LukasTy Aug 27, 2024
6335c86
Try reverting `flushMicrotasks` usage
LukasTy Aug 27, 2024
b88a0aa
These as well
LukasTy Aug 27, 2024
3ef28ea
And a few more
LukasTy Aug 27, 2024
9d35f08
Fix majority of tests on @mui/material@6
LukasTy Aug 28, 2024
efcf5e6
fix data grid tests
cherniavskii Aug 28, 2024
ad1ef0a
fix pickers test
cherniavskii Aug 28, 2024
540d383
Merge branch 'master' into material-ui-v6
cherniavskii Aug 28, 2024
39805f5
Fix 2 open/close Pickers tests
LukasTy Aug 29, 2024
af8eefe
Remove no longer relevant `experimental_extendTheme` error message ex…
LukasTy Aug 29, 2024
054893f
prettier
LukasTy Aug 29, 2024
e64adb1
Merge branch 'master' into material-ui-v6
cherniavskii Aug 29, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"@emotion/styled": "^11.13.0",
"@mui/icons-material": "^5.16.5",
"@mui/internal-markdown": "^1.0.9",
"@mui/internal-test-utils": "^1.0.7",
"@mui/internal-test-utils": "https://pkg.csb.dev/mui/material-ui/commit/225876f7/@mui/internal-test-utils",
"@mui/material": "^5.16.5",
"@mui/monorepo": "github:mui/material-ui#4a82b6b0e0395db8fa0a0d49b6b76de4516b1579",
"@mui/utils": "^5.16.5",
Expand Down
3 changes: 2 additions & 1 deletion packages/x-charts-pro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
"peerDependencies": {
"@emotion/react": "^11.9.0",
"@emotion/styled": "^11.8.1",
"@mui/material": "^5.15.14",
"@mui/material": "^5.15.14 || ^6",
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0"
},
Expand All @@ -66,6 +66,7 @@
}
},
"devDependencies": {
"@mui/material": "next",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The dev dependency here is the key to running the tests against the specific version of @mui/material.

"@react-spring/core": "^9.7.4",
"@react-spring/shared": "^9.7.4",
"@types/prop-types": "^15.7.12",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ import { createRenderer, screen, waitFor } from '@mui/internal-test-utils';
import { LicenseInfo } from '@mui/x-license';
import { sharedLicenseStatuses } from '@mui/x-license/useLicenseVerifier/useLicenseVerifier';
import { ResponsiveChartContainerPro } from './ResponsiveChartContainerPro';
// eslint-disable-next-line import/order
import packageJson from '@mui/material/package.json';

// eslint-disable-next-line no-console
console.log(`@mui/x-charts-pro: @mui/material version`, packageJson.version);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is to make sure that tests are actually using @mui/material@^6:


describe('<ResponsiveChartContainerPro /> - License', () => {
const { render } = createRenderer();
Expand Down
5 changes: 3 additions & 2 deletions packages/x-charts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"peerDependencies": {
"@emotion/react": "^11.9.0",
"@emotion/styled": "^11.8.1",
"@mui/material": "^5.15.14",
"@mui/material": "^5.15.14 || ^6",
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0"
},
Expand All @@ -64,7 +64,8 @@
}
},
"devDependencies": {
"@mui/internal-test-utils": "^1.0.7",
"@mui/internal-test-utils": "https://pkg.csb.dev/mui/material-ui/commit/225876f7/@mui/internal-test-utils",
"@mui/material": "next",
"@react-spring/core": "^9.7.4",
"@react-spring/shared": "^9.7.4",
"@types/prop-types": "^15.7.12",
Expand Down
4 changes: 4 additions & 0 deletions packages/x-charts/src/BarChart/BarChart.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import * as React from 'react';
import { createRenderer, describeConformance } from '@mui/internal-test-utils';
import { BarChart } from '@mui/x-charts/BarChart';
import packageJson from '@mui/material/package.json';

// eslint-disable-next-line no-console
console.log(`@mui/x-charts: @mui/material version`, packageJson.version);

describe('<BarChart />', () => {
const { render } = createRenderer();
Expand Down
5 changes: 3 additions & 2 deletions packages/x-data-grid-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,15 @@
"lru-cache": "^10.4.3"
},
"devDependencies": {
"@mui/material": "next",
"@types/chance": "^1.1.6",
"rimraf": "^5.0.9"
},
"peerDependencies": {
"@emotion/react": "^11.9.0",
"@emotion/styled": "^11.8.1",
"@mui/icons-material": "^5.4.1",
"@mui/material": "^5.15.14",
"@mui/icons-material": "^5.4.1 || ^6",
"@mui/material": "^5.15.14 || ^6",
"react": "^17.0.0 || ^18.0.0"
},
"peerDependenciesMeta": {
Expand Down
5 changes: 3 additions & 2 deletions packages/x-data-grid-premium/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@
"peerDependencies": {
"@emotion/react": "^11.9.0",
"@emotion/styled": "^11.8.1",
"@mui/material": "^5.15.14",
"@mui/material": "^5.15.14 || ^6",
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0"
},
Expand All @@ -72,7 +72,8 @@
}
},
"devDependencies": {
"@mui/internal-test-utils": "^1.0.7",
"@mui/internal-test-utils": "https://pkg.csb.dev/mui/material-ui/commit/225876f7/@mui/internal-test-utils",
"@mui/material": "next",
"@types/prop-types": "^15.7.12",
"date-fns": "^2.30.0",
"rimraf": "^5.0.9"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ import {
useGridApiRef,
GridColDef,
} from '@mui/x-data-grid-premium';
import packageJson from '@mui/material/package.json';

// eslint-disable-next-line no-console
console.log(`@mui/x-data-grid-premium: @mui/material version`, packageJson.version);

const isJSDOM = /jsdom/.test(window.navigator.userAgent);

Expand Down
5 changes: 3 additions & 2 deletions packages/x-data-grid-pro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"peerDependencies": {
"@emotion/react": "^11.9.0",
"@emotion/styled": "^11.8.1",
"@mui/material": "^5.15.14",
"@mui/material": "^5.15.14 || ^6",
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0"
},
Expand All @@ -70,7 +70,8 @@
}
},
"devDependencies": {
"@mui/internal-test-utils": "^1.0.7",
"@mui/internal-test-utils": "https://pkg.csb.dev/mui/material-ui/commit/225876f7/@mui/internal-test-utils",
"@mui/material": "next",
"@types/prop-types": "^15.7.12",
"rimraf": "^5.0.9"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ 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/internal-test-utils';
import packageJson from '@mui/material/package.json';

// eslint-disable-next-line no-console
console.log(`@mui/x-data-grid-pro: @mui/material version`, packageJson.version);

function logViolations(violations: any) {
if (violations.length !== 0) {
Expand Down
5 changes: 3 additions & 2 deletions packages/x-data-grid/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
"peerDependencies": {
"@emotion/react": "^11.9.0",
"@emotion/styled": "^11.8.1",
"@mui/material": "^5.15.14",
"@mui/material": "^5.15.14 || ^6",
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0"
},
Expand All @@ -71,8 +71,9 @@
}
},
"devDependencies": {
"@mui/internal-test-utils": "^1.0.7",
"@mui/internal-test-utils": "https://pkg.csb.dev/mui/material-ui/commit/225876f7/@mui/internal-test-utils",
"@mui/joy": "^5.0.0-beta.48",
"@mui/material": "next",
"@mui/types": "^7.2.15",
"@types/prop-types": "^15.7.12",
"rimraf": "^5.0.9"
Expand Down
4 changes: 4 additions & 0 deletions packages/x-data-grid/src/tests/cells.DataGrid.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ import { expect } from 'chai';
import { DataGrid, GridValueFormatter } from '@mui/x-data-grid';
import { getCell } from 'test/utils/helperFn';
import { getBasicGridData } from '@mui/x-data-grid-generator';
import packageJson from '@mui/material/package.json';

// eslint-disable-next-line no-console
console.log(`@mui/x-data-grid: @mui/material version`, packageJson.version);

const isJSDOM = /jsdom/.test(window.navigator.userAgent);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ describe('<DataGrid /> - Row selection', () => {
fireEvent.keyDown(cell, { key: 'ArrowLeft' });
fireEvent.keyDown(getCell(1, 0).querySelector('input')!, { key: 'ArrowUp' });
clock.runToLast(); // Wait for transition
expect(document.querySelectorAll('.MuiTouchRipple-rippleVisible')).to.have.length(1);
expect(document.querySelectorAll('.MuiTouchRipple-rippleVisible')).to.have.length(0);
cherniavskii marked this conversation as resolved.
Show resolved Hide resolved
});
});
});
Expand Down
5 changes: 3 additions & 2 deletions packages/x-date-pickers-pro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
"peerDependencies": {
"@emotion/react": "^11.9.0",
"@emotion/styled": "^11.8.1",
"@mui/material": "^5.15.14",
"@mui/material": "^5.15.14 || ^6",
"date-fns": "^2.25.0 || ^3.2.0",
"date-fns-jalali": "^2.13.0-0 || ^3.2.0-0",
"dayjs": "^1.10.7",
Expand Down Expand Up @@ -95,7 +95,8 @@
}
},
"devDependencies": {
"@mui/internal-test-utils": "^1.0.7",
"@mui/internal-test-utils": "https://pkg.csb.dev/mui/material-ui/commit/225876f7/@mui/internal-test-utils",
"@mui/material": "next",
"@types/luxon": "^3.4.2",
"@types/prop-types": "^15.7.12",
"date-fns": "^2.30.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ import {
import { DateRangePickerDay } from '@mui/x-date-pickers-pro/DateRangePickerDay';
import { describeConformance } from 'test/utils/describeConformance';
import { RangePosition } from '../models';
// eslint-disable-next-line import/order
import packageJson from '@mui/material/package.json';

// eslint-disable-next-line no-console
console.log(`@mui/x-date-pickers-pro: @mui/material version`, packageJson.version);

const getPickerDay = (name: string, picker = 'January 2018') =>
getByRole(screen.getByRole('grid', { name: picker }), 'gridcell', { name });
Expand Down
5 changes: 3 additions & 2 deletions packages/x-date-pickers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"peerDependencies": {
"@emotion/react": "^11.9.0",
"@emotion/styled": "^11.8.1",
"@mui/material": "^5.15.14",
"@mui/material": "^5.15.14 || ^6",
"date-fns": "^2.25.0 || ^3.2.0",
"date-fns-jalali": "^2.13.0-0 || ^3.2.0-0",
"dayjs": "^1.10.7",
Expand Down Expand Up @@ -97,7 +97,8 @@
}
},
"devDependencies": {
"@mui/internal-test-utils": "^1.0.7",
"@mui/internal-test-utils": "https://pkg.csb.dev/mui/material-ui/commit/225876f7/@mui/internal-test-utils",
"@mui/material": "next",
"@types/luxon": "^3.4.2",
"@types/moment-hijri": "^2.1.4",
"@types/moment-jalaali": "^0.7.9",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ import {
getDateSectionConfigFromFormatToken,
cleanLeadingZeros,
} from '../internals/hooks/useField/useField.utils';
// eslint-disable-next-line import/order
import packageJson from '@mui/material/package.json';

// eslint-disable-next-line no-console
console.log(`@mui/x-date-pickers: @mui/material version`, packageJson.version);

const testDate = '2018-05-15T09:35:10';

Expand Down
2 changes: 1 addition & 1 deletion packages/x-internals/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"react": "^17.0.0 || ^18.0.0"
},
"devDependencies": {
"@mui/internal-test-utils": "^1.0.7",
"@mui/internal-test-utils": "https://pkg.csb.dev/mui/material-ui/commit/225876f7/@mui/internal-test-utils",
"rimraf": "^5.0.9"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion packages/x-license/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"react": "^17.0.0 || ^18.0.0"
},
"devDependencies": {
"@mui/internal-test-utils": "^1.0.7",
"@mui/internal-test-utils": "https://pkg.csb.dev/mui/material-ui/commit/225876f7/@mui/internal-test-utils",
"rimraf": "^5.0.9"
},
"engines": {
Expand Down
5 changes: 3 additions & 2 deletions packages/x-tree-view-pro/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"peerDependencies": {
"@emotion/react": "^11.9.0",
"@emotion/styled": "^11.8.1",
"@mui/material": "^5.15.14",
"@mui/material": "^5.15.14 || ^6",
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0"
},
Expand All @@ -69,7 +69,8 @@
}
},
"devDependencies": {
"@mui/internal-test-utils": "^1.0.7",
"@mui/internal-test-utils": "https://pkg.csb.dev/mui/material-ui/commit/225876f7/@mui/internal-test-utils",
"@mui/material": "next",
"@types/prop-types": "^15.7.12",
"rimraf": "^5.0.9"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@ import {
richTreeViewProClasses as classes,
} from '@mui/x-tree-view-pro/RichTreeViewPro';
import { describeConformance } from 'test/utils/describeConformance';
// eslint-disable-next-line import/order
import packageJson from '@mui/material/package.json';

// eslint-disable-next-line no-console
console.log(`@mui/x-tree-view-pro: @mui/material version`, packageJson.version);

describe('<RichTreeViewPro />', () => {
const { render } = createRenderer();
Expand Down
5 changes: 3 additions & 2 deletions packages/x-tree-view/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"peerDependencies": {
"@emotion/react": "^11.9.0",
"@emotion/styled": "^11.8.1",
"@mui/material": "^5.15.14",
"@mui/material": "^5.15.14 || ^6",
"react": "^17.0.0 || ^18.0.0",
"react-dom": "^17.0.0 || ^18.0.0"
},
Expand All @@ -68,7 +68,8 @@
}
},
"devDependencies": {
"@mui/internal-test-utils": "^1.0.7",
"@mui/internal-test-utils": "https://pkg.csb.dev/mui/material-ui/commit/225876f7/@mui/internal-test-utils",
"@mui/material": "next",
"@types/prop-types": "^15.7.12",
"rimraf": "^5.0.9"
},
Expand Down
5 changes: 5 additions & 0 deletions packages/x-tree-view/src/TreeItem/TreeItem.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ import { TreeViewContext } from '@mui/x-tree-view/internals/TreeViewProvider/Tre
import { describeConformance } from 'test/utils/describeConformance';
import { describeTreeView } from 'test/utils/tree-view/describeTreeView';
import { getFakeContextValue } from 'test/utils/tree-view/fakeContextValue';
// eslint-disable-next-line import/order
import packageJson from '@mui/material/package.json';

// eslint-disable-next-line no-console
console.log(`@mui/x-tree-view: @mui/material version`, packageJson.version);

describeTreeView<[]>('TreeItem component', ({ render, treeItemComponentName }) => {
describe('ContentComponent / ContentProps props (TreeItem only)', () => {
Expand Down
Loading