fix: update recurringGroupId assignment and improve type definitions in helpers
This commit is contained in:
@@ -1,10 +1,16 @@
|
||||
import { beforeEach, expect, mock, test } from 'bun:test';
|
||||
|
||||
import { Errors } from '@/lib/errors';
|
||||
import { err, ok } from '@/lib/result';
|
||||
import { type Result, err, ok } from '@/lib/result';
|
||||
import type { InviteComplexUserResponse } from '@repo/api-contract';
|
||||
|
||||
const inviteComplexUserMock = mock(async () => undefined as unknown as InviteComplexUserResponse);
|
||||
type InviteComplexUserFn = (
|
||||
userId: string,
|
||||
complexId: string,
|
||||
input: { email: string }
|
||||
) => Promise<Result<InviteComplexUserResponse>>;
|
||||
|
||||
const inviteComplexUserMock = mock<InviteComplexUserFn>(async () => undefined as never);
|
||||
|
||||
const { createInviteComplexUserHandler } = await import(
|
||||
'@/modules/complex/features/invite-complex-user/invite-complex-user.handler'
|
||||
|
||||
Reference in New Issue
Block a user