Skip to content

Commit

Permalink
fix: add group to the suite before calling the group callback
Browse files Browse the repository at this point in the history
Fixes: #8
  • Loading branch information
thetutlage committed May 17, 2022
1 parent 8ab0d56 commit dd54583
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,12 +252,12 @@ test.group = function (title: string, callback: (group: Group) => void) {
*/
activeGroup.options.meta.fileName = recentlyImportedFile

callback(activeGroup)

/**
* Add group to the default suite
*/
activeSuite.add(activeGroup)

callback(activeGroup)
activeGroup = undefined
}

Expand Down

0 comments on commit dd54583

Please sign in to comment.