An example of writing mock-based unit tests with both infrastructure definition and tests written in TypeScript. The example uses the Mocha test framework to define and run the tests. Example originally from here.
-
Restore NPM dependencies:
$ npm install
-
Start Wallaby, making sure to select the configuration file. Refer to Wallaby docs for more information on starting Wallaby.