Skip to content

Stub external APIs in service tests; make services-tests CI job blocking #5

Description

@KryptosAI

Context

Service test suites (price-feed, contract-audit, mev-scanner) hit real external APIs (CoinGecko, Etherscan, DexScreener). They pass today but are network-flaky, so the services-tests CI job is continue-on-error: true.

Proposed solution

  • Stub globalThis.fetch for external hostnames inside tests (payment/verification layers already run against local anvil)
  • Pure parsing logic is already extracted (analyzer.ts, matching.ts) — extend fixtures for representative API payloads
  • Flip continue-on-error to false once green for a week

Acceptance criteria

  • No test opens a socket to a third-party API (verify via injected fetch spy)
  • services-tests is a required job

Effort: ~half a day.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions