mirror of
https://github.com/morluto/rea.git
synced 2026-11-07 05:56:19 -10: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 [
|
for (const [accept, markdown] of [
|
||||||
[null, false],
|
[null, false],
|
||||||
["*/*", 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"]) {
|
for (const method of ["GET", "HEAD"]) {
|
||||||
const response = await worker.fetch(
|
const response = await worker.fetch(
|
||||||
new Request("https://rea.tools/guide/", {
|
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(
|
const html = await worker.fetch(
|
||||||
new Request("https://rea.tools/guide/", {
|
new Request("https://rea.tools/guide/", {
|
||||||
headers: { Accept: "text/markdown" },
|
headers: { Accept: "text/markdown" },
|
||||||
|
|||||||
@@ -15,7 +15,12 @@ not_found_handling = "none"
|
|||||||
[build]
|
[build]
|
||||||
cwd = ".."
|
cwd = ".."
|
||||||
command = "python3 scripts/website.py check"
|
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.
|
# Public HTTPS depends on zone activation and certificate readiness.
|
||||||
[env.production]
|
[env.production]
|
||||||
|
|||||||
Reference in new issue
Block a user