-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve experience of mixing hardhat_reset and fixtures #4151
Comments
I'm also seeing this issue with fixtures + |
hi @fvictorio ,am working on this issue..
There was an error reverting the snapshot of the fixture. This might be caused by using hardhat_reset and loadFixture calls in a testcase.
any thoughts about this idea? |
I think Im facing this issue! What is strange in my case is that i works locally but not in CI. When the test runs in Github actions I get: What could be the reason Im only seeing the error in CI? Is there a workaround? I do not have nested beforeEach, but I do a network reset and then a beforeEach that deploys a lot of contracts, and performs impersonation, etc.
|
…ssue_#4151 adding a function and editing the error message for the issue #4151
If you use fixtures and
hardhat_reset
, you will likely run into an error like:That message is misleading, and also a lie: we support nested loadFixture calls now.
Two things to do here:
The text was updated successfully, but these errors were encountered: