First, let's install Mocha as a development dependency:
$ yarn add mocha --dev
This will install an executable, mocha, at node_modules/mocha/bin/mocha, which we can execute later to run our tests.
First, let's install Mocha as a development dependency:
$ yarn add mocha --dev
This will install an executable, mocha, at node_modules/mocha/bin/mocha, which we can execute later to run our tests.