🤡(react) add Animate API
The jest-dom by default does not mock the Animate API, as the Toast use it we need to mock it.
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import "@testing-library/jest-dom/vitest";
|
||||
import createFetchMock from "vitest-fetch-mock";
|
||||
import { vi } from "vitest";
|
||||
import "./AnimateMock";
|
||||
|
||||
const fetchMocker = createFetchMock(vi);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user