You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it('should call afterPerform given perform throws error',async()=>{letcallback=jest.fn()classMyPluginextendsPlugin{afterPerform(){callback(this.worker.error)}}letjob={plugins: [MyPlugin],perform(x){thrownewTypeError(x)},}letworker=newWorker({},{ job })awaitworker.performInline('job',['John'])expect(callback).toHaveBeenCalledWith(newTypeError('John'))})
The text was updated successfully, but these errors were encountered:
stellarhoof
changed the title
afterPerform does not get called on perform error when using worker.performInline
performInline: afterPerform does not get called on perform error
Mar 18, 2022
What the title says. Here's a test case:
The text was updated successfully, but these errors were encountered: