mui / material-ui

Material UI: Ready-to-use foundational React components, free forever. It includes Material UI, which implements Google's Material Design.
https://mui.com/material-ui/
MIT License
91.73k stars 31.51k forks source link

Bump @testing-library/dom to ^10.1.0 #41989

Open renovate[bot] opened 2 weeks ago

renovate[bot] commented 2 weeks ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@testing-library/dom ^9.3.4 -> ^10.1.0 age adoption passing confidence

Release Notes

testing-library/dom-testing-library (@​testing-library/dom) ### [`v10.1.0`](https://togithub.com/testing-library/dom-testing-library/releases/tag/v10.1.0) [Compare Source](https://togithub.com/testing-library/dom-testing-library/compare/v10.0.0...v10.1.0) ##### Features - Add window events "pagehide" / "pageshow" ([#​1308](https://togithub.com/testing-library/dom-testing-library/issues/1308)) ([56543d5](https://togithub.com/testing-library/dom-testing-library/commit/56543d51a8776d3bc7fa9b947771ce5308bf5df4)) ### [`v10.0.0`](https://togithub.com/testing-library/dom-testing-library/releases/tag/v10.0.0) [Compare Source](https://togithub.com/testing-library/dom-testing-library/compare/v9.3.4...v10.0.0) ##### Bug Fixes - use defineProperty on the error object instead of setting the message directly ([#​1268](https://togithub.com/testing-library/dom-testing-library/issues/1268)) ([3580f25](https://togithub.com/testing-library/dom-testing-library/commit/3580f25bd765cedb70889b2cf716085023d8c314)), closes [#​1259](https://togithub.com/testing-library/dom-testing-library/issues/1259) ##### Features - Drop support for Node.js 14.x and Node.js 16.x and add support for Node 20.x ([#​1255](https://togithub.com/testing-library/dom-testing-library/issues/1255)) ([452097b](https://togithub.com/testing-library/dom-testing-library/commit/452097b35a207341f5328b997dfc901461a4e9d9)) - upgrade aria-query to 5.3.0 ([#​1241](https://togithub.com/testing-library/dom-testing-library/issues/1241)) ([2c57055](https://togithub.com/testing-library/dom-testing-library/commit/2c570553d8f31b008451398152a9bd30bce362b3)), closes [#​1240](https://togithub.com/testing-library/dom-testing-library/issues/1240) ##### BREAKING CHANGES - Minimum supported Node.js version is 18.0 - New version of `aria-query` changes various roles. Check out the changed tests in [`2c57055`](https://togithub.com/testing-library/dom-testing-library/commit/2c57055) to get an overview about what changed.

Configuration

📅 Schedule: Branch creation - "on sunday before 6:00am" in timezone UTC, Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.



This PR has been generated by Mend Renovate. View repository job log here.

mui-bot commented 2 weeks ago

Netlify deploy preview

https://deploy-preview-41989--material-ui.netlify.app/

Bundle size report

No bundle size changes (Toolpad) No bundle size changes

Generated by :no_entry_sign: dangerJS against b6c77842033880609405ae40597b9b947b907dac

ZeeshanTamboli commented 1 week ago

Tests using @testing-library/user-event fail here because it now relies on @testing-library/dom v10, while @testing-library/react v14 still uses v9 of @testing-library/dom. This mismatch results in test failures due to multiple versions of the DOM testing library. Updating @testing-library/react to v15, which aligns with DTL v10, will resolve this issue, ensuring only one version of DTL (v10) is used and allowing these tests to pass.