Skip to content

Add missing unit tests for cargo-audit-gate and image-remote-patterns - #2094

Merged
aji70 merged 2 commits into
MyFanss:mainfrom
chrizand9-code:fix/2053-2052-test-coverage
Oct 20, 2026
Merged

aji70 merged 2 commits into
MyFanss:mainfrom
chrizand9-code:fix/2053-2052-test-coverage

Conversation

@chrizand9-code

Copy link
Copy Markdown
Contributor

Adds the missing unit test coverage flagged in #2053 and #2052.

  • scripts/ci/cargo-audit-gate.test.mjs: covers evaluateCargoAudit's blocking, ignored, and stale-ignore classification, plus warning-only entries and error paths, following the existing npm-audit-gate.test.mjs conventions (node:test).
  • frontend/src/lib/image-remote-patterns.ts / .test.ts: the **.ipfs.io pattern matched any number of subdomain levels under ipfs.io (unbounded), contradicting the module's own "wildcards are intentionally avoided" intent. Scoped it to *.ipfs.io (a single subdomain level, matching the typical <cid>.ipfs.io gateway form) and added a vitest unit test covering the pattern list and the scoping fix.

Closes #2053
Closes #2052

@drips-wave

drips-wave Bot commented Oct 20, 2026

Copy link
Copy Markdown

@chrizand9-code Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@aji70
aji70 merged commit 7b2f5fd into MyFanss:main Oct 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants