Before running any command, make sure to install dependencies:
yarn install
Compile the smart contracts with Hardhat:
yarn compile
Run the tests:
yarn test
To get a report of gas costs, set env REPORT_GAS
to true
To take a snapshot of the contract's gas costs
yarn test:gas