June 2025
Intermediate to advanced
837 pages
24h 50m
English
Currently, one of the most popular testing frameworks is Jest, the JavaScript testing framework from Facebook. Jest is actually a frontend framework. Unlike Jasmine, it also provides the infrastructure for frontend testing. Usually, the tests are run in the browser. Jest takes a different approach here and simulates the browser environment with a library called jsdom. The advantage of this approach is that the tests run much faster than in the regular browser. However, Jest isn’t limited to the frontend as it can also be used in the backend in Node.js.
To run the test, you need the jest command-line tool that’s part of the Jest package and is based on Node.js. Jest is available as an npm package and, like ...
Read now
Unlock full access