Mock ResizeObserver in chat-sdk

This commit is contained in:
Oleg Ivaniv 2024-11-07 19:31:34 +01:00
parent c74c730b8e
commit d460c9292a
No known key found for this signature in database

View file

@ -1 +1,13 @@
import '@testing-library/jest-dom';
import '@testing-library/jest-dom';
import { configure } from '@testing-library/vue';
configure({ testIdAttribute: 'data-test-id' });
window.ResizeObserver =
window.ResizeObserver ||
vi.fn().mockImplementation(() => ({
disconnect: vi.fn(),
observe: vi.fn(),
unobserve: vi.fn(),
}));