COMPILATION npx hardhat compile
TESTING npx hardhat test
note: the test command is like that because my hardhat config has the forked mainnet as default network if that is not your case you specify the network as follows
npx hardhat test --network