- Reducing bug in production
- Gain confidence in product
- Can be used as documentation
image credit JavaScript testing best practice
- ✅ Unit testing
- ✅ API testing (kind of integration testing)
- ☑️ End to end testing (e2e)
image credit https://www.headspin.io/