fix(ui): update fetch

This commit is contained in:
Lukasz Mierzwa
2026-02-23 12:37:21 +00:00
committed by Łukasz Mierzwa
parent 675e687dd7
commit dc5a640bb7
27 changed files with 618 additions and 610 deletions

View File

@@ -2,6 +2,8 @@ import React from "react";
import "@testing-library/jest-dom";
import fetchMock, { manageFetchMockGlobally } from "@fetch-mock/jest";
import { useInView } from "react-intersection-observer";
import { createMocks as createIdleTimerMocks } from "react-idle-timer";
@@ -15,6 +17,10 @@ import { useFetchGet } from "Hooks/useFetchGet";
createIdleTimerMocks();
// eslint-disable-next-line @typescript-eslint/no-explicit-any
manageFetchMockGlobally(jest as any);
fetchMock.mockGlobal();
configure({
enforceActions: "always",
//computedRequiresReaction: true,