There are a lot of books that only cover testing strategies such as Test-Driven Design (TDD), Behavior-Driven Design (BDD), unit tests, integration tests, smoke tests, regression tests, and so on. The scope of this book allows us to create a minimal but useful testing suite so that you can start based on this model and improve on it, depending on your project's needs. Basically, this chapter covers the following essentials:
- Providing a testing structure with Mocha
- Using assertation functions with Chai
- Mutation tests with Stryker
This chapter won't show you how to implement all of these, since they will be covered later in the book. At the moment, our focus is on installing all of the necessary dependencies while explaining how they work at a high level.
For the purpose of testing suites, we will create a folder called my-first-suite-test-project, which...