interface

test.default.EventData.TestDiagnostic

interface TestDiagnostic

  • column?: number

    The column number where the test is defined, or undefined if the test was run through the REPL.

  • entryFile?: string

    The path of the test file that was executed as the entry point of the child process that emitted this event. Only present when tests run with process isolation. May differ from file when the test is defined in a module imported by the entry file.

  • file?: string

    The path of the test file, undefined if test was run through the REPL.

  • level: 'error' | 'info' | 'warn'

    The severity level of the diagnostic message. Possible values are:

    • 'info': Informational messages.
    • 'warn': Warnings.
    • 'error': Errors.
  • line?: number

    The line number where the test is defined, or undefined if the test was run through the REPL.

  • message: string

    The diagnostic message.

  • nesting: number

    The nesting level of the test.