Invoking background called action while testing function #2224
Unanswered
Sarthakbunny
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Cannot find anything, I was creating a unit test case for some function but while mocking every function, there is a line of code:
that is creating an error
How do I invoke this action, so that my process would continue executing
Here is some snip of the function:
Edit: Found that some functions are invoking in UI due to the lifeCycle method(useEffect) but how do I replicate/call those in my test function?
Beta Was this translation helpful? Give feedback.
All reactions