We use the Hardhat development environment, to compile, test and deploy our contracts.
If you want to avoid using the convenience targets in the package.json
, then you can execute against Hardhat directly.
Target to run all the mocha tests found in the /test
directory, transpiled as necessary.
npx hardhat test
Run a single test (or a regex of tests), then pass in as an argument.
npx hardhat test .\test\sample.test.ts
The TypeScript transpiler will automatically as needed, execute through HardHat for the instantiated environment
npx hardhat run .\scripts\sample-script.ts
Logging is performed with Bunyan
To have the JSON logging output into a more human-readable form, pipe the stdout to the Bunyan CLI tool.
npx hardhat accounts | npx bunyan