MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / pinCursor

Function pinCursor

apps/cloud/src/auth/workos-events-sync.node.test.ts:864–871  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

862describe("syncWorkOsEvents", () => {
863 /** Pin the instance-wide cursor to a fresh known value, whatever it was. */
864 const pinCursor = (value: string) =>
865 Effect.gen(function* () {
866 const mirror = yield* WorkOsMirror;
867 const before = yield* mirror.getCursor();
868 const moved = yield* mirror.applyPage(before, value, []);
869 expect(Option.isSome(moved)).toBe(true);
870 return value;
871 });
872
873 type Page = {
874 readonly data: readonly WorkOsMirroredEvent[];

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected