Categories
JavaScript Answers

How to join tests from multiple files with mocha.js and JavaScript?

Spread the love

To join tests from multiple files with mocha.js and JavaScript, we use the --recursive option to run all test files in the project.

To do this, we run

$ mocha --recursive

to make mocha find all tests in the project folder and run them.

By John Au-Yeung

Web developer specializing in React, Vue, and front end development.

Leave a Reply

Your email address will not be published. Required fields are marked *