How can I build my test suite asynchronously?
You should run Mocha with the –delay option, and then use run() once you are done building your test suite. Here is an example derived from the code you show in the question: ‘use strict’; function test() { console.log(1); describe(‘Unit Testing’, () => { console.log(2); it(“test”, () => { console.log(3); }); }); // You must … Read more