test: dedupe run main mock read

This commit is contained in:
Peter Steinberger
2026-05-13 04:57:39 +01:00
parent 09116464b6
commit ce712f503f

View File

@@ -54,7 +54,7 @@ const maybeRunCliInContainerMock = vi.hoisted(() =>
);
function requireRunCrestodianOptions(index = 0): { onReady?: unknown } {
const call = runCrestodianMock.mock.calls.at(index);
const call = runCrestodianMock.mock.calls[index];
if (!call) {
throw new Error(`expected runCrestodian call ${index}`);
}