error with mocha on Node.js 11.7.0
See original GitHub issueLink to bug demonstration repository.
Expected Behavior
No error, consistent with node v10.
Observed Behavior
koa-subdomain
repo: https://github.com/keenwon/koa-subdomain ci: https://travis-ci.org/keenwon/koa-subdomain
node v10:

node v11.7.0:

ELint
repo: https://github.com/keenwon/elint ci: https://travis-ci.org/keenwon/elint
node v10:

node v11.7.0:

Forensic Information
Operating System: macOS and Linux Environment Information: https://gist.github.com/keenwon/846364069714c310e45e630eeba0d24d
Issue Analytics
- State:
- Created 5 years ago
- Reactions:12
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Issue running mocha tests in nodejs - Stack Overflow
I have tried installing mocha globally using the command: npm i -g mocha. Even after which I'm getting the above same error.
Read more >Building and Testing — highlight.js 11.7.0 documentation
Testing is done using Mocha and the files are found in the test/ directory. You can use the node build to run the...
Read more >Node JS (Install) 19.3.0 - Chocolatey Software
This package runs the official Node JS installer, resulting in Node.exe and NPM being installed under Program Files, and added to the SYSTEM...
Read more >Testing Node.js with Mocha and Chai - LogRocket Blog
Commonly used with Chai, Mocha is an open source JavaScript testing framework that runs on Node.js and in the browser.
Read more >Getting Started with Node.js and Mocha - Semaphore Tutorial
Mocha is a simple, extensible and fast testing library for Node.js. ... npm test module.js:340 throw err; ^ Error: Cannot find module '....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

see: https://github.com/nodejs/node/issues/25650
Mocha got bit by this too. pinning to v11.6.0 seems to fix.