Files
backstage/.changeset/tall-parents-deny.md
T
Emma Indal b090aa8773 no need plugin-search changeset
Signed-off-by: Emma Indal <emma.indahl@gmail.com>
2022-04-29 13:01:09 +02:00

606 B

@backstage/plugin-search-react
@backstage/plugin-search-react
minor

BREAKING: SearchContextProviderForStorybook and SearchApiProviderForStorybook has been deleted. New mock implementation of the SearchApi introduced. If you need to mock the api we recommend you to do the following:

import {
  searchApiRef,
  MockSearchApi,
  SearchContextProvider,
} from '@backstage/plugin-search-react';
import { TestApiProvider } from '@backstage/test-utils';

<TestApiProvider apis={[[searchApiRef, new MockSearchApi()]]}>
  <SearchContextProvider>
    <Component />
  </SearchContextProvider>
</TestApiProvider>;