diff --git a/src/modules/helpers/it.ts b/src/modules/helpers/it.ts index a14db8d7..5cbfbf08 100644 --- a/src/modules/helpers/it.ts +++ b/src/modules/helpers/it.ts @@ -9,7 +9,7 @@ export async function it( message: string, cb: () => Promise ): Promise; -export async function it(message: string, cb: () => unknown): Promise; +export function it(message: string, cb: () => unknown): void; export async function it(cb: () => Promise): Promise; export function it(cb: () => unknown): void; /* c8 ignore next */ // ? diff --git a/src/modules/helpers/test.ts b/src/modules/helpers/test.ts index a9396142..936a8a78 100644 --- a/src/modules/helpers/test.ts +++ b/src/modules/helpers/test.ts @@ -9,7 +9,7 @@ export async function test( message: string, cb: () => Promise ): Promise; -export async function test(message: string, cb: () => unknown): Promise; +export function test(message: string, cb: () => unknown): void; export async function test(cb: () => Promise): Promise; export function test(cb: () => unknown): void; /* c8 ignore next */ // ?