-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added more jobs and mocks to the zembleBull #135
Conversation
🦋 Changeset detectedLatest commit: 6646791 The changes in this PR will be included in the next version bump. This PR includes changesets to release 5 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
setTimeout(async () => this.#worker(job, { logger: zembleContext.logger }), 0) | ||
return job | ||
} | ||
|
||
async remove(jobId: string) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't we want to use jest.fn()/mock() to be able to "spy" on it (i.e. to see if it was called, with which arguments etc)?
Actually it might be nice to wrap all the functions with mock() so it's always possible.. :) As you see here it's possible to both provide an implementation and wrap it in mock()
(or jest.fn()
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm 👍
Two new jobs in ZembleBullQeueue and more mock functions ti ZembleQueueMock