Skip to main content

MockSearchApi

Home > @backstage/plugin-search-react > MockSearchApi

Search Api Mock that can be used in tests and storybooks

Signature:

class MockSearchApi implements SearchApi 

Implements: SearchApi

Constructors

Constructor

Modifiers

Description

(constructor)(mockedResults)

Constructs a new instance of the MockSearchApi class

Properties

Property

Modifiers

Type

Description

mockedResults?

SearchResultSet | undefined

(Optional)

Methods

Method

Modifiers

Description

query()