-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🚀 Feature: Fail tests/suites that does not exit gracefully when --no-exit flag is used #1855
Comments
Sounds reasonable to me |
How would you imagine supplying the timeout for |
I havent thought about that detail. Would it be possible to use the standard 2000ms and have it changed by globally overriding with |
I am a bot that watches issues for inactivity. |
This issue only seems more relevant now that we've walked people through debugging their |
I recently tried the
--no-exit
flag and found it a terrific way to determine if any of my modules keep active listeners. However, if it is the case that I have open listeners then mocha never exits. Would it be possible to add a timeout just as in asynchronous tests for this. Meaning that if I use the--no-exits
flag and the event loop is not clear after my suite is complete, then make the test fail.I'd be happy to supply this as a PR if the idea is accepted.
The text was updated successfully, but these errors were encountered: