You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hardhat uses Mocha as its testing framework and Chai forassertions, both includedin the Hardhat Toolbox.
59
59
60
-
To run your tests:
61
-
62
-
1. Ensure your `hardhat.config.js` file is properly configured with the Solidity compiler settings as shown in the [Compile Your Contract](#compile-your-contract) section
63
-
64
-
2. Execute the following command to run your tests:
60
+
To run your tests execute the following command to run your tests:
65
61
66
62
```bash
67
63
npx hardhat test
68
64
```
69
65
70
-
This will run all test files in the `test` directory. Hardhat automatically manages the test network lifecycle, so you don't need to run `npx hardhat node` separately for testing.
66
+
This will run all test files in the `test` directory. Hardhat automatically manages the test network lifecycle, so you don't need to run `npx hardhat node` separately for testing.
67
+
68
+
If you are testing `Lock.sol` contract, output should look like this:
Now that you've successfully compiled and tested your smart contracts, you're ready to deploy them to a live network. The deployment guide will walk you through deploying your contract to Local Development Network, interacting with it using Hardhat scripts, and verifying your deployment.
75
+
76
+
<div class="grid cards" markdown>
77
+
78
+
- <span class="badge guide">Guide</span> __Deploy a Contract__
79
+
80
+
---
81
+
82
+
Learn how to deploy your compiled smart contract to Polkadot Hub TestNet and interact with it using deployment scripts.
83
+
84
+
[:octicons-arrow-right-24: Get Started](/smart-contracts/dev-environments/hardhat/deploy-a-contract)
0 commit comments