diff --git a/packages/core/src/core.ts b/packages/core/src/core.ts index 0a141693..4595da57 100644 --- a/packages/core/src/core.ts +++ b/packages/core/src/core.ts @@ -324,7 +324,7 @@ export function endGroup(): void { * @param name The name of the group * @param fn The function to wrap in the group */ -export async function group(name: string, fn: () => Promise): Promise { +export async function group(name: string, fn: () => T | Promise): Promise { startGroup(name) let result: T