Skip to content

test(smoke): make the /api/icon smoke test actually run against production - #298

Merged
forcingfx merged 2 commits into
mainfrom
test/icon-smoke-fixture
Sep 9, 2026
Merged

forcingfx merged 2 commits into
mainfrom
test/icon-smoke-fixture

Conversation

@forcingfx

Copy link
Copy Markdown
Owner

Follow-up to #297. Its smoke test failed on first live run: example.com has no favicon (empty text/plain 200 for ?domain=, 404 for /favicon.ico), and the default happy-dom environment blocks the cross-origin fetch. Fixtures are now feedzero.app, and the file runs under // @vitest-environment node like the other smoke tests.

Verified green against production before commit:

SMOKE_TESTS=1 npx vitest run tests/smoke/icon.test.ts   # 2 passed

🤖 Generated with Claude Code

https://claude.ai/code/session_01GQoLHbPfaTCHvPuaoqGZeJ

…ction

The test added in #297 failed on its first live run for two reasons that
the unit run could not show: example.com has no favicon (its ?domain=
answer is an empty text/plain 200 and its /favicon.ico a 404), and the
default happy-dom environment blocks the cross-origin fetch outright.
Fixtures are now our own domain and the file runs under node like every
other smoke test. Verified green against my.feedzero.app before commit.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01GQoLHbPfaTCHvPuaoqGZeJ
@vercel

vercel Bot commented Sep 9, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
feedzero Ready Ready Preview Sep 9, 2026 8:36pm UTC

Request Review

@forcingfx
forcingfx merged commit 9333577 into main Sep 9, 2026
17 checks passed
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.

1 participant