Skip to content

Conversation

thodges-gh
Copy link
Contributor

  • Separates Hedera integration tests from Sepolia/Fuji integration tests
  • Fixes unit tests and adds them to CI
  • Updates linting and adds it as a step to CI
  • No more blocks of skipped tests

Copy link

👋 thodges-gh, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

zeuslawyer
zeuslawyer previously approved these changes Sep 25, 2025
Copy link
Contributor

@zeuslawyer zeuslawyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - minor comments

"t:int:ethers": "jest --coverage -u --testMatch=\"**/integration-testnet-ethers.test.ts\" --detectOpenHandles",
"t:unit": "jest --coverage -u --testMatch=\"**/unit.test.ts\" ",
"t:int": "jest --coverage -u --testMatch=\"**/integration-testnet**.test.ts\" --runInBand --detectOpenHandles --forceExit",
"t:int:viem": "jest --coverage -u --testMatch=\"**/integration-testnet.test.ts\" --runInBand --detectOpenHandles --forceExit",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--forceExit is generally not recommended. If its the best way for now then perhaps update the comment I left in integration test file, line 22 or so that is marked with a TODO? just to explain the context?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the comment to explain. I gave it a quick shot keep the tests from hanging without forceExit and wasn't successful. So probably best for that to be a chore for later.

const HEDERA_TESTNET_RPC_URL = process.env.HEDERA_TESTNET_RPC_URL || 'https://testnet.hashio.io/api'
const SEPOLIA_CHAIN_SELECTOR = '16015286601757825753'

describe('Integration: Hedera -> Sepolia', () => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

'Integration: Hedera -> Sepolia (viem)? Make it explicitly viem only? and do we not want to test for ethers? Perhaps we can test both by using different clients in different it() blocks? Ugly but serves the same purpose as fulled duped tests without the duping?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll mark it as viem for now and I want to revisit the tests between the providers in another PR.

Copy link
Contributor

@zeuslawyer zeuslawyer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@thodges-gh thodges-gh merged commit 2b52598 into main Sep 25, 2025
10 checks passed
@thodges-gh thodges-gh deleted the chore/separate-tests branch September 25, 2025 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants