Closed lumtis closed 3 months ago
The recent updates enhance code coverage reporting and streamline testing in the Hardhat project. By incorporating the solidity-coverage
package into the configuration and build
scripts, the project can now generate detailed coverage reports. Additionally, type handling for mainnet
and testnet
data is improved. These changes bolster testing capabilities without altering the public interface.
File | Change Summary |
---|---|
.gitignore |
Added entries for coverage folder and coverage.json . |
hardhat.config.ts |
Imported the solidity-coverage package to enable code coverage functionality. |
package.json |
Updated build script to include npx hardhat coverage ; modified test script to directly use npx hardhat test . |
scripts/generate_addresses_types.ts |
Ensured mainnet and testnet data are properly typed as arrays before merging. |
Amidst the lines of code, so bright,
A rabbit hops with pure delight,
Coverage now, it leaps and bounds,
With every test, true code resounds.
No data lost, in types we trust,
Our blockchain dreams escape the dust.
🐇✨🚀
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
All in the PR title
Summary by CodeRabbit
New Features
Chores
.gitignore
to exclude coverage-related files.build
andtest
scripts inpackage.json
for improved testing and coverage reporting.