DEV Community

Discussion on: Beware silently skipped tests in Mocha

Collapse
 
juergba profile image
Juerg B.

There is one fundamental mistake in your sample above, you can't use describe in an asynchronously way. So this code snipet is wrong: describe('My test suite', async function(){ ...
Only hooks and tests can have async callbacks.

Collapse
 
adamcoster profile image
Adam Coster

Ohhhhhhhhh, good catch! That makes sense and, in retrospect, explains a few problems I had in the past...