Skip to content

algoKitLogCaptureFixture

const algoKitLogCaptureFixture: () => AlgoKitLogCaptureFixture

Defined in: src/testing/fixtures/algokit-log-capture-fixture.ts:22

Creates a test fixture for capturing AlgoKit logs.

AlgoKitLogCaptureFixture

The fixture

const logs = algoKitLogCaptureFixture()
beforeEach(logs.beforeEach)
afterEach(logs.afterEach)
test('My test', () => {
const capturedLogs = logs.testLogger.capturedLogs
})