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); }