From 9ebbe67e05af08b567e215340da993c08dae378f Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Tue, 3 Nov 2026 12:04:33 +0800 Subject: [PATCH] fix(ci): await website worker tests and format Wrangler config --- website/worker.test.mjs | 6 +++--- website/wrangler.toml | 7 ++++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/website/worker.test.mjs b/website/worker.test.mjs index 490e8205a9..7c3ae74f9f 100644 --- a/website/worker.test.mjs +++ b/website/worker.test.mjs @@ -36,7 +36,7 @@ function assets({ markdownStatus = 200 } = {}) { }; } -test("HTML is the default and explicit Accept preferences select Markdown", async () => { +await test("HTML is the default and explicit Accept preferences select Markdown", async () => { for (const [accept, markdown] of [ [null, false], ["*/*", false], @@ -75,7 +75,7 @@ test("HTML is the default and explicit Accept preferences select Markdown", asyn } }); -test("HEAD and validators use the selected representation", async () => { +await test("HEAD and validators use the selected representation", async () => { for (const method of ["GET", "HEAD"]) { const response = await worker.fetch( new Request("https://rea.tools/guide/", { @@ -104,7 +104,7 @@ test("HEAD and validators use the selected representation", async () => { } }); -test("missing Markdown keeps HTML, and asset redirects and missing routes survive", async () => { +await test("missing Markdown keeps HTML, and asset redirects and missing routes survive", async () => { const html = await worker.fetch( new Request("https://rea.tools/guide/", { headers: { Accept: "text/markdown" }, diff --git a/website/wrangler.toml b/website/wrangler.toml index 7c64886b30..649d31cfe1 100644 --- a/website/wrangler.toml +++ b/website/wrangler.toml @@ -15,7 +15,12 @@ not_found_handling = "none" [build] cwd = ".." command = "python3 scripts/website.py check" -watch_dir = ["./public", "./locales", "./templates", "../.agents/skills/reverse-engineer-anything"] +watch_dir = [ + "./public", + "./locales", + "./templates", + "../.agents/skills/reverse-engineer-anything", +] # Public HTTPS depends on zone activation and certificate readiness. [env.production]