jest/describe

Test Suites

Group related tests together

jest
describe
suites

Command

describe("Component", () => { ... })

Explanation

describe blocks group related tests together and can be nested for better organization.

Examples

Group user service tests

describe("UserService", () => { ... })

Group API tests

describe("API endpoints", () => { ... })