hardhat-tester

Automates Solidity contract testing with Hardhat 3 using ignition modules and loadFixture.

1|Updated Jan 16, 2026
One-click install
npx skills add https://github.com/dappvibe/pexfi --skill hardhat-tester
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: hardhat-tester
Source: https://github.com/dappvibe/pexfi/tree/main/.agent/skills/hardhat-tester
Command: npx skills add https://github.com/dappvibe/pexfi --skill hardhat-tester

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill helps developers test Solidity contracts using Hardhat 3 by providing guidance to run unit tests, manage blockchain state with ignition modules, and use fixtures for deterministic deployments.

Core Features & Use Cases

  • Guidance for running tests with Hardhat 3, TypeScript, viem, and node:test engine.
  • Instructions on using ignition modules to replicate blockchain state and fixtures for deterministic test setups.
  • Best practices for snapshots and loadFixture patterns to speed up and stabilize test suites.

Quick Start

Run your contract tests locally with the Hardhat test runner to verify behavior against a simulated in-memory blockchain.

Frequently Asked Questions about hardhat-tester

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I write unit tests for Solidity contracts using Hardhat 3?

You can run Solidity contract tests using Hardhat 3 by utilizing the Hardhat test runner with TypeScript, viem, and the node:test engine to validate behavior against a simulated in-memory blockchain.

What is the best way to manage blockchain state when testing Solidity contracts?

The best way to manage blockchain state in Solidity contract testing is using ignition modules to replicate blockchain state and loadFixture patterns to ensure deterministic deployments and reproducible test setups.

How do loadFixture and snapshot utilities speed up Hardhat tests?

loadFixture and snapshot utilities speed up Hardhat tests by reusing deterministic blockchain states, eliminating redundant contract deployments, and stabilizing test suites with reproducible environments for each test run.

Can I use viem and TypeScript with Hardhat 3 for local contract testing?

Yes, you can use viem and TypeScript with Hardhat 3 for local contract testing, as the testing framework supports these technologies natively alongside the node:test engine to execute unit tests.

How do ignition modules replicate blockchain state for deterministic test setups?

Ignition modules replicate blockchain state by providing a structured deployment mechanism that ensures contracts are deployed identically each time, creating deterministic test setups and reproducible blockchain states.