Algorand TypeScript Testing
    Preparing search index...

    Function addEqualityTesters

    • 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

      • params: { expect: ExpectObj }

        The parameters object

        • expect: ExpectObj

          vitest's expect object to extend with custom equality testers

      Returns void

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

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