diff --git a/packages/editor-ui/src/__tests__/render.ts b/packages/editor-ui/src/__tests__/render.ts index 08ef303f4f..cfe1f9523f 100644 --- a/packages/editor-ui/src/__tests__/render.ts +++ b/packages/editor-ui/src/__tests__/render.ts @@ -10,6 +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'; export type RenderComponent = Parameters[0]; export type RenderOptions = Parameters[1] & { @@ -38,6 +39,7 @@ const defaultOptions = { GlobalComponentsPlugin, GlobalDirectivesPlugin, TelemetryPlugin, + router, ], }, };