namespace
test.default.EventData
namespace EventData
interface LocationInfo
- column?: number
The column number where the test is defined, or
undefinedif 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
filewhen the test is defined in a module imported by the entry file. - line?: number
The line number where the test is defined, or
undefinedif the test was run through the REPL.
interface TestComplete
- column?: number
The column number where the test is defined, or
undefinedif 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
filewhen the test is defined in a module imported by the entry file. - line?: number
The line number where the test is defined, or
undefinedif the test was run through the REPL. - parentId: undefined | number
The
testIdof the enclosing test, orundefinedfor top-level tests. Lets custom reporters track lineage when concurrent siblings at the same nesting level interleave. - 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.
interface TestCoverage
- summary: { files: { branches: { count: number; line: number }[]; coveredBranchCount: number; coveredBranchPercent: number; coveredFunctionCount: number; coveredFunctionPercent: number; coveredLineCount: number; coveredLinePercent: number; functions: { count: number; line: number; name: string }[]; lines: { count: number; line: number }[]; path: string; totalBranchCount: number; totalFunctionCount: number; totalLineCount: number }[]; thresholds: { branch: number; function: number; line: number }; totals: { coveredBranchCount: number; coveredBranchPercent: number; coveredFunctionCount: number; coveredFunctionPercent: number; coveredLineCount: number; coveredLinePercent: number; totalBranchCount: number; totalFunctionCount: number; totalLineCount: number }; workingDirectory: string }
An object containing the coverage report.
interface TestDequeue
- column?: number
The column number where the test is defined, or
undefinedif 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
filewhen the test is defined in a module imported by the entry file. - line?: number
The line number where the test is defined, or
undefinedif the test was run through the REPL. - parentId: undefined | number
The
testIdof the enclosing test, orundefinedfor top-level tests. Lets custom reporters track lineage when concurrent siblings at the same nesting level interleave. - 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.
interface TestDiagnostic
- column?: number
The column number where the test is defined, or
undefinedif 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
filewhen the test is defined in a module imported by the entry file. - 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
undefinedif the test was run through the REPL.
interface TestEnqueue
- column?: number
The column number where the test is defined, or
undefinedif 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
filewhen the test is defined in a module imported by the entry file. - line?: number
The line number where the test is defined, or
undefinedif the test was run through the REPL. - parentId: undefined | number
The
testIdof the enclosing test, orundefinedfor top-level tests. Lets custom reporters track lineage when concurrent siblings at the same nesting level interleave. - 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.
interface TestFail
- column?: number
The column number where the test is defined, or
undefinedif 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
filewhen the test is defined in a module imported by the entry file. - line?: number
The line number where the test is defined, or
undefinedif the test was run through the REPL. - parentId: undefined | number
The
testIdof the enclosing test, orundefinedfor top-level tests. Lets custom reporters track lineage when concurrent siblings at the same nesting level interleave. - 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.
interface TestInterrupted
interface TestLog
- column?: number
The column number where the test is defined, or
undefinedif the test was run through the REPL. - data: unknown
The structured payload passed to
context.log, orundefinedif 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
filewhen the test is defined in a module imported by the entry file. - line?: number
The line number where the test is defined, or
undefinedif the test was run through the REPL.
interface TestPass
- column?: number
The column number where the test is defined, or
undefinedif 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
filewhen the test is defined in a module imported by the entry file. - line?: number
The line number where the test is defined, or
undefinedif the test was run through the REPL. - parentId: undefined | number
The
testIdof the enclosing test, orundefinedfor top-level tests. Lets custom reporters track lineage when concurrent siblings at the same nesting level interleave. - 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.
interface TestPlan
- column?: number
The column number where the test is defined, or
undefinedif 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
filewhen the test is defined in a module imported by the entry file. - line?: number
The line number where the test is defined, or
undefinedif the test was run through the REPL.
interface TestStart
- column?: number
The column number where the test is defined, or
undefinedif 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
filewhen the test is defined in a module imported by the entry file. - line?: number
The line number where the test is defined, or
undefinedif the test was run through the REPL. - parentId: undefined | number
The
testIdof the enclosing test, orundefinedfor top-level tests. Lets custom reporters track lineage when concurrent siblings at the same nesting level interleave. - 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.
interface TestStderr
interface TestStdout
interface TestSummary
- counts: { cancelled: number; passed: number; skipped: number; suites: number; tests: number; todo: number; topLevel: number }
An object containing the counts of various test results.
- file: undefined | string
The path of the test file that generated the summary. If the summary corresponds to multiple files, this value is
undefined. - success: boolean
Indicates whether or not the test run is considered successful or not. If any error condition occurs, such as a failing test or unmet coverage threshold, this value will be set to
false.