Boilerplate for small JS projects or experiments.
Because I needed a quick boilerplate for some JavaScript experiments,
with which I could easily add a new file, some tests and have them run
in the browser, and in the console thought mocha-phantomjs
.
Download the boilerplate and then use one of these methods:
Open the file test/runner.html
Use mocha-phantomjs
to run the runner.html. For this task you
should have mocha-phantomjs
installed. You could install it with
npm install mocha-phantomjs
.
Finally, run your tests with npm test
.