Parameterized (data-driven) tests run the same test logic with multiple sets of inputs and expected outputs — avoiding duplicating the test for each case. They make it easy to test many scenarios (including edge cases) concisely.
The problem: duplicated tests
Without parameterization, testing many input/output cases means COPYING the test:
test('add 2+3', () => expect(add(2,3)).toBe(5));
test('add 0+0', () => expect(add(0,0)).toBe(0));
test('add -1+1', () => expect(add(-1,1)).toBe(0));
→ lots of near-identical, repetitive tests (tedious, hard to maintain)
