Skip to content

[Testing] Consolidate duplicate/overlapping indexer integration test files #548

@ogazboiz

Description

@ogazboiz

Telegram: https://t.me/+DOylgFv1jyJlNzM0

Why this matters

There are overlapping integration suites covering the same indexer → stream flows:

  • backend/src/__tests__/integration/streams.test.ts (242 lines)
  • backend/tests/integration/streams.test.ts (425 lines)
  • backend/tests/integration/stream-lifecycle.test.ts (701 lines)

The first two share near-identical describe('Indexer → stream_created …') blocks. The src/__tests__/ location is also inconsistent with the rest of the suite (everything else lives under tests/), yet vitest.config.ts includes both tests/** and src/__tests__/**. This duplicates run time and maintenance.

Acceptance criteria

  • Identify the canonical suite and remove/merge the duplicate(s)
  • Move any unique cases from src/__tests__/integration/streams.test.ts into tests/integration/ before deleting
  • Optionally narrow vitest.config.ts include to a single test root
  • npx vitest run is green with no lost coverage

Files to touch

  • backend/src/__tests__/integration/streams.test.ts
  • backend/tests/integration/streams.test.ts
  • backend/tests/integration/stream-lifecycle.test.ts
  • backend/vitest.config.ts

Out of scope

Metadata

Metadata

Assignees

Labels

Stellar WaveIssues in the Stellar wave programbackendBackend related taskstestingTesting related tasks

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions