Skip to main content

Jest

Jest is generally considered a testing framework.

Organizing test suites

A hook in Jest (and many other testing frameworks) is a special function that allows you to set up or tear down the environment before or after tests or groups of tests are executed.

Example: beforeEach(fn), beforeAll(fn)

Testing backend applications