Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(console-reporter): test with reporter developement
- Loading branch information
Showing
4 changed files
with
170 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import type { JSONObject } from 'tiny-types'; | ||
|
||
import type { SerialisedOutcome } from '../model'; | ||
import { Outcome } from '../model'; | ||
import { Timestamp } from '../screenplay'; | ||
import { DomainEvent } from './DomainEvent'; | ||
|
||
/** | ||
* Emitted when the last test in the test suite has finished running | ||
* and it's time for any last-minute reporting activities to take place. | ||
* | ||
* @group Events | ||
*/ | ||
export class GlobalExceptionEncountered extends DomainEvent { | ||
static fromJSON(o: JSONObject): GlobalExceptionEncountered { | ||
return new GlobalExceptionEncountered( | ||
Outcome.fromJSON(o.error as SerialisedOutcome), | ||
Timestamp.fromJSON(o.timestamp as string), | ||
); | ||
} | ||
|
||
constructor( | ||
public readonly error: Outcome, | ||
timestamp?: Timestamp | ||
) { | ||
super(timestamp); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.