How to run Mocha tests on Replit


Did you know you can run Mocha tests in Replit?

Create a Node.js repl with a .replit file that contains:

language = "nodejs"
run = "npx mocha"

Click Run to run your Mocha tests!

Demo

Replit:



Please support this site and join our Discord!