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
I have tests that need to check a function spawning the right commands.
However, because multiple tests calling that function, it's hard to rely on mockSpawn.calls to know which call was the one used in one particular test.
Is there a way that I can reset the mock spawn in my setUp or tearDown?
The text was updated successfully, but these errors were encountered:
I have tests that need to check a function spawning the right commands.
However, because multiple tests calling that function, it's hard to rely on
mockSpawn.calls
to know which call was the one used in one particular test.Is there a way that I can reset the mock spawn in my setUp or tearDown?
The text was updated successfully, but these errors were encountered: