MCPcopy Create free account
hub / github.com/boringstack-xyz/boringstack / makeWorkerStub

Function makeWorkerStub

apps/api/tests/queues/queue-manager.test.ts:72–88  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

70};
71
72const makeWorkerStub = (): {
73 stub: { close: () => Promise<void> };
74 wasClosed: () => boolean;
75} => {
76 let closed = false;
77
78 return {
79 stub: {
80 close: () => {
81 closed = true;
82
83 return Promise.resolve();
84 },
85 },
86 wasClosed: () => closed,
87 };
88};
89
90const EMAIL_JOB: IEmailDeliveryJobData = {
91 to: "user@example.test",

Callers 1

buildFixtureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected