Unit Testing - liquidcarrot/repository GitHub Wiki

Unit Testing

To support unit tests in Node.js and Browser, we write all of our unit tests inside of test/unit.

As a modus operandi, we will create one file in test/unit for every file in src/.

Example: src/animals/dog.js --> test/unit/animals/dog.js

Before testing the code in the browser we bundle it with webpack and run it within the context of index.html.