From d54e399e14e32eece409edc001bf92ca3c6b2525 Mon Sep 17 00:00:00 2001 From: J-Michalek <71264422+J-Michalek@users.noreply.github.com> Date: Tue, 10 Jun 2025 10:30:32 +0200 Subject: [PATCH 1/2] fix(mocks): add missing mocks to vue-devtools In my project I've recently experience an error while running Vitest tests which reported that these exports are missing, after patching it everything worked just fine. My guess is that the vue-devtools got some new features but these mocks were not brought up to date? --- src/runtime/mocks/vue-devtools.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/runtime/mocks/vue-devtools.ts b/src/runtime/mocks/vue-devtools.ts index 8b9238068..02e87dd0f 100644 --- a/src/runtime/mocks/vue-devtools.ts +++ b/src/runtime/mocks/vue-devtools.ts @@ -4,3 +4,9 @@ export function createRpcServer() {} export const devtools = { init() {}, } +export function addCustomCommand() {} +export function addCustomTab() {} +export function onDevToolsClientConnected() {} +export function onDevToolsConnected() {} +export function removeCustomCommand() {} +export function setupDevToolsPlugin() { From 91c7b2eaad708f1575ae79ec4512bc1ff14ff6c9 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Tue, 10 Jun 2025 10:51:18 +0100 Subject: [PATCH 2/2] chore: lint --- src/runtime/mocks/vue-devtools.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/runtime/mocks/vue-devtools.ts b/src/runtime/mocks/vue-devtools.ts index 02e87dd0f..a5396147a 100644 --- a/src/runtime/mocks/vue-devtools.ts +++ b/src/runtime/mocks/vue-devtools.ts @@ -9,4 +9,4 @@ export function addCustomTab() {} export function onDevToolsClientConnected() {} export function onDevToolsConnected() {} export function removeCustomCommand() {} -export function setupDevToolsPlugin() { +export function setupDevToolsPlugin() {}