Skip to content
masterclass Buddy

Jest · Function

it.only

Jest is a JavaScript testing tool. Install it as a development dependency, write tests with test and expect, then run them with your package manager.

Last updated

Syntax

test(name, fn, timeout)

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

Subscribe
  • expect
  • toBe
  • describe
  • describe.each
  • beforeAll
  • afterAll
  • beforeEach
  • afterEach

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