-
Book Overview & Buying
-
Table Of Contents
Practical SharePoint Framework (SPFx) Development
By :
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 be ashamed of not having tests in your solution. They are not always required. For instance, simple use cases such as getting and displaying data on a dummy web part for two or three users and without any kind of business logic...