awaiting promises in describe blocks makes mocha ignore following it blocks #4819
Closed
1 task done
Labels
duplicate
been there, done that, got the t-shirt...
Prerequisites
faq
labelnode node_modules/.bin/mocha --version
(Local) andmocha --version
(Global). We recommend that you not install Mocha globally.Description
awaiting a promise in a describe block makes mocha ignores all following it blocks.
One can fix the behaviour by awaiting the promise inside another it or before block.
Steps to Reproduce
I created a minimal reproduction here:
https://stackblitz.com/edit/testing-mocha-b5uca7?file=src%2Findex.js
Expected behavior: [What you expect to happen]
awaiting the promise in the describe block should not make mocha ignore all following it blocks.
Actual behavior: [What actually happens]
awaiting the promise in the describe block leads to mocha never executing the following it blocks.
Reproduces how often:
consistently (100%)
Versions
mocha --version
andnode node_modules/.bin/mocha --version
: 8.4.0node --version
: unknown (how can I detect that on stackblitz?)The text was updated successfully, but these errors were encountered: