interface

test.default.EventData.TestPass

interface TestPass

  • column?: number

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

  • details: { attempt: number; duration_ms: number; passed_on_attempt: number; type: 'suite' | 'test' }

    Additional execution metadata.

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

  • skip?: string | boolean

    Present if context.skip is called.

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

  • testNumber: number

    The ordinal number of the test.

  • todo?: string | boolean

    Present if context.todo is called.