Skip to content

Commit

Permalink
fix: use group.each.tap to skip group tests
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Jan 6, 2025
1 parent f198f74 commit 17d3924
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/suite/runner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export class SuiteRunner {
*/
if (this.#options.bail && this.#hasError) {
if (groupOrTest instanceof Group) {
groupOrTest.each.skip(true, 'Skipped due to bail mode')
groupOrTest.tap((t) => t.skip(true, 'Skipped due to bail mode'))
} else {
groupOrTest.skip(true, 'Skipped due to bail mode')
}
Expand Down

0 comments on commit 17d3924

Please sign in to comment.