Skip to content

Commit 7deb2cf

Browse files
Copilotkobenguyent
andcommitted
Fix TypeScript test expectations for hook return types
Co-authored-by: kobenguyent <[email protected]>
1 parent abe8b83 commit 7deb2cf

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

typings/tests/global-variables.types.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ expectType<CodeceptJS.ScenarioConfig>(
6969
)
7070

7171
// @ts-ignore
72-
expectType<void>(
72+
expectType<CodeceptJS.HookConfig>(
7373
Before(args => {
7474
// @ts-ignore
7575
expectType<CodeceptJS.SupportObject>(args)
@@ -79,7 +79,7 @@ expectType<void>(
7979
)
8080

8181
// @ts-ignore
82-
expectType<void>(
82+
expectType<CodeceptJS.HookConfig>(
8383
BeforeSuite(args => {
8484
// @ts-ignore
8585
expectType<CodeceptJS.SupportObject>(args)
@@ -89,7 +89,7 @@ expectType<void>(
8989
)
9090

9191
// @ts-ignore
92-
expectType<void>(
92+
expectType<CodeceptJS.HookConfig>(
9393
After(args => {
9494
// @ts-ignore
9595
expectType<CodeceptJS.SupportObject>(args)
@@ -99,7 +99,7 @@ expectType<void>(
9999
)
100100

101101
// @ts-ignore
102-
expectType<void>(
102+
expectType<CodeceptJS.HookConfig>(
103103
AfterSuite(args => {
104104
// @ts-ignore
105105
expectType<CodeceptJS.SupportObject>(args)

0 commit comments

Comments
 (0)