Files
TREK/server/tests/helpers/place-changes.ts
T
Maurice 382ba79584 feat(places): visits read from trips, change history, linked tours and bookings, personal tags
A visit is a place planned on a day of one of the reader's trips; nothing is kept
or confirmed by hand. A place keeps a log of changes to its details, links the
tours and bookings it is about, and carries tags private to the reader, which a
copy into a trip takes along only when picked. Contracts, routes, MCP tools and
migrations for both engines.
2026-11-29 21:16:50 +01:00

14 lines
588 B
TypeScript

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: <T>(_targets: unknown, _editor: unknown, write: () => Promise<T>) => write(),
} as unknown as PlaceChangesService;
}