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: [], + }), ], }, };