diff --git a/package.json b/package.json index 761dcdd60d..6d9e038399 100644 --- a/package.json +++ b/package.json @@ -159,7 +159,7 @@ "@types/fs-extra": "^11.0.0", "@types/geojson": "^7946.0.8", "@types/glob-to-regexp": "^0.4.1", - "@types/jest": "29.5.3", + "@types/jest": "29.5.4", "@types/katex": "^0.16.0", "@types/lodash": "^4.14.168", "@types/modernizr": "^3.5.3", diff --git a/test/components/views/rooms/RoomHeader-test.tsx b/test/components/views/rooms/RoomHeader-test.tsx index 0e02733d2a..64f805bca2 100644 --- a/test/components/views/rooms/RoomHeader-test.tsx +++ b/test/components/views/rooms/RoomHeader-test.tsx @@ -56,7 +56,7 @@ describe("RoomHeader", () => { }); afterEach(() => { - jest.resetAllMocks(); + jest.restoreAllMocks(); }); it("renders the room header", () => { diff --git a/yarn.lock b/yarn.lock index 4bb2d98a88..4a7c39553e 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2765,10 +2765,10 @@ dependencies: "@types/istanbul-lib-report" "*" -"@types/jest@29.5.3": - version "29.5.3" - resolved "https://registry.yarnpkg.com/@types/jest/-/jest-29.5.3.tgz#7a35dc0044ffb8b56325c6802a4781a626b05777" - integrity sha512-1Nq7YrO/vJE/FYnqYyw0FS8LdrjExSgIiHyKg7xPpn+yi8Q4huZryKnkJatN1ZRH89Kw2v33/8ZMB7DuZeSLlA== +"@types/jest@29.5.4": + version "29.5.4" + resolved "https://registry.yarnpkg.com/@types/jest/-/jest-29.5.4.tgz#9d0a16edaa009a71e6a71a999acd582514dab566" + integrity sha512-PhglGmhWeD46FYOVLt3X7TiWjzwuVGW9wG/4qocPevXMjCmrIc5b6db9WjeGE4QYVpUAWMDv3v0IiBwObY289A== dependencies: expect "^29.0.0" pretty-format "^29.0.0"