Skip to content
masterclass Buddy

Jest · Pipe

globalSetup

Jest runs JavaScript tests. A basic test calls a function and uses expect(...).toBe(...) to check the exact result.

Last updated

Syntax

test(name, callback)
expect(value).toBe(expected)
{ "scripts": { "test": "jest" } }

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

Subscribe
  • expect
  • toBe
  • test
  • jest.config.js
  • defineConfig
  • globalSetup
  • globalTeardown
  • --config

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