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

[NEW TEST] Bull #1654

Open
1 task done
robertsLando opened this issue Apr 11, 2022 · 4 comments
Open
1 task done

[NEW TEST] Bull #1654

robertsLando opened this issue Apr 11, 2022 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@robertsLando
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Feature Test To Be Requested

Add some examples using nestjs bull queue

@robertsLando robertsLando added the enhancement New feature or request label Apr 11, 2022
@jmcdo29
Copy link
Owner

jmcdo29 commented Apr 11, 2022

What would you like this bull test to show? Unit testing for a queue? E2E tests using a queue? Both?

@robertsLando
Copy link
Author

Both

@jmcdo29
Copy link
Owner

jmcdo29 commented Apr 11, 2022

I'll see how soon I can work on this

@robertsLando
Copy link
Author

robertsLando commented Apr 11, 2022

@jmcdo29 Thanks! ATM the only resource I found about bull testing is https://stackoverflow.com/questions/68214492/how-can-a-nest-bull-queue-be-tested-via-jest-di-via-injectqueue

But It's not working for me, queue is always undefined inside the service when using

@InjectQueue('test') queue: Queue

UPDATE: That example is actually working, the problem was that my mock implementation wasn't correct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants