domains contains our source code, and test contains our test suite.
Let’s have a look at the code now.
package.json
The interesting part here is the scripts section. As you can see, we added the –watch option of Mocha in addition with the –watch-files option. Here, all the code in domain and test folders will be checked for modification, and tests will be automatically run again.
Social media