style: format publish status fix

This commit is contained in:
Oleg Isonen committed 2026-11-15 16:14:42 +00:00
1 parent 875a9f4b58
commit 4ad35a1940
2 files changed
+10 -10

No files matched your search

@@ -54,7 +54,7 @@ test("a pending runner cannot promote a refreshed Build to success", async () =>
createdAt: new Date().toISOString(),
publishStatus: "PUBLISHED",
},
} as Project)
}) as Project
);
const getJob = vi
.fn()
@@ -84,7 +84,7 @@ test("a pending runner cannot turn a timed-out Build into failure", async () =>
createdAt: "2026-11-13T10:00:00Z",
publishStatus: "PENDING",
},
} as Project)
}) as Project
);
const getJob = vi
.fn()
@@ -112,7 +112,7 @@ test("static status waits for the matching runner before download readiness", as
updatedAt: new Date().toISOString(),
publishStatus: "PUBLISHED",
},
} as Project)
}) as Project
);
const getJob = vi
.fn()
@@ -150,7 +150,7 @@ test.each(["site", "static"] as const)(
({
latestBuildVirtual: target === "site" ? newerBuild : null,
latestStaticBuild: target === "static" ? newerBuild : null,
} as Project)
}) as Project
);
const getJob = vi.fn(async () => ({ status: "success" }));
const waiting = waitForPublishStatus(
@@ -188,7 +188,7 @@ test.each(["site", "static"] as const)(
({
latestBuildVirtual: target === "site" ? staleBuild : null,
latestStaticBuild: target === "static" ? staleBuild : null,
} as Project)
}) as Project
);
const getJob = vi.fn(async () => ({ status: "success" }));
const result = await waitForPublishStatus(
@@ -80,11 +80,11 @@ export const waitForPublishStatus = async (
refreshedProject.latestStaticBuild != null
? getStaticPublishStatusDisplay(refreshedProject.latestStaticBuild)
: refreshedProject.latestBuildVirtual != null
? getPublishStatusDisplay(refreshedProject.latestBuildVirtual)
: {
statusContent: "Not published",
status: "PENDING" as const,
};
? getPublishStatusDisplay(refreshedProject.latestBuildVirtual)
: {
statusContent: "Not published",
status: "PENDING" as const,
};
const inferredFailure =
status === "FAILED" &&