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

Function run

apps/cloud/src/auth/workos-events-runner.node.test.ts:47–55  ·  view source on GitHub ↗
(report: WorkOsEventsSyncReport, drainedAt: Date | null)

Source from the content-addressed store, hash-verified

45 );
46
47const run = (report: WorkOsEventsSyncReport, drainedAt: Date | null) => {
48 const logged: string[] = [];
49 return Effect.runPromise(
50 alertOnStaleReconciler(report).pipe(
51 Effect.provide(stubMirror(drainedAt)),
52 Effect.provide(Logger.layer([capturingLogger(logged)])),
53 ),
54 ).then(() => logged);
55};
56
57describe("alertOnStaleReconciler", () => {
58 it("does not alert when the run itself drained the stream", async () => {

Calls 2

stubMirrorFunction · 0.85
capturingLoggerFunction · 0.70

Tested by

no test coverage detected