Skip to content

Quiet the web test output - #7

Merged
fdb merged 1 commit into
mainfrom
claude/project-thread-y7epyc
Oct 16, 2026
Merged

fdb merged 1 commit into
mainfrom
claude/project-thread-y7epyc

Conversation

@fdb

@fdb fdb commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Requested by Frederik · project thread

Before: npm test in web/ printed every sign-in email and the spam-filter outage warnings between the test results.

After: the test output is just the results. When a test fails, the console output it produced is printed under it, so the error log and the mails are there when they help.

How: app.test.ts swaps console.log/error/warn for a collector in beforeEach and restores them in afterEach, which dumps the collected lines if the test did not pass. The spam-filter test reads its admin alerts from the same collector instead of patching console.log itself. The app is unchanged, so MAILER=log still prints mails in npm run dev.

@fdb fdb self-assigned this Oct 16, 2026
@fdb
fdb merged commit 8538650 into main Oct 16, 2026
1 check passed
@fdb
fdb deleted the claude/project-thread-y7epyc branch October 18, 2026 19:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants