Use the specHelper to find enqueued instances of a task
This will return an array of instances of the task which have been enqueued either in the normal queues or delayed queues
If a task is enqueued in a delayed queue, it will have a 'timestamp' property
i.e. [ { class: 'regularTask', queue: 'testQueue', args: [ [Object] ] } ]
Parameters
taskName: string
Returns Promise<TaskInputs[]>
getStaticFile
getStaticFile(file: string): Promise<any>
Mock a specHelper connection requesting a file from the server.
Use the specHelper to run a task.
Note: this will run a full Task worker, and will also include any middleware. This is slower than api.specHelper.runTask.
Generate a connection to use in your tests