From d669eede1535d50f0f79f19296c80990dcf128c7 Mon Sep 17 00:00:00 2001 From: Mikhail Date: Sat, 27 Jul 2024 12:40:26 +0300 Subject: [PATCH] fix: remove needless entries for map (#15213) --- packages/jest-matcher-utils/src/deepCyclicCopyReplaceable.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/jest-matcher-utils/src/deepCyclicCopyReplaceable.ts b/packages/jest-matcher-utils/src/deepCyclicCopyReplaceable.ts index 236dbfcec886..e7fe92d45f11 100644 --- a/packages/jest-matcher-utils/src/deepCyclicCopyReplaceable.ts +++ b/packages/jest-matcher-utils/src/deepCyclicCopyReplaceable.ts @@ -142,7 +142,7 @@ function deepCyclicCopyMap( cycles.set(map, newMap); - for (const [key, value] of map.entries()) { + for (const [key, value] of map) { newMap.set(key, deepCyclicCopyReplaceable(value, cycles)); }