ServiceFactoryTester.from()
Home > @backstage/backend-test-utils
> ServiceFactoryTester
> from
Creates a new ServiceFactoryTester used to test the provided subject.
Signature:
static from<TService, TScope extends 'root' | 'plugin', TInstances extends 'singleton' | 'multiton' = 'singleton'>(subject: ServiceFactory<TService, TScope, TInstances>, options?: ServiceFactoryTesterOptions): ServiceFactoryTester<TService, TScope, TInstances>;
Parameters
Parameter |
Type |
Description |
---|---|---|
subject |
ServiceFactory<TService, TScope, TInstances> |
The service factory to test. |
options |
(Optional) Additional options |
ServiceFactoryTester<TService, TScope, TInstances>
A new tester instance for the provided subject.