Skip to content

Commit e3a1dd8

Browse files
fix test
1 parent b67f3e1 commit e3a1dd8

File tree

1 file changed

+3
-1
lines changed
  • tests/common/widgets/refinement-suggestions

1 file changed

+3
-1
lines changed

tests/common/widgets/refinement-suggestions/options.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { wait } from '@instantsearch/testutils';
33

44
import type { RefinementSuggestionsWidgetSetup } from '.';
55
import type { TestOptions } from '../../common';
6+
import type { SearchResponses } from 'algoliasearch';
67

78
export function createOptionsTests(
89
setup: RefinementSuggestionsWidgetSetup,
@@ -113,6 +114,7 @@ export function createOptionsTests(
113114

114115
test('renders empty state when no hits', async () => {
115116
const searchClient = createSearchClient({
117+
// @ts-ignore
116118
search: jest.fn(() =>
117119
Promise.resolve({
118120
results: [
@@ -126,7 +128,7 @@ export function createOptionsTests(
126128
query: '',
127129
params: '',
128130
},
129-
],
131+
] as unknown as SearchResponses<any>,
130132
})
131133
),
132134
});

0 commit comments

Comments
 (0)