How to mock web3 provider for unit test? #1758
Replies: 3 comments 7 replies
-
I need more information to go on for this issue. Also, moving to discussions. |
Beta Was this translation helpful? Give feedback.
-
My apologies, we are using ethers.js for specific crypto exchange project, and we are plan to write unit tests over all the project. Unfortunately, I don't see preferred mocking packages for ether.js. Do you have any suggestion for this purpose? |
Beta Was this translation helpful? Give feedback.
-
@james-lin71 you may be interested in mainnet forks provided by hardhat's node. You may also find the Hardhat + Waffle combination great, as it provides you to create a MockProvider for use in unit tests. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Beta Was this translation helpful? Give feedback.
All reactions