Skip to main content

mockApis.identity.factory()

Home > @backstage/test-utils > mockApis > identity > factory

Signature:

factory: (options?: {
userEntityRef?: string | undefined;
ownershipEntityRefs?: string[] | undefined;
token?: string | undefined;
email?: string | undefined;
displayName?: string | undefined;
picture?: string | undefined;
} | undefined) => ApiFactory<IdentityApi, IdentityApi, {}>

Parameters

Parameter

Type

Description

options

{ userEntityRef?: string | undefined; ownershipEntityRefs?: string[] | undefined; token?: string | undefined; email?: string | undefined; displayName?: string | undefined; picture?: string | undefined; } | undefined

(Optional)

**Returns:**

ApiFactory<IdentityApi, IdentityApi, {}>