From 211b0b121590290d8a8e87fda39adee28b2ce207 Mon Sep 17 00:00:00 2001 From: Javier Segarra Date: Mon, 22 Apr 2024 11:00:58 +0200 Subject: [PATCH] test: refs #6772 add onBeforeRouteUpdate --- test/vitest/helper.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/vitest/helper.js b/test/vitest/helper.js index 89cc640fd..87ef838f0 100644 --- a/test/vitest/helper.js +++ b/test/vitest/helper.js @@ -32,6 +32,11 @@ vi.mock('vue-router', () => ({ query: {}, params: {}, }), + onBeforeRouteUpdate: () => ({ + to: 1, + from: 2, + next: vi.fn(), + }), })); vi.mock('axios');