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
This is a super common error that we can detect and warn for. If you stub a particular invocation like fetch(42), then it means the subject needs that return value to do something else and the test's assertion should be about that something else. To also verify that fetch(42) was called ought to be redundant.
Is console.warn the best way to warn users in browsers & node? Should I throw an error but with a squelchWarnings config option?
The text was updated successfully, but these errors were encountered:
This is a super common error that we can detect and warn for. If you stub a particular invocation like
fetch(42)
, then it means the subject needs that return value to do something else and the test's assertion should be about that something else. To also verify thatfetch(42)
was called ought to be redundant.Is
console.warn
the best way to warn users in browsers & node? Should I throw an error but with asquelchWarnings
config option?The text was updated successfully, but these errors were encountered: