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
Technical Context
- File:
tests/processors.test.ts, lines 23, 253
- A valid Stellar G-address:
GBCXOJYVYG3VYLDY5WSE2VJ5EH3DZDGMU7S7W6V3V5QZK3P3V5QZK3P3V5 (56 chars)
What
Valid Stellar G-addresses are exactly 56 characters.
MOCK_ADDRESSandrecipientin the test file are both 63 characters. Every processor validatesaddress.length !== 56and 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
MOCK_ADDRESSto be a valid 56-character Stellar addressAcceptance Criteria
Technical Context
tests/processors.test.ts, lines 23, 253GBCXOJYVYG3VYLDY5WSE2VJ5EH3DZDGMU7S7W6V3V5QZK3P3V5QZK3P3V5(56 chars)