diff --git a/ui/src/Components/Modal/index.test.tsx b/ui/src/Components/Modal/index.test.tsx index c873ab05f..e6e323a3e 100644 --- a/ui/src/Components/Modal/index.test.tsx +++ b/ui/src/Components/Modal/index.test.tsx @@ -28,7 +28,7 @@ const MountedModal = (isOpen: boolean, isUpper?: boolean) => { describe("", () => { it("scroll isn't enabled if ref is null", () => { const useRefSpy = jest.spyOn(React, "useRef").mockImplementation(() => - Object.defineProperty({}, "current", { + Object.defineProperty({} as any, "current", { get: () => null, set: () => {}, })