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.
Parameters
Section titled “Parameters”params
Section titled “params”The parameters object
expect
Section titled “expect”ExpectObj
vitest’s expect object to extend with custom equality testers
Returns
Section titled “Returns”void
Example
Section titled “Example”import { beforeAll, expect } from 'vitest'
import { addEqualityTesters } from '@algorandfoundation/algorand-typescript-testing';
beforeAll(() => {
addEqualityTesters({ expect });
});