Attaches mock API factory metadata to an API instance, allowing it to be
passed directly to test utilities without needing to explicitly provide
the [apiRef, implementation] tuple.
constcatalogApi = attachMockApiFactory( catalogApiRef, newInMemoryCatalogClient() ); // Can now be passed directly to TestApiProvider <TestApiProviderapis={[catalogApi]}>
Attaches mock API factory metadata to an API instance, allowing it to be passed directly to test utilities without needing to explicitly provide the [apiRef, implementation] tuple.