2 A first unit test
This chapter covers
- Writing your first test with Jest
- Test Structure & Naming Conventions
- Working with the Assertion APis
- Test Refactoring and reducing repetitive code
in the previous chapter we wrote a very simplistic home-grown test framework. In this chapter we’ll take a look at Jest as our framework of choice for this book.
2.1 About Jest
Syntax – a framework that has inspired many of Jet’s features). We’ll try both of them to see which one we like better.
Jest is easy to use, easy to remember, and has lots of great features.