From c6389590fe439d5039e8eac2e0d507c4456a55ca Mon Sep 17 00:00:00 2001 From: FoxxMD Date: Mon, 6 Jul 2026 18:05:52 +0000 Subject: [PATCH] fix api fixture typing for players --- src/core/tests/utils/apiFixtures.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/core/tests/utils/apiFixtures.ts b/src/core/tests/utils/apiFixtures.ts index 788d5743..99d4f53f 100644 --- a/src/core/tests/utils/apiFixtures.ts +++ b/src/core/tests/utils/apiFixtures.ts @@ -114,6 +114,7 @@ export const generateComponentCommonApiJson = (data: Partial lastActiveAt = dayjs(), lastReadyAt = dayjs(), state = faker.number.int({min: 1, max: 7}) as ComponentState, + players = {}, ...rest } = data; @@ -139,6 +140,7 @@ export const generateComponentCommonApiJson = (data: Partial countLive: faker.number.int({min: 0, max: 2000}), countNonLive: 0, state, + players, status: faker.helpers.arrayElement(statusSamples), ...rest } -- 2.51.2