Skip to content

Commit

Permalink
pass workingState into formatter.{before,after}All()
Browse files Browse the repository at this point in the history
  • Loading branch information
derhuerst committed Oct 31, 2024
1 parent 5321ae0 commit 26b0f6b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ LANGUAGE sql;
if ('string' === typeof beforeAll && beforeAll) {
yield beforeAll
} else if ('function' === typeof beforeAll) {
yield beforeAll(opt)
yield beforeAll(opt, workingState)
}

if (task.file) {
Expand All @@ -249,7 +249,7 @@ LANGUAGE sql;
if ('string' === typeof afterAll && afterAll) {
yield afterAll + ';\n'
} else if ('function' === typeof afterAll) {
yield afterAll(opt) + ';\n'
yield afterAll(opt, workingState) + ';\n'
}
}

Expand Down

0 comments on commit 26b0f6b

Please sign in to comment.