Skip to content

test: add coverage for contacts e2e, logger, sanitization, and turretsService - #704

Merged
Emmy123222 merged 1 commit into
Emmy123222:mainfrom
covenantalade:test/issues-532-535-536-537
Jul 30, 2026
Merged

test: add coverage for contacts e2e, logger, sanitization, and turretsService#704
Emmy123222 merged 1 commit into
Emmy123222:mainfrom
covenantalade:test/issues-532-535-536-537

Conversation

@covenantalade

Copy link
Copy Markdown

Closes #537
Closes #536
Closes #535
Closes #532.

  • frontend/e2e/contacts.spec.ts: add/edit/delete a contact, tag-filter narrowing, and invalid-address rejection on the contacts page.
  • backend/tests/logger.test.js: log-level filtering and structured output fields (level, msg, time) for the pino logger.
  • backend/tests/sanitization.test.js: sanitizePublicKey/sanitizeUsername neutralise injection payloads while valid keys, usernames, and unrelated body fields (memo, amount) pass through unchanged.
  • backend/tests/turretsService.test.js: deployTxFunction produces the expected job record, and forged/mismatched signing delegation surfaces as a thrown error (401/400) instead of being silently dropped.

Note: contacts.spec.ts is verified via static review and tsc --noEmit only, not a live Playwright run — the frontend currently fails to build on main due to an unrelated pre-existing bug (components/Navbar.tsx and two other files call a useTranslation() hook that lib/i18n.ts never exports). Left out of scope here; worth a separate fix.

Summary

Type of change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor / chore
  • Smart contract change

Related issue

Closes #

Changes

Testing

  • Tested locally on Testnet
  • Added/updated unit tests
  • Manually tested UI flow

Screenshots (if UI change)

Checklist

  • My code follows the project style
  • I've updated docs if needed
  • No console errors or warnings
  • I've rebased on latest main

…sService

Closes Emmy123222#537, Emmy123222#536, Emmy123222#535, Emmy123222#532.

- frontend/e2e/contacts.spec.ts: add/edit/delete a contact, tag-filter
  narrowing, and invalid-address rejection on the contacts page.
- backend/__tests__/logger.test.js: log-level filtering and structured
  output fields (level, msg, time) for the pino logger.
- backend/__tests__/sanitization.test.js: sanitizePublicKey/sanitizeUsername
  neutralise injection payloads while valid keys, usernames, and unrelated
  body fields (memo, amount) pass through unchanged.
- backend/__tests__/turretsService.test.js: deployTxFunction produces the
  expected job record, and forged/mismatched signing delegation surfaces
  as a thrown error (401/400) instead of being silently dropped.

Note: contacts.spec.ts is verified via static review and `tsc --noEmit`
only, not a live Playwright run — the frontend currently fails to build
on main due to an unrelated pre-existing bug (components/Navbar.tsx and
two other files call a useTranslation() hook that lib/i18n.ts never
exports). Left out of scope here; worth a separate fix.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@vercel

vercel Bot commented Jul 29, 2026

Copy link
Copy Markdown

@Nanle-code is attempting to deploy a commit to the Emmanuel's projects Team on Vercel.

A member of the Team first needs to authorize it.

@drips-wave

drips-wave Bot commented Jul 29, 2026

Copy link
Copy Markdown

@covenantalade 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

@Emmy123222
Emmy123222 merged commit e2eea9e into Emmy123222:main Jul 30, 2026
8 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

3 participants