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

@@ -1,6 +1,6 @@
import { render, screen, fireEvent } from "@testing-library/react";
import fetchMock from "fetch-mock";
import fetchMock from "@fetch-mock/jest";
import { MockThemeContext } from "__fixtures__/Theme";
import { useFetchGetMock } from "__fixtures__/useFetchGet";
@@ -10,8 +10,8 @@ import { MultiGridConfiguration } from "./MultiGridConfiguration";
let settingsStore: Settings;
beforeEach(() => {
fetchMock.reset();
fetchMock.mock("*", {
fetchMock.mockReset();
fetchMock.route("*", {
body: JSON.stringify([]),
});