Skip to content
masterclass Buddy

Jest · Function

test.each

test.each runs one test for every row in a data table. It lets you reuse one test definition for many sets of inputs.

Last updated

Syntax

test.each(table)(name, fn, timeout)

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

Subscribe
  • test
  • describe.each
  • test.concurrent.each
  • test.failing.each
  • @jest/globals

Source: Globals · Jest. Checked 2026-11-03.