Unit tests are based on Hardhat's version of the Chai assertion library. Each contract has its own testing script.
Run all tests:
npx hardhat test
or from the contracts
directory run
yarn test
Only run tests in a given file:
npx hardhat test test/consent.js