Skip to content
masterclass Buddy

Jest · Pipe

projects

Jest runs JavaScript tests and checks results with assertions. Install it as a development dependency, add a test script, and run the script.

Last updated

Syntax

npm install --save-dev jest

// package.json
{"scripts":{"test":"jest"}}

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

Subscribe
  • expect
  • toBe
  • test
  • @jest/globals
  • ts-jest
  • @babel/preset-typescript
  • injectGlobals
  • jest.config.js

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