Skip to content

addEqualityTesters

addEqualityTesters(params): void

Defined in: src/set-up.ts:168

Adds custom equality testers for Algorand types to vitest’s expect function. This allows vitest to properly compare Algorand types such as uint64, biguint, and bytes against JS native types such as number, bigint and Uint8Array, in tests.

The parameters object

ExpectObj

vitest’s expect object to extend with custom equality testers

void

import { beforeAll, expect } from 'vitest'
import { addEqualityTesters } from '@algorandfoundation/algorand-typescript-testing';

beforeAll(() => {
  addEqualityTesters({ expect });
});