test(editor): Add router to unit tests

This commit is contained in:
Csaba Tuncsik 2024-11-27 15:36:17 +01:00
parent 683ee42d3b
commit 74c1de9e38
No known key found for this signature in database

View file

@ -10,6 +10,7 @@ import type { Telemetry } from '@/plugins/telemetry';
import vueJsonPretty from 'vue-json-pretty'; import vueJsonPretty from 'vue-json-pretty';
import { merge } from 'lodash-es'; import { merge } from 'lodash-es';
import type { TestingPinia } from '@pinia/testing'; import type { TestingPinia } from '@pinia/testing';
import router from '@/router';
export type RenderComponent = Parameters<typeof render>[0]; export type RenderComponent = Parameters<typeof render>[0];
export type RenderOptions = Parameters<typeof render>[1] & { export type RenderOptions = Parameters<typeof render>[1] & {
@ -38,6 +39,7 @@ const defaultOptions = {
GlobalComponentsPlugin, GlobalComponentsPlugin,
GlobalDirectivesPlugin, GlobalDirectivesPlugin,
TelemetryPlugin, TelemetryPlugin,
router,
], ],
}, },
}; };