Skip to main content

mockApis.permission.factory()

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

Signature:

factory: (options?: {
authorize?: AuthorizeResult.DENY | AuthorizeResult.ALLOW | ((request: EvaluatePermissionRequest) => AuthorizeResult.DENY | AuthorizeResult.ALLOW) | undefined;
} | undefined) => ApiFactory<PermissionApi, PermissionApi, {}>

Parameters

Parameter

Type

Description

options

{ authorize?: AuthorizeResult.DENY | AuthorizeResult.ALLOW | ((request: EvaluatePermissionRequest) => AuthorizeResult.DENY | AuthorizeResult.ALLOW) | undefined; } | undefined

(Optional)

**Returns:**

ApiFactory<PermissionApi, PermissionApi, {}>