DEV Community

Nagarajan R
Nagarajan R

Posted on

Answer: How to set execution order of mocha test cases in multiple files

I follow a totally seperate solution for this.

Put all your tests in a folder named test/ and Create a file tests.js in the root directory in the order of execution

--- tests.js ---
require('./test/one.js')
require('./test/two.js')
require('./test/three.js')

And in the tests files one.js, two.js and so on write your simpleโ€ฆ

Top comments (0)