Skip to main content

mockApis.permission.factory()

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

Signature:

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

Parameters

Parameter

Type

Description

options

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

(Optional)

**Returns:**

ApiFactory<PermissionApi, PermissionApi, {}>