test(chain-watcher): Add integration tests for Base Sepolia testnet#57
Merged
test(chain-watcher): Add integration tests for Base Sepolia testnet#57
Conversation
- Add integration tests verifying Chain Watcher against Base Sepolia - Test RPC connection and USDC contract verification - Test ConnectionManager polling and transfer detection - Test polling fallback when WebSocket unavailable - Add BASE_SEPOLIA constants (chain ID, USDC contract, RPC endpoints) - Separate unit tests from integration tests via jest configs - Add test:integration npm script Closes #17 Made-with: Cursor
Fixes CI failure by adding integration config to ESLint ignorePatterns instead of modifying tsconfig includes which conflicts with rootDir. Made-with: Cursor
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
Add integration tests using Base Sepolia testnet to verify the Chain Watcher can detect real USDC test transfers and handle connection scenarios.
Changes
BASE_SEPOLIAconstants (chain ID, USDC contract address, RPC endpoints)test:integrationnpm script for running integration testsHow to Test
npm cinpm run typechecknpm test --workspace=@stripeonchain/chain-watcher(unit tests)npm run test:integration --workspace=@stripeonchain/chain-watcher(integration tests)Tests
npm test- 39 unit tests)npm run test:integration- 8 tests)npm run lint)npm run typecheckfor chain-watcher)npm run format:check)Checklist
npm run migrate:up/npm run migrate:down)docker compose up)Related Issues
Closes #17
Made with Cursor