This directory contains the testing infrastructure for the aa-sdk project using Vitest.
To run the tests in this project, you need to have Anvil installed. Anvil is part of the Foundry toolchain and is used as a local Ethereum node for testing.
The easiest way to install Anvil is through Foundryup, the official installer for the Foundry toolchain.
-
Install Foundryup:
curl -L https://foundry.paradigm.xyz | bash -
Install the latest stable version:
foundryup
This will install forge, cast, anvil, and chisel binaries.
Check that Anvil is installed correctly:
anvil --versionFor complete installation instructions and troubleshooting, visit the official Foundry documentation: https://getfoundry.sh/introduction/installation/
Once Anvil is installed, you can run the tests using:
yarn testThe test infrastructure will automatically start and manage Anvil instances as needed.