mirror of
https://github.com/prymitive/karma
synced 2026-05-17 04:16:42 +00:00
fix(ui): update fetch
This commit is contained in:
committed by
Łukasz Mierzwa
parent
675e687dd7
commit
dc5a640bb7
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user