test-smart-contracts
Installation
SKILL.md
Testing Smart Contracts
Write integration tests for Algorand smart contracts using the algorandFixture and generated typed clients.
Default: Integration Tests (E2E)
Always write integration tests unless the user explicitly requests unit tests. Integration tests run against LocalNet and test real contract behavior.
Test Framework: Both Vitest (default) and Jest are supported. The examples below use Vitest syntax, but Jest equivalents work identically.
File naming
- Integration tests:
contract.algo.e2e.spec.ts - Unit tests (only if requested):
contract.algo.spec.ts
Canonical Example
Study and adapt from: devportal-code-examples/contracts/HelloWorld