| 18 | } |
| 19 | |
| 20 | interface 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 | |
| 39 | const SpecHelper = { |
| 40 | pkg: pkg, |
nothing calls this directly
no outgoing calls
no test coverage detected