interface

test.default.EventData.TestLog

interface TestLog

  • column?: number

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

  • data: unknown

    The structured payload passed to context.log, or undefined if none was provided. The test runner does not interpret this value.

  • 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.

  • line?: number

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

  • message: string

    The log message.

  • name: string

    The test name.

  • nesting: number

    The nesting level of the test.

  • parentId: undefined | number

    The testId of the enclosing test, or undefined for top-level tests.

  • testId: number

    A numeric identifier for the test instance that emitted the log message.