September 2018
Intermediate to advanced
764 pages
20h 6m
English
Next, we are going to write our unit tests, but where should we put them? There are generally two approaches:
The second approach (as shown in the following example) is better as it keeps each module truly separated in the filesystem:
$ tree.├── src│ └── feature│ ├── index.js│ └── index.unit.test.js└── test ├── db.integration.test.js └── app.integration.test.js
Furthermore, we're going to use the .test.js extension to ...
Read now
Unlock full access