fix: consolidate duplicate indexer integration tests#604
Open
wheval wants to merge 1 commit into
Open
Conversation
Move worker tests to tests/integration/indexer-worker.test.ts, remove overlapping lifecycle blocks from streams.test.ts, and drop the src/__tests__ test root. Closes LabsCrypt#548
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Consolidates duplicate indexer integration test suites into a single
tests/layout: worker lifecycle tests live inindexer-worker.test.ts, HTTP route tests stay instreams.test.ts, and DB-backed flows remain instream-lifecycle.test.ts.Purpose / Motivation
Three overlapping files exercised the same indexer → stream flows (
src/__tests__/integration/streams.test.ts,tests/integration/streams.test.ts, andtests/integration/stream-lifecycle.test.ts). The splitsrc/__tests__/location also duplicated Vitest discovery paths and slowed CI.Changes Made
fee_config_updatedandadmin_transferred) fromsrc/__tests__/integration/streams.test.tstotests/integration/indexer-worker.test.ts.tests/integration/streams.test.ts; that file now covers claimable fallback, SSE contracts, and events pagination only.backend/src/__tests__/integration/streams.test.ts.vitest.config.tsincludetotests/**only.How to Test
backend/, run the full suite:src/__tests__/remain.Breaking Changes
None.
Related Issues
Closes #548
Checklist