> For the complete documentation index, see [llms.txt](https://docs.puppetry.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.puppetry.app/group.md).

# Group

During test run or export Puppetry suites are turned into [Jest](https://jestjs.io) test file. Groups are converted into [describe blocks](https://blog.teamtreehouse.com/an-introduction-to-rspec). So we use them to define the context for the included test cases.

> Group defines the page context for all its test cases, meaning the first test case in a group has a fresh new context. We run commands and assertions within that context, so it gets affected. Yet the test cases in the next group receive a new clean context.

![Test group](/files/-Lu8cNpkb3bEm72Rha8O)
