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
Method | Modifiers | Description |
---|---|---|
from(subject, options) | static | Creates 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. |