Jest is a JavaScript testing framework designed to make testing as easy as possible. It provides all the essential tools for running tests, making assertions, mocking implementations, and more in a single package. It's near-zero configuration approach makes it simple to set up, and a familiar API makes writing tests fairly straightforward.
Table of contents
What is a unit test?What is Jest?How to install Jest?How to run tests with Jest?How to create a test with Jest?How to write a test case in Jest?How to use fixtures in Jest?How to group test cases in Jest into a test suite?How to run Jest every time files change?How to get a test coverage report with Jest?Jest unit test example codeHomework and next steps1 Comment
Sort: