File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
tests/common/widgets/refinement-suggestions Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ import { wait } from '@instantsearch/testutils';
33
44import type { RefinementSuggestionsWidgetSetup } from '.' ;
55import type { TestOptions } from '../../common' ;
6+ import type { SearchResponses } from 'algoliasearch' ;
67
78export 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 } ) ;
You can’t perform that action at this time.
0 commit comments