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 |
---|---|---|
|
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. | |
Returns an implementation of the API. |