We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.
As always, fantastic article! Great job, Markus! I would recommend adding a note stating that it's currently also needed to import the compiler-storage-layout plugin into the hardhat/buidler config for smoddit to work.
And if you liked Smock v1, go check out the v2!!
Some nice features we added:
- Keep your tests simple with a sweet set of chai matchers.
- Fully compatible with TypeScript and TypeChain.
- Manipulate the behavior of functions on the fly with fakes.
- Modify functions and internal variables of a real contract with mocks.
- Make assertions about calls, call arguments, and call counts.
- We've got extensive documentation and a complete test suite.