Skip to main content
Version: Next

mockServices.userInfo.factory

Home > @backstage/backend-test-utils > mockServices > userInfo > factory

Creates a mock service factory for the UserInfoService.

By default it extracts the user's entity ref from a user principal and returns that as the only ownership entity ref.

Signature:

factory: () => ServiceFactory<UserInfoService, "plugin", "singleton">