based on some condition, that callback is called or not called. This callback is async. How can I test if that callback is called in Jest?
Note that the condition for calling the callback can be set from outside foo.
by confirming if the condition is set
Обсуждают сегодня