Challenge: Test-Driven Development

Apply what you’ve learned about test-driven development in TypeScript to real problems.

In this challenge, you can test your understanding of testing in TypeScript. You’ll apply your knowledge of the topic to solve real problems you might encounter in your projects.

There will be three code snippets, each giving you a different challenge.

Grouping tests together

Below are two Jest test cases. Your task is to group these tests together as they have shared characteristics.

Get hands-on with 1400+ tech skills courses.