From dd8987563afcd1a078f7873fb2ca48ea880553e4 Mon Sep 17 00:00:00 2001 From: Lentil Hoffman Date: Sun, 15 Jun 2025 12:22:39 -0500 Subject: [PATCH] Fix recursion depth test validity Previosly a failure to correctly limit the depth might not be detected --- __tests__/nested-resolution-performance.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/__tests__/nested-resolution-performance.ts b/__tests__/nested-resolution-performance.ts index 9866b91..e446195 100644 --- a/__tests__/nested-resolution-performance.ts +++ b/__tests__/nested-resolution-performance.ts @@ -251,7 +251,7 @@ describe('Nested Object Resolution Performance', () => { while (currentView.nestedObjects.next && currentView.nestedObjects.next.length > 0) { currentView = currentView.nestedObjects.next[0]; depth++; - if (depth >= 5) break; // Prevent infinite loop + if (depth >= 10) break; // Prevent infinite loop } expect(depth).toBeLessThanOrEqual(5);