-
-
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
Node ^12.3.0 REPL Support #4009
Comments
Hello! I wanted to check in on this issue and see if there is any interest in fixing it. Unfortunately Truffle is unusable on Node 12 because of the |
Is there any updates on this change? If not, is there any workarounds to run truffle test? I'm running: |
@rafarodra for now you can downgrade to node 10 and Truffle test should work fine. The Truffle team has a fix incoming, currently in code review. Should be good to go in this week or next week’s release! |
Thanks for replying back. In the meantime, I set up Ganache to run 'Truffle test' to avoid downgrading Node. Thanks again. |
Given that truffle is being sunset (trufflesuite/truffle#6204 -> trufflesuite/truffle@5b5312d) and there's no standalone reproduction for this issue, I'm going to close it out. If anybody needs Mocha to run in the Node REPL please do file a new issue with one of our new issue templates that includes a standalone reproduction we can use. Thanks! |
Prerequisites
faq
labelnode node_modules/.bin/mocha --version
(Local) andmocha --version
(Global). We recommend that you not install Mocha globally.Description
As of Node 12.3.0, listeners for
UncaughtException
s throw anERR_INVALID_REPL_INPUT
when used within a REPL context.Mocha
6.2.0
adds a listener here, appearing to make the lib unusable in Node ^12.3.0 REPL contexts.5.2.0
adds one here.Steps to Reproduce
Expected behavior:
Actual behavior:
Reproduces how often:
100% of the time
Versions
mocha --version
andnode node_modules/.bin/mocha --version
: 5.2.0node --version
: v12.9.0Additional Information
When bumping
truffle
's mocha version to latest (6.2.0
), the error is the same, albeit with the stack trace pointing to the different line inlib/runner.js
.When forking from
5.2.0
, removing the listener and testingtruffle
bundled locally (same repro steps), the error goes away.The text was updated successfully, but these errors were encountered: