From 756d841d6a06d0e2c4102ded4974e1ddf97072b5 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 24 Oct 2025 01:41:42 +0000 Subject: [PATCH 1/2] chore(deps): update devdependency @types/jsdom to v27 --- package.json | 2 +- pnpm-lock.yaml | 11 ++++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index bb8dd7e16..1b79c91fe 100644 --- a/package.json +++ b/package.json @@ -101,7 +101,7 @@ "@testing-library/vue": "8.1.0", "@types/bun": "1.3.0", "@types/estree": "1.0.8", - "@types/jsdom": "21.1.7", + "@types/jsdom": "27.0.0", "@types/node": "latest", "@types/semver": "7.7.1", "@vue/test-utils": "2.4.6", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1c8480855..644feaa0a 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -127,8 +127,8 @@ importers: specifier: 1.0.8 version: 1.0.8 '@types/jsdom': - specifier: 21.1.7 - version: 21.1.7 + specifier: 27.0.0 + version: 27.0.0 '@types/node': specifier: 22.18.8 version: 22.18.8 @@ -2952,8 +2952,8 @@ packages: '@types/jest@30.0.0': resolution: {integrity: sha512-XTYugzhuwqWjws0CVz8QpM36+T+Dz5mTEBKhNs/esGLnCIlGdRy+Dq78NRjd7ls7r8BC8ZRMOrKlkO1hU0JOwA==} - '@types/jsdom@21.1.7': - resolution: {integrity: sha512-yOriVnggzrnQ3a9OKOCxaVuSug3w3/SbOj5i7VwXWZEyUNl3bLF9V3MfxGbZKuwqJOQyRfqXyROBB1CoZLFWzA==} + '@types/jsdom@27.0.0': + resolution: {integrity: sha512-NZyFl/PViwKzdEkQg96gtnB8wm+1ljhdDay9ahn4hgb+SfVtPCbm3TlmDUFXTA+MGN3CijicnMhG18SI5H3rFw==} '@types/json-schema@7.0.15': resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} @@ -6232,6 +6232,7 @@ packages: motion-v@1.7.3: resolution: {integrity: sha512-lwgrge7Y7FF9LxBxZ//MsSLPPjh4z1yYE9ie236Pa89mRCsBlONXbLcseln6G6LyAG8pt3PpzUxWt2grwMcBAA==} + deprecated: deprecate peerDependencies: '@vueuse/core': '>=10.0.0' vue: ^3.5.22 @@ -11467,7 +11468,7 @@ snapshots: expect: 30.0.5 pretty-format: 30.0.5 - '@types/jsdom@21.1.7': + '@types/jsdom@27.0.0': dependencies: '@types/node': 22.18.8 '@types/tough-cookie': 4.0.5 From 4273ae6c3733cf52d23b7dd40bbf8e2ab452430e Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Fri, 24 Oct 2025 10:50:45 +0900 Subject: [PATCH 2/2] chore: move `any` typecasting --- src/environments/vitest/env/jsdom.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/environments/vitest/env/jsdom.ts b/src/environments/vitest/env/jsdom.ts index 8f9173b50..7d0a54f99 100644 --- a/src/environments/vitest/env/jsdom.ts +++ b/src/environments/vitest/env/jsdom.ts @@ -26,9 +26,9 @@ export default async function (global, { jsdom = {} }) { resources: jsdomOptions.resources ?? (jsdomOptions.userAgent ? new ResourceLoader({ userAgent: jsdomOptions.userAgent }) : undefined), virtualConsole: virtualConsole ? 'sendTo' in virtualConsole - ? virtualConsole.sendTo(global.console) // eslint-disable-next-line @typescript-eslint/no-explicit-any - : (virtualConsole as any).forwardTo(global.console) + ? (virtualConsole.sendTo as any)(global.console) + : virtualConsole.forwardTo(global.console) : undefined, cookieJar: jsdomOptions.cookieJar ? new CookieJar() : undefined, }).window as DOMWindow & NuxtWindow