Skip to main content

ServiceFactoryTester

Home > @backstage/backend-test-utils > ServiceFactoryTester

A utility to help test service factories in isolation.

Signature:

class ServiceFactoryTester<TService, TScope extends 'root' | 'plugin'> 

Methods

MethodModifiersDescription
from(subject, options)staticCreates a new ServiceFactoryTester used to test the provided subject.
get(args)Returns the service instance for the subject.
getService(service, args)Return the service instance for any of the provided dependencies or built-in services.