test: type version fast path commit resolver mock

This commit is contained in:
Peter Steinberger
2026-04-20 20:06:42 +01:00
parent 41cce9ea79
commit bccd429f70

View File

@@ -21,7 +21,12 @@ describe("entry root version fast path", () => {
it("prints version output and skips host handling when container-targeted", async () => {
const output = vi.fn();
const exit = vi.fn();
const resolveVersion = vi.fn(async () => ({
const resolveVersion = vi.fn<
() => Promise<{
VERSION: string;
resolveCommitHash: (params: { moduleUrl: string }) => string | null;
}>
>(async () => ({
VERSION: "9.9.9-test",
resolveCommitHash: vi.fn(() => "abc1234"),
}));