From 815a4f135e98b7775bbe3d2123a679d4339e1362 Mon Sep 17 00:00:00 2001 From: Nico Flaig Date: Fri, 22 Dec 2023 19:15:27 +0100 Subject: [PATCH] Assert that a and b have same length --- packages/cli/test/utils/runUtils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/cli/test/utils/runUtils.ts b/packages/cli/test/utils/runUtils.ts index 4ceb3a610bfe..8d2846d6e664 100644 --- a/packages/cli/test/utils/runUtils.ts +++ b/packages/cli/test/utils/runUtils.ts @@ -26,4 +26,5 @@ export function expectDeepEquals(a: T, b: T, message: string): void { export function expectDeepEqualsUnordered(a: T[], b: T[], message: string): void { expect(a).toEqualWithMessage(expect.arrayContaining(b), message); expect(b).toEqualWithMessage(expect.arrayContaining(a), message); + expect(a).toHaveLength(b.length); }