Chapter 8: Testing – Unit and Integration
Code isn't created until the respective tests have been written. Since you're reading this chapter, I'll assume we can agree on that statement. However, you might wondering, why haven't we written any tests? Fair enough.
We chose not to do this because we believe it would make the content harder to absorb. Since we wanted to keep you focused on learning Deno while building an application, we decided not to do this. The second reason is that we truly wanted a full chapter focused on testing; that is, this one.
Testing is a very important part of the software life cycle. It can be used to save time, to clearly state requirements, or just because you want to feel confident in rewriting and refactoring later. Independent of the motivation, one thing is certain: you'll write tests. I also truly believe that testing plays a big role in software design. Code that is easy to test is likely easy to maintain.
...