name: testing
description: |
Use when writing or modifying Vitest tests, .vitest setup, Anvil/Foundry or
Rundler fixtures, per-package test config, or CI affected-test behavior.
last_verified: 2026-05-06
Testing
aa-sdk uses Vitest workspace projects with shared .vitest setup. CI runs
affected package tests and a separate typecheck-only Vitest pass.
Rules
| Rule | When to read |
|---|---|
| Vitest projects | Before changing tests or per-package Vitest config. |
| Anvil and Rundler | Before changing tests that depend on local chain fixtures. |
| Affected tests | Before choosing local verification for package changes. |
Evidence
vitest.config.tsloads.vitestandpackages/*throughtest.projects..vitest/vitest.shared.tssets~test, global setup, timeouts, and thread pool.scripts/run-affected-tests.shuses Turborepo dry-run output to select Vitest projects.