Learn
Development Setup
Local Testing
- In your Anchor.toml, make sure you have a test keypair defined:
[provider]
cluster = "localnet"
wallet = "~/.config/solana/id.json" # Your local keypair. Find address using `solana address`
- Install dependencies:
yarn install
- Run the tests:
env TESTING=true anchor test