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');