Parameterized Tests
Multiple Choice Medium
Question
What is the main advantage of parameterized tests?
Hint
Think DRY — don't repeat yourself.
Explanation
Parameterized (or table-driven) tests allow you to define a single test that runs against multiple input/expected-output pairs. This reduces code duplication, makes it easy to add new test cases, and keeps the test logic in one place. Jest supports this via test.each().
Related Resources
Related Lessons
- Parameterized Tests
Data-driven testing.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.