# 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](https://3461068122-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LdyKJ-zzeS2hB7DF04J%2F-Lu7jl8BoLNE0jl1KtZ4%2F-Lu8cNpkb3bEm72Rha8O%2Fscreenshot-1574266951.png?alt=media\&token=951e2d3f-73e6-4bd9-a3fe-1a54dc8d1b7e)
