UNPKG

vue-instantsearch-ssr

Version:

👀 Lightning-fast Algolia search for Vue apps

8 lines (7 loc) • 178 B
export const createFakeClient = () => ({ search: jest.fn(requests => Promise.resolve({ results: requests.map(({ params: { query } }) => ({ query })), }) ), });