test(editor): Mock i18n in channel tests

This commit is contained in:
Michael Drury 2026-08-03 11:59:11 +01:00
parent eedd99ea68
commit 81c19ceaaa
2 changed files with 2 additions and 0 deletions

View File

@ -8,6 +8,7 @@ vi.mock('@n8n/i18n', () => ({
useI18n: () => ({
baseText: (key: string) => key,
}),
i18n: { baseText: (key: string) => key },
}));
const catalog = ref([

View File

@ -29,6 +29,7 @@ const mocks = vi.hoisted(() => {
vi.mock('@n8n/i18n', () => ({
useI18n: () => ({ baseText: (k: string) => k }),
i18n: { baseText: (k: string) => k },
}));
vi.mock('@n8n/stores/useRootStore', () => ({