Skip to content
masterclass Buddy

Jest · Pipe

testMatch

Jest runs JavaScript and related tests. Install it, add a test script, write a test with expect and a matcher, then run the script.

Last updated

Syntax

test(name, fn); expect(value).toBe(expected);

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

Subscribe
  • Using Matchers
  • testRegex
  • testPathIgnorePatterns
  • automock
  • randomize
  • projects

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