TestApiRegistry
Home > @backstage/test-utils
> TestApiRegistry
The TestApiRegistry
is an ApiHolder implementation that is particularly well suited for development and test environments such as unit tests, storybooks, and isolated plugin development setups.
Signature:
class TestApiRegistry implements ApiHolder
Implements: ApiHolder
Methods
Method | Modifiers | Description |
---|---|---|
from(apis) | static | Creates a new TestApiRegistry with a list of API implementation pairs. Similar to the TestApiProvider, there is no need to provide a full implementation of each API, it's enough to implement the methods that are tested. |
get(api) | Returns an implementation of the API. |