Project is based on hardhat framework. Under hood you will have typescript for tests, customized solidity and typescript linters, vscode project settings.
You can try running some hardhat standart of the following tasks:
npx hardhat accounts
npx hardhat compile
npx hardhat clean
npx hardhat test
npx hardhat node
node scripts/sample-script.js
npx hardhat help
Or you can running some npm tasks:
npm run compile
npm run clean
npm run test
npm run test-coverage
npm run lint
npm run lint:fix
- Set up editor config for vscode.
- install extension EditorConfig for Visual Studio Code
- npm install -g editorconfig
npm ci
npm run compile
If you want, you can use Mocha test explorer extension for Visual Studio Code.
- You must have compiled contracts. If you doesn't have compiled, you will need to run npm command
npm run compile
. - Next, run
npm run test
.
If you want, you can run test coverage task.
For checking of linting, run npm task npm run lint
.
For auto fixing, run npm task npm run lint:fix
.
You can linting only ts file or solidity. Run one of them task:
npm run lint:ts
npm run lint:ts:fix
npm run lint:sol
npm run lint:sol:fix