@serenity-js/core 3.4.2 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/lib/Serenity.d.ts +7 -6
- package/lib/Serenity.d.ts.map +1 -1
- package/lib/Serenity.js +1 -1
- package/lib/Serenity.js.map +1 -1
- package/lib/adapter/TestRunnerAdapter.d.ts +1 -1
- package/lib/adapter/TestRunnerAdapter.d.ts.map +1 -1
- package/lib/config/SerenityConfig.d.ts +5 -5
- package/lib/config/SerenityConfig.d.ts.map +1 -1
- package/lib/errors/ErrorFactory.d.ts +3 -3
- package/lib/errors/ErrorFactory.d.ts.map +1 -1
- package/lib/errors/ErrorFactory.js.map +1 -1
- package/lib/errors/ErrorOptions.d.ts +2 -2
- package/lib/errors/ErrorOptions.d.ts.map +1 -1
- package/lib/errors/ErrorSerialiser.d.ts +1 -1
- package/lib/errors/ErrorSerialiser.d.ts.map +1 -1
- package/lib/errors/ErrorSerialiser.js +1 -1
- package/lib/errors/ErrorSerialiser.js.map +1 -1
- package/lib/errors/RaiseErrors.d.ts +3 -3
- package/lib/errors/RaiseErrors.d.ts.map +1 -1
- package/lib/errors/diff/AnsiDiffFormatter.d.ts +2 -2
- package/lib/errors/diff/AnsiDiffFormatter.d.ts.map +1 -1
- package/lib/errors/diff/AnsiDiffFormatter.js.map +1 -1
- package/lib/errors/diff/NoOpDiffFormatter.d.ts +1 -1
- package/lib/errors/diff/NoOpDiffFormatter.d.ts.map +1 -1
- package/lib/errors/model/AssertionError.d.ts +1 -1
- package/lib/errors/model/AssertionError.d.ts.map +1 -1
- package/lib/errors/model/ConfigurationError.d.ts +1 -1
- package/lib/errors/model/ConfigurationError.d.ts.map +1 -1
- package/lib/errors/model/ImplementationPendingError.d.ts +1 -1
- package/lib/errors/model/ImplementationPendingError.d.ts.map +1 -1
- package/lib/errors/model/ListItemNotFoundError.d.ts +1 -1
- package/lib/errors/model/ListItemNotFoundError.d.ts.map +1 -1
- package/lib/errors/model/LogicError.d.ts +1 -1
- package/lib/errors/model/LogicError.d.ts.map +1 -1
- package/lib/errors/model/OperationInterruptedError.d.ts +1 -1
- package/lib/errors/model/OperationInterruptedError.d.ts.map +1 -1
- package/lib/errors/model/TestCompromisedError.d.ts +1 -1
- package/lib/errors/model/TestCompromisedError.d.ts.map +1 -1
- package/lib/errors/model/TimeoutExpiredError.d.ts +1 -1
- package/lib/errors/model/TimeoutExpiredError.d.ts.map +1 -1
- package/lib/errors/model/UnknownError.d.ts +1 -1
- package/lib/errors/model/UnknownError.d.ts.map +1 -1
- package/lib/events/ActivityFinished.d.ts +2 -2
- package/lib/events/ActivityFinished.d.ts.map +1 -1
- package/lib/events/ActivityRelatedArtifactArchived.d.ts +3 -2
- package/lib/events/ActivityRelatedArtifactArchived.d.ts.map +1 -1
- package/lib/events/ActivityRelatedArtifactArchived.js.map +1 -1
- package/lib/events/ActivityRelatedArtifactGenerated.d.ts +1 -1
- package/lib/events/ActivityRelatedArtifactGenerated.d.ts.map +1 -1
- package/lib/events/ActivityRelatedArtifactGenerated.js.map +1 -1
- package/lib/events/ActivityStarts.d.ts +2 -2
- package/lib/events/ActivityStarts.d.ts.map +1 -1
- package/lib/events/ArtifactArchived.d.ts +3 -2
- package/lib/events/ArtifactArchived.d.ts.map +1 -1
- package/lib/events/ArtifactArchived.js.map +1 -1
- package/lib/events/ArtifactGenerated.d.ts +1 -1
- package/lib/events/ArtifactGenerated.d.ts.map +1 -1
- package/lib/events/ArtifactGenerated.js.map +1 -1
- package/lib/events/AsyncOperationAborted.d.ts +1 -1
- package/lib/events/AsyncOperationAborted.d.ts.map +1 -1
- package/lib/events/AsyncOperationAborted.js.map +1 -1
- package/lib/events/AsyncOperationAttempted.d.ts +1 -1
- package/lib/events/AsyncOperationAttempted.d.ts.map +1 -1
- package/lib/events/AsyncOperationAttempted.js.map +1 -1
- package/lib/events/AsyncOperationCompleted.d.ts +1 -1
- package/lib/events/AsyncOperationCompleted.d.ts.map +1 -1
- package/lib/events/AsyncOperationCompleted.js.map +1 -1
- package/lib/events/AsyncOperationFailed.d.ts +1 -1
- package/lib/events/AsyncOperationFailed.d.ts.map +1 -1
- package/lib/events/AsyncOperationFailed.js.map +1 -1
- package/lib/events/BusinessRuleDetected.d.ts +1 -1
- package/lib/events/BusinessRuleDetected.d.ts.map +1 -1
- package/lib/events/BusinessRuleDetected.js.map +1 -1
- package/lib/events/EmitsDomainEvents.d.ts +4 -5
- package/lib/events/EmitsDomainEvents.d.ts.map +1 -1
- package/lib/events/FeatureNarrativeDetected.d.ts +1 -1
- package/lib/events/FeatureNarrativeDetected.d.ts.map +1 -1
- package/lib/events/FeatureNarrativeDetected.js.map +1 -1
- package/lib/events/InteractionFinished.d.ts +1 -1
- package/lib/events/InteractionFinished.d.ts.map +1 -1
- package/lib/events/InteractionFinished.js.map +1 -1
- package/lib/events/InteractionStarts.d.ts +1 -1
- package/lib/events/InteractionStarts.d.ts.map +1 -1
- package/lib/events/RetryableSceneDetected.d.ts +1 -1
- package/lib/events/RetryableSceneDetected.d.ts.map +1 -1
- package/lib/events/RetryableSceneDetected.js.map +1 -1
- package/lib/events/SceneBackgroundDetected.d.ts +2 -2
- package/lib/events/SceneBackgroundDetected.d.ts.map +1 -1
- package/lib/events/SceneBackgroundDetected.js.map +1 -1
- package/lib/events/SceneDescriptionDetected.d.ts +1 -1
- package/lib/events/SceneDescriptionDetected.d.ts.map +1 -1
- package/lib/events/SceneDescriptionDetected.js.map +1 -1
- package/lib/events/SceneFinished.d.ts +1 -1
- package/lib/events/SceneFinished.d.ts.map +1 -1
- package/lib/events/SceneFinished.js.map +1 -1
- package/lib/events/SceneFinishes.d.ts +1 -1
- package/lib/events/SceneFinishes.d.ts.map +1 -1
- package/lib/events/SceneFinishes.js.map +1 -1
- package/lib/events/SceneParametersDetected.d.ts +1 -1
- package/lib/events/SceneParametersDetected.d.ts.map +1 -1
- package/lib/events/SceneParametersDetected.js.map +1 -1
- package/lib/events/SceneSequenceDetected.d.ts +1 -1
- package/lib/events/SceneSequenceDetected.d.ts.map +1 -1
- package/lib/events/SceneSequenceDetected.js.map +1 -1
- package/lib/events/SceneStarts.d.ts +1 -1
- package/lib/events/SceneStarts.d.ts.map +1 -1
- package/lib/events/SceneStarts.js.map +1 -1
- package/lib/events/SceneTagged.d.ts +1 -1
- package/lib/events/SceneTagged.d.ts.map +1 -1
- package/lib/events/SceneTagged.js.map +1 -1
- package/lib/events/SceneTemplateDetected.d.ts +1 -1
- package/lib/events/SceneTemplateDetected.d.ts.map +1 -1
- package/lib/events/SceneTemplateDetected.js.map +1 -1
- package/lib/events/TaskFinished.d.ts +1 -1
- package/lib/events/TaskFinished.d.ts.map +1 -1
- package/lib/events/TaskFinished.js.map +1 -1
- package/lib/events/TaskStarts.d.ts +1 -1
- package/lib/events/TaskStarts.d.ts.map +1 -1
- package/lib/events/TestRunFinished.d.ts +1 -1
- package/lib/events/TestRunFinished.d.ts.map +1 -1
- package/lib/events/TestRunFinished.js.map +1 -1
- package/lib/events/TestRunnerDetected.d.ts +1 -1
- package/lib/events/TestRunnerDetected.d.ts.map +1 -1
- package/lib/events/TestRunnerDetected.js.map +1 -1
- package/lib/events/TestSuiteFinished.d.ts +1 -1
- package/lib/events/TestSuiteFinished.d.ts.map +1 -1
- package/lib/events/TestSuiteFinished.js.map +1 -1
- package/lib/events/TestSuiteStarts.d.ts +1 -1
- package/lib/events/TestSuiteStarts.d.ts.map +1 -1
- package/lib/events/TestSuiteStarts.js.map +1 -1
- package/lib/instance.d.ts +3 -3
- package/lib/instance.d.ts.map +1 -1
- package/lib/instance.js.map +1 -1
- package/lib/io/FileSystem.d.ts +2 -2
- package/lib/io/FileSystem.d.ts.map +1 -1
- package/lib/io/FileSystemLocation.d.ts +2 -1
- package/lib/io/FileSystemLocation.d.ts.map +1 -1
- package/lib/io/FileSystemLocation.js.map +1 -1
- package/lib/io/Path.js +1 -1
- package/lib/io/Path.js.map +1 -1
- package/lib/io/format.d.ts +1 -1
- package/lib/io/format.d.ts.map +1 -1
- package/lib/io/inspected.d.ts +1 -1
- package/lib/io/inspected.d.ts.map +1 -1
- package/lib/io/inspected.js.map +1 -1
- package/lib/io/loader/ClassDescriptionParser.d.ts +2 -2
- package/lib/io/loader/ClassDescriptionParser.d.ts.map +1 -1
- package/lib/io/loader/ClassDescriptionParser.js +1 -1
- package/lib/io/loader/ClassDescriptionParser.js.map +1 -1
- package/lib/io/loader/ClassDescriptor.d.ts +1 -1
- package/lib/io/loader/ClassDescriptor.d.ts.map +1 -1
- package/lib/io/loader/ClassLoader.d.ts +3 -3
- package/lib/io/loader/ClassLoader.d.ts.map +1 -1
- package/lib/io/stringified.d.ts +1 -1
- package/lib/io/stringified.d.ts.map +1 -1
- package/lib/model/ActivityDetails.d.ts +2 -1
- package/lib/model/ActivityDetails.d.ts.map +1 -1
- package/lib/model/ActivityDetails.js.map +1 -1
- package/lib/model/Artifact.d.ts +2 -1
- package/lib/model/Artifact.d.ts.map +1 -1
- package/lib/model/Artifact.js.map +1 -1
- package/lib/model/BusinessRule.d.ts +2 -1
- package/lib/model/BusinessRule.d.ts.map +1 -1
- package/lib/model/BusinessRule.js.map +1 -1
- package/lib/model/ScenarioDetails.d.ts +2 -1
- package/lib/model/ScenarioDetails.d.ts.map +1 -1
- package/lib/model/ScenarioDetails.js.map +1 -1
- package/lib/model/ScenarioParameters.d.ts +2 -1
- package/lib/model/ScenarioParameters.d.ts.map +1 -1
- package/lib/model/ScenarioParameters.js.map +1 -1
- package/lib/model/TestSuiteDetails.d.ts +2 -1
- package/lib/model/TestSuiteDetails.d.ts.map +1 -1
- package/lib/model/TestSuiteDetails.js.map +1 -1
- package/lib/model/artifacts/HTTPRequestResponse.d.ts +1 -1
- package/lib/model/artifacts/HTTPRequestResponse.d.ts.map +1 -1
- package/lib/model/artifacts/JSONData.d.ts +1 -1
- package/lib/model/artifacts/JSONData.d.ts.map +1 -1
- package/lib/model/artifacts/TestReport.d.ts +1 -1
- package/lib/model/artifacts/TestReport.d.ts.map +1 -1
- package/lib/model/outcomes.d.ts +3 -2
- package/lib/model/outcomes.d.ts.map +1 -1
- package/lib/model/outcomes.js +8 -9
- package/lib/model/outcomes.js.map +1 -1
- package/lib/model/tags/ArbitraryTag.js +1 -1
- package/lib/model/tags/ArbitraryTag.js.map +1 -1
- package/lib/model/tags/BrowserTag.d.ts +1 -1
- package/lib/model/tags/BrowserTag.d.ts.map +1 -1
- package/lib/model/tags/BrowserTag.js +1 -1
- package/lib/model/tags/BrowserTag.js.map +1 -1
- package/lib/model/tags/CapabilityTag.js +1 -1
- package/lib/model/tags/CapabilityTag.js.map +1 -1
- package/lib/model/tags/ExecutionRetriedTag.d.ts +1 -1
- package/lib/model/tags/ExecutionRetriedTag.d.ts.map +1 -1
- package/lib/model/tags/ExecutionRetriedTag.js +1 -1
- package/lib/model/tags/ExecutionRetriedTag.js.map +1 -1
- package/lib/model/tags/FeatureTag.js +1 -1
- package/lib/model/tags/FeatureTag.js.map +1 -1
- package/lib/model/tags/IssueTag.js +1 -1
- package/lib/model/tags/IssueTag.js.map +1 -1
- package/lib/model/tags/ManualTag.js +1 -1
- package/lib/model/tags/ManualTag.js.map +1 -1
- package/lib/model/tags/PlatformTag.d.ts +1 -1
- package/lib/model/tags/PlatformTag.d.ts.map +1 -1
- package/lib/model/tags/PlatformTag.js +1 -1
- package/lib/model/tags/PlatformTag.js.map +1 -1
- package/lib/model/tags/Tag.d.ts +2 -1
- package/lib/model/tags/Tag.d.ts.map +1 -1
- package/lib/model/tags/Tag.js.map +1 -1
- package/lib/model/tags/Tags.d.ts +1 -1
- package/lib/model/tags/Tags.d.ts.map +1 -1
- package/lib/model/tags/Tags.js +1 -1
- package/lib/model/tags/Tags.js.map +1 -1
- package/lib/model/tags/ThemeTag.js +1 -1
- package/lib/model/tags/ThemeTag.js.map +1 -1
- package/lib/screenplay/Activity.d.ts +3 -3
- package/lib/screenplay/Activity.d.ts.map +1 -1
- package/lib/screenplay/Activity.js +1 -1
- package/lib/screenplay/Activity.js.map +1 -1
- package/lib/screenplay/Actor.d.ts +16 -9
- package/lib/screenplay/Actor.d.ts.map +1 -1
- package/lib/screenplay/Actor.js +6 -0
- package/lib/screenplay/Actor.js.map +1 -1
- package/lib/screenplay/Answerable.d.ts +1 -1
- package/lib/screenplay/Answerable.d.ts.map +1 -1
- package/lib/screenplay/Answered.d.ts +1 -1
- package/lib/screenplay/Answered.d.ts.map +1 -1
- package/lib/screenplay/Interaction.d.ts +3 -3
- package/lib/screenplay/Interaction.d.ts.map +1 -1
- package/lib/screenplay/Optional.d.ts +1 -1
- package/lib/screenplay/Optional.d.ts.map +1 -1
- package/lib/screenplay/Question.d.ts +6 -6
- package/lib/screenplay/Question.d.ts.map +1 -1
- package/lib/screenplay/RecursivelyAnswered.d.ts +1 -1
- package/lib/screenplay/RecursivelyAnswered.d.ts.map +1 -1
- package/lib/screenplay/Task.d.ts +1 -1
- package/lib/screenplay/Task.d.ts.map +1 -1
- package/lib/screenplay/WithAnswerableProperties.d.ts +2 -2
- package/lib/screenplay/WithAnswerableProperties.d.ts.map +1 -1
- package/lib/screenplay/abilities/Ability.d.ts +2 -2
- package/lib/screenplay/abilities/Ability.d.ts.map +1 -1
- package/lib/screenplay/abilities/AbilityType.d.ts +1 -1
- package/lib/screenplay/abilities/AbilityType.d.ts.map +1 -1
- package/lib/screenplay/abilities/AnswerQuestions.d.ts +3 -3
- package/lib/screenplay/abilities/AnswerQuestions.d.ts.map +1 -1
- package/lib/screenplay/abilities/CanHaveAbilities.d.ts +2 -2
- package/lib/screenplay/abilities/CanHaveAbilities.d.ts.map +1 -1
- package/lib/screenplay/abilities/PerformActivities.d.ts +4 -4
- package/lib/screenplay/abilities/PerformActivities.d.ts.map +1 -1
- package/lib/screenplay/abilities/PerformActivities.js.map +1 -1
- package/lib/screenplay/abilities/UsesAbilities.d.ts +2 -2
- package/lib/screenplay/abilities/UsesAbilities.d.ts.map +1 -1
- package/lib/screenplay/activities/PerformsActivities.d.ts +1 -1
- package/lib/screenplay/activities/PerformsActivities.d.ts.map +1 -1
- package/lib/screenplay/artifacts/CollectsArtifacts.d.ts +1 -1
- package/lib/screenplay/artifacts/CollectsArtifacts.d.ts.map +1 -1
- package/lib/screenplay/debugging/Debug.d.ts +6 -6
- package/lib/screenplay/debugging/Debug.d.ts.map +1 -1
- package/lib/screenplay/debugging/Log.d.ts +4 -4
- package/lib/screenplay/debugging/Log.d.ts.map +1 -1
- package/lib/screenplay/notes/ChainableSetter.d.ts +2 -2
- package/lib/screenplay/notes/ChainableSetter.d.ts.map +1 -1
- package/lib/screenplay/notes/NotepadAdapter.d.ts +4 -4
- package/lib/screenplay/notes/NotepadAdapter.d.ts.map +1 -1
- package/lib/screenplay/notes/NotepadAdapter.js.map +1 -1
- package/lib/screenplay/notes/notes.d.ts +1 -1
- package/lib/screenplay/notes/notes.d.ts.map +1 -1
- package/lib/screenplay/questions/AnswersQuestions.d.ts +1 -1
- package/lib/screenplay/questions/AnswersQuestions.d.ts.map +1 -1
- package/lib/screenplay/questions/Check.d.ts +5 -5
- package/lib/screenplay/questions/Check.d.ts.map +1 -1
- package/lib/screenplay/questions/Expectation.d.ts +2 -2
- package/lib/screenplay/questions/Expectation.d.ts.map +1 -1
- package/lib/screenplay/questions/Expectation.js.map +1 -1
- package/lib/screenplay/questions/List.d.ts +8 -7
- package/lib/screenplay/questions/List.d.ts.map +1 -1
- package/lib/screenplay/questions/List.js.map +1 -1
- package/lib/screenplay/questions/MetaQuestion.d.ts +2 -2
- package/lib/screenplay/questions/MetaQuestion.d.ts.map +1 -1
- package/lib/screenplay/questions/Unanswered.d.ts +2 -1
- package/lib/screenplay/questions/Unanswered.d.ts.map +1 -1
- package/lib/screenplay/questions/Unanswered.js.map +1 -1
- package/lib/screenplay/questions/expectations/ExpectationDetails.d.ts +2 -1
- package/lib/screenplay/questions/expectations/ExpectationDetails.d.ts.map +1 -1
- package/lib/screenplay/questions/expectations/ExpectationDetails.js.map +1 -1
- package/lib/screenplay/questions/expectations/ExpectationOutcome.d.ts +1 -1
- package/lib/screenplay/questions/expectations/ExpectationOutcome.d.ts.map +1 -1
- package/lib/screenplay/questions/q.d.ts +2 -2
- package/lib/screenplay/questions/q.d.ts.map +1 -1
- package/lib/screenplay/questions/q.js.map +1 -1
- package/lib/screenplay/time/TellsTime.d.ts +19 -0
- package/lib/screenplay/time/TellsTime.d.ts.map +1 -0
- package/lib/screenplay/time/TellsTime.js +3 -0
- package/lib/screenplay/time/TellsTime.js.map +1 -0
- package/lib/screenplay/time/abilities/ScheduleWork.d.ts +3 -2
- package/lib/screenplay/time/abilities/ScheduleWork.d.ts.map +1 -1
- package/lib/screenplay/time/abilities/ScheduleWork.js.map +1 -1
- package/lib/screenplay/time/activities/Wait.d.ts +3 -3
- package/lib/screenplay/time/activities/Wait.d.ts.map +1 -1
- package/lib/screenplay/time/activities/Wait.js +1 -1
- package/lib/screenplay/time/activities/Wait.js.map +1 -1
- package/lib/screenplay/time/index.d.ts +1 -0
- package/lib/screenplay/time/index.d.ts.map +1 -1
- package/lib/screenplay/time/index.js +1 -0
- package/lib/screenplay/time/index.js.map +1 -1
- package/lib/screenplay/time/models/Clock.js +1 -1
- package/lib/screenplay/time/models/Clock.js.map +1 -1
- package/lib/screenplay/time/models/DelayedCallback.d.ts +1 -1
- package/lib/screenplay/time/models/DelayedCallback.d.ts.map +1 -1
- package/lib/screenplay/time/models/Duration.d.ts +2 -1
- package/lib/screenplay/time/models/Duration.d.ts.map +1 -1
- package/lib/screenplay/time/models/Duration.js +1 -1
- package/lib/screenplay/time/models/Duration.js.map +1 -1
- package/lib/screenplay/time/models/RepeatUntilLimits.d.ts +1 -1
- package/lib/screenplay/time/models/RepeatUntilLimits.d.ts.map +1 -1
- package/lib/screenplay/time/models/Scheduler.d.ts +3 -3
- package/lib/screenplay/time/models/Scheduler.d.ts.map +1 -1
- package/lib/stage/Cast.d.ts +1 -1
- package/lib/stage/Cast.d.ts.map +1 -1
- package/lib/stage/Extras.d.ts +2 -2
- package/lib/stage/Extras.d.ts.map +1 -1
- package/lib/stage/ListensToDomainEvents.d.ts +1 -1
- package/lib/stage/ListensToDomainEvents.d.ts.map +1 -1
- package/lib/stage/Stage.d.ts +9 -7
- package/lib/stage/Stage.d.ts.map +1 -1
- package/lib/stage/Stage.js +1 -1
- package/lib/stage/Stage.js.map +1 -1
- package/lib/stage/StageCrewMember.d.ts +2 -2
- package/lib/stage/StageCrewMember.d.ts.map +1 -1
- package/lib/stage/StageCrewMemberBuilder.d.ts +2 -2
- package/lib/stage/StageCrewMemberBuilder.d.ts.map +1 -1
- package/lib/stage/StageCrewMemberBuilderDependencies.d.ts +2 -2
- package/lib/stage/StageCrewMemberBuilderDependencies.d.ts.map +1 -1
- package/lib/stage/StageManager.d.ts +4 -4
- package/lib/stage/StageManager.d.ts.map +1 -1
- package/lib/stage/StageManager.js.map +1 -1
- package/lib/stage/crew/artifact-archiver/ArtifactArchiver.d.ts +3 -3
- package/lib/stage/crew/artifact-archiver/ArtifactArchiver.d.ts.map +1 -1
- package/lib/stage/crew/artifact-archiver/ArtifactArchiver.js.map +1 -1
- package/lib/stage/crew/stream-reporter/StreamReporter.d.ts +4 -4
- package/lib/stage/crew/stream-reporter/StreamReporter.d.ts.map +1 -1
- package/lib/stage/queues/DomainEventQueue.d.ts +2 -2
- package/lib/stage/queues/DomainEventQueue.d.ts.map +1 -1
- package/lib/stage/queues/DomainEventQueues.d.ts +2 -2
- package/lib/stage/queues/DomainEventQueues.d.ts.map +1 -1
- package/lib/stage/queues/DomainEventQueues.js.map +1 -1
- package/package.json +3 -3
- package/src/Serenity.ts +10 -8
- package/src/adapter/TestRunnerAdapter.ts +1 -1
- package/src/config/SerenityConfig.ts +5 -5
- package/src/errors/ErrorFactory.ts +5 -4
- package/src/errors/ErrorOptions.ts +2 -2
- package/src/errors/ErrorSerialiser.ts +2 -1
- package/src/errors/RaiseErrors.ts +3 -3
- package/src/errors/diff/AnsiDiffFormatter.ts +3 -2
- package/src/errors/diff/NoOpDiffFormatter.ts +1 -1
- package/src/errors/model/AssertionError.ts +1 -1
- package/src/errors/model/ConfigurationError.ts +1 -1
- package/src/errors/model/ImplementationPendingError.ts +1 -1
- package/src/errors/model/ListItemNotFoundError.ts +1 -1
- package/src/errors/model/LogicError.ts +1 -1
- package/src/errors/model/OperationInterruptedError.ts +1 -1
- package/src/errors/model/TestCompromisedError.ts +1 -1
- package/src/errors/model/TimeoutExpiredError.ts +1 -1
- package/src/errors/model/UnknownError.ts +1 -1
- package/src/events/ActivityFinished.ts +2 -2
- package/src/events/ActivityRelatedArtifactArchived.ts +4 -2
- package/src/events/ActivityRelatedArtifactGenerated.ts +4 -2
- package/src/events/ActivityStarts.ts +2 -2
- package/src/events/ArtifactArchived.ts +4 -2
- package/src/events/ArtifactGenerated.ts +4 -2
- package/src/events/AsyncOperationAborted.ts +2 -1
- package/src/events/AsyncOperationAttempted.ts +2 -1
- package/src/events/AsyncOperationCompleted.ts +2 -1
- package/src/events/AsyncOperationFailed.ts +2 -1
- package/src/events/BusinessRuleDetected.ts +2 -1
- package/src/events/EmitsDomainEvents.ts +4 -5
- package/src/events/FeatureNarrativeDetected.ts +2 -1
- package/src/events/InteractionFinished.ts +3 -2
- package/src/events/InteractionStarts.ts +1 -1
- package/src/events/RetryableSceneDetected.ts +2 -1
- package/src/events/SceneBackgroundDetected.ts +3 -2
- package/src/events/SceneDescriptionDetected.ts +2 -1
- package/src/events/SceneFinished.ts +4 -2
- package/src/events/SceneFinishes.ts +2 -1
- package/src/events/SceneParametersDetected.ts +2 -1
- package/src/events/SceneSequenceDetected.ts +2 -1
- package/src/events/SceneStarts.ts +2 -1
- package/src/events/SceneTagged.ts +2 -1
- package/src/events/SceneTemplateDetected.ts +2 -1
- package/src/events/TaskFinished.ts +3 -2
- package/src/events/TaskStarts.ts +1 -1
- package/src/events/TestRunFinished.ts +3 -2
- package/src/events/TestRunnerDetected.ts +2 -1
- package/src/events/TestSuiteFinished.ts +4 -2
- package/src/events/TestSuiteStarts.ts +2 -1
- package/src/instance.ts +4 -3
- package/src/io/FileSystem.ts +2 -2
- package/src/io/FileSystemLocation.ts +2 -1
- package/src/io/format.ts +1 -1
- package/src/io/inspected.ts +2 -1
- package/src/io/loader/ClassDescriptionParser.ts +2 -2
- package/src/io/loader/ClassDescriptor.ts +1 -1
- package/src/io/loader/ClassLoader.ts +3 -3
- package/src/io/stringified.ts +1 -1
- package/src/model/ActivityDetails.ts +2 -1
- package/src/model/Artifact.ts +2 -1
- package/src/model/BusinessRule.ts +2 -1
- package/src/model/ScenarioDetails.ts +2 -1
- package/src/model/ScenarioParameters.ts +2 -1
- package/src/model/TestSuiteDetails.ts +2 -1
- package/src/model/artifacts/HTTPRequestResponse.ts +1 -1
- package/src/model/artifacts/JSONData.ts +1 -1
- package/src/model/artifacts/TestReport.ts +1 -1
- package/src/model/outcomes.ts +4 -2
- package/src/model/tags/BrowserTag.ts +1 -1
- package/src/model/tags/ExecutionRetriedTag.ts +1 -1
- package/src/model/tags/PlatformTag.ts +1 -1
- package/src/model/tags/Tag.ts +2 -1
- package/src/model/tags/Tags.ts +2 -1
- package/src/screenplay/Activity.ts +3 -3
- package/src/screenplay/Actor.ts +25 -12
- package/src/screenplay/Answerable.ts +1 -1
- package/src/screenplay/Answered.ts +1 -1
- package/src/screenplay/Interaction.ts +3 -3
- package/src/screenplay/Optional.ts +1 -1
- package/src/screenplay/Question.ts +6 -6
- package/src/screenplay/RecursivelyAnswered.ts +1 -1
- package/src/screenplay/Task.ts +1 -1
- package/src/screenplay/WithAnswerableProperties.ts +2 -2
- package/src/screenplay/abilities/Ability.ts +2 -2
- package/src/screenplay/abilities/AbilityType.ts +1 -1
- package/src/screenplay/abilities/AnswerQuestions.ts +3 -3
- package/src/screenplay/abilities/CanHaveAbilities.ts +2 -2
- package/src/screenplay/abilities/PerformActivities.ts +9 -6
- package/src/screenplay/abilities/UsesAbilities.ts +2 -2
- package/src/screenplay/activities/PerformsActivities.ts +1 -1
- package/src/screenplay/artifacts/CollectsArtifacts.ts +1 -1
- package/src/screenplay/debugging/Debug.ts +6 -6
- package/src/screenplay/debugging/Log.ts +4 -4
- package/src/screenplay/notes/ChainableSetter.ts +2 -2
- package/src/screenplay/notes/NotepadAdapter.ts +7 -6
- package/src/screenplay/notes/notes.ts +1 -1
- package/src/screenplay/questions/AnswersQuestions.ts +1 -1
- package/src/screenplay/questions/Check.ts +5 -5
- package/src/screenplay/questions/Expectation.ts +4 -3
- package/src/screenplay/questions/List.ts +8 -7
- package/src/screenplay/questions/MetaQuestion.ts +2 -2
- package/src/screenplay/questions/Unanswered.ts +2 -1
- package/src/screenplay/questions/expectations/ExpectationDetails.ts +2 -1
- package/src/screenplay/questions/expectations/ExpectationOutcome.ts +1 -1
- package/src/screenplay/questions/q.ts +3 -2
- package/src/screenplay/time/TellsTime.ts +19 -0
- package/src/screenplay/time/abilities/ScheduleWork.ts +4 -2
- package/src/screenplay/time/activities/Wait.ts +4 -3
- package/src/screenplay/time/index.ts +1 -0
- package/src/screenplay/time/models/DelayedCallback.ts +1 -1
- package/src/screenplay/time/models/Duration.ts +2 -1
- package/src/screenplay/time/models/RepeatUntilLimits.ts +1 -1
- package/src/screenplay/time/models/Scheduler.ts +4 -4
- package/src/stage/Cast.ts +1 -1
- package/src/stage/Extras.ts +2 -2
- package/src/stage/ListensToDomainEvents.ts +1 -1
- package/src/stage/Stage.ts +12 -8
- package/src/stage/StageCrewMember.ts +2 -2
- package/src/stage/StageCrewMemberBuilder.ts +2 -2
- package/src/stage/StageCrewMemberBuilderDependencies.ts +2 -2
- package/src/stage/StageManager.ts +6 -5
- package/src/stage/crew/artifact-archiver/ArtifactArchiver.ts +8 -6
- package/src/stage/crew/stream-reporter/StreamReporter.ts +4 -4
- package/src/stage/queues/DomainEventQueue.ts +2 -2
- package/src/stage/queues/DomainEventQueues.ts +3 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Answerable } from '../Answerable';
|
|
1
|
+
import type { Answerable } from '../Answerable';
|
|
2
2
|
import { Question } from '../Question';
|
|
3
|
-
import { AnswersQuestions } from '../questions';
|
|
3
|
+
import type { AnswersQuestions } from '../questions';
|
|
4
4
|
import { Ability } from './Ability';
|
|
5
|
-
import { UsesAbilities } from './UsesAbilities';
|
|
5
|
+
import type { UsesAbilities } from './UsesAbilities';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* This {@apilink Ability} enables an {@apilink Actor} to resolve the value of a given {@apilink Answerable}.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Ability } from './Ability';
|
|
2
|
-
import { UsesAbilities } from './UsesAbilities';
|
|
1
|
+
import type { Ability } from './Ability';
|
|
2
|
+
import type { UsesAbilities } from './UsesAbilities';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Describes an {@apilink Actor} who can have an {@apilink Ability} to perform some {@apilink Activity}.
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { match } from 'tiny-types';
|
|
2
2
|
|
|
3
3
|
import { AssertionError, ImplementationPendingError, TestCompromisedError } from '../../errors';
|
|
4
|
-
import { EmitsDomainEvents
|
|
4
|
+
import type { EmitsDomainEvents} from '../../events';
|
|
5
|
+
import { InteractionFinished, InteractionStarts, TaskFinished, TaskStarts } from '../../events';
|
|
6
|
+
import type {
|
|
7
|
+
Outcome,
|
|
8
|
+
ProblemIndication
|
|
9
|
+
} from '../../model';
|
|
5
10
|
import {
|
|
6
11
|
ActivityDetails,
|
|
7
12
|
ExecutionCompromised,
|
|
@@ -9,12 +14,10 @@ import {
|
|
|
9
14
|
ExecutionFailedWithError,
|
|
10
15
|
ExecutionSuccessful,
|
|
11
16
|
ImplementationPending,
|
|
12
|
-
Name
|
|
13
|
-
Outcome,
|
|
14
|
-
ProblemIndication
|
|
17
|
+
Name
|
|
15
18
|
} from '../../model';
|
|
16
|
-
import { PerformsActivities } from '../activities/PerformsActivities';
|
|
17
|
-
import { Activity } from '../Activity';
|
|
19
|
+
import type { PerformsActivities } from '../activities/PerformsActivities';
|
|
20
|
+
import type { Activity } from '../Activity';
|
|
18
21
|
import { Interaction } from '../Interaction';
|
|
19
22
|
import { Ability } from './index';
|
|
20
23
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Ability } from './Ability';
|
|
2
|
-
import { AbilityType } from './AbilityType';
|
|
1
|
+
import type { Ability } from './Ability';
|
|
2
|
+
import type { AbilityType } from './AbilityType';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Describes an {@apilink Actor} who can use their {@apilink Ability|abilities} to perform an {@apilink Activity}
|
|
@@ -2,13 +2,13 @@ import { ErrorSerialiser } from '../../errors';
|
|
|
2
2
|
import { d } from '../../io';
|
|
3
3
|
import { stringified } from '../../io/stringified';
|
|
4
4
|
import { LogEntry, Name } from '../../model';
|
|
5
|
-
import { UsesAbilities } from '../abilities';
|
|
6
|
-
import { Answerable } from '../Answerable';
|
|
7
|
-
import { Answered } from '../Answered';
|
|
8
|
-
import { CollectsArtifacts } from '../artifacts';
|
|
5
|
+
import type { UsesAbilities } from '../abilities';
|
|
6
|
+
import type { Answerable } from '../Answerable';
|
|
7
|
+
import type { Answered } from '../Answered';
|
|
8
|
+
import type { CollectsArtifacts } from '../artifacts';
|
|
9
9
|
import { Interaction } from '../Interaction';
|
|
10
|
-
import { AnswersQuestions } from '../questions';
|
|
11
|
-
import { DebuggingResult } from './DebuggingResult';
|
|
10
|
+
import type { AnswersQuestions } from '../questions';
|
|
11
|
+
import type { DebuggingResult } from './DebuggingResult';
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Instructs the {@apilink Actor|actor} to evaluate and {@apilink Log|log} the provided {@apilink Answerable} values.
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { d } from '../../io';
|
|
2
2
|
import { stringified } from '../../io/stringified';
|
|
3
3
|
import { LogEntry, Name } from '../../model';
|
|
4
|
-
import { UsesAbilities } from '../abilities';
|
|
5
|
-
import { Answerable } from '../Answerable';
|
|
6
|
-
import { CollectsArtifacts } from '../artifacts';
|
|
4
|
+
import type { UsesAbilities } from '../abilities';
|
|
5
|
+
import type { Answerable } from '../Answerable';
|
|
6
|
+
import type { CollectsArtifacts } from '../artifacts';
|
|
7
7
|
import { Interaction } from '../Interaction';
|
|
8
|
-
import { AnswersQuestions } from '../questions';
|
|
8
|
+
import type { AnswersQuestions } from '../questions';
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Instructs the {@apilink Actor} to {@apilink CollectsArtifacts|collect} arbitrary static values and answers to {@apilink Answerable|Answerables},
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import { JSONObject } from 'tiny-types';
|
|
1
|
+
import type { JSONObject } from 'tiny-types';
|
|
2
2
|
|
|
3
3
|
import { commaSeparated } from '../../io';
|
|
4
|
-
import { UsesAbilities } from '../abilities';
|
|
5
|
-
import { Answerable } from '../Answerable';
|
|
4
|
+
import type { UsesAbilities } from '../abilities';
|
|
5
|
+
import type { Answerable } from '../Answerable';
|
|
6
6
|
import { Interaction } from '../Interaction';
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
7
|
+
import type { QuestionAdapter } from '../Question';
|
|
8
|
+
import { Question } from '../Question';
|
|
9
|
+
import type { AnswersQuestions } from '../questions';
|
|
10
|
+
import type { ChainableSetter } from './ChainableSetter';
|
|
10
11
|
import { TakeNotes } from './TakeNotes';
|
|
11
12
|
|
|
12
13
|
/**
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { d } from '../../io';
|
|
2
|
-
import { PerformsActivities } from '../activities';
|
|
3
|
-
import { Activity } from '../Activity';
|
|
4
|
-
import { Answerable } from '../Answerable';
|
|
5
|
-
import { AnswersQuestions } from '../questions';
|
|
2
|
+
import type { PerformsActivities } from '../activities';
|
|
3
|
+
import type { Activity } from '../Activity';
|
|
4
|
+
import type { Answerable } from '../Answerable';
|
|
5
|
+
import type { AnswersQuestions } from '../questions';
|
|
6
6
|
import { Task } from '../Task';
|
|
7
|
-
import { Expectation } from './Expectation';
|
|
7
|
+
import type { Expectation } from './Expectation';
|
|
8
8
|
import { ExpectationMet } from './expectations';
|
|
9
9
|
|
|
10
10
|
/**
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { JSONValue } from 'tiny-types';
|
|
1
|
+
import type { JSONValue } from 'tiny-types';
|
|
2
2
|
|
|
3
3
|
import { asyncMap, d } from '../../io';
|
|
4
|
-
import { Answerable, AnswersQuestions,
|
|
5
|
-
import {
|
|
4
|
+
import type { Answerable, AnswersQuestions, QuestionAdapter } from '../';
|
|
5
|
+
import { ExpectationDetails, ExpectationMet, ExpectationNotMet, Question } from '../';
|
|
6
|
+
import type { ExpectationOutcome } from './expectations';
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* @group Expectations
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { ListItemNotFoundError, LogicError } from '../../errors';
|
|
2
2
|
import { d } from '../../io';
|
|
3
|
-
import { UsesAbilities } from '../abilities';
|
|
4
|
-
import { Actor } from '../Actor';
|
|
5
|
-
import { Answerable } from '../Answerable';
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
3
|
+
import type { UsesAbilities } from '../abilities';
|
|
4
|
+
import type { Actor } from '../Actor';
|
|
5
|
+
import type { Answerable } from '../Answerable';
|
|
6
|
+
import type { QuestionAdapter } from '../Question';
|
|
7
|
+
import { Question } from '../Question';
|
|
8
|
+
import type { AnswersQuestions } from '../questions';
|
|
8
9
|
import { Task } from '../Task';
|
|
9
|
-
import { Expectation } from './Expectation';
|
|
10
|
+
import type { Expectation } from './Expectation';
|
|
10
11
|
import { ExpectationMet } from './expectations';
|
|
11
|
-
import { MetaQuestion } from './MetaQuestion';
|
|
12
|
+
import type { MetaQuestion } from './MetaQuestion';
|
|
12
13
|
|
|
13
14
|
/**
|
|
14
15
|
* Serenity/JS Screenplay Pattern-style wrapper around {@apilink Array}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Answerable } from '../Answerable';
|
|
2
|
-
import { Question } from '../Question';
|
|
1
|
+
import type { Answerable } from '../Answerable';
|
|
2
|
+
import type { Question } from '../Question';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* A "meta question" is a {@apilink Question} about another {@apilink Answerable},
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { JSONObject, JSONValue} from 'tiny-types';
|
|
2
|
+
import { ensure, isArray, isDefined, TinyType } from 'tiny-types';
|
|
2
3
|
|
|
3
4
|
import { inspected, typeOf } from '../../../io';
|
|
4
5
|
import { Name } from '../../../model';
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Answerable } from '../Answerable';
|
|
2
|
-
import {
|
|
1
|
+
import type { Answerable } from '../Answerable';
|
|
2
|
+
import type { QuestionAdapter } from '../Question';
|
|
3
|
+
import { Question } from '../Question';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* A Serenity/JS Screenplay Pattern-flavour
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Timestamp } from './models';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Describes an {@apilink Actor} or a supporting class capable of telling
|
|
5
|
+
* the current wall clock time.
|
|
6
|
+
*
|
|
7
|
+
* ## Learn more
|
|
8
|
+
* - {@apilink Actor}
|
|
9
|
+
* - {@apilink Serenity}
|
|
10
|
+
* - {@apilink Stage}
|
|
11
|
+
*
|
|
12
|
+
* @group Time
|
|
13
|
+
*/
|
|
14
|
+
export interface TellsTime {
|
|
15
|
+
/**
|
|
16
|
+
* Returns current wall clock time.
|
|
17
|
+
*/
|
|
18
|
+
currentTime(): Timestamp;
|
|
19
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { Discardable } from '../../abilities';
|
|
2
|
+
import { Ability } from '../../abilities';
|
|
3
|
+
import type { Clock, DelayedCallback, Duration, RepeatUntilLimits} from '../models';
|
|
4
|
+
import { Scheduler } from '../models';
|
|
3
5
|
|
|
4
6
|
/**
|
|
5
7
|
* An {@apilink Ability} that enables an {@apilink Actor} to schedule a callback function
|
|
@@ -2,10 +2,11 @@ import { ensure, isGreaterThanOrEqualTo, isInRange } from 'tiny-types';
|
|
|
2
2
|
|
|
3
3
|
import { AssertionError, ListItemNotFoundError, RaiseErrors, TimeoutExpiredError } from '../../../errors';
|
|
4
4
|
import { d } from '../../../io';
|
|
5
|
-
import { UsesAbilities } from '../../abilities';
|
|
6
|
-
import { Answerable } from '../../Answerable';
|
|
5
|
+
import type { UsesAbilities } from '../../abilities';
|
|
6
|
+
import type { Answerable } from '../../Answerable';
|
|
7
7
|
import { Interaction } from '../../Interaction';
|
|
8
|
-
import { AnswersQuestions, Expectation,
|
|
8
|
+
import type { AnswersQuestions, Expectation, ExpectationOutcome } from '../../questions';
|
|
9
|
+
import { ExpectationMet } from '../../questions';
|
|
9
10
|
import { ScheduleWork } from '../abilities';
|
|
10
11
|
import { Duration } from '../models';
|
|
11
12
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { JSONObject} from 'tiny-types';
|
|
2
|
+
import { ensure, isGreaterThanOrEqualTo, isInteger, TinyType } from 'tiny-types';
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* Represents a duration in milliseconds between two {@apilink Timestamp|timestamps}.
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { OperationInterruptedError, TimeoutExpiredError } from '../../../errors';
|
|
2
|
-
import { Clock } from './Clock';
|
|
3
|
-
import { DelayedCallback } from './DelayedCallback';
|
|
2
|
+
import type { Clock } from './Clock';
|
|
3
|
+
import type { DelayedCallback } from './DelayedCallback';
|
|
4
4
|
import { Duration } from './Duration';
|
|
5
|
-
import { RepeatUntilLimits } from './RepeatUntilLimits';
|
|
6
|
-
import { Timestamp } from './Timestamp';
|
|
5
|
+
import type { RepeatUntilLimits } from './RepeatUntilLimits';
|
|
6
|
+
import type { Timestamp } from './Timestamp';
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* @group Time
|
package/src/stage/Cast.ts
CHANGED
package/src/stage/Extras.ts
CHANGED
package/src/stage/Stage.ts
CHANGED
|
@@ -1,21 +1,25 @@
|
|
|
1
1
|
import { ensure, isDefined } from 'tiny-types';
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import type { ErrorFactory, ErrorOptions, RuntimeError } from '../errors';
|
|
4
|
+
import { ConfigurationError, LogicError, RaiseErrors } from '../errors';
|
|
5
|
+
import type {
|
|
6
|
+
DomainEvent,
|
|
7
|
+
EmitsDomainEvents} from '../events';
|
|
4
8
|
import {
|
|
5
9
|
AsyncOperationAttempted,
|
|
6
10
|
AsyncOperationCompleted,
|
|
7
11
|
AsyncOperationFailed,
|
|
8
|
-
DomainEvent,
|
|
9
|
-
EmitsDomainEvents,
|
|
10
12
|
SceneFinishes,
|
|
11
13
|
SceneStarts,
|
|
12
14
|
TestRunFinishes
|
|
13
15
|
} from '../events';
|
|
14
|
-
import { ActivityDetails
|
|
15
|
-
import {
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
16
|
+
import type { ActivityDetails} from '../model';
|
|
17
|
+
import { CorrelationId, Description, Name } from '../model';
|
|
18
|
+
import type { Clock, Duration, Timestamp } from '../screenplay';
|
|
19
|
+
import { Actor, ScheduleWork } from '../screenplay';
|
|
20
|
+
import type { ListensToDomainEvents } from '../stage';
|
|
21
|
+
import type { Cast } from './Cast';
|
|
22
|
+
import type { StageManager } from './StageManager';
|
|
19
23
|
|
|
20
24
|
/**
|
|
21
25
|
* Stage is the place where {@apilink Actor|actors} perform.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ListensToDomainEvents } from './ListensToDomainEvents';
|
|
2
|
-
import { Stage } from './Stage';
|
|
1
|
+
import type { ListensToDomainEvents } from './ListensToDomainEvents';
|
|
2
|
+
import type { Stage } from './Stage';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* You can think of the {@apilink StageCrewMember} as an in-memory microservice that reacts to {@apilink DomainEvent|domain events},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ListensToDomainEvents } from './ListensToDomainEvents';
|
|
2
|
-
import { StageCrewMemberBuilderDependencies } from './StageCrewMemberBuilderDependencies';
|
|
1
|
+
import type { ListensToDomainEvents } from './ListensToDomainEvents';
|
|
2
|
+
import type { StageCrewMemberBuilderDependencies } from './StageCrewMemberBuilderDependencies';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Use a {@apilink StageCrewMemberBuilder} to configure complex {@apilink StageCrewMember} objects.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { OutputStream } from '../adapter';
|
|
2
|
-
import { Stage } from './Stage';
|
|
1
|
+
import type { OutputStream } from '../adapter';
|
|
2
|
+
import type { Stage } from './Stage';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Dependencies injected by {@apilink Serenity.configure} into {@apilink StageCrewMemberBuilder.build}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
1
|
+
import type { DomainEvent } from '../events';
|
|
2
|
+
import { AsyncOperationAttempted, AsyncOperationCompleted, AsyncOperationFailed } from '../events';
|
|
3
|
+
import type { CorrelationId, Description, Name } from '../model';
|
|
4
|
+
import type { Clock, Duration, TellsTime, Timestamp } from '../screenplay';
|
|
5
|
+
import type { ListensToDomainEvents } from '../stage';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* @group Stage
|
|
8
9
|
*/
|
|
9
|
-
export class StageManager {
|
|
10
|
+
export class StageManager implements TellsTime {
|
|
10
11
|
private readonly subscribers: ListensToDomainEvents[] = [];
|
|
11
12
|
private readonly wip: WIP;
|
|
12
13
|
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { WriteFileOptions } from 'fs';
|
|
1
|
+
import type { WriteFileOptions } from 'fs';
|
|
2
2
|
import { ensure, isDefined, isGreaterThan, isString, property } from 'tiny-types';
|
|
3
3
|
|
|
4
|
+
import type {
|
|
5
|
+
DomainEvent} from '../../../events';
|
|
4
6
|
import {
|
|
5
7
|
ActivityRelatedArtifactArchived,
|
|
6
8
|
ActivityRelatedArtifactGenerated,
|
|
@@ -8,13 +10,13 @@ import {
|
|
|
8
10
|
ArtifactGenerated,
|
|
9
11
|
AsyncOperationAttempted,
|
|
10
12
|
AsyncOperationCompleted,
|
|
11
|
-
AsyncOperationFailed
|
|
12
|
-
DomainEvent,
|
|
13
|
+
AsyncOperationFailed
|
|
13
14
|
} from '../../../events';
|
|
14
15
|
import { FileSystem, Path } from '../../../io';
|
|
15
|
-
import { Artifact, ArtifactType
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
16
|
+
import type { Artifact, ArtifactType} from '../../../model';
|
|
17
|
+
import { CorrelationId, Description, Name, Photo, TestReport } from '../../../model';
|
|
18
|
+
import type { Stage } from '../../Stage';
|
|
19
|
+
import type { StageCrewMember } from '../../StageCrewMember';
|
|
18
20
|
import { Hash } from './Hash';
|
|
19
21
|
|
|
20
22
|
/**
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Writable } from 'stream';
|
|
1
|
+
import type { Writable } from 'stream';
|
|
2
2
|
|
|
3
|
-
import { DomainEvent } from '../../../events';
|
|
4
|
-
import { Stage } from '../../Stage';
|
|
5
|
-
import { StageCrewMember } from '../../StageCrewMember';
|
|
3
|
+
import type { DomainEvent } from '../../../events';
|
|
4
|
+
import type { Stage } from '../../Stage';
|
|
5
|
+
import type { StageCrewMember } from '../../StageCrewMember';
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Serialises all the {@apilink DomainEvent} objects it receives and streams
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ensure, Predicate } from 'tiny-types';
|
|
2
2
|
|
|
3
|
-
import { DomainEvent } from '../../events';
|
|
4
|
-
import { CorrelationId } from '../../model';
|
|
3
|
+
import type { DomainEvent } from '../../events';
|
|
4
|
+
import type { CorrelationId } from '../../model';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* @group Stage
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { LogicError } from '../../errors';
|
|
2
|
-
import { DomainEvent
|
|
2
|
+
import type { DomainEvent} from '../../events';
|
|
3
|
+
import { SceneSequenceDetected, SceneStarts } from '../../events';
|
|
3
4
|
import { d } from '../../io/format';
|
|
4
|
-
import { CorrelationId, ScenarioDetails } from '../../model';
|
|
5
|
+
import type { CorrelationId, ScenarioDetails } from '../../model';
|
|
5
6
|
import { DomainEventQueue } from './DomainEventQueue';
|
|
6
7
|
|
|
7
8
|
/**
|