import '@testing-library/jest-dom/vitest' import { cleanup } from '@testing-library/react' import { afterEach } from 'vitest' // Cleanup after each test afterEach(() => { cleanup() }) // Mock Stream Chat if needed global.ResizeObserver = class ResizeObserver { observe() {} unobserve() {} disconnect() {} } // Mock IntersectionObserver for virtualization global.IntersectionObserver = class IntersectionObserver { constructor() {} observe() {} unobserve() {} disconnect() {} takeRecords() { return [] } root = null rootMargin = '' thresholds = [] }