From How To Set Up A Solidity Project And Create Your First Smart Contract and Using Hardhat (with Binance).
Plugins used for Hardhat:
- @nomiclabs/hardhat-waffle: This is a Hardhat plugin that enables waffle support.
- @nomiclabs/hardhat-ethers: This is a Hardhat plugin that enables ethers support.
- ethereum-waffle: Waffle is a Solidity testing library. It allows writing tests for contracts with JavaScript.
- chai: Chai is an assertion library and provides functions like expect.
- ethers: This is a popular Ethereum client library. It allows you to interface with blockchains that implement the Ethereum API.
- solidity-coverage: This library gives coverage reports on unit tests with the help of Istanbul.
To build and test:
$ npm run build
$ npm run test
To deploy locally:
$ npm run local-testnet
and
$ npm run deploy:local