/windranger-interview-solidity

Candidate setup for the WindRanger pair-programming interview

Primary LanguageTypeScriptApache License 2.0Apache-2.0

Windranger interview: Solidity setup

Candidate setup for the WindRanger pair-programming interview.

Environment

Ensure you have latest NodeJs LTS installed and setup to work in the terminal window.

Project Installation, building and running

Git clone, then from the project root execute

Install Node Dependencies

To retrieve the project dependencies and before any further tasks will run correctly

npm ci

Build and Test

npm run build
npm test

If you make changes that don't get picked up then add a clean into the process

npm run clean
npm run build
npm test

Hardhat

Running directly against hardhat

All tests

Target to run all the mocha tests found in the /test directory, transpiled as necessary.

npx hardhat test

Single test

Run a single test (or a regex of tests), then pass in as an argument.

 npx hardhat test .\test\sample.test.ts

Scripts

The TypeScript transpiler will automatically as needed, execute through HardHat for the instantiated environment

npx hardhat run .\scripts\sample-script.ts