From a0c1c49f0b67e21ccbd9a74b903d39a00fdd23e7 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 27 Feb 2026 19:22:22 +0000 Subject: [PATCH 1/2] Initial plan From 1a3a2975f49a257d9cee778e57d6cf8e55ac72a1 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 27 Feb 2026 19:25:18 +0000 Subject: [PATCH 2/2] fix: avoid order-dependent assertions in slicing tests Co-authored-by: ymc9 <104139426+ymc9@users.noreply.github.com> --- tests/e2e/orm/client-api/slicing.test.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/e2e/orm/client-api/slicing.test.ts b/tests/e2e/orm/client-api/slicing.test.ts index 5ba5fcb35..cf924d20c 100644 --- a/tests/e2e/orm/client-api/slicing.test.ts +++ b/tests/e2e/orm/client-api/slicing.test.ts @@ -505,7 +505,9 @@ describe('Query slicing tests', () => { }); expect(user.posts).toHaveLength(2); - expect(user.posts[0]!.title).toBe('Post 1'); + expect(user.posts).toEqual( + expect.arrayContaining([expect.objectContaining({ title: 'Post 1' })]) + ); }); it('allows nested update on included models', async () => { @@ -545,7 +547,8 @@ describe('Query slicing tests', () => { include: { posts: true }, }); - expect(updated.posts[0]!.title).toBe('Updated Post'); + const updatedPost = updated.posts.find((p) => p.id === postId); + expect(updatedPost!.title).toBe('Updated Post'); }); });