Test State Scope #1241
Unanswered
evilrobot-01
asked this question in
Q&A
Replies: 1 comment
-
Yes, each test has its own isolated state. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
New to Solidity, but loving Foundry so far!
I just wanted to ask about the scope of state across tests/runs. Does each test have its own isolated state within each test run? I am not sure whether it is better to construct the instance of the contract under test as a state variable on the test contract or within the test contract's setUp() function, or whether it even matters.
Beta Was this translation helpful? Give feedback.
All reactions