19
Writing Tests with SPFx
In the previous chapter, we learned how to debug our solutions if something goes wrong. What if we could avoid the issue in the first place? That is where tests come into play! Testing is always a taboo subject among developers: everybody agrees on the importance of testing but almost nobody does it. Most of the time, in real-life projects, testing is seen as something costly, hard to integrate, and hard to implement, especially with SPFx. Let’s be clear: that is partially true.
The more critical your application is, the more important testing is. If your application is supporting thousands of users daily for a critical line-of-business process, maybe having tests is a good idea. However, as a developer, you shouldn’t ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access