Skip to content

Queston: Is it possible to unit test named job proccess handler calls with jest? #2010

Answered by manast
ealcantara22 asked this question in Q&A
Discussion options

You must be logged in to vote

As I see it you could just unit test the handler isolated from the process function, just make sure that you properly mock the "job" object that you pass to the handler.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by ealcantara22
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants
Converted from issue

This discussion was converted from issue #2009 on April 08, 2021 21:18.