import type { PlaceChangesService } from '../../src/nest/place-changes/place-changes.service'; /** * A PlaceChangesService for the suites that build a places or collections * service by hand and are about something else: it runs every write and * records no history. The history itself is tested in * tests/unit/nest/place-changes/ and tests/e2e/place-history.e2e.test.ts. */ export function passThroughPlaceChanges(): PlaceChangesService { return { track: (_targets: unknown, _editor: unknown, write: () => Promise) => write(), } as unknown as PlaceChangesService; }