Skip to content
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

Wipe entire deployment #811

Open
samokander opened this issue Sep 23, 2024 · 1 comment
Open

Wipe entire deployment #811

samokander opened this issue Sep 23, 2024 · 1 comment

Comments

@samokander
Copy link

Describe the feature

While using Hardhat Ignition modules with hardhat fixtures in tests, I'm facing a problem. When using hardhat network and repeatedly executing hardhat test test/myTest.ts I get many errors in console, linked to the fact that I'm running the test for the second time - the state of the contracts is altered by the first test run.

Maybe consider adding something like hardhat ignition wipe deploymentId * so that at least it is possible to delete entire deployment via console.
Or perhaps —reset flag on hardhat test would be handy.

Search terms

hardhat ignition test hardhat network

@kanej
Copy link
Member

kanej commented Oct 21, 2024

Are the tests you are running against an external hardhat node during tests, is that why you are seeing deployments created in the deployment folder?

We recently added a capacity to explicitly write to the deployment folder: #816
@zoeyTM does the opposite also work, can you set it to never write to the deployment folder even in a test against a local Hardhat node?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants