Testing

Use when writing or modifying Vitest tests, `.vitest` setup, Anvil/Foundry or Rundler fixtures, per-package test config, or CI affected-test behavior.

alchemyplatform 679a320 4 files · 3.5 KB Updated

File contents

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.ts loads .vitest and packages/* through test.projects.
  • .vitest/vitest.shared.ts sets ~test, global setup, timeouts, and thread pool.
  • scripts/run-affected-tests.sh uses Turborepo dry-run output to select Vitest projects.

alchemyplatform/aa-sdk/tree/main/.agents/skills/testing commit 679a32022a

Frequently asked questions

npx skillmds@latest add alchemyplatform/testing