Grouping, Forcing, and Skipping Tests

Learn how to group tests using Jest's describe function and how to force or skip specific tests in a group using different keywords.

Grouping tests

Within a test specification file, we may want to group our tests into logical sets. Jest uses the function describe for this purpose, as seen in the following tests:

Get hands-on with 1200+ tech skills courses.