Skip to content

This is the old Algorand Developer Portal. Please head over to dev.algorand.co to explore our newly rebuilt documentation site. Please excuse us as we continue to transition content to the new portal

Create Publication

We are looking for publications that demonstrate building dApps or smart contracts!
See the full list of Gitcoin bounties that are eligible for rewards.

types testing.AlgorandFixture

@algorandfoundation/algokit-utils / types/testing / AlgorandFixture

Interface: AlgorandFixture

types/testing.AlgorandFixture

An Algorand automated testing fixture

Table of contents

Properties

Accessors

Properties

beforeEach

beforeEach: () => Promise\<void>

Testing framework agnostic handler method to run before each test to prepare the context for that test.

Type declaration

▸ (): Promise\<void>

Testing framework agnostic handler method to run before each test to prepare the context for that test.

Returns

Promise\<void>

Defined in

src/types/testing.ts:74

Accessors

context

get context(): AlgorandTestAutomationContext

Retrieve the current context. Useful with destructuring.

Returns

AlgorandTestAutomationContext

Example

test('My test', () => {
    const {algod, indexer, testAccount, ...} = algorand.context
})
Defined in

src/types/testing.ts:69