← back to Stars of Design
smoke: assert /api/{designers,firms,clients}/featured SWR Cache-Control (3 checks)
03cea5663b86e9c79d6e1fd9681434cf5d5c9ac3 · 2026-05-13 11:25:50 -0700 · Steve Abrams
Files touched
Diff
commit 03cea5663b86e9c79d6e1fd9681434cf5d5c9ac3
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Wed May 13 11:25:50 2026 -0700
smoke: assert /api/{designers,firms,clients}/featured SWR Cache-Control (3 checks)
---
test/smoke.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/test/smoke.js b/test/smoke.js
index 100d942..c80f1c7 100644
--- a/test/smoke.js
+++ b/test/smoke.js
@@ -165,6 +165,7 @@ function check(name, cond, hint = '') {
r = await fetch(`/api/${k}/featured?n=3`);
check(`api/${k}/featured: 200`, r.status === 200);
check(`api/${k}/featured: array`, new RegExp(`"${k}":\\[`).test(r.body));
+ check(`api/${k}/featured: SWR cache`, /stale-while-revalidate/.test(r.headers['cache-control'] || ''));
}
// 9. /sitemap.xml + /robots.txt + /favicon.ico
← ea921b6 smoke: cover /healthz + HEAD method + harness opts.method
·
back to Stars of Design
·
polish: editorial 2-line hero + by-era anthology section f86aef5 →