mockApis.config.factory()
Home > @backstage/test-utils
> mockApis
> config
> factory
Creates a factory for a fake implementation of ConfigApi with optional configuration data supplied.
Signature:
factory: (options?: {
data?: JsonObject | undefined;
} | undefined) => ApiFactory<import("@backstage/config").Config, import("@backstage/config").Config, {}>
Parameters
Parameter |
Type |
Description |
---|---|---|
options |
{ data?: JsonObject | undefined; } | undefined |
(Optional) |
ApiFactory<import("@backstage/config").Config, import("@backstage/config").Config, {}>