-
-
Notifications
You must be signed in to change notification settings - Fork 1
Unit Testing
Luis Carbonell edited this page Jul 26, 2019
·
2 revisions
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
.