Learn

Development Setup

Local Testing

  1. 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`
  1. Install dependencies:
yarn install
  1. Run the tests:
env TESTING=true anchor test
Previous