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

Function makeJob

apps/api/tests/lib/tracing/withQueueSpan.test.ts:16–21  ·  view source on GitHub ↗
(overrides: Partial<JobStub> = {})

Source from the content-addressed store, hash-verified

14type JobStub = Pick<Job, "id" | "name" | "attemptsMade">;
15
16const makeJob = (overrides: Partial<JobStub> = {}): JobStub => ({
17 id: "job-1",
18 name: "send-email",
19 attemptsMade: 0,
20 ...overrides,
21});
22
23describe("withQueueSpan", () => {
24 test("returns the handler's resolved value", async () => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected