test: Update jest configuration (#3951)
* Split shared tests * Centralize and parallelize jest config * ci
This commit is contained in:
@@ -19,9 +19,7 @@ export default class Queue {
|
||||
const job = this.createJob(data);
|
||||
|
||||
if (!this.handler) {
|
||||
throw Error(
|
||||
"Mocking version requires handler to be set before first add()"
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
this.handler(job, this.done);
|
||||
|
||||
Reference in New Issue
Block a user