Версия и дата сборки на странице ручных тестов (BUILD_DATE в образе)
Some checks failed
ci / deploy (push) Has been cancelled
ci / test (push) Has been cancelled

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-23 10:19:46 +03:00
parent a35240165b
commit 62dfe89f96

View File

@@ -103,3 +103,13 @@ describe("вебхук Intuit", () => {
vi.useRealTimers();
});
});
describe("версия сборки на странице тестов", () => {
it("показывает коммит и дату сборки из окружения", async () => {
const { renderTestsPage } = await import("./tests-page.js");
const html = renderTestsPage({ KHB_VERSION: "abc123def456", KHB_BUILD_DATE: "2026-11-23T07:20:00Z" } as NodeJS.ProcessEnv);
expect(html).toContain("commit/abc123def456");
expect(html).toContain("2026-11-23 07:20:00 UTC");
expect(renderTestsPage({} as NodeJS.ProcessEnv)).toContain("неизвестна");
});
});