The Algorand TypeScript Testing framework provides powerful tools for testing Algorand TypeScript smart contracts within a Node.js environment. This guide covers the main features and concepts of the framework, helping you write effective tests for your Algorand applications.
For all code examples in the _Testing Guide_ section, assume `context` is an instance of `TestExecutionContext` obtained by initialising the `TestExecutionContext` class. All subsequent code is executed within this context.
The Algorand TypeScript Testing framework streamlines unit testing of your Algorand TypeScript smart contracts by offering functionality to:
By using this framework, you can ensure your Algorand TypeScript smart contracts function correctly before deploying them to a live network.
Key features of the framework include:
TestExecutionContext: The main entry point for testing, providing access to various testing utilities and simulated blockchain stateuint64 and bytesThe framework is designed to work seamlessly with Algorand TypeScript smart contracts, allowing developers to write comprehensive unit tests that closely mimic the behaviour of contracts on the Algorand blockchain.