diff --git a/jest.config.js b/jest.config.js index 6bbaf4a9a..644f19a90 100644 --- a/jest.config.js +++ b/jest.config.js @@ -28,7 +28,7 @@ const config = { 'token.test.ts', ], // make sure built-in Node.js fetch doesn't get replaced for consistency - globals: { fetch: global.fetch }, + globals: { fetch: global.fetch, AbortController: global.AbortController }, }, { preset: 'ts-jest', diff --git a/src/types/types.ts b/src/types/types.ts index 9b3337e98..ae1224644 100644 --- a/src/types/types.ts +++ b/src/types/types.ts @@ -664,7 +664,7 @@ export type MeiliSearchErrorResponse = { link: string } -// @TODO: This doesn't seem to be updated, and its usefullness comes into question. +// @TODO: This doesn't seem to be up to date, and its usefullness comes into question. export const ErrorStatusCode = { /** @see https://www.meilisearch.com/docs/reference/errors/error_codes#index_creation_failed */ INDEX_CREATION_FAILED: 'index_creation_failed',