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

Watch mode doesn't work when importing describe/it #2088

c089 opened this Issue Feb 3, 2016 · 3 comments


None yet
4 participants
Copy link

c089 commented Feb 3, 2016

When I use import {describe, it} from 'mocha' and enable --watch, tests are only executed once on start. When I change a file, the watcher registers that change, but does not execute any tests and just prints 0 passing.

(I'm using babel 6.x and --compilers js:babel-register here, haven't had the time to try this with commonjs requires yet)


This comment has been minimized.

Copy link

thangngoc89 commented Feb 7, 2016

👍 I have this issue too


This comment has been minimized.

Copy link

stale bot commented Oct 17, 2017

I am a bot that watches issues for inactivity.
This issue hasn't had any recent activity, and I'm labeling it stale. In 14 days, if there are no further comments or activity, I will close this issue.
Thanks for contributing to Mocha!

@stale stale bot added the stale label Oct 17, 2017


This comment has been minimized.

Copy link

ScottFreeCode commented Oct 17, 2017

This looks like #2207 (comment); I can't reproduce it if I use the default BDD interface and describe/it, but can with --ui tdd and describe/it. Going to close this to focus discussion of interface mismatch issues there, but if you have code/steps to reproduce that does not depend on using a different interface than is selected by --ui, we can reopen this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment