Skip to content

Commit

Permalink
Fixed jsdom trying to polyfill AbortController
Browse files Browse the repository at this point in the history
  • Loading branch information
flevi29 committed May 22, 2024
1 parent 78eb713 commit 4078b58
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
2 changes: 1 addition & 1 deletion src/types/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 4078b58

Please sign in to comment.