Skip to main content

Variable: asyncToStringMethod

const asyncToStringMethod: unique symbol

Defined in: packages/fast-check/src/utils/stringify.ts:67

Use this symbol to define a custom serializer for your instances. Serializer must be a function returning a promise of string (see WithAsyncToStringMethod).

Please note that:

  1. It will only be useful for asynchronous properties.
  2. It has to return barely instantly.

Remarks

Since 2.17.0