The first chapter uses Jest, but the rest of the book uses Vitest. I know that may feel a little over-complicated, but there’s method to the madness: Jest is the most popular test framework, and it stands on its own, so it’s easy to get up and running. Vitest, on the other hand, is tied to the Vite build system, which I wanted to use for the project that the book develops from Chapter 3 onward.
Vitest is designed to be Jest-compatible, so tests written for one framework will usually run just fine in the other.
I’ll try to make this all clearer in the next revision! Thanks for your feedback.