Before running you need to install dependencies:
yarn install
Compile the contracts:
yarn hardhat compile
Before running tests, make sure you are using the project typescript version to prevent any type errors
Run all Mocha tests:
yarn hardhat test
Run specific Mocha test:
yarn hardhat test /test/<test-file-name>
Generate coverage report:
yarn hardhat coverage
Delete smart contracts artifact and generated typechain:
yarn hardhat clean