Prerequisites
Before you begin, ensure you have:- Node.js ≥ 14
- npm, yarn, or bun (this guide uses yarn)
- Foundry installed for Anvil local node
Need to install Foundry? Run:
Quick Setup
What’s Next?
Installation Guide
Detailed installation instructions and troubleshooting
Configuration
Learn about advanced configuration options
Writing Tests
Deep dive into writing comprehensive tests
Smart Contracts
Test smart contract interactions
Common Issues
Wallet extension not found
Wallet extension not found
Make sure you’ve run the prepare commands:
Tests timing out
Tests timing out
Increase the test timeout in your config:
Port already in use
Port already in use
The local node might be using a port that’s already taken. OnchainTestKit automatically handles port allocation for parallel tests.