From 46c30b332279cab9eff532245efa090d9337ad40 Mon Sep 17 00:00:00 2001 From: Marco Ciampini Date: Wed, 9 Sep 2026 16:36:39 +0200 Subject: [PATCH 1/4] Test: Update Vitest to version 5 --- .gitignore | 1 + package-lock.json | 1525 ++++++++++++----- packages/a11y/package.json | 4 +- packages/abilities/package.json | 2 +- packages/admin-ui/package.json | 6 +- packages/annotations/package.json | 2 +- packages/api-fetch/package.json | 2 +- packages/autop/package.json | 2 +- .../package.json | 2 +- packages/babel-plugin-makepot/package.json | 2 +- packages/babel-preset-default/package.json | 2 +- packages/blob/global.d.ts | 1 + packages/blob/package.json | 4 +- packages/block-directory/package.json | 4 +- packages/block-editor/package.json | 4 +- packages/block-library/package.json | 6 +- .../utils/test/waveform-player.jsdom.test.jsx | 2 +- .../utils/test/waveform-utils.jsdom.test.js | 2 +- .../package.json | 2 +- .../package.json | 2 +- packages/blocks/package.json | 2 +- packages/browserslist-config/package.json | 2 +- packages/components/package.json | 6 +- packages/compose/package.json | 4 +- .../test/index.jsdom.test.ts | 37 + .../use-resize-observer.ts | 14 +- packages/connectors/package.json | 2 +- packages/core-commands/package.json | 2 +- packages/core-data/package.json | 4 +- packages/customize-widgets/package.json | 4 +- packages/data-controls/package.json | 2 +- packages/data/package.json | 4 +- packages/dataviews/package.json | 6 +- packages/date/package.json | 2 +- .../package.json | 2 +- packages/deprecated/package.json | 2 +- packages/design-system-mcp/package.json | 2 +- packages/docgen/package.json | 2 +- packages/dom-ready/package.json | 2 +- packages/dom/package.json | 2 +- packages/edit-post/package.json | 4 +- packages/edit-site/package.json | 2 +- packages/edit-widgets/package.json | 4 +- packages/editor/global.d.ts | 1 + packages/editor/package.json | 6 +- packages/element/package.json | 4 +- packages/env/package.json | 2 +- packages/escape-html/package.json | 2 +- packages/eslint-plugin/package.json | 2 +- packages/fields/package.json | 2 +- packages/format-library/package.json | 4 +- packages/global-styles-engine/package.json | 2 +- packages/global-styles-ui/package.json | 4 +- packages/grid/global.d.ts | 1 + packages/grid/package.json | 6 +- packages/hooks/package.json | 2 +- packages/html-entities/package.json | 2 +- packages/i18n/package.json | 2 +- packages/icons/package.json | 6 +- .../icons/src/icon/test/index.jsdom.test.tsx | 1 + packages/interactivity-router/package.json | 4 +- packages/interactivity/package.json | 2 +- .../interactivity/src/test/vdom.jsdom.test.ts | 9 +- packages/interface/package.json | 4 +- packages/is-shallow-equal/package.json | 2 +- packages/jest-console/package.json | 2 +- packages/jest-console/tsconfig.json | 2 +- packages/jest-preset-default/package.json | 2 +- packages/kebab-case/package.json | 2 +- packages/keycodes/package.json | 2 +- packages/media-editor/global.d.ts | 1 + packages/media-editor/package.json | 6 +- packages/media-fields/package.json | 6 +- packages/media-utils/package.json | 6 +- packages/notices/package.json | 6 +- .../npm-package-json-lint-config/package.json | 2 +- packages/nux/package.json | 4 +- packages/plugins/package.json | 4 +- packages/postcss-themes/package.json | 2 +- packages/preferences-persistence/package.json | 2 +- packages/preferences/package.json | 2 +- packages/prettier-config/package.json | 2 +- packages/priority-queue/package.json | 2 +- packages/private-apis/package.json | 2 +- .../package.json | 2 +- .../package.json | 2 +- packages/redux-routine/package.json | 2 +- packages/report-flaky-tests/package.json | 2 +- packages/rich-text/package.json | 2 +- packages/scripts/package.json | 2 +- packages/server-side-render/package.json | 2 +- packages/shortcode/package.json | 2 +- packages/style-engine/package.json | 2 +- packages/style-runtime/package.json | 4 +- packages/stylelint-config/package.json | 2 +- packages/sync/package.json | 2 +- packages/theme/global.d.ts | 1 + packages/theme/package.json | 6 +- .../test/__snapshots__/index.test.ts.snap | 4 +- packages/token-list/package.json | 2 +- packages/ui/global.d.ts | 1 + packages/ui/package.json | 6 +- packages/undo-manager/package.json | 2 +- packages/upload-media/package.json | 2 +- packages/url/package.json | 2 +- packages/video-conversion/package.json | 2 +- packages/viewport/package.json | 4 +- packages/views/package.json | 4 +- packages/vips/package.json | 2 +- packages/warning/package.json | 2 +- packages/widget-dashboard/package.json | 6 +- packages/widget-primitives/package.json | 4 +- packages/wordcount/package.json | 2 +- packages/worker-threads/package.json | 2 +- packages/wp-build/package.json | 2 +- routes/connectors-home/package.json | 6 +- routes/dashboard/global.d.ts | 1 + routes/dashboard/package.json | 6 +- storybook/package.json | 4 +- test/integration/package.json | 4 +- test/unit/package.json | 10 +- .../scripts/test-infrastructure-policy.mjs | 5 + .../test/test-infrastructure-policy.test.js | 5 +- .../scripts/test/vitest-isolation.test.js | 2 +- .../gutenberg-vitest-test-env/index.d.ts | 34 +- test/unit/vitest.config.mjs | 3 + tools/agents/package.json | 2 +- tools/build-scripts/package.json | 2 +- tools/pr-meta/package.json | 2 +- tools/release/package.json | 2 +- tools/stylelint/package.json | 2 +- tools/validation/package.json | 2 +- 132 files changed, 1349 insertions(+), 642 deletions(-) create mode 100644 packages/compose/src/hooks/use-resize-observer/test/index.jsdom.test.ts diff --git a/.gitignore b/.gitignore index f4fe7dbce1d99e..e3e8b6ccabd04e 100644 --- a/.gitignore +++ b/.gitignore @@ -32,6 +32,7 @@ yarn.lock /.cache/** !/.cache/.gitkeep +.vitest .eslintcache *.tsbuildinfo /test/unit/.vitest-*-typecheck.json diff --git a/package-lock.json b/package-lock.json index fb49c243894e9e..b98dd9eaa2b9e0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2264,9 +2264,9 @@ "license": "MIT" }, "node_modules/@blazediff/core": { - "version": "1.9.1", - "resolved": "https://registry.npmjs.org/@blazediff/core/-/core-1.9.1.tgz", - "integrity": "sha512-ehg3jIkYKulZh+8om/O25vkvSsXXwC+skXmyA87FFx6A/45eqOkZsBltMw/TVteb0mloiGT8oGRTcjRAz66zaA==", + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@blazediff/core/-/core-1.10.0.tgz", + "integrity": "sha512-AOQff0zgR7cGsZL+4E7hVkmujoPUpm0J9xzWGWZj5wCjd3gmxESXAPfKyuzs93VdpQNFhHlBhfOjrcZ+XTERtQ==", "dev": true, "license": "MIT" }, @@ -3587,9 +3587,9 @@ } }, "node_modules/@flakiness/vitest": { - "version": "1.9.0", - "resolved": "https://registry.npmjs.org/@flakiness/vitest/-/vitest-1.9.0.tgz", - "integrity": "sha512-13HkpcFJh03+PsFPT1+8u4XjohY9YTLGz4v1rjtuPtVZ6FgRs+eUJrKFF8GpNa3Xlr5DwgjgxunVhI1vqyoR4g==", + "version": "1.9.2", + "resolved": "https://registry.npmjs.org/@flakiness/vitest/-/vitest-1.9.2.tgz", + "integrity": "sha512-dZwXW0vzjqNCiH056ADChmzOloHW6iKWIwJRnl3GGi8PdZRB3k+N9zLgXIhiaReXL+pC2spIsywh8qt1AYiHyQ==", "dev": true, "license": "MIT", "engines": { @@ -15107,9 +15107,9 @@ "license": "MIT" }, "node_modules/@testing-library/react": { - "version": "16.3.2", - "resolved": "https://registry.npmjs.org/@testing-library/react/-/react-16.3.2.tgz", - "integrity": "sha512-XU5/SytQM+ykqMnAnvB2umaJNIOsLF3PVv//1Ew4CTcpz0/BRyy/af40qqrt7SjKpDdT1saBMc42CUok5gaw+g==", + "version": "16.3.3", + "resolved": "https://registry.npmjs.org/@testing-library/react/-/react-16.3.3.tgz", + "integrity": "sha512-Uo193NgQbPMz6lrrhtRQQFcMC6Re/ELLFbbuVL30WDlZxlpZf9/lMHTAVxPRLw1q1iu9OJmR1c2BLiENRstdBg==", "dev": true, "license": "MIT", "dependencies": { @@ -17046,45 +17046,46 @@ } }, "node_modules/@vitest/browser": { - "version": "4.1.10", - "resolved": "https://registry.npmjs.org/@vitest/browser/-/browser-4.1.10.tgz", - "integrity": "sha512-UDwuWGwXj646CBx/bQHOaJSX7np0I8JL/UKQYa1e4QrVHH8VdWtx8eaOuf8sy0ShwDgR6NjJAsp5eF6vjF6qng==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@vitest/browser/-/browser-5.0.0.tgz", + "integrity": "sha512-JC9FG5xIRxPHXJPcdCaluIJcEoeM0IwGQ3xneuJk09LXKHRNs40BqWDWymQikbb20yOpYvzpKzmYgPRuSzKmvg==", "dev": true, "license": "MIT", "dependencies": { - "@blazediff/core": "1.9.1", - "@vitest/mocker": "4.1.10", - "@vitest/utils": "4.1.10", - "magic-string": "^0.30.21", + "@blazediff/core": "1.10.0", + "@vitest/mocker": "5.0.0", + "@vitest/ui": "5.0.0", + "@vitest/utils": "5.0.0", + "magic-string": "^1.2.3", "pngjs": "^7.0.0", "sirv": "^3.0.2", - "tinyrainbow": "^3.1.0", - "ws": "^8.19.0" + "tinyrainbow": "^3.1.1", + "ws": "^8.21.3" }, "funding": { "url": "https://opencollective.com/vitest" }, "peerDependencies": { - "vitest": "4.1.10" + "vitest": "5.0.0" } }, "node_modules/@vitest/browser-playwright": { - "version": "4.1.10", - "resolved": "https://registry.npmjs.org/@vitest/browser-playwright/-/browser-playwright-4.1.10.tgz", - "integrity": "sha512-nMoXGEiRpT7m3W7NsbvrM2aKNwiNHZf+zEpUCvMteGjZFvfT96Q9fh7QyB98dvDWXiKvrLxA7bJ1mCOOv+JQPw==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@vitest/browser-playwright/-/browser-playwright-5.0.0.tgz", + "integrity": "sha512-N+gED9y4/8pypaHjz/x0ah3CjoBr+N0hWWT+Gq4VXtMzyB+rUIdHni0ulzpD1j4H77iWy5Jg8PRMlVn6kjxo6g==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/browser": "4.1.10", - "@vitest/mocker": "4.1.10", - "tinyrainbow": "^3.1.0" + "@vitest/browser": "5.0.0", + "@vitest/mocker": "5.0.0", + "tinyrainbow": "^3.1.1" }, "funding": { "url": "https://opencollective.com/vitest" }, "peerDependencies": { "playwright": "*", - "vitest": "4.1.10" + "vitest": "5.0.0" }, "peerDependenciesMeta": { "playwright": { @@ -17103,28 +17104,28 @@ } }, "node_modules/@vitest/browser/node_modules/@vitest/pretty-format": { - "version": "4.1.10", - "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-4.1.10.tgz", - "integrity": "sha512-W1HsjSH4MXQ9YfmmhLAoIYf1HRfekQCGngeIgcei6MP5QQGWUe0gkopdZQaVCFO+JDJMrAJGwa5pRpNpvy4P8Q==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-5.0.0.tgz", + "integrity": "sha512-PVRNuB3wpReb4SQEs4zTKM4KWFhQ5pw3spE8naoDJNB5T5aWRzGKHwXcLUllr0WeOTXpB6bSr3CJLo5+7XQSSQ==", "dev": true, "license": "MIT", "dependencies": { - "tinyrainbow": "^3.1.0" + "tinyrainbow": "^3.1.1" }, "funding": { "url": "https://opencollective.com/vitest" } }, "node_modules/@vitest/browser/node_modules/@vitest/utils": { - "version": "4.1.10", - "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-4.1.10.tgz", - "integrity": "sha512-fy9am/HWxbaGt/Sawrp90vt6Y6jQwf1RX77cz3uwoJwJVMli/e1IEwRPnMNJ7vKfPTwo0diXifkpPvwH9v7nGA==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-5.0.0.tgz", + "integrity": "sha512-dO++xL3vDfvhTAVimfkuQUA3k+JClIF1i1vAkPqpcGAthRmeWnXmHB7YPViPvgCwviX8u7Y5W1u2N//AaQr3fw==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/pretty-format": "4.1.10", + "@vitest/pretty-format": "5.0.0", "convert-source-map": "^2.0.0", - "tinyrainbow": "^3.1.0" + "tinyrainbow": "^3.1.1" }, "funding": { "url": "https://opencollective.com/vitest" @@ -17137,6 +17138,16 @@ "dev": true, "license": "MIT" }, + "node_modules/@vitest/browser/node_modules/magic-string": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-1.2.3.tgz", + "integrity": "sha512-Bpb0W2TbLKOZ7vJnOUnVRGq3WL2p+ISV29M6hYPL1AFCpyKZpdr5ytiXoTSSxRVhg8YW7f65+6gbG8WG6PCa/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.5" + } + }, "node_modules/@vitest/browser/node_modules/sirv": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/sirv/-/sirv-3.0.2.tgz", @@ -17180,15 +17191,16 @@ } }, "node_modules/@vitest/mocker": { - "version": "4.1.10", - "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-4.1.10.tgz", - "integrity": "sha512-v0xaezt+DKEmKfaxg133ldzADrwLGd7Ze1MfQQTYfvs8OqZIwbxyxaYURivwV7sWy5fqn3rH5uOrSp07bp44Ow==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-5.0.0.tgz", + "integrity": "sha512-66PGTMIiVJP3t4a5yxU9qPtf7MdTBs8jmToMvy+HVflB3Yy13WJZTtPePdvU+wjRV02SKK5doLbSA6o9pwOmiA==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/spy": "4.1.10", + "@jridgewell/trace-mapping": "0.3.31", + "@vitest/spy": "5.0.0", "estree-walker": "^3.0.3", - "magic-string": "^0.30.21" + "magic-string": "^1.2.3" }, "funding": { "url": "https://opencollective.com/vitest" @@ -17207,9 +17219,9 @@ } }, "node_modules/@vitest/mocker/node_modules/@vitest/spy": { - "version": "4.1.10", - "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-4.1.10.tgz", - "integrity": "sha512-PLf/Ugvoq5wO/b4rwYCR1h2PSIdXz7wnkQFMiUpLdtM7l6pqVFcQIBEHyT1+l+cj7mNwAfZHzqXqDyjvOuwbDw==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-5.0.0.tgz", + "integrity": "sha512-uy+luWBAPw9XfthoHi5AkfHUnuPYEESjl0p/r+meoBnU8bxg5GDQ3Ey8MjcJ6sqahkL4PFyrvfMJJBw7LbU06g==", "dev": true, "license": "MIT", "funding": { @@ -17226,150 +17238,121 @@ "@types/estree": "^1.0.0" } }, - "node_modules/@vitest/pretty-format": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-3.2.4.tgz", - "integrity": "sha512-IVNZik8IVRJRTr9fxlitMKeJeXFFFN0JaB9PHPGQ8NKQbGpfjlTx9zO4RefN8gp7eqjNy8nyK3NZmBzOPeIxtA==", + "node_modules/@vitest/mocker/node_modules/magic-string": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-1.2.3.tgz", + "integrity": "sha512-Bpb0W2TbLKOZ7vJnOUnVRGq3WL2p+ISV29M6hYPL1AFCpyKZpdr5ytiXoTSSxRVhg8YW7f65+6gbG8WG6PCa/g==", "dev": true, "license": "MIT", "dependencies": { - "tinyrainbow": "^2.0.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" + "@jridgewell/sourcemap-codec": "^1.5.5" } }, - "node_modules/@vitest/runner": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/@vitest/runner/-/runner-4.1.11.tgz", - "integrity": "sha512-LztvUgdwMNJMIkj3hQnnxiC2Xy1zNxq928W/xhjCLaNCzqTZOudjwbQf6v9IntZGPw132i2Lq2rgTRZHD3JHNw==", + "node_modules/@vitest/pretty-format": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-3.2.4.tgz", + "integrity": "sha512-IVNZik8IVRJRTr9fxlitMKeJeXFFFN0JaB9PHPGQ8NKQbGpfjlTx9zO4RefN8gp7eqjNy8nyK3NZmBzOPeIxtA==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/utils": "4.1.11", - "pathe": "^2.0.3" + "tinyrainbow": "^2.0.0" }, "funding": { "url": "https://opencollective.com/vitest" } }, - "node_modules/@vitest/runner/node_modules/@vitest/pretty-format": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-4.1.11.tgz", - "integrity": "sha512-yiZzPbGTS9Sr/JpFl8zHrcIkAofNbFV6k21vIgQN/cY/oxZeXhJv5sc/MBJ5jFKWmWs+oJHw0UXLZjmf931+Vw==", + "node_modules/@vitest/spy": { + "version": "3.2.4", + "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-3.2.4.tgz", + "integrity": "sha512-vAfasCOe6AIK70iP5UD11Ac4siNUNJ9i/9PZ3NKx07sG6sUxeag1LWdNrMWeKKYBLlzuK+Gn65Yd5nyL6ds+nw==", "dev": true, "license": "MIT", "dependencies": { - "tinyrainbow": "^3.1.0" + "tinyspy": "^4.0.3" }, "funding": { "url": "https://opencollective.com/vitest" } }, - "node_modules/@vitest/runner/node_modules/@vitest/utils": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-4.1.11.tgz", - "integrity": "sha512-zTCVGpyFsGWBhllOyKlTw/vnr6D9qxsfSDyfbyZmTyjHw5N/VuvzHpHoQjm2ZJzn4RJgx5w4r7V0er69CmLgPQ==", + "node_modules/@vitest/ui": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@vitest/ui/-/ui-5.0.0.tgz", + "integrity": "sha512-h2FIFwggCY2GxUd2UdQoYNVQkOIqEQLPhNREcl3FUiRsdzQep7NWwYbSmhGEA9nFLPDq5pXzRMcBZQU8Py83sg==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/pretty-format": "4.1.11", - "convert-source-map": "^2.0.0", - "tinyrainbow": "^3.1.0" + "@vitest/utils": "5.0.0", + "fflate": "^0.8.3", + "flatted": "^3.4.4", + "pathe": "^2.0.3", + "sirv": "^3.0.2", + "tinyrainbow": "^3.1.1" }, "funding": { "url": "https://opencollective.com/vitest" - } - }, - "node_modules/@vitest/runner/node_modules/convert-source-map": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", - "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "dev": true, - "license": "MIT" - }, - "node_modules/@vitest/runner/node_modules/tinyrainbow": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-3.1.1.tgz", - "integrity": "sha512-yau8yJdTt989Mm0Bd/236QnzEiPf2xLLTqUZRUJOo/3CB078LSwzei343DgtJVmfJKJE3TMINY1u42SQsP6mXw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@vitest/snapshot": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/@vitest/snapshot/-/snapshot-4.1.11.tgz", - "integrity": "sha512-pN7ikn1ON7h8ee4gIAp4AzyK+zBtJPzVbqOgu5LCEh4VaJVbPQcgYQYJIMGQPXVeJJq1fnfazis7a5pFNPahog==", - "dev": true, - "license": "MIT", - "dependencies": { - "@vitest/pretty-format": "4.1.11", - "@vitest/utils": "4.1.11", - "magic-string": "^0.30.21", - "pathe": "^2.0.3" }, - "funding": { - "url": "https://opencollective.com/vitest" + "peerDependencies": { + "vitest": "5.0.0" } }, - "node_modules/@vitest/snapshot/node_modules/@vitest/pretty-format": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-4.1.11.tgz", - "integrity": "sha512-yiZzPbGTS9Sr/JpFl8zHrcIkAofNbFV6k21vIgQN/cY/oxZeXhJv5sc/MBJ5jFKWmWs+oJHw0UXLZjmf931+Vw==", + "node_modules/@vitest/ui/node_modules/@vitest/pretty-format": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-5.0.0.tgz", + "integrity": "sha512-PVRNuB3wpReb4SQEs4zTKM4KWFhQ5pw3spE8naoDJNB5T5aWRzGKHwXcLUllr0WeOTXpB6bSr3CJLo5+7XQSSQ==", "dev": true, "license": "MIT", "dependencies": { - "tinyrainbow": "^3.1.0" + "tinyrainbow": "^3.1.1" }, "funding": { "url": "https://opencollective.com/vitest" } }, - "node_modules/@vitest/snapshot/node_modules/@vitest/utils": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-4.1.11.tgz", - "integrity": "sha512-zTCVGpyFsGWBhllOyKlTw/vnr6D9qxsfSDyfbyZmTyjHw5N/VuvzHpHoQjm2ZJzn4RJgx5w4r7V0er69CmLgPQ==", + "node_modules/@vitest/ui/node_modules/@vitest/utils": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-5.0.0.tgz", + "integrity": "sha512-dO++xL3vDfvhTAVimfkuQUA3k+JClIF1i1vAkPqpcGAthRmeWnXmHB7YPViPvgCwviX8u7Y5W1u2N//AaQr3fw==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/pretty-format": "4.1.11", + "@vitest/pretty-format": "5.0.0", "convert-source-map": "^2.0.0", - "tinyrainbow": "^3.1.0" + "tinyrainbow": "^3.1.1" }, "funding": { "url": "https://opencollective.com/vitest" } }, - "node_modules/@vitest/snapshot/node_modules/convert-source-map": { + "node_modules/@vitest/ui/node_modules/convert-source-map": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", "dev": true, "license": "MIT" }, - "node_modules/@vitest/snapshot/node_modules/tinyrainbow": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-3.1.1.tgz", - "integrity": "sha512-yau8yJdTt989Mm0Bd/236QnzEiPf2xLLTqUZRUJOo/3CB078LSwzei343DgtJVmfJKJE3TMINY1u42SQsP6mXw==", + "node_modules/@vitest/ui/node_modules/sirv": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/sirv/-/sirv-3.0.2.tgz", + "integrity": "sha512-2wcC/oGxHis/BoHkkPwldgiPSYcpZK3JU28WoMVv55yHJgcZ8rlXvuG9iZggz+sU1d4bRgIGASwyWqjxu3FM0g==", "dev": true, "license": "MIT", + "dependencies": { + "@polka/url": "^1.0.0-next.24", + "mrmime": "^2.0.0", + "totalist": "^3.0.0" + }, "engines": { - "node": ">=14.0.0" + "node": ">=18" } }, - "node_modules/@vitest/spy": { - "version": "3.2.4", - "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-3.2.4.tgz", - "integrity": "sha512-vAfasCOe6AIK70iP5UD11Ac4siNUNJ9i/9PZ3NKx07sG6sUxeag1LWdNrMWeKKYBLlzuK+Gn65Yd5nyL6ds+nw==", + "node_modules/@vitest/ui/node_modules/tinyrainbow": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-3.1.1.tgz", + "integrity": "sha512-yau8yJdTt989Mm0Bd/236QnzEiPf2xLLTqUZRUJOo/3CB078LSwzei343DgtJVmfJKJE3TMINY1u42SQsP6mXw==", "dev": true, "license": "MIT", - "dependencies": { - "tinyspy": "^4.0.3" - }, - "funding": { - "url": "https://opencollective.com/vitest" + "engines": { + "node": ">=14.0.0" } }, "node_modules/@vitest/utils": { @@ -27155,9 +27138,9 @@ } }, "node_modules/flatted": { - "version": "3.4.2", - "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.2.tgz", - "integrity": "sha512-PjDse7RzhcPkIJwy5t7KPWQSZ9cAbzQXcafsetQoD7sOJRQlGikNbx7yZp2OotDnJyrDcbyRq3Ttb18iYOqkxA==", + "version": "3.4.4", + "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.4.tgz", + "integrity": "sha512-5+ybhBZANEJxaH3X5evAFatUxLfEHSr7n6kYJ+1Qd0mUqr4eu9gIf6GDbWHf8RJijHrjjO8G+la14SlL2SeS1Q==", "license": "ISC" }, "node_modules/flush-write-stream": { @@ -46948,16 +46931,19 @@ "license": "MIT" }, "node_modules/tinybench": { - "version": "2.9.0", - "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-2.9.0.tgz", - "integrity": "sha512-0+DUvqWMValLmha6lr4kD8iAMK1HzV0/aKnCtWb9v9641TnP/MFb7Pc2bxoxQjTXAErryXVgUOfv2YqNllqGeg==", + "version": "6.1.4", + "resolved": "https://registry.npmjs.org/tinybench/-/tinybench-6.1.4.tgz", + "integrity": "sha512-9APumHG7r4yOk4X4WlkmE71aZcv1gvin1czO3OQ1U9iJcFA5Ja/ygyb0vPOVHTthFozUYs8CLoLUlM8grb2lTQ==", "dev": true, - "license": "MIT" + "license": "MIT", + "engines": { + "node": ">=20.0.0" + } }, "node_modules/tinyexec": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.1.2.tgz", - "integrity": "sha512-dAqSqE/RabpBKI8+h26GfLq6Vb3JVXs30XYQjdMjaj/c2tS8IYYMbIzP599KtRj7c57/wYApb3QjgRgXmrCukA==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/tinyexec/-/tinyexec-1.3.0.tgz", + "integrity": "sha512-QKAl9m8gWWGHV8jZcPeym6j+XULi6tOf1mT83WYJ4Lk2ytW/uwAWkrP0uFsdoYMdueVJ0qs26wZ+23xeB4ibNQ==", "dev": true, "license": "MIT", "engines": { @@ -48444,38 +48430,31 @@ } }, "node_modules/vitest": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/vitest/-/vitest-4.1.11.tgz", - "integrity": "sha512-fhACrNXUidIbGSBr5FlbuBkO7VWC1ZyLl0DO4CU2DrQoAPxX84Ysxs+HeGQpii5lZWV1Q4gBZTTu49mF+A6Edw==", + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/vitest/-/vitest-5.0.0.tgz", + "integrity": "sha512-gpsMNoRhMjMktVxPtstOH4/PJuPyovVaMDr4oDilXaGH1EcqM2OE96SoHT2VIQ6fTGtTjqmHDrEu2X9RQiXf8Q==", "dev": true, "license": "MIT", "dependencies": { - "@vitest/expect": "4.1.11", - "@vitest/mocker": "4.1.11", - "@vitest/pretty-format": "4.1.11", - "@vitest/runner": "4.1.11", - "@vitest/snapshot": "4.1.11", - "@vitest/spy": "4.1.11", - "@vitest/utils": "4.1.11", - "es-module-lexer": "^2.0.0", - "expect-type": "^1.3.0", - "magic-string": "^0.30.21", - "obug": "^2.1.1", - "pathe": "^2.0.3", - "picomatch": "^4.0.3", - "std-env": "^4.0.0-rc.1", - "tinybench": "^2.9.0", - "tinyexec": "^1.0.2", - "tinyglobby": "^0.2.15", - "tinyrainbow": "^3.1.0", - "vite": "^6.0.0 || ^7.0.0 || ^8.0.0", + "@types/chai": "^5.2.2", + "@vitest/mocker": "5.0.0", + "chai": "^6.2.2", + "es-module-lexer": "^2.3.2", + "expect-type": "^1.4.0", + "magic-string": "^1.2.3", + "obug": "^2.1.4", + "picomatch": "^4.0.7", + "std-env": "^4.2.0", + "tinybench": "6.1.4", + "tinyexec": "1.3.0", + "tinyglobby": "^0.2.17", "why-is-node-running": "^2.3.0" }, "bin": { "vitest": "vitest.mjs" }, "engines": { - "node": "^20.0.0 || ^22.0.0 || >=24.0.0" + "node": "^22.12.0 || ^24.0.0 || >=26.0.0" }, "funding": { "url": "https://opencollective.com/vitest" @@ -48483,16 +48462,16 @@ "peerDependencies": { "@edge-runtime/vm": "*", "@opentelemetry/api": "^1.9.0", - "@types/node": "^20.0.0 || ^22.0.0 || >=24.0.0", - "@vitest/browser-playwright": "4.1.11", - "@vitest/browser-preview": "4.1.11", - "@vitest/browser-webdriverio": "4.1.11", - "@vitest/coverage-istanbul": "4.1.11", - "@vitest/coverage-v8": "4.1.11", - "@vitest/ui": "4.1.11", + "@types/node": "^22.0.0 || >=24.0.0", + "@vitest/browser-playwright": "5.0.0", + "@vitest/browser-preview": "5.0.0", + "@vitest/browser-webdriverio": "^5.0.0-beta.5 || >=5.0.0", + "@vitest/coverage-istanbul": "5.0.0", + "@vitest/coverage-v8": "5.0.0", + "@vitest/ui": "5.0.0", "happy-dom": "*", "jsdom": "*", - "vite": "^6.0.0 || ^7.0.0 || ^8.0.0" + "vite": "^6.4.0 || ^7.0.0 || ^8.0.0" }, "peerDependenciesMeta": { "@edge-runtime/vm": { @@ -48533,89 +48512,6 @@ } } }, - "node_modules/vitest/node_modules/@vitest/expect": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/@vitest/expect/-/expect-4.1.11.tgz", - "integrity": "sha512-VX2x5vNJXET47KAFzwERI+KRMtTTCSWTfSMKsW7JsUsXV4psq++e3DvZpuTDOpHcxytiDs6p2nhVb2tVDiiUYw==", - "dev": true, - "license": "MIT", - "dependencies": { - "@standard-schema/spec": "^1.1.0", - "@types/chai": "^5.2.2", - "@vitest/spy": "4.1.11", - "@vitest/utils": "4.1.11", - "chai": "^6.2.2", - "tinyrainbow": "^3.1.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/vitest/node_modules/@vitest/mocker": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/@vitest/mocker/-/mocker-4.1.11.tgz", - "integrity": "sha512-2XJVD55d1o5AZous5CCGKS74g/riOj9odEt2bQpCVZeblHyHdnMeFl4jl0XjU21stf4mbjUkew2eXQZt65g5CQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@vitest/spy": "4.1.11", - "estree-walker": "^3.0.3", - "magic-string": "^0.30.21" - }, - "funding": { - "url": "https://opencollective.com/vitest" - }, - "peerDependencies": { - "msw": "^2.4.9", - "vite": "^6.0.0 || ^7.0.0 || ^8.0.0" - }, - "peerDependenciesMeta": { - "msw": { - "optional": true - }, - "vite": { - "optional": true - } - } - }, - "node_modules/vitest/node_modules/@vitest/pretty-format": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/@vitest/pretty-format/-/pretty-format-4.1.11.tgz", - "integrity": "sha512-yiZzPbGTS9Sr/JpFl8zHrcIkAofNbFV6k21vIgQN/cY/oxZeXhJv5sc/MBJ5jFKWmWs+oJHw0UXLZjmf931+Vw==", - "dev": true, - "license": "MIT", - "dependencies": { - "tinyrainbow": "^3.1.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/vitest/node_modules/@vitest/spy": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/@vitest/spy/-/spy-4.1.11.tgz", - "integrity": "sha512-apNa/prQy2qCeywhnixOHPRCgGNhvg7T4Dapfl1GahLp/R+uhBm5cPyFoNVyqsNd2h1nJxL6BqqdIjiABL60YA==", - "dev": true, - "license": "MIT", - "funding": { - "url": "https://opencollective.com/vitest" - } - }, - "node_modules/vitest/node_modules/@vitest/utils": { - "version": "4.1.11", - "resolved": "https://registry.npmjs.org/@vitest/utils/-/utils-4.1.11.tgz", - "integrity": "sha512-zTCVGpyFsGWBhllOyKlTw/vnr6D9qxsfSDyfbyZmTyjHw5N/VuvzHpHoQjm2ZJzn4RJgx5w4r7V0er69CmLgPQ==", - "dev": true, - "license": "MIT", - "dependencies": { - "@vitest/pretty-format": "4.1.11", - "convert-source-map": "^2.0.0", - "tinyrainbow": "^3.1.0" - }, - "funding": { - "url": "https://opencollective.com/vitest" - } - }, "node_modules/vitest/node_modules/chai": { "version": "6.2.2", "resolved": "https://registry.npmjs.org/chai/-/chai-6.2.2.tgz", @@ -48626,13 +48522,6 @@ "node": ">=18" } }, - "node_modules/vitest/node_modules/convert-source-map": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz", - "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==", - "dev": true, - "license": "MIT" - }, "node_modules/vitest/node_modules/es-module-lexer": { "version": "2.3.2", "resolved": "https://registry.npmjs.org/es-module-lexer/-/es-module-lexer-2.3.2.tgz", @@ -48640,20 +48529,20 @@ "dev": true, "license": "MIT" }, - "node_modules/vitest/node_modules/estree-walker": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/estree-walker/-/estree-walker-3.0.3.tgz", - "integrity": "sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==", + "node_modules/vitest/node_modules/magic-string": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-1.2.3.tgz", + "integrity": "sha512-Bpb0W2TbLKOZ7vJnOUnVRGq3WL2p+ISV29M6hYPL1AFCpyKZpdr5ytiXoTSSxRVhg8YW7f65+6gbG8WG6PCa/g==", "dev": true, "license": "MIT", "dependencies": { - "@types/estree": "^1.0.0" + "@jridgewell/sourcemap-codec": "^1.5.5" } }, "node_modules/vitest/node_modules/picomatch": { - "version": "4.0.5", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.5.tgz", - "integrity": "sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A==", + "version": "4.0.7", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.7.tgz", + "integrity": "sha512-qcJu88Q2IWqJsDD529JKMdwGm/dvInW4HvQnRwiH9JtihJvzGOscDtHE3x1pBKeUOTysQ8kVmLnJ2kJu7yhcGA==", "dev": true, "license": "MIT", "engines": { @@ -48663,16 +48552,6 @@ "url": "https://github.com/sponsors/jonschlinkert" } }, - "node_modules/vitest/node_modules/tinyrainbow": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/tinyrainbow/-/tinyrainbow-3.1.1.tgz", - "integrity": "sha512-yau8yJdTt989Mm0Bd/236QnzEiPf2xLLTqUZRUJOo/3CB078LSwzei343DgtJVmfJKJE3TMINY1u42SQsP6mXw==", - "dev": true, - "license": "MIT", - "engines": { - "node": ">=14.0.0" - } - }, "node_modules/vm-browserify": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.2.tgz", @@ -50379,14 +50258,50 @@ "@wordpress/i18n": "file:../i18n" }, "devDependencies": { - "@testing-library/jest-dom": "^6.9.1", - "vitest": "^4.1.11" + "@testing-library/jest-dom": "^7.0.1", + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", "npm": ">=8.19.2" } }, + "packages/a11y/node_modules/@testing-library/jest-dom": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-7.0.1.tgz", + "integrity": "sha512-oMDTC3oA+6CXSO2JZnvOI7CA6oVub6kij5ggk9ohwye5slmkwxYDXcPOVxgMw/RQlticjtO0C1RZkR97HgrWMw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@adobe/css-tools": "^4.4.0", + "aria-query": "^5.0.0", + "css.escape": "^1.5.1", + "dom-accessibility-api": "^0.6.3", + "picocolors": "^1.1.1", + "redent": "^3.0.0" + }, + "engines": { + "node": ">=22", + "npm": ">=6", + "yarn": ">=1" + }, + "peerDependencies": { + "@testing-library/dom": ">=10 <11", + "vitest": ">= 0.32" + }, + "peerDependenciesMeta": { + "vitest": { + "optional": true + } + } + }, + "packages/a11y/node_modules/dom-accessibility-api": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.6.3.tgz", + "integrity": "sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==", + "dev": true, + "license": "MIT" + }, "packages/abilities": { "name": "@wordpress/abilities", "version": "0.20.0", @@ -50399,7 +50314,7 @@ "ajv-formats": "^3.0.1" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -50440,10 +50355,10 @@ "devDependencies": { "@storybook/react-vite": "^10.5.3", "@testing-library/dom": "^10.4.1", - "@testing-library/jest-dom": "^6.9.1", - "@testing-library/react": "^16.3.2", + "@testing-library/jest-dom": "^7.0.1", + "@testing-library/react": "^16.3.3", "@wordpress/icons": "file:../icons", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -50459,6 +50374,42 @@ } } }, + "packages/admin-ui/node_modules/@testing-library/jest-dom": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-7.0.1.tgz", + "integrity": "sha512-oMDTC3oA+6CXSO2JZnvOI7CA6oVub6kij5ggk9ohwye5slmkwxYDXcPOVxgMw/RQlticjtO0C1RZkR97HgrWMw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@adobe/css-tools": "^4.4.0", + "aria-query": "^5.0.0", + "css.escape": "^1.5.1", + "dom-accessibility-api": "^0.6.3", + "picocolors": "^1.1.1", + "redent": "^3.0.0" + }, + "engines": { + "node": ">=22", + "npm": ">=6", + "yarn": ">=1" + }, + "peerDependencies": { + "@testing-library/dom": ">=10 <11", + "vitest": ">= 0.32" + }, + "peerDependenciesMeta": { + "vitest": { + "optional": true + } + } + }, + "packages/admin-ui/node_modules/dom-accessibility-api": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.6.3.tgz", + "integrity": "sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==", + "dev": true, + "license": "MIT" + }, "packages/annotations": { "name": "@wordpress/annotations", "version": "3.54.0", @@ -50472,7 +50423,7 @@ }, "devDependencies": { "@types/react": "^18.3.27", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -50492,7 +50443,7 @@ "@wordpress/url": "file:../url" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -50513,7 +50464,7 @@ "version": "4.54.0", "license": "GPL-2.0-or-later", "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -50526,7 +50477,7 @@ "license": "GPL-2.0-or-later", "devDependencies": { "@babel/plugin-syntax-jsx": "^7.25.7", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -50547,7 +50498,7 @@ }, "devDependencies": { "@babel/traverse": "^7.25.7", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -50577,7 +50528,7 @@ "devDependencies": { "core-js-builder": "^3.39.0", "terser": "^5.37.0", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -50630,16 +50581,52 @@ "version": "4.54.0", "license": "GPL-2.0-or-later", "devDependencies": { - "@testing-library/jest-dom": "^6.9.1", + "@testing-library/jest-dom": "^7.0.1", "@types/jest": "^30.0.0", "@types/node": "^24.13.3", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", "npm": ">=8.19.2" } }, + "packages/blob/node_modules/@testing-library/jest-dom": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-7.0.1.tgz", + "integrity": "sha512-oMDTC3oA+6CXSO2JZnvOI7CA6oVub6kij5ggk9ohwye5slmkwxYDXcPOVxgMw/RQlticjtO0C1RZkR97HgrWMw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@adobe/css-tools": "^4.4.0", + "aria-query": "^5.0.0", + "css.escape": "^1.5.1", + "dom-accessibility-api": "^0.6.3", + "picocolors": "^1.1.1", + "redent": "^3.0.0" + }, + "engines": { + "node": ">=22", + "npm": ">=6", + "yarn": ">=1" + }, + "peerDependencies": { + "@testing-library/dom": ">=10 <11", + "vitest": ">= 0.32" + }, + "peerDependenciesMeta": { + "vitest": { + "optional": true + } + } + }, + "packages/blob/node_modules/dom-accessibility-api": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.6.3.tgz", + "integrity": "sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==", + "dev": true, + "license": "MIT" + }, "packages/block-directory": { "name": "@wordpress/block-directory", "version": "5.54.0", @@ -50670,10 +50657,10 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/react": "^16.3.2", + "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.1", "deep-freeze": "^0.0.1", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -50742,13 +50729,13 @@ "devDependencies": { "@ariakit/test": "^0.7.4", "@testing-library/dom": "^10.4.1", - "@testing-library/react": "^16.3.2", + "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.1", "@types/postcss-prefix-selector": "^1.16.3", "@wordpress/block-library": "file:../block-library", "deep-freeze": "^0.0.1", "storybook": "^10.5.3", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -50832,13 +50819,13 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/jest-dom": "^6.9.1", - "@testing-library/react": "^16.3.2", + "@testing-library/jest-dom": "^7.0.1", + "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.1", "@wordpress/integration-tests": "file:../../test/integration", "@wordpress/stylelint-tools": "file:../../tools/stylelint", "deep-freeze": "^0.0.1", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -50855,13 +50842,49 @@ } } }, + "packages/block-library/node_modules/@testing-library/jest-dom": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-7.0.1.tgz", + "integrity": "sha512-oMDTC3oA+6CXSO2JZnvOI7CA6oVub6kij5ggk9ohwye5slmkwxYDXcPOVxgMw/RQlticjtO0C1RZkR97HgrWMw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@adobe/css-tools": "^4.4.0", + "aria-query": "^5.0.0", + "css.escape": "^1.5.1", + "dom-accessibility-api": "^0.6.3", + "picocolors": "^1.1.1", + "redent": "^3.0.0" + }, + "engines": { + "node": ">=22", + "npm": ">=6", + "yarn": ">=1" + }, + "peerDependencies": { + "@testing-library/dom": ">=10 <11", + "vitest": ">= 0.32" + }, + "peerDependenciesMeta": { + "vitest": { + "optional": true + } + } + }, + "packages/block-library/node_modules/dom-accessibility-api": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.6.3.tgz", + "integrity": "sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==", + "dev": true, + "license": "MIT" + }, "packages/block-serialization-default-parser": { "name": "@wordpress/block-serialization-default-parser", "version": "5.54.0", "license": "GPL-2.0-or-later", "devDependencies": { "@wordpress/block-serialization-spec-parser": "file:../block-serialization-spec-parser", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -50877,7 +50900,7 @@ "phpegjs": "^1.0.0-beta7" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -50920,7 +50943,7 @@ "devDependencies": { "@types/react-is": "^18.3.1", "deep-freeze": "^0.0.1", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -50994,7 +51017,7 @@ "license": "GPL-2.0-or-later", "devDependencies": { "browserslist": "^4.28.4", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -51089,8 +51112,8 @@ "@storybook/addon-docs": "^10.5.3", "@storybook/react-vite": "^10.5.3", "@testing-library/dom": "^10.4.1", - "@testing-library/jest-dom": "^6.9.1", - "@testing-library/react": "^16.3.2", + "@testing-library/jest-dom": "^7.0.1", + "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.1", "@types/jest": "^30.0.0", "@types/react-dom": "^18.3.1", @@ -51099,7 +51122,7 @@ "snapshot-diff": "^0.10.0", "storybook": "^10.5.3", "timezone-mock": "^1.3.6", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -51116,6 +51139,42 @@ } } }, + "packages/components/node_modules/@testing-library/jest-dom": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-7.0.1.tgz", + "integrity": "sha512-oMDTC3oA+6CXSO2JZnvOI7CA6oVub6kij5ggk9ohwye5slmkwxYDXcPOVxgMw/RQlticjtO0C1RZkR97HgrWMw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@adobe/css-tools": "^4.4.0", + "aria-query": "^5.0.0", + "css.escape": "^1.5.1", + "dom-accessibility-api": "^0.6.3", + "picocolors": "^1.1.1", + "redent": "^3.0.0" + }, + "engines": { + "node": ">=22", + "npm": ">=6", + "yarn": ">=1" + }, + "peerDependencies": { + "@testing-library/dom": ">=10 <11", + "vitest": ">= 0.32" + }, + "peerDependenciesMeta": { + "vitest": { + "optional": true + } + } + }, + "packages/components/node_modules/dom-accessibility-api": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.6.3.tgz", + "integrity": "sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==", + "dev": true, + "license": "MIT" + }, "packages/components/node_modules/framer-motion": { "version": "11.15.0", "resolved": "https://registry.npmjs.org/framer-motion/-/framer-motion-11.15.0.tgz", @@ -51178,12 +51237,12 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/react": "^16.3.2", + "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.1", "@types/jest": "^30.0.0", "mock-match-media": "^0.4.2", "react-dom": "^18.3.1", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -51211,7 +51270,7 @@ "@wordpress/private-apis": "file:../private-apis" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "@types/react": "^18 || ^19", @@ -51255,7 +51314,7 @@ "@wordpress/url": "file:../url" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -51300,11 +51359,11 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/react": "^16.3.2", + "@testing-library/react": "^16.3.3", "@types/node": "^24.13.3", "@wordpress/block-library": "file:../block-library", "deep-freeze": "^0.0.1", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -51432,8 +51491,8 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/react": "^16.3.2", - "vitest": "^4.1.11" + "@testing-library/react": "^16.3.3", + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -51483,10 +51542,10 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/react": "^16.3.2", + "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.1", "deep-freeze": "^0.0.1", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -51512,7 +51571,7 @@ "@wordpress/deprecated": "file:../deprecated" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -51573,13 +51632,13 @@ "@storybook/addon-docs": "^10.5.3", "@storybook/react-vite": "^10.5.3", "@testing-library/dom": "^10.4.1", - "@testing-library/jest-dom": "^6.9.1", - "@testing-library/react": "^16.3.2", + "@testing-library/jest-dom": "^7.0.1", + "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.1", "@types/node": "^24.13.3", "esbuild": "^0.27.2", "storybook": "^10.5.3", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -51596,6 +51655,35 @@ } } }, + "packages/dataviews/node_modules/@testing-library/jest-dom": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-7.0.1.tgz", + "integrity": "sha512-oMDTC3oA+6CXSO2JZnvOI7CA6oVub6kij5ggk9ohwye5slmkwxYDXcPOVxgMw/RQlticjtO0C1RZkR97HgrWMw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@adobe/css-tools": "^4.4.0", + "aria-query": "^5.0.0", + "css.escape": "^1.5.1", + "dom-accessibility-api": "^0.6.3", + "picocolors": "^1.1.1", + "redent": "^3.0.0" + }, + "engines": { + "node": ">=22", + "npm": ">=6", + "yarn": ">=1" + }, + "peerDependencies": { + "@testing-library/dom": ">=10 <11", + "vitest": ">= 0.32" + }, + "peerDependenciesMeta": { + "vitest": { + "optional": true + } + } + }, "packages/dataviews/node_modules/colorjs.io": { "version": "0.7.1", "resolved": "https://registry.npmjs.org/colorjs.io/-/colorjs.io-0.7.1.tgz", @@ -51606,6 +51694,13 @@ "url": "https://opencollective.com/color" } }, + "packages/dataviews/node_modules/dom-accessibility-api": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.6.3.tgz", + "integrity": "sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==", + "dev": true, + "license": "MIT" + }, "packages/date": { "name": "@wordpress/date", "version": "5.54.0", @@ -51616,7 +51711,7 @@ "moment-timezone": "^0.5.40" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -51638,7 +51733,7 @@ "mini-css-extract-plugin": "^2.9.2", "mkdirp": "^3.0.1", "rimraf": "^5.0.10", - "vitest": "^4.1.11", + "vitest": "^5.0.0", "webpack": "^5.108.1" }, "engines": { @@ -51741,7 +51836,7 @@ "@wordpress/hooks": "file:../hooks" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -51762,7 +51857,7 @@ }, "devDependencies": { "@types/node": "^24.13.3", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=20.10.0", @@ -51796,7 +51891,7 @@ }, "devDependencies": { "@types/babel__core": "^7.20.5", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -51811,7 +51906,7 @@ "@wordpress/deprecated": "file:../deprecated" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -51823,7 +51918,7 @@ "version": "4.54.0", "license": "GPL-2.0-or-later", "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -51919,9 +52014,9 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/react": "^16.3.2", + "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.1", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -51978,7 +52073,7 @@ "clsx": "^2.1.1" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": "^20.19.0 || >=22.13.0", @@ -52042,9 +52137,9 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/react": "^16.3.2", + "@testing-library/react": "^16.3.3", "deep-freeze": "^0.0.1", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -52120,13 +52215,13 @@ "devDependencies": { "@storybook/react-vite": "^10.5.3", "@testing-library/dom": "^10.4.1", - "@testing-library/jest-dom": "^6.9.1", - "@testing-library/react": "^16.3.2", + "@testing-library/jest-dom": "^7.0.1", + "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.1", "@types/jest": "^30.0.0", "@wordpress/block-library": "file:../block-library", "deep-freeze": "^0.0.1", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -52143,6 +52238,42 @@ } } }, + "packages/editor/node_modules/@testing-library/jest-dom": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-7.0.1.tgz", + "integrity": "sha512-oMDTC3oA+6CXSO2JZnvOI7CA6oVub6kij5ggk9ohwye5slmkwxYDXcPOVxgMw/RQlticjtO0C1RZkR97HgrWMw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@adobe/css-tools": "^4.4.0", + "aria-query": "^5.0.0", + "css.escape": "^1.5.1", + "dom-accessibility-api": "^0.6.3", + "picocolors": "^1.1.1", + "redent": "^3.0.0" + }, + "engines": { + "node": ">=22", + "npm": ">=6", + "yarn": ">=1" + }, + "peerDependencies": { + "@testing-library/dom": ">=10 <11", + "vitest": ">= 0.32" + }, + "peerDependenciesMeta": { + "vitest": { + "optional": true + } + } + }, + "packages/editor/node_modules/dom-accessibility-api": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.6.3.tgz", + "integrity": "sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==", + "dev": true, + "license": "MIT" + }, "packages/element": { "name": "@wordpress/element", "version": "8.6.0", @@ -52154,8 +52285,8 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/react": "^16.3.2", - "vitest": "^4.1.11" + "@testing-library/react": "^16.3.3", + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -52199,7 +52330,7 @@ "wp-env": "bin/wp-env" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -52211,7 +52342,7 @@ "version": "3.54.0", "license": "GPL-2.0-or-later", "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -52248,7 +52379,7 @@ "@typescript-eslint/parser": "^8.68.0", "eslint": "^10.0.0", "typescript": "npm:@typescript/typescript6@^6.0.2", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -52619,7 +52750,7 @@ "remove-accents": "^0.5.0" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -52658,9 +52789,9 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/react": "^16.3.2", + "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.1", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -52688,7 +52819,7 @@ "memize": "^2.1.1" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -52722,8 +52853,8 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/react": "^16.3.2", - "vitest": "^4.1.11" + "@testing-library/react": "^16.3.3", + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -52755,13 +52886,13 @@ "devDependencies": { "@storybook/react-vite": "^10.5.3", "@testing-library/dom": "^10.4.1", - "@testing-library/jest-dom": "^6.9.1", - "@testing-library/react": "^16.3.2", + "@testing-library/jest-dom": "^7.0.1", + "@testing-library/react": "^16.3.3", "@types/jest": "^30.0.0", "@wordpress/icons": "file:../icons", "@wordpress/ui": "file:../ui", "storybook": "^10.5.3", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=20.10.0", @@ -52778,13 +52909,49 @@ } } }, + "packages/grid/node_modules/@testing-library/jest-dom": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-7.0.1.tgz", + "integrity": "sha512-oMDTC3oA+6CXSO2JZnvOI7CA6oVub6kij5ggk9ohwye5slmkwxYDXcPOVxgMw/RQlticjtO0C1RZkR97HgrWMw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@adobe/css-tools": "^4.4.0", + "aria-query": "^5.0.0", + "css.escape": "^1.5.1", + "dom-accessibility-api": "^0.6.3", + "picocolors": "^1.1.1", + "redent": "^3.0.0" + }, + "engines": { + "node": ">=22", + "npm": ">=6", + "yarn": ">=1" + }, + "peerDependencies": { + "@testing-library/dom": ">=10 <11", + "vitest": ">= 0.32" + }, + "peerDependenciesMeta": { + "vitest": { + "optional": true + } + } + }, + "packages/grid/node_modules/dom-accessibility-api": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.6.3.tgz", + "integrity": "sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==", + "dev": true, + "license": "MIT" + }, "packages/hooks": { "name": "@wordpress/hooks", "version": "4.54.0", "license": "GPL-2.0-or-later", "devDependencies": { "benchmark": "^2.1.4", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -52796,7 +52963,7 @@ "version": "4.54.0", "license": "GPL-2.0-or-later", "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -52818,7 +52985,7 @@ }, "devDependencies": { "benchmark": "^2.1.4", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -52836,10 +53003,10 @@ }, "devDependencies": { "@storybook/react-vite": "^10.5.3", - "@testing-library/jest-dom": "^6.9.1", - "@testing-library/react": "^16.3.2", + "@testing-library/jest-dom": "^7.0.1", + "@testing-library/react": "^16.3.3", "@types/jest": "^30.0.0", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -52855,6 +53022,42 @@ } } }, + "packages/icons/node_modules/@testing-library/jest-dom": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-7.0.1.tgz", + "integrity": "sha512-oMDTC3oA+6CXSO2JZnvOI7CA6oVub6kij5ggk9ohwye5slmkwxYDXcPOVxgMw/RQlticjtO0C1RZkR97HgrWMw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@adobe/css-tools": "^4.4.0", + "aria-query": "^5.0.0", + "css.escape": "^1.5.1", + "dom-accessibility-api": "^0.6.3", + "picocolors": "^1.1.1", + "redent": "^3.0.0" + }, + "engines": { + "node": ">=22", + "npm": ">=6", + "yarn": ">=1" + }, + "peerDependencies": { + "@testing-library/dom": ">=10 <11", + "vitest": ">= 0.32" + }, + "peerDependenciesMeta": { + "vitest": { + "optional": true + } + } + }, + "packages/icons/node_modules/dom-accessibility-api": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.6.3.tgz", + "integrity": "sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==", + "dev": true, + "license": "MIT" + }, "packages/image-cropper": { "name": "@wordpress/image-cropper", "version": "1.18.0", @@ -52891,7 +53094,7 @@ "preact": "^10.29.1" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -52908,14 +53111,50 @@ "es-module-lexer": "^1.5.4" }, "devDependencies": { - "@testing-library/jest-dom": "^6.9.1", - "vitest": "^4.1.11" + "@testing-library/jest-dom": "^7.0.1", + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", "npm": ">=8.19.2" } }, + "packages/interactivity-router/node_modules/@testing-library/jest-dom": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-7.0.1.tgz", + "integrity": "sha512-oMDTC3oA+6CXSO2JZnvOI7CA6oVub6kij5ggk9ohwye5slmkwxYDXcPOVxgMw/RQlticjtO0C1RZkR97HgrWMw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@adobe/css-tools": "^4.4.0", + "aria-query": "^5.0.0", + "css.escape": "^1.5.1", + "dom-accessibility-api": "^0.6.3", + "picocolors": "^1.1.1", + "redent": "^3.0.0" + }, + "engines": { + "node": ">=22", + "npm": ">=6", + "yarn": ">=1" + }, + "peerDependencies": { + "@testing-library/dom": ">=10 <11", + "vitest": ">= 0.32" + }, + "peerDependenciesMeta": { + "vitest": { + "optional": true + } + } + }, + "packages/interactivity-router/node_modules/dom-accessibility-api": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.6.3.tgz", + "integrity": "sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==", + "dev": true, + "license": "MIT" + }, "packages/interface": { "name": "@wordpress/interface", "version": "10.0.0", @@ -52937,8 +53176,8 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/react": "^16.3.2", - "vitest": "^4.1.11" + "@testing-library/react": "^16.3.3", + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -52956,7 +53195,7 @@ "devDependencies": { "@wordpress/lazy-import": "file:../lazy-import", "benchmark": "^2.1.4", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -52974,7 +53213,7 @@ "devDependencies": { "@types/jest": "^30.0.0", "@types/node": "^24.13.3", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -53079,7 +53318,7 @@ }, "devDependencies": { "clsx": "^2.1.1", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -53098,7 +53337,7 @@ "change-case": "^4.1.2" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=20.10.0", @@ -53136,7 +53375,7 @@ "@wordpress/i18n": "file:../i18n" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -53273,11 +53512,11 @@ "devDependencies": { "@storybook/react-vite": "^10.5.3", "@testing-library/dom": "^10.4.1", - "@testing-library/jest-dom": "^6.9.1", - "@testing-library/react": "^16.3.2", + "@testing-library/jest-dom": "^7.0.1", + "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.1", "@types/jest": "^30.0.0", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -53293,6 +53532,42 @@ } } }, + "packages/media-editor/node_modules/@testing-library/jest-dom": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-7.0.1.tgz", + "integrity": "sha512-oMDTC3oA+6CXSO2JZnvOI7CA6oVub6kij5ggk9ohwye5slmkwxYDXcPOVxgMw/RQlticjtO0C1RZkR97HgrWMw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@adobe/css-tools": "^4.4.0", + "aria-query": "^5.0.0", + "css.escape": "^1.5.1", + "dom-accessibility-api": "^0.6.3", + "picocolors": "^1.1.1", + "redent": "^3.0.0" + }, + "engines": { + "node": ">=22", + "npm": ">=6", + "yarn": ">=1" + }, + "peerDependencies": { + "@testing-library/dom": ">=10 <11", + "vitest": ">= 0.32" + }, + "peerDependenciesMeta": { + "vitest": { + "optional": true + } + } + }, + "packages/media-editor/node_modules/dom-accessibility-api": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.6.3.tgz", + "integrity": "sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==", + "dev": true, + "license": "MIT" + }, "packages/media-fields": { "name": "@wordpress/media-fields", "version": "0.19.0", @@ -53313,9 +53588,9 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/jest-dom": "^6.9.1", - "@testing-library/react": "^16.3.2", - "vitest": "^4.1.11" + "@testing-library/jest-dom": "^7.0.1", + "@testing-library/react": "^16.3.3", + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -53331,6 +53606,42 @@ } } }, + "packages/media-fields/node_modules/@testing-library/jest-dom": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-7.0.1.tgz", + "integrity": "sha512-oMDTC3oA+6CXSO2JZnvOI7CA6oVub6kij5ggk9ohwye5slmkwxYDXcPOVxgMw/RQlticjtO0C1RZkR97HgrWMw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@adobe/css-tools": "^4.4.0", + "aria-query": "^5.0.0", + "css.escape": "^1.5.1", + "dom-accessibility-api": "^0.6.3", + "picocolors": "^1.1.1", + "redent": "^3.0.0" + }, + "engines": { + "node": ">=22", + "npm": ">=6", + "yarn": ">=1" + }, + "peerDependencies": { + "@testing-library/dom": ">=10 <11", + "vitest": ">= 0.32" + }, + "peerDependenciesMeta": { + "vitest": { + "optional": true + } + } + }, + "packages/media-fields/node_modules/dom-accessibility-api": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.6.3.tgz", + "integrity": "sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==", + "dev": true, + "license": "MIT" + }, "packages/media-utils": { "name": "@wordpress/media-utils", "version": "5.54.0", @@ -53355,11 +53666,11 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/jest-dom": "^6.9.1", - "@testing-library/react": "^16.3.2", + "@testing-library/jest-dom": "^7.0.1", + "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.1", "@wordpress/preferences": "file:../preferences", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -53375,6 +53686,42 @@ } } }, + "packages/media-utils/node_modules/@testing-library/jest-dom": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-7.0.1.tgz", + "integrity": "sha512-oMDTC3oA+6CXSO2JZnvOI7CA6oVub6kij5ggk9ohwye5slmkwxYDXcPOVxgMw/RQlticjtO0C1RZkR97HgrWMw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@adobe/css-tools": "^4.4.0", + "aria-query": "^5.0.0", + "css.escape": "^1.5.1", + "dom-accessibility-api": "^0.6.3", + "picocolors": "^1.1.1", + "redent": "^3.0.0" + }, + "engines": { + "node": ">=22", + "npm": ">=6", + "yarn": ">=1" + }, + "peerDependencies": { + "@testing-library/dom": ">=10 <11", + "vitest": ">= 0.32" + }, + "peerDependenciesMeta": { + "vitest": { + "optional": true + } + } + }, + "packages/media-utils/node_modules/dom-accessibility-api": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.6.3.tgz", + "integrity": "sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==", + "dev": true, + "license": "MIT" + }, "packages/notices": { "name": "@wordpress/notices", "version": "5.54.0", @@ -53387,10 +53734,10 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/jest-dom": "^6.9.1", - "@testing-library/react": "^16.3.2", + "@testing-library/jest-dom": "^7.0.1", + "@testing-library/react": "^16.3.3", "deep-freeze": "^0.0.1", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -53406,12 +53753,48 @@ } } }, + "packages/notices/node_modules/@testing-library/jest-dom": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-7.0.1.tgz", + "integrity": "sha512-oMDTC3oA+6CXSO2JZnvOI7CA6oVub6kij5ggk9ohwye5slmkwxYDXcPOVxgMw/RQlticjtO0C1RZkR97HgrWMw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@adobe/css-tools": "^4.4.0", + "aria-query": "^5.0.0", + "css.escape": "^1.5.1", + "dom-accessibility-api": "^0.6.3", + "picocolors": "^1.1.1", + "redent": "^3.0.0" + }, + "engines": { + "node": ">=22", + "npm": ">=6", + "yarn": ">=1" + }, + "peerDependencies": { + "@testing-library/dom": ">=10 <11", + "vitest": ">= 0.32" + }, + "peerDependenciesMeta": { + "vitest": { + "optional": true + } + } + }, + "packages/notices/node_modules/dom-accessibility-api": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.6.3.tgz", + "integrity": "sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==", + "dev": true, + "license": "MIT" + }, "packages/npm-package-json-lint-config": { "name": "@wordpress/npm-package-json-lint-config", "version": "5.54.0", "license": "GPL-2.0-or-later", "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -53431,8 +53814,8 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/react": "^16.3.2", - "vitest": "^4.1.11" + "@testing-library/react": "^16.3.3", + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -53491,9 +53874,9 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/react": "^16.3.2", + "@testing-library/react": "^16.3.3", "@types/react-is": "^18.3.1", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -53538,7 +53921,7 @@ "version": "6.54.0", "license": "GPL-2.0-or-later", "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -53565,7 +53948,7 @@ "@wordpress/private-apis": "file:../private-apis" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -53590,7 +53973,7 @@ "@wordpress/api-fetch": "file:../api-fetch" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -53605,7 +53988,7 @@ "@types/node": "^24.13.3", "@types/prettier": "^2.4.4", "prettier": "npm:wp-prettier@^3.0.3", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -53646,7 +54029,7 @@ }, "devDependencies": { "@types/requestidlecallback": "^0.3.4", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -53659,7 +54042,7 @@ "license": "GPL-2.0-or-later", "devDependencies": { "react": "^18.3.1", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -53679,7 +54062,7 @@ }, "devDependencies": { "@types/node": "^24.13.3", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -53730,7 +54113,7 @@ "mkdirp": "^3.0.1", "rimraf": "^5.0.10", "terser-webpack-plugin": "^5.3.10", - "vitest": "^4.1.11", + "vitest": "^5.0.0", "webpack": "^5.108.1" }, "engines": { @@ -53836,7 +54219,7 @@ }, "devDependencies": { "redux": "^5.0.1", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -53858,7 +54241,7 @@ }, "devDependencies": { "@types/node": "^24.13.3", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -54029,7 +54412,7 @@ }, "devDependencies": { "deep-freeze": "^0.0.1", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -54151,7 +54534,7 @@ }, "devDependencies": { "rimraf": "^5.0.10", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": "^20.19.0 || >=22.13.0", @@ -54496,7 +54879,7 @@ "@wordpress/url": "file:../url" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -54521,7 +54904,7 @@ "memize": "^2.1.1" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -54536,7 +54919,7 @@ "change-case": "^4.1.2" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -54556,14 +54939,50 @@ "version": "0.10.0", "license": "GPL-2.0-or-later", "devDependencies": { - "@testing-library/jest-dom": "^6.9.1", - "vitest": "^4.1.11" + "@testing-library/jest-dom": "^7.0.1", + "vitest": "^5.0.0" }, "engines": { "node": ">=20.10.0", "npm": ">=10.2.3" } }, + "packages/style-runtime/node_modules/@testing-library/jest-dom": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-7.0.1.tgz", + "integrity": "sha512-oMDTC3oA+6CXSO2JZnvOI7CA6oVub6kij5ggk9ohwye5slmkwxYDXcPOVxgMw/RQlticjtO0C1RZkR97HgrWMw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@adobe/css-tools": "^4.4.0", + "aria-query": "^5.0.0", + "css.escape": "^1.5.1", + "dom-accessibility-api": "^0.6.3", + "picocolors": "^1.1.1", + "redent": "^3.0.0" + }, + "engines": { + "node": ">=22", + "npm": ">=6", + "yarn": ">=1" + }, + "peerDependencies": { + "@testing-library/dom": ">=10 <11", + "vitest": ">= 0.32" + }, + "peerDependenciesMeta": { + "vitest": { + "optional": true + } + } + }, + "packages/style-runtime/node_modules/dom-accessibility-api": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.6.3.tgz", + "integrity": "sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==", + "dev": true, + "license": "MIT" + }, "packages/stylelint-config": { "name": "@wordpress/stylelint-config", "version": "24.3.0", @@ -54578,7 +54997,7 @@ "@wordpress/npm-package-json-lint-config": "file:../npm-package-json-lint-config", "stylelint": "^17.14.1", "stylelint-scss": "^7.2.0", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": "^20.19.0 || >=22.13.0", @@ -54606,7 +55025,7 @@ }, "devDependencies": { "@types/node": "^24.13.3", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -54633,8 +55052,8 @@ "@terrazzo/plugin-css": "^2.7.1", "@terrazzo/token-tools": "^2.7.1", "@testing-library/dom": "^10.4.1", - "@testing-library/jest-dom": "^6.9.1", - "@testing-library/react": "^16.3.2", + "@testing-library/jest-dom": "^7.0.1", + "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.1", "@types/jest": "^30.0.0", "@types/node": "^24.13.3", @@ -54645,7 +55064,7 @@ "prettier": "npm:wp-prettier@^3.0.3", "storybook": "^10.5.3", "stylelint": "^17.14.1", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": "^20.19.0 || >=22.13.0", @@ -54758,6 +55177,35 @@ "dev": true, "license": "MIT" }, + "packages/theme/node_modules/@testing-library/jest-dom": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-7.0.1.tgz", + "integrity": "sha512-oMDTC3oA+6CXSO2JZnvOI7CA6oVub6kij5ggk9ohwye5slmkwxYDXcPOVxgMw/RQlticjtO0C1RZkR97HgrWMw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@adobe/css-tools": "^4.4.0", + "aria-query": "^5.0.0", + "css.escape": "^1.5.1", + "dom-accessibility-api": "^0.6.3", + "picocolors": "^1.1.1", + "redent": "^3.0.0" + }, + "engines": { + "node": ">=22", + "npm": ">=6", + "yarn": ">=1" + }, + "peerDependencies": { + "@testing-library/dom": ">=10 <11", + "vitest": ">= 0.32" + }, + "peerDependenciesMeta": { + "vitest": { + "optional": true + } + } + }, "packages/theme/node_modules/colorjs.io": { "version": "0.7.1", "resolved": "https://registry.npmjs.org/colorjs.io/-/colorjs.io-0.7.1.tgz", @@ -54768,12 +55216,19 @@ "url": "https://opencollective.com/color" } }, + "packages/theme/node_modules/dom-accessibility-api": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.6.3.tgz", + "integrity": "sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==", + "dev": true, + "license": "MIT" + }, "packages/token-list": { "name": "@wordpress/token-list", "version": "3.54.0", "license": "GPL-2.0-or-later", "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -54806,8 +55261,8 @@ "@storybook/addon-docs": "^10.5.3", "@storybook/react-vite": "^10.5.3", "@testing-library/dom": "^10.4.1", - "@testing-library/jest-dom": "^6.9.1", - "@testing-library/react": "^16.3.2", + "@testing-library/jest-dom": "^7.0.1", + "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.1", "@types/jest": "^30.0.0", "@types/node": "^24.13.3", @@ -54815,7 +55270,7 @@ "@wordpress/jest-console": "file:../jest-console", "fast-glob": "^3.2.7", "storybook": "^10.5.3", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": "^20.19.0 || >=22.13.0", @@ -54832,6 +55287,42 @@ } } }, + "packages/ui/node_modules/@testing-library/jest-dom": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-7.0.1.tgz", + "integrity": "sha512-oMDTC3oA+6CXSO2JZnvOI7CA6oVub6kij5ggk9ohwye5slmkwxYDXcPOVxgMw/RQlticjtO0C1RZkR97HgrWMw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@adobe/css-tools": "^4.4.0", + "aria-query": "^5.0.0", + "css.escape": "^1.5.1", + "dom-accessibility-api": "^0.6.3", + "picocolors": "^1.1.1", + "redent": "^3.0.0" + }, + "engines": { + "node": ">=22", + "npm": ">=6", + "yarn": ">=1" + }, + "peerDependencies": { + "@testing-library/dom": ">=10 <11", + "vitest": ">= 0.32" + }, + "peerDependenciesMeta": { + "vitest": { + "optional": true + } + } + }, + "packages/ui/node_modules/dom-accessibility-api": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.6.3.tgz", + "integrity": "sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==", + "dev": true, + "license": "MIT" + }, "packages/undo-manager": { "name": "@wordpress/undo-manager", "version": "1.54.0", @@ -54841,7 +55332,7 @@ }, "devDependencies": { "@types/node": "^24.13.3", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -54866,7 +55357,7 @@ }, "devDependencies": { "@types/node": "^24.13.3", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -54891,7 +55382,7 @@ "remove-accents": "^0.5.0" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -54907,7 +55398,7 @@ "mediabunny": "^1.45.2" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -54925,9 +55416,9 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/react": "^16.3.2", + "@testing-library/react": "^16.3.3", "deep-freeze": "^0.0.1", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -54957,10 +55448,10 @@ "dequal": "^2.0.3" }, "devDependencies": { - "@testing-library/react": "^16.3.2", + "@testing-library/react": "^16.3.3", "react": "^18.3.1", "react-dom": "^18.3.1", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -54977,7 +55468,7 @@ }, "devDependencies": { "@types/node": "^24.13.3", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -54990,7 +55481,7 @@ "license": "GPL-2.0-or-later", "devDependencies": { "@babel/core": "^7.25.7", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -55024,12 +55515,12 @@ "@storybook/addon-docs": "^10.5.3", "@storybook/react-vite": "^10.5.3", "@testing-library/dom": "^10.4.1", - "@testing-library/jest-dom": "^6.9.1", - "@testing-library/react": "^16.3.2", + "@testing-library/jest-dom": "^7.0.1", + "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.1", "@wordpress/admin-ui": "file:../admin-ui", "storybook": "^10.5.3", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=20.10.0", @@ -55046,6 +55537,42 @@ } } }, + "packages/widget-dashboard/node_modules/@testing-library/jest-dom": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-7.0.1.tgz", + "integrity": "sha512-oMDTC3oA+6CXSO2JZnvOI7CA6oVub6kij5ggk9ohwye5slmkwxYDXcPOVxgMw/RQlticjtO0C1RZkR97HgrWMw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@adobe/css-tools": "^4.4.0", + "aria-query": "^5.0.0", + "css.escape": "^1.5.1", + "dom-accessibility-api": "^0.6.3", + "picocolors": "^1.1.1", + "redent": "^3.0.0" + }, + "engines": { + "node": ">=22", + "npm": ">=6", + "yarn": ">=1" + }, + "peerDependencies": { + "@testing-library/dom": ">=10 <11", + "vitest": ">= 0.32" + }, + "peerDependenciesMeta": { + "vitest": { + "optional": true + } + } + }, + "packages/widget-dashboard/node_modules/dom-accessibility-api": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.6.3.tgz", + "integrity": "sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==", + "dev": true, + "license": "MIT" + }, "packages/widget-primitives": { "name": "@wordpress/widget-primitives", "version": "0.6.0", @@ -55057,12 +55584,12 @@ "devDependencies": { "@storybook/addon-docs": "^10.5.3", "@storybook/react-vite": "^10.5.3", - "@testing-library/react": "^16.3.2", + "@testing-library/react": "^16.3.3", "@wordpress/components": "file:../components", "@wordpress/icons": "file:../icons", "@wordpress/ui": "file:../ui", "storybook": "^10.5.3", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=20.10.0", @@ -55112,7 +55639,7 @@ "version": "4.54.0", "license": "GPL-2.0-or-later", "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -55127,7 +55654,7 @@ "comctx": "^1.4.3" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -55190,7 +55717,7 @@ }, "devDependencies": { "@types/node": "^24.13.3", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=20.10.0", @@ -55237,16 +55764,52 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/jest-dom": "^6.9.1", - "@testing-library/react": "^16.3.2", + "@testing-library/jest-dom": "^7.0.1", + "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.1", "@types/jest": "^30.0.0", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "react": "^18 || ^19" } }, + "routes/connectors-home/node_modules/@testing-library/jest-dom": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-7.0.1.tgz", + "integrity": "sha512-oMDTC3oA+6CXSO2JZnvOI7CA6oVub6kij5ggk9ohwye5slmkwxYDXcPOVxgMw/RQlticjtO0C1RZkR97HgrWMw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@adobe/css-tools": "^4.4.0", + "aria-query": "^5.0.0", + "css.escape": "^1.5.1", + "dom-accessibility-api": "^0.6.3", + "picocolors": "^1.1.1", + "redent": "^3.0.0" + }, + "engines": { + "node": ">=22", + "npm": ">=6", + "yarn": ">=1" + }, + "peerDependencies": { + "@testing-library/dom": ">=10 <11", + "vitest": ">= 0.32" + }, + "peerDependenciesMeta": { + "vitest": { + "optional": true + } + } + }, + "routes/connectors-home/node_modules/dom-accessibility-api": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.6.3.tgz", + "integrity": "sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==", + "dev": true, + "license": "MIT" + }, "routes/dashboard": { "name": "@wordpress/dashboard-route", "version": "1.0.0", @@ -55269,15 +55832,51 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/jest-dom": "^6.9.1", - "@testing-library/react": "^16.3.2", + "@testing-library/jest-dom": "^7.0.1", + "@testing-library/react": "^16.3.3", "@types/jest": "^30.0.0", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "react": "^18 || ^19" } }, + "routes/dashboard/node_modules/@testing-library/jest-dom": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-7.0.1.tgz", + "integrity": "sha512-oMDTC3oA+6CXSO2JZnvOI7CA6oVub6kij5ggk9ohwye5slmkwxYDXcPOVxgMw/RQlticjtO0C1RZkR97HgrWMw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@adobe/css-tools": "^4.4.0", + "aria-query": "^5.0.0", + "css.escape": "^1.5.1", + "dom-accessibility-api": "^0.6.3", + "picocolors": "^1.1.1", + "redent": "^3.0.0" + }, + "engines": { + "node": ">=22", + "npm": ">=6", + "yarn": ">=1" + }, + "peerDependencies": { + "@testing-library/dom": ">=10 <11", + "vitest": ">= 0.32" + }, + "peerDependenciesMeta": { + "vitest": { + "optional": true + } + } + }, + "routes/dashboard/node_modules/dom-accessibility-api": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.6.3.tgz", + "integrity": "sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==", + "dev": true, + "license": "MIT" + }, "routes/experiments-home": { "name": "@wordpress/experiments-home-route", "version": "1.0.0", @@ -55626,7 +56225,7 @@ "@types/js-yaml": "^3.12.10", "@types/react": "^18.3.27", "@vitejs/plugin-react": "^6.0.5", - "@vitest/browser-playwright": "^4.1.10", + "@vitest/browser-playwright": "^5.0.0", "@wordpress/admin-ui": "file:../packages/admin-ui", "@wordpress/base-styles": "file:../packages/base-styles", "@wordpress/block-editor": "file:../packages/block-editor", @@ -55663,7 +56262,7 @@ "terser": "^5.37.0", "typescript": "npm:@typescript/typescript6@^6.0.2", "vite": "^8.2.2", - "vitest": "^4.1.11" + "vitest": "^5.0.0" } }, "test/e2e": { @@ -55691,7 +56290,7 @@ "version": "0.0.0", "license": "GPL-2.0-or-later", "devDependencies": { - "@testing-library/react": "^16.3.2", + "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.1", "@wordpress/block-editor": "file:../../packages/block-editor", "@wordpress/block-library": "file:../../packages/block-library", @@ -55706,7 +56305,7 @@ "fast-glob": "^3.2.7", "react": "^18.3.1", "rimraf": "^5.0.10", - "vitest": "^4.1.11" + "vitest": "^5.0.0" } }, "test/performance": { @@ -55743,15 +56342,15 @@ "@emotion/jest": "^11.14.2", "@emotion/styled": "^11.14.1", "@flakiness/jest": "^1.3.1", - "@flakiness/vitest": "^1.9.0", + "@flakiness/vitest": "^1.9.2", "@swc/plugin-emotion": "^16.0.0", - "@testing-library/jest-dom": "^6.9.1", - "@testing-library/react": "^16.3.2", + "@testing-library/jest-dom": "^7.0.1", + "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.1", "@types/node": "^24.13.3", "@typescript-eslint/parser": "^8.68.0", "@vitejs/plugin-react-swc": "^4.3.3", - "@vitest/browser-playwright": "^4.1.10", + "@vitest/browser-playwright": "^5.0.0", "@wordpress/babel-preset-default": "file:../../packages/babel-preset-default", "@wordpress/html-entities": "file:../../packages/html-entities", "@wordpress/jest-preset-default": "file:../../packages/jest-preset-default", @@ -55773,10 +56372,39 @@ "snapshot-diff": "^0.10.0", "timezone-mock": "^1.3.6", "typescript": "npm:@typescript/typescript6@^6.0.2", - "vitest": "^4.1.11", + "vitest": "^5.0.0", "yargs": "^17.3.0" } }, + "test/unit/node_modules/@testing-library/jest-dom": { + "version": "7.0.1", + "resolved": "https://registry.npmjs.org/@testing-library/jest-dom/-/jest-dom-7.0.1.tgz", + "integrity": "sha512-oMDTC3oA+6CXSO2JZnvOI7CA6oVub6kij5ggk9ohwye5slmkwxYDXcPOVxgMw/RQlticjtO0C1RZkR97HgrWMw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@adobe/css-tools": "^4.4.0", + "aria-query": "^5.0.0", + "css.escape": "^1.5.1", + "dom-accessibility-api": "^0.6.3", + "picocolors": "^1.1.1", + "redent": "^3.0.0" + }, + "engines": { + "node": ">=22", + "npm": ">=6", + "yarn": ">=1" + }, + "peerDependencies": { + "@testing-library/dom": ">=10 <11", + "vitest": ">= 0.32" + }, + "peerDependenciesMeta": { + "vitest": { + "optional": true + } + } + }, "test/unit/node_modules/@typescript-eslint/parser": { "version": "8.68.0", "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.68.0.tgz", @@ -55942,6 +56570,13 @@ "node": "20 || >=22" } }, + "test/unit/node_modules/dom-accessibility-api": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/dom-accessibility-api/-/dom-accessibility-api-0.6.3.tgz", + "integrity": "sha512-7ZgogeTnjuHbo+ct10G9Ffp0mif17idi0IyWNVA/wcwcm7NPOD/WEHVP3n7n3MhXqxoIYm8d6MuZohYWIZ4T3w==", + "dev": true, + "license": "MIT" + }, "test/unit/node_modules/eslint-visitor-keys": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz", @@ -56021,7 +56656,7 @@ "version": "0.0.0", "license": "GPL-2.0-or-later", "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" } }, "tools/build-scripts": { @@ -56049,7 +56684,7 @@ "source-map": "^0.6.1" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" } }, "tools/docs": { @@ -56262,7 +56897,7 @@ "license": "GPL-2.0-or-later", "devDependencies": { "@types/node": "^24.13.3", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "engines": { "node": ">=18.12.0", @@ -56335,7 +56970,7 @@ "release-cli": "cli.js" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" } }, "tools/stylelint": { @@ -56349,7 +56984,7 @@ "stylelint-plugin-logical-css": "^2.1.0" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" } }, "tools/validation": { @@ -56368,7 +57003,7 @@ "glob": "^13.0.6", "jsonc-parser": "^3.3.1", "simple-git": "^3.32.3", - "vitest": "^4.1.11" + "vitest": "^5.0.0" } }, "tools/validation/node_modules/balanced-match": { diff --git a/packages/a11y/package.json b/packages/a11y/package.json index 02637692693c4a..5be09dc594eed2 100644 --- a/packages/a11y/package.json +++ b/packages/a11y/package.json @@ -48,8 +48,8 @@ "@wordpress/i18n": "file:../i18n" }, "devDependencies": { - "@testing-library/jest-dom": "^6.9.1", - "vitest": "^4.1.11" + "@testing-library/jest-dom": "^7.0.1", + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/abilities/package.json b/packages/abilities/package.json index 84bf162d08a6a1..5c99fe32e110ab 100644 --- a/packages/abilities/package.json +++ b/packages/abilities/package.json @@ -52,7 +52,7 @@ "ajv-formats": "^3.0.1" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/admin-ui/package.json b/packages/admin-ui/package.json index 1b8c24855419a1..da4b8777206572 100644 --- a/packages/admin-ui/package.json +++ b/packages/admin-ui/package.json @@ -55,10 +55,10 @@ "devDependencies": { "@storybook/react-vite": "^10.5.3", "@testing-library/dom": "^10.4.1", - "@testing-library/jest-dom": "^6.9.1", - "@testing-library/react": "^16.3.2", + "@testing-library/jest-dom": "^7.0.1", + "@testing-library/react": "^16.3.3", "@wordpress/icons": "file:../icons", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "@types/react": "^18 || ^19", diff --git a/packages/annotations/package.json b/packages/annotations/package.json index d4ffabb2ade537..99c6649c7b4ade 100644 --- a/packages/annotations/package.json +++ b/packages/annotations/package.json @@ -50,7 +50,7 @@ }, "devDependencies": { "@types/react": "^18.3.27", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "react": "^18 || ^19" diff --git a/packages/api-fetch/package.json b/packages/api-fetch/package.json index 3ed311f1b9ff23..75149a6b0f9bb7 100644 --- a/packages/api-fetch/package.json +++ b/packages/api-fetch/package.json @@ -49,7 +49,7 @@ "@wordpress/url": "file:../url" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/autop/package.json b/packages/autop/package.json index de9e64553edaff..4e75a4d6ed1099 100644 --- a/packages/autop/package.json +++ b/packages/autop/package.json @@ -42,7 +42,7 @@ "types": "build-types", "sideEffects": false, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/babel-plugin-import-jsx-pragma/package.json b/packages/babel-plugin-import-jsx-pragma/package.json index a53ea9977996a2..d2cae0f29b7d4b 100644 --- a/packages/babel-plugin-import-jsx-pragma/package.json +++ b/packages/babel-plugin-import-jsx-pragma/package.json @@ -37,7 +37,7 @@ }, "devDependencies": { "@babel/plugin-syntax-jsx": "^7.25.7", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "@babel/core": "^7.25.7" diff --git a/packages/babel-plugin-makepot/package.json b/packages/babel-plugin-makepot/package.json index db2f30465cc4a9..21a008c9bdf16f 100644 --- a/packages/babel-plugin-makepot/package.json +++ b/packages/babel-plugin-makepot/package.json @@ -39,7 +39,7 @@ }, "devDependencies": { "@babel/traverse": "^7.25.7", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "@babel/core": "^7.25.7" diff --git a/packages/babel-preset-default/package.json b/packages/babel-preset-default/package.json index 5fbe2cb781711b..5a054b73ef1f95 100644 --- a/packages/babel-preset-default/package.json +++ b/packages/babel-preset-default/package.json @@ -53,7 +53,7 @@ "devDependencies": { "core-js-builder": "^3.39.0", "terser": "^5.37.0", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/blob/global.d.ts b/packages/blob/global.d.ts index c1289cbccb9928..c80741a50f8919 100644 --- a/packages/blob/global.d.ts +++ b/packages/blob/global.d.ts @@ -3,3 +3,4 @@ * like the jest-dom matchers, must be referenced explicitly. */ import '@testing-library/jest-dom'; +import '@testing-library/jest-dom/vitest'; diff --git a/packages/blob/package.json b/packages/blob/package.json index e9a734bf3ee29a..78b97df40a040f 100644 --- a/packages/blob/package.json +++ b/packages/blob/package.json @@ -42,10 +42,10 @@ "types": "build-types", "sideEffects": false, "devDependencies": { - "@testing-library/jest-dom": "^6.9.1", + "@testing-library/jest-dom": "^7.0.1", "@types/jest": "^30.0.0", "@types/node": "^24.13.3", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/block-directory/package.json b/packages/block-directory/package.json index a627eea2b02132..cbe43f9d986422 100644 --- a/packages/block-directory/package.json +++ b/packages/block-directory/package.json @@ -66,10 +66,10 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/react": "^16.3.2", + "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.1", "deep-freeze": "^0.0.1", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "react": "^18 || ^19", diff --git a/packages/block-editor/package.json b/packages/block-editor/package.json index d3443dca45a0f3..3480c9d5152399 100644 --- a/packages/block-editor/package.json +++ b/packages/block-editor/package.json @@ -112,13 +112,13 @@ "devDependencies": { "@ariakit/test": "^0.7.4", "@testing-library/dom": "^10.4.1", - "@testing-library/react": "^16.3.2", + "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.1", "@types/postcss-prefix-selector": "^1.16.3", "@wordpress/block-library": "file:../block-library", "deep-freeze": "^0.0.1", "storybook": "^10.5.3", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "@types/react": "^18 || ^19", diff --git a/packages/block-library/package.json b/packages/block-library/package.json index 2b01b367687454..60e51c9f69c5f6 100644 --- a/packages/block-library/package.json +++ b/packages/block-library/package.json @@ -141,13 +141,13 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/jest-dom": "^6.9.1", - "@testing-library/react": "^16.3.2", + "@testing-library/jest-dom": "^7.0.1", + "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.1", "@wordpress/integration-tests": "file:../../test/integration", "@wordpress/stylelint-tools": "file:../../tools/stylelint", "deep-freeze": "^0.0.1", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "@types/react": "^18 || ^19", diff --git a/packages/block-library/src/utils/test/waveform-player.jsdom.test.jsx b/packages/block-library/src/utils/test/waveform-player.jsdom.test.jsx index fa6016cde145bf..1b0eba887e5ff5 100644 --- a/packages/block-library/src/utils/test/waveform-player.jsdom.test.jsx +++ b/packages/block-library/src/utils/test/waveform-player.jsdom.test.jsx @@ -1,4 +1,4 @@ -import '@testing-library/jest-dom'; +import '@testing-library/jest-dom/vitest'; import { act, render } from '@testing-library/react'; import { WaveformPlayer } from '../waveform-player'; import { diff --git a/packages/block-library/src/utils/test/waveform-utils.jsdom.test.js b/packages/block-library/src/utils/test/waveform-utils.jsdom.test.js index 436539405d1a3c..f6d9e30123f9ae 100644 --- a/packages/block-library/src/utils/test/waveform-utils.jsdom.test.js +++ b/packages/block-library/src/utils/test/waveform-utils.jsdom.test.js @@ -1,4 +1,4 @@ -import '@testing-library/jest-dom'; +import '@testing-library/jest-dom/vitest'; import { applyWaveformPlayerStyles, createWaveformContainer, diff --git a/packages/block-serialization-default-parser/package.json b/packages/block-serialization-default-parser/package.json index 215f66441f2cea..949e9490789ba2 100644 --- a/packages/block-serialization-default-parser/package.json +++ b/packages/block-serialization-default-parser/package.json @@ -44,7 +44,7 @@ "sideEffects": false, "devDependencies": { "@wordpress/block-serialization-spec-parser": "file:../block-serialization-spec-parser", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/block-serialization-spec-parser/package.json b/packages/block-serialization-spec-parser/package.json index 826fb64a1fffbb..d7fe98d28b2d79 100644 --- a/packages/block-serialization-spec-parser/package.json +++ b/packages/block-serialization-spec-parser/package.json @@ -37,7 +37,7 @@ "phpegjs": "^1.0.0-beta7" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/blocks/package.json b/packages/blocks/package.json index b1922c5ad70df8..a95fd93bb98ab9 100644 --- a/packages/blocks/package.json +++ b/packages/blocks/package.json @@ -81,7 +81,7 @@ "devDependencies": { "@types/react-is": "^18.3.1", "deep-freeze": "^0.0.1", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "@types/react": "^18 || ^19", diff --git a/packages/browserslist-config/package.json b/packages/browserslist-config/package.json index d5165640ad28f8..9e64474a2a1f8c 100644 --- a/packages/browserslist-config/package.json +++ b/packages/browserslist-config/package.json @@ -33,7 +33,7 @@ }, "devDependencies": { "browserslist": "^4.28.4", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/components/package.json b/packages/components/package.json index 9488ce9dc6ade1..db777d092d156c 100644 --- a/packages/components/package.json +++ b/packages/components/package.json @@ -106,8 +106,8 @@ "@storybook/addon-docs": "^10.5.3", "@storybook/react-vite": "^10.5.3", "@testing-library/dom": "^10.4.1", - "@testing-library/jest-dom": "^6.9.1", - "@testing-library/react": "^16.3.2", + "@testing-library/jest-dom": "^7.0.1", + "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.1", "@types/jest": "^30.0.0", "@types/react-dom": "^18.3.1", @@ -116,7 +116,7 @@ "snapshot-diff": "^0.10.0", "storybook": "^10.5.3", "timezone-mock": "^1.3.6", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "@types/react": "^18 || ^19", diff --git a/packages/compose/package.json b/packages/compose/package.json index 5633ec1cb10c55..aa4ba8f5f90df8 100644 --- a/packages/compose/package.json +++ b/packages/compose/package.json @@ -60,12 +60,12 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/react": "^16.3.2", + "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.1", "@types/jest": "^30.0.0", "mock-match-media": "^0.4.2", "react-dom": "^18.3.1", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "@types/react": "^18 || ^19", diff --git a/packages/compose/src/hooks/use-resize-observer/test/index.jsdom.test.ts b/packages/compose/src/hooks/use-resize-observer/test/index.jsdom.test.ts new file mode 100644 index 00000000000000..b3098ef6dded64 --- /dev/null +++ b/packages/compose/src/hooks/use-resize-observer/test/index.jsdom.test.ts @@ -0,0 +1,37 @@ +import { afterAll, beforeAll, describe, expect, it, vi } from 'vitest'; +import { act, renderHook } from '@testing-library/react'; +import useResizeObserver from '..'; + +const disconnect = vi.fn(); + +class MockResizeObserver { + observe() {} + unobserve() {} + disconnect = disconnect; +} + +const originalResizeObserver = globalThis.ResizeObserver; + +beforeAll( () => { + globalThis.ResizeObserver = + MockResizeObserver as unknown as typeof ResizeObserver; +} ); + +afterAll( () => { + globalThis.ResizeObserver = originalResizeObserver; +} ); + +describe( 'useResizeObserver', () => { + it( 'disconnects the observer on unmount', () => { + const { result, unmount } = renderHook( () => + useResizeObserver( vi.fn() ) + ); + + act( () => result.current( document.createElement( 'div' ) ) ); + expect( disconnect ).not.toHaveBeenCalled(); + + unmount(); + + expect( disconnect ).toHaveBeenCalledOnce(); + } ); +} ); diff --git a/packages/compose/src/hooks/use-resize-observer/use-resize-observer.ts b/packages/compose/src/hooks/use-resize-observer/use-resize-observer.ts index 7aa376f11a929f..39d829fd005f59 100644 --- a/packages/compose/src/hooks/use-resize-observer/use-resize-observer.ts +++ b/packages/compose/src/hooks/use-resize-observer/use-resize-observer.ts @@ -1,4 +1,4 @@ -import { useRef } from '@wordpress/element'; +import { useEffect, useRef } from '@wordpress/element'; import useEvent from '../use-event'; // This is the current implementation of `useResizeObserver`. @@ -14,6 +14,18 @@ export function useResizeObserver< T extends HTMLElement >( const observedElementRef = useRef< T | null >( null ); const resizeObserverRef = useRef< ResizeObserver >( undefined ); + useEffect( () => { + if ( observedElementRef.current ) { + resizeObserverRef.current?.observe( + observedElementRef.current, + resizeObserverOptions + ); + } + return () => resizeObserverRef.current?.disconnect(); + // This effect owns the observer lifecycle. The returned ref handles + // element and option changes without recreating the observer. + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [] ); return useEvent( ( element?: T | null ) => { if ( element === observedElementRef.current ) { return; diff --git a/packages/connectors/package.json b/packages/connectors/package.json index 8a39553781f11d..a20407fb3ca722 100644 --- a/packages/connectors/package.json +++ b/packages/connectors/package.json @@ -37,7 +37,7 @@ "@wordpress/private-apis": "file:../private-apis" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "@types/react": "^18 || ^19", diff --git a/packages/core-commands/package.json b/packages/core-commands/package.json index 5b79c28d533414..5cc14aae4d25c4 100644 --- a/packages/core-commands/package.json +++ b/packages/core-commands/package.json @@ -54,7 +54,7 @@ "@wordpress/url": "file:../url" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "react": "^18 || ^19", diff --git a/packages/core-data/package.json b/packages/core-data/package.json index 67c279178d9583..bc1cb90370350f 100644 --- a/packages/core-data/package.json +++ b/packages/core-data/package.json @@ -77,11 +77,11 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/react": "^16.3.2", + "@testing-library/react": "^16.3.3", "@types/node": "^24.13.3", "@wordpress/block-library": "file:../block-library", "deep-freeze": "^0.0.1", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "@types/react": "^18 || ^19", diff --git a/packages/customize-widgets/package.json b/packages/customize-widgets/package.json index 79bc669c7d68a1..5dc0338b5bdbc4 100644 --- a/packages/customize-widgets/package.json +++ b/packages/customize-widgets/package.json @@ -67,8 +67,8 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/react": "^16.3.2", - "vitest": "^4.1.11" + "@testing-library/react": "^16.3.3", + "vitest": "^5.0.0" }, "peerDependencies": { "react": "^18 || ^19", diff --git a/packages/data-controls/package.json b/packages/data-controls/package.json index 43b2b4a3684097..1a4a42dbfc8112 100644 --- a/packages/data-controls/package.json +++ b/packages/data-controls/package.json @@ -48,7 +48,7 @@ "@wordpress/deprecated": "file:../deprecated" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "react": "^18 || ^19" diff --git a/packages/data/package.json b/packages/data/package.json index d2af4cc4896a83..4a43ebdb9d83b8 100644 --- a/packages/data/package.json +++ b/packages/data/package.json @@ -60,10 +60,10 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/react": "^16.3.2", + "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.1", "deep-freeze": "^0.0.1", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "@types/react": "^18 || ^19", diff --git a/packages/dataviews/package.json b/packages/dataviews/package.json index 04ecf506493301..b63f2071b64ca9 100644 --- a/packages/dataviews/package.json +++ b/packages/dataviews/package.json @@ -97,13 +97,13 @@ "@storybook/addon-docs": "^10.5.3", "@storybook/react-vite": "^10.5.3", "@testing-library/dom": "^10.4.1", - "@testing-library/jest-dom": "^6.9.1", - "@testing-library/react": "^16.3.2", + "@testing-library/jest-dom": "^7.0.1", + "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.1", "@types/node": "^24.13.3", "esbuild": "^0.27.2", "storybook": "^10.5.3", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "@types/react": "^18 || ^19", diff --git a/packages/date/package.json b/packages/date/package.json index c91c2774e859d2..0e641925e6c1c3 100644 --- a/packages/date/package.json +++ b/packages/date/package.json @@ -47,7 +47,7 @@ "moment-timezone": "^0.5.40" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/dependency-extraction-webpack-plugin/package.json b/packages/dependency-extraction-webpack-plugin/package.json index 2c1437792a7605..c1ee081384196e 100644 --- a/packages/dependency-extraction-webpack-plugin/package.json +++ b/packages/dependency-extraction-webpack-plugin/package.json @@ -48,7 +48,7 @@ "mini-css-extract-plugin": "^2.9.2", "mkdirp": "^3.0.1", "rimraf": "^5.0.10", - "vitest": "^4.1.11", + "vitest": "^5.0.0", "webpack": "^5.108.1" }, "peerDependencies": { diff --git a/packages/deprecated/package.json b/packages/deprecated/package.json index 9cb756fbec2ad3..90aa751ae14b5a 100644 --- a/packages/deprecated/package.json +++ b/packages/deprecated/package.json @@ -46,7 +46,7 @@ "@wordpress/hooks": "file:../hooks" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/design-system-mcp/package.json b/packages/design-system-mcp/package.json index 099ed1a675d22e..dac8300d738921 100644 --- a/packages/design-system-mcp/package.json +++ b/packages/design-system-mcp/package.json @@ -47,7 +47,7 @@ }, "devDependencies": { "@types/node": "^24.13.3", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/docgen/package.json b/packages/docgen/package.json index 31a62804063a4f..5c8dc83e7d48b6 100644 --- a/packages/docgen/package.json +++ b/packages/docgen/package.json @@ -44,7 +44,7 @@ }, "devDependencies": { "@types/babel__core": "^7.20.5", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/dom-ready/package.json b/packages/dom-ready/package.json index c5c58621219430..e5a2d3f82db3c5 100644 --- a/packages/dom-ready/package.json +++ b/packages/dom-ready/package.json @@ -43,7 +43,7 @@ "types": "build-types", "sideEffects": false, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/dom/package.json b/packages/dom/package.json index f731aca56b5d79..c603483f46a3b7 100644 --- a/packages/dom/package.json +++ b/packages/dom/package.json @@ -47,7 +47,7 @@ "@wordpress/deprecated": "file:../deprecated" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/edit-post/package.json b/packages/edit-post/package.json index 6dbb5715d1d913..3d3220b981306d 100644 --- a/packages/edit-post/package.json +++ b/packages/edit-post/package.json @@ -80,9 +80,9 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/react": "^16.3.2", + "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.1", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "react": "^18 || ^19", diff --git a/packages/edit-site/package.json b/packages/edit-site/package.json index abf56b6353e7c2..8802ae570e2995 100644 --- a/packages/edit-site/package.json +++ b/packages/edit-site/package.json @@ -87,7 +87,7 @@ "clsx": "^2.1.1" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "react": "^18 || ^19", diff --git a/packages/edit-widgets/package.json b/packages/edit-widgets/package.json index 1462b07277c760..d8130587d5971a 100644 --- a/packages/edit-widgets/package.json +++ b/packages/edit-widgets/package.json @@ -80,9 +80,9 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/react": "^16.3.2", + "@testing-library/react": "^16.3.3", "deep-freeze": "^0.0.1", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "react": "^18 || ^19", diff --git a/packages/editor/global.d.ts b/packages/editor/global.d.ts index c1289cbccb9928..c80741a50f8919 100644 --- a/packages/editor/global.d.ts +++ b/packages/editor/global.d.ts @@ -3,3 +3,4 @@ * like the jest-dom matchers, must be referenced explicitly. */ import '@testing-library/jest-dom'; +import '@testing-library/jest-dom/vitest'; diff --git a/packages/editor/package.json b/packages/editor/package.json index 16589590894a37..e453bcbd9dcbbf 100644 --- a/packages/editor/package.json +++ b/packages/editor/package.json @@ -119,13 +119,13 @@ "devDependencies": { "@storybook/react-vite": "^10.5.3", "@testing-library/dom": "^10.4.1", - "@testing-library/jest-dom": "^6.9.1", - "@testing-library/react": "^16.3.2", + "@testing-library/jest-dom": "^7.0.1", + "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.1", "@types/jest": "^30.0.0", "@wordpress/block-library": "file:../block-library", "deep-freeze": "^0.0.1", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "@types/react": "^18 || ^19", diff --git a/packages/element/package.json b/packages/element/package.json index 4e76027ec1f61c..5d582c96ecea17 100644 --- a/packages/element/package.json +++ b/packages/element/package.json @@ -50,8 +50,8 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/react": "^16.3.2", - "vitest": "^4.1.11" + "@testing-library/react": "^16.3.3", + "vitest": "^5.0.0" }, "peerDependencies": { "@types/react": "^18 || ^19", diff --git a/packages/env/package.json b/packages/env/package.json index 0ed1067d1bb722..be04f2edf6e5c9 100644 --- a/packages/env/package.json +++ b/packages/env/package.json @@ -58,7 +58,7 @@ "yargs": "^17.3.0" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/escape-html/package.json b/packages/escape-html/package.json index c453fe29f52e70..2a37cb9828217d 100644 --- a/packages/escape-html/package.json +++ b/packages/escape-html/package.json @@ -42,7 +42,7 @@ "types": "build-types", "sideEffects": false, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/eslint-plugin/package.json b/packages/eslint-plugin/package.json index 91157056951859..54e0f948992e12 100644 --- a/packages/eslint-plugin/package.json +++ b/packages/eslint-plugin/package.json @@ -66,7 +66,7 @@ "@typescript-eslint/parser": "^8.68.0", "eslint": "^10.0.0", "typescript": "npm:@typescript/typescript6@^6.0.2", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "eslint": "^9.0.0 || ^10.0.0", diff --git a/packages/fields/package.json b/packages/fields/package.json index f2cc408966d3ee..92d909d34173fd 100644 --- a/packages/fields/package.json +++ b/packages/fields/package.json @@ -76,7 +76,7 @@ "remove-accents": "^0.5.0" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "@types/react": "^18 || ^19", diff --git a/packages/format-library/package.json b/packages/format-library/package.json index 309c47bd7da32d..1d446ef0051729 100644 --- a/packages/format-library/package.json +++ b/packages/format-library/package.json @@ -61,9 +61,9 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/react": "^16.3.2", + "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.1", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "react": "^18 || ^19", diff --git a/packages/global-styles-engine/package.json b/packages/global-styles-engine/package.json index 7658f9967be5fc..c84f09537bdc1f 100644 --- a/packages/global-styles-engine/package.json +++ b/packages/global-styles-engine/package.json @@ -54,7 +54,7 @@ "memize": "^2.1.1" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/global-styles-ui/package.json b/packages/global-styles-ui/package.json index fc119559c1b84a..c03e25be37e77c 100644 --- a/packages/global-styles-ui/package.json +++ b/packages/global-styles-ui/package.json @@ -65,8 +65,8 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/react": "^16.3.2", - "vitest": "^4.1.11" + "@testing-library/react": "^16.3.3", + "vitest": "^5.0.0" }, "peerDependencies": { "@types/react": "^18 || ^19", diff --git a/packages/grid/global.d.ts b/packages/grid/global.d.ts index c1289cbccb9928..c80741a50f8919 100644 --- a/packages/grid/global.d.ts +++ b/packages/grid/global.d.ts @@ -3,3 +3,4 @@ * like the jest-dom matchers, must be referenced explicitly. */ import '@testing-library/jest-dom'; +import '@testing-library/jest-dom/vitest'; diff --git a/packages/grid/package.json b/packages/grid/package.json index 6d01f77a6d8f3f..5d3e969759e2e9 100644 --- a/packages/grid/package.json +++ b/packages/grid/package.json @@ -56,13 +56,13 @@ "devDependencies": { "@storybook/react-vite": "^10.5.3", "@testing-library/dom": "^10.4.1", - "@testing-library/jest-dom": "^6.9.1", - "@testing-library/react": "^16.3.2", + "@testing-library/jest-dom": "^7.0.1", + "@testing-library/react": "^16.3.3", "@types/jest": "^30.0.0", "@wordpress/icons": "file:../icons", "@wordpress/ui": "file:../ui", "storybook": "^10.5.3", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "@types/react": "^18 || ^19", diff --git a/packages/hooks/package.json b/packages/hooks/package.json index af7c5407f25405..1893141ed6a67d 100644 --- a/packages/hooks/package.json +++ b/packages/hooks/package.json @@ -43,7 +43,7 @@ "types": "build-types", "devDependencies": { "benchmark": "^2.1.4", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/html-entities/package.json b/packages/html-entities/package.json index 5a7cadaa417683..ac6fd101ef0bd5 100644 --- a/packages/html-entities/package.json +++ b/packages/html-entities/package.json @@ -43,7 +43,7 @@ "wpScript": true, "types": "build-types", "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/i18n/package.json b/packages/i18n/package.json index 1c50010c0d209b..a118fdc48d83ae 100644 --- a/packages/i18n/package.json +++ b/packages/i18n/package.json @@ -52,7 +52,7 @@ }, "devDependencies": { "benchmark": "^2.1.4", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/icons/package.json b/packages/icons/package.json index f193474b800d36..36e7c69d579887 100644 --- a/packages/icons/package.json +++ b/packages/icons/package.json @@ -49,10 +49,10 @@ }, "devDependencies": { "@storybook/react-vite": "^10.5.3", - "@testing-library/jest-dom": "^6.9.1", - "@testing-library/react": "^16.3.2", + "@testing-library/jest-dom": "^7.0.1", + "@testing-library/react": "^16.3.3", "@types/jest": "^30.0.0", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "@types/react": "^18 || ^19", diff --git a/packages/icons/src/icon/test/index.jsdom.test.tsx b/packages/icons/src/icon/test/index.jsdom.test.tsx index 21d598b5ce0aec..190347b7bd725f 100644 --- a/packages/icons/src/icon/test/index.jsdom.test.tsx +++ b/packages/icons/src/icon/test/index.jsdom.test.tsx @@ -1,4 +1,5 @@ import '@testing-library/jest-dom'; +import '@testing-library/jest-dom/vitest'; import { render, screen } from '@testing-library/react'; import Icon from '..'; diff --git a/packages/interactivity-router/package.json b/packages/interactivity-router/package.json index e1cc1b3330e051..14465b049c74d3 100644 --- a/packages/interactivity-router/package.json +++ b/packages/interactivity-router/package.json @@ -50,8 +50,8 @@ "es-module-lexer": "^1.5.4" }, "devDependencies": { - "@testing-library/jest-dom": "^6.9.1", - "vitest": "^4.1.11" + "@testing-library/jest-dom": "^7.0.1", + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/interactivity/package.json b/packages/interactivity/package.json index 40bcd672be4b5c..5f8ef0264c1d32 100644 --- a/packages/interactivity/package.json +++ b/packages/interactivity/package.json @@ -38,7 +38,7 @@ "preact": "^10.29.1" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/interactivity/src/test/vdom.jsdom.test.ts b/packages/interactivity/src/test/vdom.jsdom.test.ts index 0e484df9c12e9f..71bb3159f6b257 100644 --- a/packages/interactivity/src/test/vdom.jsdom.test.ts +++ b/packages/interactivity/src/test/vdom.jsdom.test.ts @@ -5,9 +5,12 @@ import { toVdom, hydratedIslands } from '../vdom'; declare module 'vitest' { // Must match Vitest's generic declaration for module augmentation. - // eslint-disable-next-line @typescript-eslint/no-unused-vars - interface Assertion< T = any > { - toMatchVNode: ( expected: ComponentChild ) => void; + interface Matchers< + R extends void | Promise< void > = void | Promise< void >, + // eslint-disable-next-line @typescript-eslint/no-unused-vars + T = unknown, + > { + toMatchVNode: ( expected: ComponentChild ) => R; } } diff --git a/packages/interface/package.json b/packages/interface/package.json index a0d841345d3efc..9a0f2ee8040ee3 100644 --- a/packages/interface/package.json +++ b/packages/interface/package.json @@ -68,8 +68,8 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/react": "^16.3.2", - "vitest": "^4.1.11" + "@testing-library/react": "^16.3.3", + "vitest": "^5.0.0" }, "peerDependencies": { "react": "^18 || ^19", diff --git a/packages/is-shallow-equal/package.json b/packages/is-shallow-equal/package.json index 821d1a76635fe0..50b358c643d2a9 100644 --- a/packages/is-shallow-equal/package.json +++ b/packages/is-shallow-equal/package.json @@ -47,7 +47,7 @@ "devDependencies": { "@wordpress/lazy-import": "file:../lazy-import", "benchmark": "^2.1.4", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/jest-console/package.json b/packages/jest-console/package.json index ee536936d8a6ed..353535621ae28f 100644 --- a/packages/jest-console/package.json +++ b/packages/jest-console/package.json @@ -47,7 +47,7 @@ "devDependencies": { "@types/jest": "^30.0.0", "@types/node": "^24.13.3", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "jest": ">=30" diff --git a/packages/jest-console/tsconfig.json b/packages/jest-console/tsconfig.json index 4ebe52e8789889..145ede5b747d6a 100644 --- a/packages/jest-console/tsconfig.json +++ b/packages/jest-console/tsconfig.json @@ -2,7 +2,7 @@ "$schema": "https://json.schemastore.org/tsconfig.json", "extends": "../../tsconfig.dev.base.json", "compilerOptions": { - "types": [ "jest", "node" ] + "types": [ "jest", "node", "gutenberg-vitest-test-env" ] }, "include": [ "src" ], "files": [ "declarations.d.ts" ] diff --git a/packages/jest-preset-default/package.json b/packages/jest-preset-default/package.json index 9aaa8754a48228..bf6bfedef57b3d 100644 --- a/packages/jest-preset-default/package.json +++ b/packages/jest-preset-default/package.json @@ -42,7 +42,7 @@ }, "devDependencies": { "clsx": "^2.1.1", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "@babel/core": ">=7", diff --git a/packages/kebab-case/package.json b/packages/kebab-case/package.json index a224a409b569a0..4b2dd24de14e2e 100644 --- a/packages/kebab-case/package.json +++ b/packages/kebab-case/package.json @@ -46,7 +46,7 @@ "change-case": "^4.1.2" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/keycodes/package.json b/packages/keycodes/package.json index 32ae7c872992e7..43b3510f71b483 100644 --- a/packages/keycodes/package.json +++ b/packages/keycodes/package.json @@ -45,7 +45,7 @@ "@wordpress/i18n": "file:../i18n" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "@types/react": "^18 || ^19" diff --git a/packages/media-editor/global.d.ts b/packages/media-editor/global.d.ts index c1289cbccb9928..c80741a50f8919 100644 --- a/packages/media-editor/global.d.ts +++ b/packages/media-editor/global.d.ts @@ -3,3 +3,4 @@ * like the jest-dom matchers, must be referenced explicitly. */ import '@testing-library/jest-dom'; +import '@testing-library/jest-dom/vitest'; diff --git a/packages/media-editor/package.json b/packages/media-editor/package.json index 242248f3f61c61..8bb5eab0c6d67e 100644 --- a/packages/media-editor/package.json +++ b/packages/media-editor/package.json @@ -66,11 +66,11 @@ "devDependencies": { "@storybook/react-vite": "^10.5.3", "@testing-library/dom": "^10.4.1", - "@testing-library/jest-dom": "^6.9.1", - "@testing-library/react": "^16.3.2", + "@testing-library/jest-dom": "^7.0.1", + "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.1", "@types/jest": "^30.0.0", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "@types/react": "^18 || ^19", diff --git a/packages/media-fields/package.json b/packages/media-fields/package.json index 5885b61f87320b..f5598378f1794e 100644 --- a/packages/media-fields/package.json +++ b/packages/media-fields/package.json @@ -63,9 +63,9 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/jest-dom": "^6.9.1", - "@testing-library/react": "^16.3.2", - "vitest": "^4.1.11" + "@testing-library/jest-dom": "^7.0.1", + "@testing-library/react": "^16.3.3", + "vitest": "^5.0.0" }, "peerDependencies": { "@types/react": "^18 || ^19", diff --git a/packages/media-utils/package.json b/packages/media-utils/package.json index 0534ae3cbaacaa..b49bd2f23eeb37 100644 --- a/packages/media-utils/package.json +++ b/packages/media-utils/package.json @@ -66,11 +66,11 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/jest-dom": "^6.9.1", - "@testing-library/react": "^16.3.2", + "@testing-library/jest-dom": "^7.0.1", + "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.1", "@wordpress/preferences": "file:../preferences", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "@types/react": "^18 || ^19", diff --git a/packages/notices/package.json b/packages/notices/package.json index 9bba759ec69c75..1ae92c6e2d93f4 100644 --- a/packages/notices/package.json +++ b/packages/notices/package.json @@ -55,10 +55,10 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/jest-dom": "^6.9.1", - "@testing-library/react": "^16.3.2", + "@testing-library/jest-dom": "^7.0.1", + "@testing-library/react": "^16.3.3", "deep-freeze": "^0.0.1", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "@types/react": "^18 || ^19", diff --git a/packages/npm-package-json-lint-config/package.json b/packages/npm-package-json-lint-config/package.json index d32bed6804f9b7..196f8c321838f6 100644 --- a/packages/npm-package-json-lint-config/package.json +++ b/packages/npm-package-json-lint-config/package.json @@ -32,7 +32,7 @@ "./package.json": "./package.json" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "npm-package-json-lint": ">=6.0.0" diff --git a/packages/nux/package.json b/packages/nux/package.json index 1c0fc7ecf0be1b..c7f0f2f226f6ca 100644 --- a/packages/nux/package.json +++ b/packages/nux/package.json @@ -57,8 +57,8 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/react": "^16.3.2", - "vitest": "^4.1.11" + "@testing-library/react": "^16.3.3", + "vitest": "^5.0.0" }, "peerDependencies": { "react": "^18 || ^19", diff --git a/packages/plugins/package.json b/packages/plugins/package.json index 889547468da375..a9724e5c1b1faf 100644 --- a/packages/plugins/package.json +++ b/packages/plugins/package.json @@ -54,9 +54,9 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/react": "^16.3.2", + "@testing-library/react": "^16.3.3", "@types/react-is": "^18.3.1", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "@types/react": "^18 || ^19", diff --git a/packages/postcss-themes/package.json b/packages/postcss-themes/package.json index deeccb3dc4d0a4..fcf59e169ef49c 100644 --- a/packages/postcss-themes/package.json +++ b/packages/postcss-themes/package.json @@ -36,7 +36,7 @@ "./package.json": "./package.json" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "postcss": "^8.0.0" diff --git a/packages/preferences-persistence/package.json b/packages/preferences-persistence/package.json index 53c4991b517613..09112889b4c00a 100644 --- a/packages/preferences-persistence/package.json +++ b/packages/preferences-persistence/package.json @@ -46,7 +46,7 @@ "@wordpress/api-fetch": "file:../api-fetch" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/preferences/package.json b/packages/preferences/package.json index b66b7f763c0feb..1e2029e977d47c 100644 --- a/packages/preferences/package.json +++ b/packages/preferences/package.json @@ -62,7 +62,7 @@ "@wordpress/private-apis": "file:../private-apis" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "@types/react": "^18 || ^19", diff --git a/packages/prettier-config/package.json b/packages/prettier-config/package.json index 1cacba843381f1..93e05a2ae9f771 100644 --- a/packages/prettier-config/package.json +++ b/packages/prettier-config/package.json @@ -36,7 +36,7 @@ "@types/node": "^24.13.3", "@types/prettier": "^2.4.4", "prettier": "npm:wp-prettier@^3.0.3", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "prettier": ">=3" diff --git a/packages/priority-queue/package.json b/packages/priority-queue/package.json index cbdd045dc6143f..2366fbef5d49bf 100644 --- a/packages/priority-queue/package.json +++ b/packages/priority-queue/package.json @@ -48,7 +48,7 @@ }, "devDependencies": { "@types/requestidlecallback": "^0.3.4", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/private-apis/package.json b/packages/private-apis/package.json index a53983c09da8b8..01886145bbfd94 100644 --- a/packages/private-apis/package.json +++ b/packages/private-apis/package.json @@ -45,7 +45,7 @@ "sideEffects": false, "devDependencies": { "react": "^18.3.1", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/project-management-automation/package.json b/packages/project-management-automation/package.json index 7a57f5b1f90bbf..84e8cd77cff9f1 100644 --- a/packages/project-management-automation/package.json +++ b/packages/project-management-automation/package.json @@ -38,7 +38,7 @@ }, "devDependencies": { "@types/node": "^24.13.3", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/readable-js-assets-webpack-plugin/package.json b/packages/readable-js-assets-webpack-plugin/package.json index aee3d67d7a8a6d..ebc9bfadf50f9d 100644 --- a/packages/readable-js-assets-webpack-plugin/package.json +++ b/packages/readable-js-assets-webpack-plugin/package.json @@ -37,7 +37,7 @@ "mkdirp": "^3.0.1", "rimraf": "^5.0.10", "terser-webpack-plugin": "^5.3.10", - "vitest": "^4.1.11", + "vitest": "^5.0.0", "webpack": "^5.108.1" }, "peerDependencies": { diff --git a/packages/redux-routine/package.json b/packages/redux-routine/package.json index 2d1c04ffac7dd8..1e7339f8295e55 100644 --- a/packages/redux-routine/package.json +++ b/packages/redux-routine/package.json @@ -52,7 +52,7 @@ }, "devDependencies": { "redux": "^5.0.1", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "redux": ">=4" diff --git a/packages/report-flaky-tests/package.json b/packages/report-flaky-tests/package.json index f7f82c38c2f151..c980d07223c856 100644 --- a/packages/report-flaky-tests/package.json +++ b/packages/report-flaky-tests/package.json @@ -41,7 +41,7 @@ }, "devDependencies": { "@types/node": "^24.13.3", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/rich-text/package.json b/packages/rich-text/package.json index 203bd5332e513a..1e192b91360a94 100644 --- a/packages/rich-text/package.json +++ b/packages/rich-text/package.json @@ -65,7 +65,7 @@ }, "devDependencies": { "deep-freeze": "^0.0.1", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "@types/react": "^18 || ^19", diff --git a/packages/scripts/package.json b/packages/scripts/package.json index f0a71f16221e2e..463eb44c57050f 100644 --- a/packages/scripts/package.json +++ b/packages/scripts/package.json @@ -89,7 +89,7 @@ }, "devDependencies": { "rimraf": "^5.0.10", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "@playwright/test": ">=1", diff --git a/packages/server-side-render/package.json b/packages/server-side-render/package.json index d7dd1bdab193a5..ca19032ac1e588 100644 --- a/packages/server-side-render/package.json +++ b/packages/server-side-render/package.json @@ -54,7 +54,7 @@ "@wordpress/url": "file:../url" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "@types/react": "^18 || ^19", diff --git a/packages/shortcode/package.json b/packages/shortcode/package.json index e399eea76f0f4b..b203d827d8eb3e 100644 --- a/packages/shortcode/package.json +++ b/packages/shortcode/package.json @@ -46,7 +46,7 @@ "memize": "^2.1.1" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/style-engine/package.json b/packages/style-engine/package.json index 1e2e614a467572..865d3883df5bc2 100644 --- a/packages/style-engine/package.json +++ b/packages/style-engine/package.json @@ -67,7 +67,7 @@ "change-case": "^4.1.2" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "@types/react": "^18 || ^19" diff --git a/packages/style-runtime/package.json b/packages/style-runtime/package.json index 357c51cb304c62..35ad4d1a38d82b 100644 --- a/packages/style-runtime/package.json +++ b/packages/style-runtime/package.json @@ -42,8 +42,8 @@ "types": "build-types", "sideEffects": false, "devDependencies": { - "@testing-library/jest-dom": "^6.9.1", - "vitest": "^4.1.11" + "@testing-library/jest-dom": "^7.0.1", + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/stylelint-config/package.json b/packages/stylelint-config/package.json index 886be4a5e4482d..51a81383c0762d 100644 --- a/packages/stylelint-config/package.json +++ b/packages/stylelint-config/package.json @@ -51,7 +51,7 @@ "@wordpress/npm-package-json-lint-config": "file:../npm-package-json-lint-config", "stylelint": "^17.14.1", "stylelint-scss": "^7.2.0", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "stylelint": "^17.14.1", diff --git a/packages/sync/package.json b/packages/sync/package.json index 6ab2f255be7059..c67b0767ed6f6a 100644 --- a/packages/sync/package.json +++ b/packages/sync/package.json @@ -55,7 +55,7 @@ }, "devDependencies": { "@types/node": "^24.13.3", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/theme/global.d.ts b/packages/theme/global.d.ts index 07d96c55dc3554..b3f81bd45001ef 100644 --- a/packages/theme/global.d.ts +++ b/packages/theme/global.d.ts @@ -3,3 +3,4 @@ // To ensure that global types are included, we need to // explicitly reference them here. import '@testing-library/jest-dom'; +import '@testing-library/jest-dom/vitest'; diff --git a/packages/theme/package.json b/packages/theme/package.json index e7c984c5303f78..84970c1c3470b8 100644 --- a/packages/theme/package.json +++ b/packages/theme/package.json @@ -97,8 +97,8 @@ "@terrazzo/plugin-css": "^2.7.1", "@terrazzo/token-tools": "^2.7.1", "@testing-library/dom": "^10.4.1", - "@testing-library/jest-dom": "^6.9.1", - "@testing-library/react": "^16.3.2", + "@testing-library/jest-dom": "^7.0.1", + "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.1", "@types/jest": "^30.0.0", "@types/node": "^24.13.3", @@ -109,7 +109,7 @@ "prettier": "npm:wp-prettier@^3.0.3", "storybook": "^10.5.3", "stylelint": "^17.14.1", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "@types/react": "^18 || ^19", diff --git a/packages/theme/src/color-ramps/test/__snapshots__/index.test.ts.snap b/packages/theme/src/color-ramps/test/__snapshots__/index.test.ts.snap index 2a4b0cff466304..11a300367a2564 100644 --- a/packages/theme/src/color-ramps/test/__snapshots__/index.test.ts.snap +++ b/packages/theme/src/color-ramps/test/__snapshots__/index.test.ts.snap @@ -1,6 +1,6 @@ // Vitest Snapshot v1, https://vitest.dev/guide/snapshot.html -exports[`buildRamps > accent ramp snapshots for 'admin themes' 1`] = ` +exports[`buildRamps > accent ramp snapshots for admin themes 1`] = ` [ [ { @@ -1525,7 +1525,7 @@ exports[`buildRamps > accent ramp snapshots for 'admin themes' 1`] = ` ] `; -exports[`buildRamps > accent ramp snapshots for 'defaults' 1`] = ` +exports[`buildRamps > accent ramp snapshots for defaults 1`] = ` [ [ { diff --git a/packages/token-list/package.json b/packages/token-list/package.json index be2b6493a773c0..a729735edad291 100644 --- a/packages/token-list/package.json +++ b/packages/token-list/package.json @@ -43,7 +43,7 @@ "wpScriptDefaultExport": true, "types": "build-types", "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/ui/global.d.ts b/packages/ui/global.d.ts index 707804b8732422..ec7121a02021fe 100644 --- a/packages/ui/global.d.ts +++ b/packages/ui/global.d.ts @@ -3,4 +3,5 @@ // To ensure that global types are included, we need to // explicitly reference them here. import '@testing-library/jest-dom'; +import '@testing-library/jest-dom/vitest'; import '@wordpress/jest-console'; diff --git a/packages/ui/package.json b/packages/ui/package.json index dc2ba70b5979df..f546ffbfe7478f 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -64,8 +64,8 @@ "@storybook/addon-docs": "^10.5.3", "@storybook/react-vite": "^10.5.3", "@testing-library/dom": "^10.4.1", - "@testing-library/jest-dom": "^6.9.1", - "@testing-library/react": "^16.3.2", + "@testing-library/jest-dom": "^7.0.1", + "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.1", "@types/jest": "^30.0.0", "@types/node": "^24.13.3", @@ -73,7 +73,7 @@ "@wordpress/jest-console": "file:../jest-console", "fast-glob": "^3.2.7", "storybook": "^10.5.3", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "@types/react": "^18 || ^19", diff --git a/packages/undo-manager/package.json b/packages/undo-manager/package.json index d0e89e903ebf05..3f20209fc2b748 100644 --- a/packages/undo-manager/package.json +++ b/packages/undo-manager/package.json @@ -48,7 +48,7 @@ }, "devDependencies": { "@types/node": "^24.13.3", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/upload-media/package.json b/packages/upload-media/package.json index 551ba117da49d8..4a821471a54112 100644 --- a/packages/upload-media/package.json +++ b/packages/upload-media/package.json @@ -62,7 +62,7 @@ }, "devDependencies": { "@types/node": "^24.13.3", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "@types/react": "^18 || ^19", diff --git a/packages/url/package.json b/packages/url/package.json index 7fc375e1cdb298..5de872b1cb5b3f 100644 --- a/packages/url/package.json +++ b/packages/url/package.json @@ -46,7 +46,7 @@ "remove-accents": "^0.5.0" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/video-conversion/package.json b/packages/video-conversion/package.json index b7aaf12364eae0..6ca0ce81385f3f 100644 --- a/packages/video-conversion/package.json +++ b/packages/video-conversion/package.json @@ -58,7 +58,7 @@ "mediabunny": "^1.45.2" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/viewport/package.json b/packages/viewport/package.json index 073f1bd9f81a86..a56a360152122b 100644 --- a/packages/viewport/package.json +++ b/packages/viewport/package.json @@ -48,9 +48,9 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/react": "^16.3.2", + "@testing-library/react": "^16.3.3", "deep-freeze": "^0.0.1", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "@types/react": "^18 || ^19", diff --git a/packages/views/package.json b/packages/views/package.json index 7a8f16640536cb..44e2aed14762a6 100644 --- a/packages/views/package.json +++ b/packages/views/package.json @@ -50,10 +50,10 @@ "dequal": "^2.0.3" }, "devDependencies": { - "@testing-library/react": "^16.3.2", + "@testing-library/react": "^16.3.3", "react": "^18.3.1", "react-dom": "^18.3.1", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/vips/package.json b/packages/vips/package.json index e909e734787a91..92b2c3ea6508f7 100644 --- a/packages/vips/package.json +++ b/packages/vips/package.json @@ -60,7 +60,7 @@ }, "devDependencies": { "@types/node": "^24.13.3", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/warning/package.json b/packages/warning/package.json index c8e1cd200f47e7..40654f962d2d74 100644 --- a/packages/warning/package.json +++ b/packages/warning/package.json @@ -47,7 +47,7 @@ "sideEffects": false, "devDependencies": { "@babel/core": "^7.25.7", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/widget-dashboard/package.json b/packages/widget-dashboard/package.json index 3c517abfbe148f..ce5451277003af 100644 --- a/packages/widget-dashboard/package.json +++ b/packages/widget-dashboard/package.json @@ -69,12 +69,12 @@ "@storybook/addon-docs": "^10.5.3", "@storybook/react-vite": "^10.5.3", "@testing-library/dom": "^10.4.1", - "@testing-library/jest-dom": "^6.9.1", - "@testing-library/react": "^16.3.2", + "@testing-library/jest-dom": "^7.0.1", + "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.1", "@wordpress/admin-ui": "file:../admin-ui", "storybook": "^10.5.3", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "@types/react": "^18 || ^19", diff --git a/packages/widget-primitives/package.json b/packages/widget-primitives/package.json index ec6adb4a9ade02..1c6ca4bb36a120 100644 --- a/packages/widget-primitives/package.json +++ b/packages/widget-primitives/package.json @@ -51,12 +51,12 @@ "devDependencies": { "@storybook/addon-docs": "^10.5.3", "@storybook/react-vite": "^10.5.3", - "@testing-library/react": "^16.3.2", + "@testing-library/react": "^16.3.3", "@wordpress/components": "file:../components", "@wordpress/icons": "file:../icons", "@wordpress/ui": "file:../ui", "storybook": "^10.5.3", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "@types/react": "^18 || ^19", diff --git a/packages/wordcount/package.json b/packages/wordcount/package.json index 0adef26034ebc3..7b70e7ec073e4d 100644 --- a/packages/wordcount/package.json +++ b/packages/wordcount/package.json @@ -43,7 +43,7 @@ "types": "build-types", "sideEffects": false, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/worker-threads/package.json b/packages/worker-threads/package.json index ab93a1c187e2f0..439c1b9ed4b199 100644 --- a/packages/worker-threads/package.json +++ b/packages/worker-threads/package.json @@ -52,7 +52,7 @@ "comctx": "^1.4.3" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/packages/wp-build/package.json b/packages/wp-build/package.json index 826c6ffec68b6d..f7ce1e1e3ae352 100644 --- a/packages/wp-build/package.json +++ b/packages/wp-build/package.json @@ -56,7 +56,7 @@ }, "devDependencies": { "@types/node": "^24.13.3", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "@wordpress/boot": ">=0.3.0 <1.0.0", diff --git a/routes/connectors-home/package.json b/routes/connectors-home/package.json index 1c18b98e50be28..19f4803f956ff4 100644 --- a/routes/connectors-home/package.json +++ b/routes/connectors-home/package.json @@ -25,11 +25,11 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/jest-dom": "^6.9.1", - "@testing-library/react": "^16.3.2", + "@testing-library/jest-dom": "^7.0.1", + "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.1", "@types/jest": "^30.0.0", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "react": "^18 || ^19" diff --git a/routes/dashboard/global.d.ts b/routes/dashboard/global.d.ts index c1289cbccb9928..c80741a50f8919 100644 --- a/routes/dashboard/global.d.ts +++ b/routes/dashboard/global.d.ts @@ -3,3 +3,4 @@ * like the jest-dom matchers, must be referenced explicitly. */ import '@testing-library/jest-dom'; +import '@testing-library/jest-dom/vitest'; diff --git a/routes/dashboard/package.json b/routes/dashboard/package.json index fab07efe92e75b..24505a12f8d8e2 100644 --- a/routes/dashboard/package.json +++ b/routes/dashboard/package.json @@ -27,10 +27,10 @@ }, "devDependencies": { "@testing-library/dom": "^10.4.1", - "@testing-library/jest-dom": "^6.9.1", - "@testing-library/react": "^16.3.2", + "@testing-library/jest-dom": "^7.0.1", + "@testing-library/react": "^16.3.3", "@types/jest": "^30.0.0", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "peerDependencies": { "react": "^18 || ^19" diff --git a/storybook/package.json b/storybook/package.json index ed9583cc5c0d13..835adb36c8f479 100644 --- a/storybook/package.json +++ b/storybook/package.json @@ -39,7 +39,7 @@ "@types/js-yaml": "^3.12.10", "@types/react": "^18.3.27", "@vitejs/plugin-react": "^6.0.5", - "@vitest/browser-playwright": "^4.1.10", + "@vitest/browser-playwright": "^5.0.0", "@wordpress/admin-ui": "file:../packages/admin-ui", "@wordpress/base-styles": "file:../packages/base-styles", "@wordpress/block-editor": "file:../packages/block-editor", @@ -76,7 +76,7 @@ "terser": "^5.37.0", "typescript": "npm:@typescript/typescript6@^6.0.2", "vite": "^8.2.2", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/test/integration/package.json b/test/integration/package.json index 3d1cd960ecb749..a68c535c55948f 100644 --- a/test/integration/package.json +++ b/test/integration/package.json @@ -23,7 +23,7 @@ "./helpers/integration-test-editor": "./helpers/integration-test-editor.jsx" }, "devDependencies": { - "@testing-library/react": "^16.3.2", + "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.1", "@wordpress/block-editor": "file:../../packages/block-editor", "@wordpress/block-library": "file:../../packages/block-library", @@ -38,7 +38,7 @@ "fast-glob": "^3.2.7", "react": "^18.3.1", "rimraf": "^5.0.10", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/test/unit/package.json b/test/unit/package.json index 5ac17876f65175..9a9244ebf74758 100644 --- a/test/unit/package.json +++ b/test/unit/package.json @@ -23,15 +23,15 @@ "@emotion/jest": "^11.14.2", "@emotion/styled": "^11.14.1", "@flakiness/jest": "^1.3.1", - "@flakiness/vitest": "^1.9.0", + "@flakiness/vitest": "^1.9.2", "@swc/plugin-emotion": "^16.0.0", - "@testing-library/jest-dom": "^6.9.1", - "@testing-library/react": "^16.3.2", + "@testing-library/jest-dom": "^7.0.1", + "@testing-library/react": "^16.3.3", "@testing-library/user-event": "^14.6.1", "@types/node": "^24.13.3", "@typescript-eslint/parser": "^8.68.0", "@vitejs/plugin-react-swc": "^4.3.3", - "@vitest/browser-playwright": "^4.1.10", + "@vitest/browser-playwright": "^5.0.0", "@wordpress/babel-preset-default": "file:../../packages/babel-preset-default", "@wordpress/html-entities": "file:../../packages/html-entities", "@wordpress/jest-preset-default": "file:../../packages/jest-preset-default", @@ -53,7 +53,7 @@ "snapshot-diff": "^0.10.0", "timezone-mock": "^1.3.6", "typescript": "npm:@typescript/typescript6@^6.0.2", - "vitest": "^4.1.11", + "vitest": "^5.0.0", "yargs": "^17.3.0" }, "publishConfig": { diff --git a/test/unit/scripts/test-infrastructure-policy.mjs b/test/unit/scripts/test-infrastructure-policy.mjs index e633992728d084..6ce7deb1585b91 100644 --- a/test/unit/scripts/test-infrastructure-policy.mjs +++ b/test/unit/scripts/test-infrastructure-policy.mjs @@ -364,6 +364,11 @@ export function validateVitestCleanupConfig( vitestConfig ) { 'test/unit/vitest.config.mjs: test.globals must remain false' ); } + if ( vitestConfig.test?.clearMocks !== false ) { + violations.push( + 'test/unit/vitest.config.mjs: test.clearMocks must remain false while test.mockReset is true' + ); + } for ( const project of vitestConfig.test?.projects ?? [] ) { const projectName = project.test?.name ?? 'unnamed'; diff --git a/test/unit/scripts/test/test-infrastructure-policy.test.js b/test/unit/scripts/test/test-infrastructure-policy.test.js index b62ee91bd1b4e3..65c1921de7631d 100644 --- a/test/unit/scripts/test/test-infrastructure-policy.test.js +++ b/test/unit/scripts/test/test-infrastructure-policy.test.js @@ -252,6 +252,7 @@ export default { expect.arrayContaining( [ 'test/unit/vitest.config.mjs: test.isolate must be true', 'test/unit/vitest.config.mjs: test.mockReset must be true', + 'test/unit/vitest.config.mjs: test.clearMocks must remain false while test.mockReset is true', 'test/unit/vitest.config.mjs: test.globals must remain false', ] ) ); @@ -441,12 +442,12 @@ export const beforeAll = () => {}; } ); writeJson( path.join( vitestDir, 'package.json' ), { name: 'vitest', - version: '4.0.0', + version: '5.0.0', types: 'index.d.ts', } ); writeFileSync( path.join( vitestDir, 'index.d.ts' ), - 'export interface AsymmetricMatcher { asymmetricMatch(value: unknown): boolean; }\nexport interface Matchers { toBe(value: unknown): void; }\nexport declare const vi: unknown;\nexport declare function expect(value: T): Matchers;\nexport declare namespace expect { function stringContaining(value: string): AsymmetricMatcher; }\n' + 'export interface AsymmetricMatcher { asymmetricMatch(value: unknown): boolean; }\nexport interface Matchers = void | Promise, T = unknown> {}\nexport interface Assertion = void, T = unknown> extends Matchers { toBe(value: unknown): R; }\nexport declare const vi: unknown;\nexport declare function expect(value: T): Assertion;\nexport declare namespace expect { function stringContaining(value: string): AsymmetricMatcher; }\n' ); writeJson( path.join( jestDomDir, 'package.json' ), { name: '@testing-library/jest-dom', diff --git a/test/unit/scripts/test/vitest-isolation.test.js b/test/unit/scripts/test/vitest-isolation.test.js index fbc5ea5ac57f69..0236ce9f1d2359 100644 --- a/test/unit/scripts/test/vitest-isolation.test.js +++ b/test/unit/scripts/test/vitest-isolation.test.js @@ -5,7 +5,7 @@ const target = { method: () => 'original method implementation', }; -describe.sequential( 'Vitest test isolation', () => { +describe( 'Vitest test isolation', { concurrent: false }, () => { it( 'can change mocks, spies, globals, environment variables, and timers', () => { mock.mockImplementation( () => 'changed mock implementation' ); mock(); diff --git a/test/unit/typings/gutenberg-vitest-test-env/index.d.ts b/test/unit/typings/gutenberg-vitest-test-env/index.d.ts index 7f45ffe3c10ec2..29f043fbfb9d14 100644 --- a/test/unit/typings/gutenberg-vitest-test-env/index.d.ts +++ b/test/unit/typings/gutenberg-vitest-test-env/index.d.ts @@ -1,18 +1,18 @@ import 'vitest'; import type { TestingLibraryMatchers } from '@testing-library/jest-dom/matchers'; -interface GutenbergVitestMatchers { - toBePositionedPopover: () => void; - toHaveErrored: () => void; - toHaveErroredWith: ( ...args: unknown[] ) => void; - toHaveInformed: () => void; - toHaveInformedWith: ( ...args: unknown[] ) => void; - toHaveLogged: () => void; - toHaveLoggedWith: ( ...args: unknown[] ) => void; - toHaveWarned: () => void; - toHaveWarnedWith: ( ...args: unknown[] ) => void; - toMatchDiffSnapshot: ( expected: unknown ) => void; - toMatchStyleDiffSnapshot: ( expected: Element | null ) => void; +interface GutenbergVitestMatchers< R > { + toBePositionedPopover: () => R; + toHaveErrored: () => R; + toHaveErroredWith: ( ...args: unknown[] ) => R; + toHaveInformed: () => R; + toHaveInformedWith: ( ...args: unknown[] ) => R; + toHaveLogged: () => R; + toHaveLoggedWith: ( ...args: unknown[] ) => R; + toHaveWarned: () => R; + toHaveWarnedWith: ( ...args: unknown[] ) => R; + toMatchDiffSnapshot: ( expected: unknown ) => R; + toMatchStyleDiffSnapshot: ( expected: Element | null ) => R; } interface GutenbergVitestEnvironment { @@ -30,8 +30,10 @@ declare global { } declare module 'vitest' { - // eslint-disable-next-line @typescript-eslint/no-unused-vars -- Keep Vitest's canonical generic matcher interface. - interface Matchers< T = any > - extends GutenbergVitestMatchers, - TestingLibraryMatchers< any, void > {} + interface Matchers< + R extends void | Promise< void > = void | Promise< void >, + // eslint-disable-next-line @typescript-eslint/no-unused-vars -- Keep Vitest's canonical generic matcher interface. + T = unknown, + > extends GutenbergVitestMatchers< R >, + TestingLibraryMatchers< any, R > {} } diff --git a/test/unit/vitest.config.mjs b/test/unit/vitest.config.mjs index 6b80d267123c9a..df28e09eed198e 100644 --- a/test/unit/vitest.config.mjs +++ b/test/unit/vitest.config.mjs @@ -232,6 +232,9 @@ export default defineConfig( { }, }, ], + // mockReset already clears every mock. Keep clearMocks disabled to make + // that overlap explicit and avoid a redundant cleanup pass. + clearMocks: false, globals: false, includeTaskLocation: true, isolate: true, diff --git a/tools/agents/package.json b/tools/agents/package.json index 5d030e483255dd..ecd1c6d9552460 100644 --- a/tools/agents/package.json +++ b/tools/agents/package.json @@ -21,7 +21,7 @@ "url": "https://github.com/WordPress/gutenberg/issues" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/tools/build-scripts/package.json b/tools/build-scripts/package.json index 964ae42872061b..715263b957428f 100644 --- a/tools/build-scripts/package.json +++ b/tools/build-scripts/package.json @@ -41,7 +41,7 @@ "source-map": "^0.6.1" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/tools/pr-meta/package.json b/tools/pr-meta/package.json index b0428b55e83525..d4d67f7a741c4d 100644 --- a/tools/pr-meta/package.json +++ b/tools/pr-meta/package.json @@ -27,7 +27,7 @@ "main": "src/index.ts", "devDependencies": { "@types/node": "^24.13.3", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/tools/release/package.json b/tools/release/package.json index feb920ad93394c..d1c021a9d4d597 100644 --- a/tools/release/package.json +++ b/tools/release/package.json @@ -36,7 +36,7 @@ "sprintf-js": "^1.1.1" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/tools/stylelint/package.json b/tools/stylelint/package.json index fc96de94cce3a0..6b1471ac7450c7 100644 --- a/tools/stylelint/package.json +++ b/tools/stylelint/package.json @@ -29,7 +29,7 @@ "stylelint-plugin-logical-css": "^2.1.0" }, "devDependencies": { - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" diff --git a/tools/validation/package.json b/tools/validation/package.json index af6e5d71792e16..0d51f08fc99b0d 100644 --- a/tools/validation/package.json +++ b/tools/validation/package.json @@ -32,7 +32,7 @@ "glob": "^13.0.6", "jsonc-parser": "^3.3.1", "simple-git": "^3.32.3", - "vitest": "^4.1.11" + "vitest": "^5.0.0" }, "publishConfig": { "access": "public" From 9ad9b3df940758b84a6af7d5d30a873c8a86ed7c Mon Sep 17 00:00:00 2001 From: Marco Ciampini Date: Wed, 9 Sep 2026 16:38:14 +0200 Subject: [PATCH 2/4] Packages: Document ResizeObserver cleanup --- packages/compose/CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/compose/CHANGELOG.md b/packages/compose/CHANGELOG.md index a924629bd28cc4..982ef908708c5d 100644 --- a/packages/compose/CHANGELOG.md +++ b/packages/compose/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +### Bug Fixes + +- `useResizeObserver`: Disconnect the observer when the hook unmounts so queued callbacks cannot run after teardown ([#82687](https://github.com/WordPress/gutenberg/pull/82687)). + ### Internal - Use the `.jsx` extension for JavaScript source files that contain JSX ([#80990](https://github.com/WordPress/gutenberg/pull/80990)). From 9951ba643e69e4863add7018de6a2afbe6d366df Mon Sep 17 00:00:00 2001 From: Marco Ciampini Date: Wed, 9 Sep 2026 16:53:26 +0200 Subject: [PATCH 3/4] Test: Restore Jest-only matcher imports --- .../block-library/src/utils/test/waveform-player.jsdom.test.jsx | 2 +- .../block-library/src/utils/test/waveform-utils.jsdom.test.js | 2 +- packages/icons/src/icon/test/index.jsdom.test.tsx | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/block-library/src/utils/test/waveform-player.jsdom.test.jsx b/packages/block-library/src/utils/test/waveform-player.jsdom.test.jsx index 1b0eba887e5ff5..fa6016cde145bf 100644 --- a/packages/block-library/src/utils/test/waveform-player.jsdom.test.jsx +++ b/packages/block-library/src/utils/test/waveform-player.jsdom.test.jsx @@ -1,4 +1,4 @@ -import '@testing-library/jest-dom/vitest'; +import '@testing-library/jest-dom'; import { act, render } from '@testing-library/react'; import { WaveformPlayer } from '../waveform-player'; import { diff --git a/packages/block-library/src/utils/test/waveform-utils.jsdom.test.js b/packages/block-library/src/utils/test/waveform-utils.jsdom.test.js index f6d9e30123f9ae..436539405d1a3c 100644 --- a/packages/block-library/src/utils/test/waveform-utils.jsdom.test.js +++ b/packages/block-library/src/utils/test/waveform-utils.jsdom.test.js @@ -1,4 +1,4 @@ -import '@testing-library/jest-dom/vitest'; +import '@testing-library/jest-dom'; import { applyWaveformPlayerStyles, createWaveformContainer, diff --git a/packages/icons/src/icon/test/index.jsdom.test.tsx b/packages/icons/src/icon/test/index.jsdom.test.tsx index 190347b7bd725f..21d598b5ce0aec 100644 --- a/packages/icons/src/icon/test/index.jsdom.test.tsx +++ b/packages/icons/src/icon/test/index.jsdom.test.tsx @@ -1,5 +1,4 @@ import '@testing-library/jest-dom'; -import '@testing-library/jest-dom/vitest'; import { render, screen } from '@testing-library/react'; import Icon from '..'; From 456acd0b0bff6997abf47c6290df0dab1f6df281 Mon Sep 17 00:00:00 2001 From: Marco Ciampini Date: Wed, 9 Sep 2026 17:11:40 +0200 Subject: [PATCH 4/4] Test: Document ResizeObserver jsdom exception --- test/unit/vitest-policy-exceptions.json | 1 + 1 file changed, 1 insertion(+) diff --git a/test/unit/vitest-policy-exceptions.json b/test/unit/vitest-policy-exceptions.json index 6110b05d7dc2a3..463fe47bfbca7e 100644 --- a/test/unit/vitest-policy-exceptions.json +++ b/test/unit/vitest-policy-exceptions.json @@ -5,6 +5,7 @@ "packages/block-editor/src/utils/test/dom.jsdom.test.jsx": "Uses explicit DOMRect fixtures to test clipping and element-selection algorithms without relying on browser layout.", "packages/components/src/snackbar/test/list.jsdom.test.tsx": "Stubs scrollTo only to satisfy focus side effects; the regression assertion covers deterministic focus transfer, not scrolling.", "packages/components/src/validated-form-controls/test/range-control.jsdom.test.tsx": "Uses requestAnimationFrame only to schedule reportValidity after React state; assertions cover accessible description semantics.", + "packages/compose/src/hooks/use-resize-observer/test/index.jsdom.test.ts": "Replaces ResizeObserver with a deterministic mock to verify disconnect-on-unmount lifecycle behavior without relying on browser layout.", "packages/grid/src/dashboard-grid/test/item-interactions.jsdom.test.tsx": "Stubs ResizeObserver only to mount the grid; assertions cover deterministic drag and resize control semantics.", "packages/grid/src/dashboard-grid/test/keyboard-activation.jsdom.test.tsx": "Stubs ResizeObserver only to mount the grid; assertions cover the deterministic keyboard activator DOM hierarchy.", "packages/grid/src/dashboard-lanes/test/item-interactions.jsdom.test.tsx": "Stubs ResizeObserver only to mount the lanes; assertions cover deterministic drag and resize control semantics.",