🐛 Bug: Custom describe block wrapper does not await
for an internal process runs in mocha's root hook
#5234
Labels
stale
this has been inactive for a while...
status: waiting for author
waiting on response from OP - more information needed
type: bug
a defect, confirmed by a maintainer
Bug Report Checklist
faq
label, but none matched my issue.Expected
I am using mocha to build a testing framework and wrapping mocha's describe block with a custom describe block function and injecting a custom internal instance to be used in tests suites by the end user.
Everything was working as expected, until I added an internal process that runs as a root hook and when finishes assign the
customInstance
a value, that should be used in tests suites by the end user.Actual
Looks like the custom describe block doesnt await for the root hook to finish before assigning the new global value to be used in a test suite by the end user
Minimal, Reproducible Example
Versions
Additional Info
No response
The text was updated successfully, but these errors were encountered: