test: dedupe shell env exec mock read

This commit is contained in:
Peter Steinberger
2026-05-13 07:44:38 +01:00
parent e898ea67b4
commit 8ebb18416a

View File

@@ -95,7 +95,7 @@ describe("shell env fallback", () => {
}
function requireExecCall(exec: ReturnType<typeof vi.fn>): unknown[] {
const call = exec.mock.calls.at(0);
const call = exec.mock.calls[0];
if (!call) {
throw new Error("expected shell env exec call");
}