MCPcopy Create free account
hub / github.com/actionhero/node-resque / SpecHelper

Interface SpecHelper

__tests__/utils/specHelper.ts:20–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20interface SpecHelper {
21 pkg: string;
22 namespace: string;
23 queue: string;
24 timeout: number;
25 smallTimeout: number;
26 redis: Redis;
27 connectionDetails: SpecConnectionDetails;
28 worker: NodeResque.Worker;
29 scheduler: NodeResque.Scheduler;
30 connect: () => Promise<void>;
31 cleanup: () => Promise<void>;
32 disconnect: () => Promise<void>;
33 startAll: (jobs: NodeResque.Jobs) => Promise<void>;
34 endAll: () => Promise<void>;
35 popFromQueue: () => Promise<string | null>;
36 cleanConnectionDetails: () => { database: number; namespace: string };
37}
38
39const SpecHelper = {
40 pkg: pkg,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected