You are correct — I can write unit tests with Jest alone. But Angular Testing Library can provide me (higher level) APIs and allow me to write the tests like the end-users using the application — avoid testing implementation details. This was inspired by this blog, Testing Implementation Details<link: https://kentcdodds.com/blog/testing-implementation-details> by Kent C. Dodds. You can check it out.

Totsawin Jangprasert
Totsawin Jangprasert

Written by Totsawin Jangprasert

Lead Developer at ExxonMobil. Passion in frontend development. Love minimal design, travelling, reading, watching and Wes Anderson. Support Thai democracy |||

No responses yet