The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import { type WorkerGeometryStore } from '@/polyfills/geometry/types/WorkerGeometryStore';
export const createWorkerGeometryStoreStub = (
overrides: Partial<WorkerGeometryStore> = {},
): WorkerGeometryStore => ({
setRootElement: jest.fn(),
connectTransport: jest.fn(),
applyGeometryBatch: jest.fn(),
getViewportSnapshot: jest.fn(() => null),
subscribeToGeometryUpdates: jest.fn(() => () => {}),
resolveElementSnapshot: jest.fn(() => null),
readObservedElementSnapshot: jest.fn(() => null),
isElementMeasured: jest.fn(() => false),
createElementGeometryReader: jest.fn(() => ({
read: () => null,
release: () => {},
})),
...overrides,
});