-
-
Notifications
You must be signed in to change notification settings - Fork 535
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
Not refreshing code with mocha --watch when Unable to compile Typescript #113
Comments
Can confirm this is happening on my setup as well. But when say, I purposely break a test (by making it fail), and then fix it, it does re-run tests. So only on compilation errors. |
This is also happening in my set up. If you set the flags: TS_NODE_IGNORE_WARNINGS=TRUE TS_NODE_DISABLE_WARNINGS=TRUE then this doesn't happen, but it silently fails to compile so you don't get compilation errors. |
|
@EddyLane |
same here.. TS_NODE_IGNORE_WARNINGS just silent down errors... needs cmd+c and run again fixed by #266 |
Closing because the original issue does not happen on the latest ts-node and mocha. https://github.com/TypeStrong/ts-node-repros/tree/issue-113 |
I've been using ts-node with mocha for running test. It works fine in watch mode. I can change from failing test to success smoothly. But when code error it shown TSError: ⨯ Unable to compile TypeScript by removing imported dependency. and then I put that dependency back. It's not work as expect.
Here's an example
output is (this failing test is OK)
and remove dependency and save file
and it's ok to error
but when I put it back and save the file
mocha's not comming back and the error show up again
This is my mocha opts
Please help me
Thanks
The text was updated successfully, but these errors were encountered: