Skip to content
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

Merged
merged 3 commits into from
Oct 2, 2024

Conversation

RevanToma
Copy link
Contributor

@RevanToma RevanToma commented Oct 1, 2024

Two new jobs in ZembleBullQeueue and more mock functions ti ZembleQueueMock

  • remove
  • getJob
  • pause queue
  • resume queue

Copy link

changeset-bot bot commented Oct 1, 2024

🦋 Changeset detected

Latest commit: 6646791

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 5 packages
Name Type
@zemble/bull Minor
@zemble/ignite Patch
minimal Patch
supplement-stack Patch
todo-app-with-auth-backend Patch

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) {
Copy link
Member

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())

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Copy link
Member

@robertherber robertherber left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm 👍

@RevanToma RevanToma merged commit 498d500 into main Oct 2, 2024
7 checks passed
@RevanToma RevanToma deleted the KING-436-add-more-mock-func branch October 2, 2024 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants