Skip to content

test: cover new-pair submit states#176

Open
es3298 wants to merge 1 commit into
StableRoute-Org:mainfrom
es3298:test/pairs-new-page-validation-142
Open

test: cover new-pair submit states#176
es3298 wants to merge 1 commit into
StableRoute-Org:mainfrom
es3298:test/pairs-new-page-validation-142

Conversation

@es3298

@es3298 es3298 commented Jul 5, 2026

Copy link
Copy Markdown

Summary

  • update the new-pair page tests to mock apiPost directly through the app import path
  • add coverage for the in-flight Saving... submit state while the pair registration request is pending
  • document the covered new-pair form flows in the README testing notes
  • add a Jest @/ module mapper so tests can mock app aliases consistently

Closes #142

Validation

  • npm test -- src/app/pairs/new/page.test.tsx --runInBand - 9 tests passed
  • npm run lint - passed
  • git diff --check - passed
  • npm test -- --runInBand - blocked by existing upstream failures in src/app/quote/Client.tsx (assetsDiffer is referenced but not defined) and src/lib/__tests__/theme.test.ts
  • npm run build - blocked by existing upstream src/app/quote/Client.tsx assetsDiffer type error

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.

Add tests for the new-pair page same-asset rejection and submit-error rendering

2 participants