From 4078b58ca2d0f86d19ee8167f52c76a4aec4e256 Mon Sep 17 00:00:00 2001 From: "F. Levi" <55688616+flevi29@users.noreply.github.com> Date: Wed, 22 May 2024 13:54:18 +0300 Subject: [PATCH] Fixed jsdom trying to polyfill AbortController --- jest.config.js | 2 +- src/types/types.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/jest.config.js b/jest.config.js index 6bbaf4a9..644f19a9 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 9b3337e9..ae122464 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',