Jest is not just a test-runner, it is a complete testing framework that has brought modern testing to another level.
Well, Jest is a breeze to set up.
We will shortly look at the steps in installing Jest.
Jest is also super-fast during execution.
Well, what makes Jest fast? Actually, it's a combination of several factors, including parallelization and running slowest test first. This ensures all cores are utilized to the max.
Jest also does snapshots.
Snapshot testing is amazing. It lets you capture an image that represents your rendered component or response and store it in a file. Then you can compare it later to ensure that the UI or response didn't change.
Jest has it all in one.
It comes with built-in matchers, spies and its own extensive mocking library.
It can also be used effectively to test against the UI with Puppeteer.
You can even test against some modern DBs like MongoDB and DynamoDB)