test-smart-contracts

Automate Algorand smart contract testing with Vitest or Jest.

2|Updated Jul 29, 2025
One-click install
npx skills add https://github.com/algorandfoundation/xgov-committees --skill test-smart-contracts-algorandfoundation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: test-smart-contracts
Source: https://github.com/algorandfoundation/xgov-committees/tree/main/.claude/skills/test-smart-contracts
Command: npx skills add https://github.com/algorandfoundation/xgov-committees --skill test-smart-contracts-algorandfoundation

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Testing patterns for Algorand smart contracts using generated clients and algorandFixture to streamline integration and unit testing workflows.

Core Features & Use Cases

  • Integration patterns for end-to-end tests using LocalNet and algorandFixture.
  • Guidance for configuring Vitest and Jest test suites, including multi-account scenarios.
  • Templates for deploying contracts and validating behavior with generated clients.

Quick Start

Run your first end-to-end test against a LocalNet using a generated client and algorandFixture.

Frequently Asked Questions about test-smart-contracts

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I test Algorand smart contracts using Vitest?

You can test Algorand smart contracts using Vitest by applying the provided testing patterns, configuring your test suite, and using algorandFixture to streamline integration and unit testing workflows.

What is the best way to run E2E integration tests for Algorand smart contracts?

The best way to run E2E integration tests for Algorand smart contracts is using LocalNet and algorandFixture to automate deployment and validate behavior with generated clients.

Can I use Jest instead of Vitest for Algorand smart contract testing?

Yes, you can use Jest instead of Vitest. The testing patterns support configuring both JavaScript testing frameworks for multi-account scenarios and smart contract test organization.

How do generated clients work with algorandFixture in smart contract tests?

Generated clients work with algorandFixture by providing templates to deploy smart contracts and validate their behavior during end-to-end integration tests against a LocalNet environment.

Do I need LocalNet to run unit tests for Algorand smart contracts?

LocalNet is required for E2E integration tests, but unit-style testing workflows can also be structured using algorandFixture to streamline the testing process for Algorand smart contracts.