From 369b4f3c9e3f86d877e2407dd17e487e5b25a7ca Mon Sep 17 00:00:00 2001 From: Miguel Angel Simon Sierra Date: Sun, 20 Sep 2026 11:08:52 -0400 Subject: [PATCH] test(studio): type nested timeline fixture broadly --- .../src/player/components/useTimelineLogicalRows.test.tsx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/packages/studio/src/player/components/useTimelineLogicalRows.test.tsx b/packages/studio/src/player/components/useTimelineLogicalRows.test.tsx index c3238ae46f..c5a029925a 100644 --- a/packages/studio/src/player/components/useTimelineLogicalRows.test.tsx +++ b/packages/studio/src/player/components/useTimelineLogicalRows.test.tsx @@ -10,7 +10,9 @@ import { useTimelineLogicalRows } from "./useTimelineLogicalRows"; Object.assign(globalThis, { IS_REACT_ACT_ENVIRONMENT: true }); -const tracks = Array.from( +type TrackInput = readonly (readonly [number, readonly TimelineElement[]])[]; + +const tracks: TrackInput = Array.from( { length: 1_000 }, (_, track) => [ @@ -33,7 +35,7 @@ function Harness({ inputTracks = tracks, }: { snapshots: Array; - inputTracks?: typeof tracks; + inputTracks?: TrackInput; }) { usePlayerStore((state) => state.currentTime); const logicalRows = useTimelineLogicalRows({ @@ -84,7 +86,7 @@ describe("useTimelineLogicalRows", () => { }, ], ], - ] as const satisfies typeof tracks; + ] as const satisfies TrackInput; const host = document.createElement("div"); const root = createRoot(host); const snapshots: Array = [];