Skip to content

MOCK_ADDRESS in tests is 63 chars (valid = 56) — all happy-path tests fail #7

Description

@DeFiVC

What

Valid Stellar G-addresses are exactly 56 characters. MOCK_ADDRESS and recipient in the test file are both 63 characters. Every processor validates address.length !== 56 and rejects the address.

Why

All "happy path" tests ("should parse and upsert a valid RewardClaimed event", "should parse and upsert a valid CredentialMinted event", etc.) silently fail — the processors return early and the expect(...).toHaveBeenCalledWith(...) assertions fail. The test suite provides false confidence; none of the positive cases actually exercise the upsert path.

Scope

  • Fix MOCK_ADDRESS to be a valid 56-character Stellar address
  • Verify all tests pass

Acceptance Criteria

  • All happy-path tests actually exercise the upsert path
  • Test assertions pass

Technical Context

  • File: tests/processors.test.ts, lines 23, 253
  • A valid Stellar G-address: GBCXOJYVYG3VYLDY5WSE2VJ5EH3DZDGMU7S7W6V3V5QZK3P3V5QZK3P3V5 (56 chars)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtestsTest additions or improvements

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions