Skip to content

High performance self-hosted photo and video management solution.

232 B
Raw Blame
import { vi } from 'vitest';

export const getIntersectionObserverMock = () =>
  vi.fn(function () {
    return {
      disconnect: vi.fn(),
      observe: vi.fn(),
      takeRecords: vi.fn(),
      unobserve: vi.fn(),
    };
  });