typemoq icon indicating copy to clipboard operation
typemoq copied to clipboard

Add BigInt serialization support

Open Frank-Krick opened this issue 6 years ago • 0 comments

typemoq can currently not serialize BigInt and fails

Rejected promise returned by test. Reason:

  TypeError {
    message: 'Do not know how to serialize a BigInt',
  }

  Object.stringifyRecursion [as stringify] (node_modules/circular-json/build/circular-json.node.js:178:15)
  CircularJSON.stringify (node_modules/typemoq/dist/Common/Common/Common/Utils.ts:41:23)
  Function.Utils.argsName (node_modules/typemoq/dist/Common/Common/Common/Utils.ts:28:31)
  MatchObjectWith.toString (node_modules/typemoq/dist/Match/Match/Match/MatchObjectWith.ts:25:31)
  node_modules/typemoq/dist/Common/Common/Common/Utils.ts:31:25
  Function.Utils.argsName (node_modules/typemoq/dist/Common/Common/Common/Utils.ts:28:31)
  MethodInvocation.toString (node_modules/typemoq/dist/Proxy/Proxy/Proxy/Invocation.ts:64:54)

Frank-Krick avatar Jan 17 '19 22:01 Frank-Krick