How to get the group name in the test


Say I have a test with the group name:

group("Test-1: Checking This", () => {
    // How can I access that group name here?


Hey @psa,

Simply define it as a variable in the outer scope.

Hmm, I was hoping i could get it within there as i don’t like the idea of having to write that outside, but you’re saying like:

const test1Name = "Test-1: Checking This";

group(test1Name, () => {