npx hardhat compile
This command compiles all the contracts in side the "contracts" folder
- Start a local node:
npx hardhat node
-
Open a new terminal
-
Run tests on the contract
npx hardhat test
Assuming that the test script already deploys the contract for you... If not use:
npx hardhat deploy