fix sync reliability and runtime handling

This commit is contained in:
Alex Getman
2026-08-12 13:48:10 +03:00
parent 70387a94ad
commit 99a22e11bd
13 changed files with 289 additions and 132 deletions
+4
View File
@@ -31,4 +31,8 @@ describe("loadConfig", () => {
const config = loadConfig({ BOT_MODE: "http-only", ENABLE_FDS_SLEEP_DETAILS: "false" });
expect(config.ENABLE_FDS_SLEEP_DETAILS).toBe(false);
});
test("rejects an invalid timezone", () => {
expect(() => loadConfig({ BOT_MODE: "http-only", TZ: "not/a-timezone" })).toThrow(ConfigurationError);
});
});