You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Cannot find anything, I was creating a unit test case for some function but while mocking every function, there is a line of code:
yield take({Action_Name})
that is creating an error
: Timeout - Async callback was not invoked within the 5000ms timeout specified by jest.setTimeout.Timeout - Async callback was not invoked within the 5000ms timeout specified by jest.setTimeout.Error:
How do I invoke this action, so that my process would continue executing
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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