From 5185e7ae4b07fc734cbd72b83b36326f7d1ca181 Mon Sep 17 00:00:00 2001 From: Navin Karkera Date: Mon, 16 Sep 2024 20:48:52 +0530 Subject: [PATCH] test: ignore unused functions --- src/search-manager/data/api.ts | 1 + src/search-manager/data/apiHooks.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/src/search-manager/data/api.ts b/src/search-manager/data/api.ts index 904cef942f..2f5de76d39 100644 --- a/src/search-manager/data/api.ts +++ b/src/search-manager/data/api.ts @@ -498,6 +498,7 @@ export async function fetchTagsThatMatchKeyword({ /** * Fetch single document by its id */ +/* istanbul ignore next */ export async function fetchDocumentById({ client, indexName, id } : { /** The Meilisearch client instance */ client: MeiliSearch; diff --git a/src/search-manager/data/apiHooks.ts b/src/search-manager/data/apiHooks.ts index b02c64b9d0..c9fd79e83f 100644 --- a/src/search-manager/data/apiHooks.ts +++ b/src/search-manager/data/apiHooks.ts @@ -242,6 +242,7 @@ export const useTagFilterOptions = (args: { return { ...mainQuery, data }; }; +/* istanbul ignore next */ export const useGetSingleDocument = ({ client, indexName, id }: { client?: MeiliSearch; indexName?: string;