Skip to content

Commit

Permalink
Bump jsdom to ^25.0.1 (#44020)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: ZeeshanTamboli <zeeshan.tamboli@gmail.com>
  • Loading branch information
renovate[bot] and ZeeshanTamboli authored Nov 22, 2024
1 parent 5cb317b commit 7be6a2e
Show file tree
Hide file tree
Showing 4 changed files with 65 additions and 40 deletions.
2 changes: 1 addition & 1 deletion packages-internal/test-utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
"dom-accessibility-api": "^0.7.0",
"format-util": "^1.0.5",
"fs-extra": "^11.2.0",
"jsdom": "^24.0.0",
"jsdom": "^25.0.1",
"lodash": "^4.17.21",
"mocha": "^10.8.2",
"playwright": "^1.48.2",
Expand Down
7 changes: 6 additions & 1 deletion packages/mui-material/test/integration/MenuList.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,12 @@ describe('<MenuList> integration', () => {
expect(getByText('Arcansas')).toHaveFocus();
});

it('should not get focusVisible class on click', async () => {
it('should not get focusVisible class on click', async function test() {
if (/jsdom/.test(window.navigator.userAgent)) {
// JSDOM doesn't support :focus-visible
this.skip();
}

const { user, getByText } = render(
<MenuList>
<MenuItem focusVisibleClassName="focus-visible">Arizona</MenuItem>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ describe('useIsFocusVisible', () => {
describe('focus inside shadowRoot', () => {
before(function beforeHook() {
// Only run on HeadlessChrome which has native shadowRoot support.
// And jsdom which has limited support for shadowRoot (^12.0.0).
if (!/HeadlessChrome|jsdom/.test(window.navigator.userAgent)) {
if (!/HeadlessChrome/.test(window.navigator.userAgent)) {
this.skip();
}
});
Expand Down
93 changes: 57 additions & 36 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7be6a2e

Please sign in to comment.