mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2026-07-31 17:17:23 +02:00
24 lines
595 B
TypeScript
24 lines
595 B
TypeScript
import '@testing-library/jest-dom';
|
|
import { configure } from '@testing-library/vue';
|
|
import { config } from '@vue/test-utils';
|
|
import ElementPlus from 'element-plus';
|
|
|
|
import { N8nPlugin } from '@n8n/design-system/plugin';
|
|
|
|
configure({ testIdAttribute: 'data-test-id' });
|
|
|
|
config.global.plugins = [N8nPlugin, ElementPlus];
|
|
|
|
window.ResizeObserver =
|
|
window.ResizeObserver ||
|
|
vi.fn().mockImplementation(() => ({
|
|
disconnect: vi.fn(),
|
|
observe: vi.fn(),
|
|
unobserve: vi.fn(),
|
|
}));
|
|
|
|
// Globally mock is-emoji-supported
|
|
vi.mock('is-emoji-supported', () => ({
|
|
isEmojiSupported: () => true,
|
|
}));
|