FormatContext
FormatContext =
object
Defined in: packages/app-report/src/formatter.ts:6
Properties
Section titled “Properties”scopes
Section titled “scopes”
readonlyscopes:ScopeTracker
Defined in: packages/app-report/src/formatter.ts:16
The scope tracker, which can be used to query the current open scopes and their attributes. This is useful for formatters that want to include scope information in their output. For example, a formatter might want to include the name of the current scope in its output. The scope tracker is updated in real-time as events are written to the sink, so it always reflects the current state of the run. Note that the scope tracker is not thread-safe, so formatters should not modify it.
terminal?
Section titled “terminal?”
readonlyoptionalterminal?:Terminal
Defined in: packages/app-report/src/formatter.ts:23
The terminal the sink is writing to, if any. This is useful for formatters that want to adapt their output to the terminal’s capabilities, e.g. using colors or other ANSI escape sequences.