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