Options
All
  • Public
  • Public/Protected
  • All
Menu

Properties for the BrowserMockProvider component.

internal

Hierarchy

  • BrowserMockProviderProps

Index

Properties

Optional initialEntries

initialEntries: string[]

The existing browsing history, where the first entry is the current URL.

Optional mocks

mocks: MockedResponse<Record<string, any>>[]

Mocked versions of GraphQL calls required by the page/component test.

Optional path

path: string

The url for the provider to route to.

This also defines the name and location of the parameters e.g. /instances/:host/communities/:community/posts to define the location of the host and communtiy params in the URL.

Generated using TypeDoc