[BUG] Async and Sync Tests don't run as intended with @tapjs/mocha-global
#1006
Labels
bug
something not go good
@tapjs/mocha-global
#1006
Is there an existing issue for this?
Have you read the
CONTRIBUTING
guide on posting bugs, andCODE_OF_CONDUCT
?This issue exists in the latest tap version
Description
A lot of test cases written in the mocha style would have multiple
it
blocks and each of them could either be async or sync and while it works well when all of them are sync, if even one of them is async the remaining tests just failWorkaround
The current workaround it to use thenable promise chains with the
done
callback but it isn't optimal to rewrite all tests in a larger codebase.Error
it() calls may not be nested
Reproduction
https://github.com/barelyhuman/tap-mocha-async-issue
Environment
The text was updated successfully, but these errors were encountered: