Skip to content

deep-quality-dev/solidity-test-with-smock

Repository files navigation

Solidity Unit test with Smock

Reference

https://smock.readthedocs.io/en/latest/getting-started.html

Installation

npm install --save-dev @defi-wonderland/smock

Required Config

// hardhat.config.ts

... // your plugin imports and whatnot go here

const config = {
  ... // your other hardhat settings go here
  solidity: {
    ... // your other Solidity settings go here
    settings: {
      outputSelection: {
        "*": {
          "*": ["storageLayout"]
        }
      }
    }
  }
}

export default config

About

Solidity Unit test with Smock

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published