test: dedupe channel module mock read

This commit is contained in:
Peter Steinberger
2026-05-13 06:19:55 +01:00
parent 8fe196e28b
commit a123cddb4b

View File

@@ -29,7 +29,7 @@ function createTempDir(): string {
function requireCreateJitiCall(
createJiti: ReturnType<typeof vi.fn>,
): [string, { tryNative?: boolean }] {
const call = createJiti.mock.calls.at(0);
const call = createJiti.mock.calls[0];
if (!call) {
throw new Error("expected createJiti call");
}