🤡(react) add HTMLDialog mock
As JestDOM does not mock this element, we need to do it in order to make Modal work in test environement.
This commit is contained in:
@@ -2,6 +2,7 @@ import "@testing-library/jest-dom/vitest";
|
||||
import createFetchMock from "vitest-fetch-mock";
|
||||
import { vi } from "vitest";
|
||||
import "./AnimateMock";
|
||||
import "./HTMLDialogElementMock";
|
||||
|
||||
const fetchMocker = createFetchMock(vi);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user