Skip to content
masterclass Buddy

Jest · Function

it

Jest runs JavaScript and TypeScript tests. Install it, add a test script, write assertions, and run the test command.

Last updated

Syntax

npm install --save-dev jest
"test": "jest"
expect(value).toBe(expected)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • expect
  • toBe
  • @jest/globals
  • @types/jest
  • ts-jest
  • babel-jest
  • babel.config.js
  • jest.config.js

Source: Getting Started · Jest. Checked 2026-11-03.