Closed rvillane closed 4 years ago
Yep! You always had an issue, unfortunately :-/
Asynchronous tests need t.plan
. Your test should start with t.plan(4)
, and shouldn't contain t.end()
at all.
An alternative is to remove both, to make your test function an async function, and to await
every promise (rather than using .then
).
adding t.plan(x) and removing t.end() is fixing the problem, thanks.
Hi, this test worked fine in v4.x.x:
now is failing with v5.0.0:
any recommendations about what needs to be refactored on my code ? thanks