mirror of
https://github.com/morluto/rea.git
synced 2026-11-03 13:26:10 +00:00
fix(ci): await website worker tests and format Wrangler config
This commit is contained in:
1 parent
b912ec184c
commit
9ebbe67e05
2 files changed
+9
-4
No files matched your search
@@ -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" },
|
||||
|
||||
@@ -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]
|
||||
|
||||
Reference in new issue
Block a user