Run code inside a group. Groups are used to organize results in a test.
Parameter | Type | Description |
---|---|---|
name | string | Name of the group. |
fn | function | Group body - code to be executed in the group context. |
Returns
Type | Description |
---|---|
any | The return value of fn. |
Example
The above code will present the results separately depending on the group execution.
Learn more on Groups and Tags.