Skip to content

test: fix e2e deploy tests — load hardhat-ethers, use funded TRE key - #34

Merged
luiz-lvj merged 1 commit into
mainfrom
test/fix-e2e-deploy-tests
Jul 21, 2026
Merged

test: fix e2e deploy tests — load hardhat-ethers, use funded TRE key#34
luiz-lvj merged 1 commit into
mainfrom
test/fix-e2e-deploy-tests

Conversation

@luiz-lvj

Copy link
Copy Markdown
Collaborator

Two pre-existing test-harness gaps kept the e2e deploy tests from running outside CI (the suite self-skips when no TRE is reachable, so CI never caught them):

  • hre.ethers was undefined@nomicfoundation/hardhat-ethers and hardhat-chai-matchers are peer deps the plugin decorates but weren't installed or loaded. Added them to devDependencies and required them before the plugin in the fixture config.
  • Unfunded deployer — the fixture used Hardhat account 0, which the tronbox/tre image doesn't fund. Switched the default to the TRE-funded dev key.

No source or behavior changes. Local npm test against a running TRE now passes end to end.

@luiz-lvj
luiz-lvj requested a review from nahimterrazas July 20, 2026 20:37

@nahimterrazas nahimterrazas left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@luiz-lvj
luiz-lvj merged commit f368464 into main Jul 21, 2026
5 checks passed
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