interface

test.default.EventData.TestEnqueue

interface TestEnqueue

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

  • line?: number

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

  • 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. Lets custom reporters track lineage when concurrent siblings at the same nesting level interleave.

  • tags: string[]

    The flattened lowercased tags declared on the test and its ancestor suites, in declaration order. Empty for untagged tests. See Test tags.

  • testId: number

    A numeric identifier for this test instance, unique within the test file's process. Consistent across all events for the same test instance, enabling reliable correlation in custom reporters.

  • type: 'suite' | 'test'

    The test type. Either 'suite' or 'test'.