From 906dffe84cf6b5f0a2fd467621dc21a3ff6b2493 Mon Sep 17 00:00:00 2001 From: Csaba Tuncsik Date: Wed, 27 Nov 2024 16:03:30 +0100 Subject: [PATCH] use a simple router --- packages/editor-ui/src/__tests__/render.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/editor-ui/src/__tests__/render.ts b/packages/editor-ui/src/__tests__/render.ts index cfe1f9523f..4cf59b0131 100644 --- a/packages/editor-ui/src/__tests__/render.ts +++ b/packages/editor-ui/src/__tests__/render.ts @@ -10,7 +10,7 @@ import type { Telemetry } from '@/plugins/telemetry'; import vueJsonPretty from 'vue-json-pretty'; import { merge } from 'lodash-es'; import type { TestingPinia } from '@pinia/testing'; -import router from '@/router'; +import { createRouter, createWebHistory } from 'vue-router'; export type RenderComponent = Parameters[0]; export type RenderOptions = Parameters[1] & { @@ -39,7 +39,10 @@ const defaultOptions = { GlobalComponentsPlugin, GlobalDirectivesPlugin, TelemetryPlugin, - router, + createRouter({ + history: createWebHistory(), + routes: [], + }), ], }, };