How to run Mocha tests on Repl.it


Did you know you can run Mocha tests in Repl.it?

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

language = "nodejs"
run = "npx mocha"

Click Run to run your Mocha tests!

Demo

Repl.it:



Please support this site and join our Discord!