Skip to content
masterclass Buddy

Jest · Module

any

Jest lets you write tests that check whether JavaScript code returns the expected results. Install it, add a test script, create a test file, and run it with your package manager.

Last updated

Syntax

test(name, callback)
expect(received).toBe(expected)

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
  • babel-jest
  • eslint-plugin-jest

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