← back to Stars of Design
sod-smoke-quiet
5379dd02f95e13da09717ad6f84efad4a628504e · 2026-05-13 05:51:41 -0700 · Steve Abrams
Files touched
Diff
commit 5379dd02f95e13da09717ad6f84efad4a628504e
Author: Steve Abrams <steve@designerwallcoverings.com>
Date: Wed May 13 05:51:41 2026 -0700
sod-smoke-quiet
---
test/smoke.js | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/test/smoke.js b/test/smoke.js
index 4b29464..4fcfb66 100644
--- a/test/smoke.js
+++ b/test/smoke.js
@@ -128,9 +128,13 @@ function check(name, cond, hint = '') {
r = await fetch('/submit');
check('submit: 200', r.status === 200);
- // Report
- console.log(checks.map(c => (c.ok ? '✓' : '✗') + ' ' + c.name + (c.hint ? ' (' + c.hint + ')' : '')).join('\n'));
- console.log(`\n${pass} passed, ${fail} failed`);
+ // Report — pass --quiet to only print failures (useful for CI / cron)
+ const quiet = process.argv.includes('--quiet');
+ const lines = quiet
+ ? checks.filter(c => !c.ok).map(c => '✗ ' + c.name + (c.hint ? ' (' + c.hint + ')' : ''))
+ : checks.map(c => (c.ok ? '✓' : '✗') + ' ' + c.name + (c.hint ? ' (' + c.hint + ')' : ''));
+ if (lines.length) console.log(lines.join('\n'));
+ console.log(`${quiet && fail === 0 ? '' : '\n'}${pass} passed, ${fail} failed`);
process.exit(fail === 0 ? 0 : 1);
})().catch((e) => {
console.error('smoke harness error:', e.message);
← c9d3997 starsofdesign: smoke +4 security-header checks (X-Content-Ty
·
back to Stars of Design
·
sod smoke +gzip /firms check bb0e392 →