Master programming syntax, solve interactive challenges & run live code in Syntaxis Explore Arena →
menu_book Course Curriculum (Bun) expand_more
Bun / Testing

Parameterized tests

Learn Parameterized tests in Bun with a focused explanation, a topic-specific example, edge guidance, and a mastery check.

12 min read • Advanced
bun-069.ts
ts
import { test, expect } from "bun:test";
test.each([[1,2,3],[4,5,9]])("%i + %i",(a,b,sum)=>expect(a+b).toBe(sum));
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content