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
vitest's expect object to extend with custom equality testers
import { beforeAll, expect } from 'vitest'import { addEqualityTesters } from '@algorandfoundation/algorand-typescript-testing';beforeAll(() => { addEqualityTesters({ expect });}); Copy
import { beforeAll, expect } from 'vitest'import { addEqualityTesters } from '@algorandfoundation/algorand-typescript-testing';beforeAll(() => { addEqualityTesters({ expect });});
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.