@haraldki/unittesterjs - v2.0.0
    Preparing search index...

    Class DefaultTestLogger

    Implements

    Index

    Constructors

    Methods

    • Parameters

      • fullName: string
      • e: unknown

      Returns void

    • Parameters

      • fullName: string
      • e: Error

      Returns void

    • Parameters

      • fullName: string
      • Optionalmsg: string

      Returns void

    • Parameters

      • tag: string
      • fullName: string
      • e: Error

      Returns void

    • See the respective parameter of the TestLoggerOptions.

      Parameters

      • level: "FULL" | "CLIPSTACK" | "MESSAGE"

      Returns void

    • Whether to log ignored test methods;

      Parameters

      • trace: boolean

      Returns void

    • Whether to log successful test methods;

      Parameters

      • trace: boolean

      Returns void

    • Parameters

      • name: string

      Returns void

    • Parameters

      • fullName: string

      Returns void

    • Parameters

      • succeeded: string[]
      • ignored: string[]
      • failed: string[]
      • crashed: string[]
      • instancesSkipped: string[]

      Returns void

    • Some environments (node) have the error type and the message as the first line of the stack string (why?), other's don't (firefox). This tries to normalize it by removing the first line if it contains the error's constructor name.

      Parameters

      • e: Error

      Returns string