Class StepEventReporter
Index
Constructors
constructor
-
Returns StepEventReporter
Accessors
emitted
-
Every event emitted, in order.
Returns readonly Emitted[]
global Metadata
-
Each entry of global metadata set, with its latest value.
Returns ReadonlyMap<string, PlainValue>
reporter
-
The step reporter it lends.
Returns StepReporter
Methods
Staticfailing
-
A recorder whose reporter interrupts every call and keeps nothing.
Returns StepEventReporter
Lends a step's reporter outside any journey, so that a test calls a step's
runitself, and keeps every event emitted through it and the global metadata set. The reporter behaves as in a journey: one madefailinginterrupts every call and keeps nothing, and settingjourney_idinterrupts that call and every later one. An interrupted call rejects.