Unit Testing
Last updated
Last updated
Unit-testing is not optional if you care about quality and your personal health.
Unit testing improves teams efficiency, applications quality and human lifespan.
Without automated tests:
every change is a challenge,
updating dependencies is too risky,
refactoring is inacceptable,
deployment is chaos,
...
Modularity is unit testing's best friend.
Jasmine spies are mocks.
If you are using fetch
for HTTP requests, you can use fetch-mock
to mock these http requests.
http://www.wheresrhys.co.uk/fetch-mock/quickstart