Install any skill in seconds. Free to start, no credit card required.
Get Started Free →microck/web3-testing
Test smart contracts comprehensively using Hardhat and Foundry with unit tests, integration tests, and mainnet forking.
Passed 21 of 22 test cases with the skill, and 20 of 22 without it.
1 fixed20 passed either way1 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
A test case the skill fixed. Same model, same prompt, with and without the skill.
Write `beforeEach` and `afterEach` hooks in a Hardhat test file that capture an EVM state snapshot before each test and revert to that snapshot after each test completes.
| Checked | Without skill | With skill |
|---|---|---|
| Calls network.provider.send with evm_snapshot in beforeEach | Missed | Passed |
| Calls network.provider.send with evm_revert passing the snapshot ID in afterEach | Missed | Passed |
The instructions your model reads when the skill loads.
Master comprehensive testing strategies for smart contracts using Hardhat, Foundry, and advanced testing patterns.
// hardhat.config.js
require("@nomicfoundation/hardhat-toolbox");
require("@nomiclabs/hardhat-etherscan");
require("hardhat-gas-reporter");
require("solidity-coverage");
module.exports = {
solidity: {
version: "0.8.19",
settings: {
optimizer: {
enabled: true,
runs: 200
}
}
},
networks: {
hardhat: {
forking: {
url: process.env.MAINNET_RPC_URL,
blockNumber: 15000000
}
},
test cases passed, vs 20 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.