Skip to content

Do I need to explicity import hardhat-network-helpers #3789

Discussion options

You must be logged in to vote

Hi @dtnwen! This is a good question. Yes, you have to import it in each test file, and importing it in the config doesn't have any effect. The reason is that this package, unlike most other packages we have, is not a Hardhat plugin but a standalone thing.

We've considered turning it into a plugin, so that you can import in the config and have something added to the HRE (maybe hre.helpers). But for now you have to use it as a utils package, similar to how chai is imported in each test file.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dtnwen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants