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¶
Accessors¶
context¶
• get
context(): AlgorandTestAutomationContext
Retrieve the current context. Useful with destructuring.
Returns¶
Example
test('My test', () => {
const {algod, indexer, testAccount, ...} = algorand.context
})