Skip to content

Alsatian do not know how to serialize a BigInt #792

@yukulele

Description

@yukulele

I get an error if I work with BigInt.

import { Expect, Test, TestCase, TestFixture } from 'alsatian'

@TestFixture("my tests")
export class Tests {
  @TestCase('2', 2)
  @TestCase('3', BigInt('3'))
  @Test('test1')
  public test1(a1: any, a2: any) {
    Expect(a1.toString()).toBe(a2.toString())
  }
}

I get this error:

> alsatian ./tests/test.ts

0% complete
Do not know how to serialize a BigInt

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions