@serenity-js/core 3.41.2 → 3.42.1
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 +24 -0
- package/esm/Serenity.d.ts +209 -0
- package/esm/Serenity.d.ts.map +1 -0
- package/esm/Serenity.js +272 -0
- package/esm/Serenity.js.map +1 -0
- package/esm/adapter/OutputStream.d.ts +15 -0
- package/esm/adapter/OutputStream.d.ts.map +1 -0
- package/esm/adapter/OutputStream.js +2 -0
- package/esm/adapter/OutputStream.js.map +1 -0
- package/esm/adapter/TestRunnerAdapter.d.ts +33 -0
- package/esm/adapter/TestRunnerAdapter.d.ts.map +1 -0
- package/esm/adapter/TestRunnerAdapter.js +2 -0
- package/esm/adapter/TestRunnerAdapter.js.map +1 -0
- package/esm/adapter/index.d.ts +3 -0
- package/esm/adapter/index.d.ts.map +1 -0
- package/esm/adapter/index.js +3 -0
- package/esm/adapter/index.js.map +1 -0
- package/esm/config/ClassDescription.d.ts +60 -0
- package/esm/config/ClassDescription.d.ts.map +1 -0
- package/esm/config/ClassDescription.js +2 -0
- package/esm/config/ClassDescription.js.map +1 -0
- package/esm/config/SerenityConfig.d.ts +75 -0
- package/esm/config/SerenityConfig.d.ts.map +1 -0
- package/esm/config/SerenityConfig.js +70 -0
- package/esm/config/SerenityConfig.js.map +1 -0
- package/esm/config/index.d.ts +3 -0
- package/esm/config/index.d.ts.map +1 -0
- package/esm/config/index.js +3 -0
- package/esm/config/index.js.map +1 -0
- package/esm/errors/ErrorFactory.d.ts +17 -0
- package/esm/errors/ErrorFactory.d.ts.map +1 -0
- package/esm/errors/ErrorFactory.js +244 -0
- package/esm/errors/ErrorFactory.js.map +1 -0
- package/esm/errors/ErrorOptions.d.ts +16 -0
- package/esm/errors/ErrorOptions.d.ts.map +1 -0
- package/esm/errors/ErrorOptions.js +2 -0
- package/esm/errors/ErrorOptions.js.map +1 -0
- package/esm/errors/ErrorSerialiser.d.ts +14 -0
- package/esm/errors/ErrorSerialiser.d.ts.map +1 -0
- package/esm/errors/ErrorSerialiser.js +70 -0
- package/esm/errors/ErrorSerialiser.js.map +1 -0
- package/esm/errors/ErrorStackParser.d.ts +13 -0
- package/esm/errors/ErrorStackParser.d.ts.map +1 -0
- package/esm/errors/ErrorStackParser.js +15 -0
- package/esm/errors/ErrorStackParser.js.map +1 -0
- package/esm/errors/RaiseErrors.d.ts +57 -0
- package/esm/errors/RaiseErrors.d.ts.map +1 -0
- package/esm/errors/RaiseErrors.js +59 -0
- package/esm/errors/RaiseErrors.js.map +1 -0
- package/esm/errors/diff/AnsiDiffFormatter.d.ts +28 -0
- package/esm/errors/diff/AnsiDiffFormatter.d.ts.map +1 -0
- package/esm/errors/diff/AnsiDiffFormatter.js +36 -0
- package/esm/errors/diff/AnsiDiffFormatter.js.map +1 -0
- package/esm/errors/diff/DiffFormatter.d.ts +13 -0
- package/esm/errors/diff/DiffFormatter.d.ts.map +1 -0
- package/esm/errors/diff/DiffFormatter.js +2 -0
- package/esm/errors/diff/DiffFormatter.js.map +1 -0
- package/esm/errors/diff/NoOpDiffFormatter.d.ts +12 -0
- package/esm/errors/diff/NoOpDiffFormatter.d.ts.map +1 -0
- package/esm/errors/diff/NoOpDiffFormatter.js +17 -0
- package/esm/errors/diff/NoOpDiffFormatter.js.map +1 -0
- package/esm/errors/diff/index.d.ts +4 -0
- package/esm/errors/diff/index.d.ts.map +1 -0
- package/esm/errors/diff/index.js +4 -0
- package/esm/errors/diff/index.js.map +1 -0
- package/esm/errors/index.d.ts +8 -0
- package/esm/errors/index.d.ts.map +1 -0
- package/esm/errors/index.js +15 -0
- package/esm/errors/index.js.map +1 -0
- package/esm/errors/model/AssertionError.d.ts +16 -0
- package/esm/errors/model/AssertionError.d.ts.map +1 -0
- package/esm/errors/model/AssertionError.js +22 -0
- package/esm/errors/model/AssertionError.js.map +1 -0
- package/esm/errors/model/ConfigurationError.d.ts +16 -0
- package/esm/errors/model/ConfigurationError.d.ts.map +1 -0
- package/esm/errors/model/ConfigurationError.js +22 -0
- package/esm/errors/model/ConfigurationError.js.map +1 -0
- package/esm/errors/model/ImplementationPendingError.d.ts +37 -0
- package/esm/errors/model/ImplementationPendingError.d.ts.map +1 -0
- package/esm/errors/model/ImplementationPendingError.js +43 -0
- package/esm/errors/model/ImplementationPendingError.js.map +1 -0
- package/esm/errors/model/ListItemNotFoundError.d.ts +20 -0
- package/esm/errors/model/ListItemNotFoundError.d.ts.map +1 -0
- package/esm/errors/model/ListItemNotFoundError.js +26 -0
- package/esm/errors/model/ListItemNotFoundError.js.map +1 -0
- package/esm/errors/model/LogicError.d.ts +20 -0
- package/esm/errors/model/LogicError.d.ts.map +1 -0
- package/esm/errors/model/LogicError.js +26 -0
- package/esm/errors/model/LogicError.js.map +1 -0
- package/esm/errors/model/OperationInterruptedError.d.ts +20 -0
- package/esm/errors/model/OperationInterruptedError.d.ts.map +1 -0
- package/esm/errors/model/OperationInterruptedError.js +26 -0
- package/esm/errors/model/OperationInterruptedError.js.map +1 -0
- package/esm/errors/model/RuntimeError.d.ts +95 -0
- package/esm/errors/model/RuntimeError.d.ts.map +1 -0
- package/esm/errors/model/RuntimeError.js +138 -0
- package/esm/errors/model/RuntimeError.js.map +1 -0
- package/esm/errors/model/TestCompromisedError.d.ts +31 -0
- package/esm/errors/model/TestCompromisedError.d.ts.map +1 -0
- package/esm/errors/model/TestCompromisedError.js +37 -0
- package/esm/errors/model/TestCompromisedError.js.map +1 -0
- package/esm/errors/model/TimeoutExpiredError.d.ts +20 -0
- package/esm/errors/model/TimeoutExpiredError.d.ts.map +1 -0
- package/esm/errors/model/TimeoutExpiredError.js +26 -0
- package/esm/errors/model/TimeoutExpiredError.js.map +1 -0
- package/esm/errors/model/UnknownError.d.ts +16 -0
- package/esm/errors/model/UnknownError.d.ts.map +1 -0
- package/esm/errors/model/UnknownError.js +22 -0
- package/esm/errors/model/UnknownError.js.map +1 -0
- package/esm/errors/model/index.d.ts +11 -0
- package/esm/errors/model/index.d.ts.map +1 -0
- package/esm/errors/model/index.js +11 -0
- package/esm/errors/model/index.js.map +1 -0
- package/esm/events/ActivityFinished.d.ts +16 -0
- package/esm/events/ActivityFinished.d.ts.map +1 -0
- package/esm/events/ActivityFinished.js +25 -0
- package/esm/events/ActivityFinished.js.map +1 -0
- package/esm/events/ActivityRelatedArtifactArchived.d.ts +16 -0
- package/esm/events/ActivityRelatedArtifactArchived.d.ts.map +1 -0
- package/esm/events/ActivityRelatedArtifactArchived.js +34 -0
- package/esm/events/ActivityRelatedArtifactArchived.js.map +1 -0
- package/esm/events/ActivityRelatedArtifactGenerated.d.ts +13 -0
- package/esm/events/ActivityRelatedArtifactGenerated.d.ts.map +1 -0
- package/esm/events/ActivityRelatedArtifactGenerated.js +19 -0
- package/esm/events/ActivityRelatedArtifactGenerated.js.map +1 -0
- package/esm/events/ActivityStarts.d.ts +15 -0
- package/esm/events/ActivityStarts.d.ts.map +1 -0
- package/esm/events/ActivityStarts.js +22 -0
- package/esm/events/ActivityStarts.js.map +1 -0
- package/esm/events/ArtifactArchived.d.ts +20 -0
- package/esm/events/ArtifactArchived.d.ts.map +1 -0
- package/esm/events/ArtifactArchived.js +43 -0
- package/esm/events/ArtifactArchived.js.map +1 -0
- package/esm/events/ArtifactGenerated.d.ts +15 -0
- package/esm/events/ArtifactGenerated.d.ts.map +1 -0
- package/esm/events/ArtifactGenerated.js +25 -0
- package/esm/events/ArtifactGenerated.js.map +1 -0
- package/esm/events/AsyncOperationAborted.d.ts +14 -0
- package/esm/events/AsyncOperationAborted.d.ts.map +1 -0
- package/esm/events/AsyncOperationAborted.js +22 -0
- package/esm/events/AsyncOperationAborted.js.map +1 -0
- package/esm/events/AsyncOperationAttempted.d.ts +15 -0
- package/esm/events/AsyncOperationAttempted.d.ts.map +1 -0
- package/esm/events/AsyncOperationAttempted.js +25 -0
- package/esm/events/AsyncOperationAttempted.js.map +1 -0
- package/esm/events/AsyncOperationCompleted.d.ts +13 -0
- package/esm/events/AsyncOperationCompleted.d.ts.map +1 -0
- package/esm/events/AsyncOperationCompleted.js +19 -0
- package/esm/events/AsyncOperationCompleted.js.map +1 -0
- package/esm/events/AsyncOperationFailed.d.ts +15 -0
- package/esm/events/AsyncOperationFailed.d.ts.map +1 -0
- package/esm/events/AsyncOperationFailed.js +30 -0
- package/esm/events/AsyncOperationFailed.js.map +1 -0
- package/esm/events/BusinessRuleDetected.d.ts +18 -0
- package/esm/events/BusinessRuleDetected.d.ts.map +1 -0
- package/esm/events/BusinessRuleDetected.js +28 -0
- package/esm/events/BusinessRuleDetected.js.map +1 -0
- package/esm/events/DomainEvent.d.ts +15 -0
- package/esm/events/DomainEvent.d.ts.map +1 -0
- package/esm/events/DomainEvent.js +19 -0
- package/esm/events/DomainEvent.js.map +1 -0
- package/esm/events/EmitsDomainEvents.d.ts +10 -0
- package/esm/events/EmitsDomainEvents.d.ts.map +1 -0
- package/esm/events/EmitsDomainEvents.js +2 -0
- package/esm/events/EmitsDomainEvents.js.map +1 -0
- package/esm/events/FeatureNarrativeDetected.d.ts +14 -0
- package/esm/events/FeatureNarrativeDetected.d.ts.map +1 -0
- package/esm/events/FeatureNarrativeDetected.js +22 -0
- package/esm/events/FeatureNarrativeDetected.js.map +1 -0
- package/esm/events/InteractionFinished.d.ts +14 -0
- package/esm/events/InteractionFinished.d.ts.map +1 -0
- package/esm/events/InteractionFinished.js +17 -0
- package/esm/events/InteractionFinished.js.map +1 -0
- package/esm/events/InteractionStarts.d.ts +11 -0
- package/esm/events/InteractionStarts.d.ts.map +1 -0
- package/esm/events/InteractionStarts.js +14 -0
- package/esm/events/InteractionStarts.js.map +1 -0
- package/esm/events/RetryableSceneDetected.d.ts +24 -0
- package/esm/events/RetryableSceneDetected.d.ts.map +1 -0
- package/esm/events/RetryableSceneDetected.js +30 -0
- package/esm/events/RetryableSceneDetected.js.map +1 -0
- package/esm/events/SceneBackgroundDetected.d.ts +15 -0
- package/esm/events/SceneBackgroundDetected.d.ts.map +1 -0
- package/esm/events/SceneBackgroundDetected.js +24 -0
- package/esm/events/SceneBackgroundDetected.js.map +1 -0
- package/esm/events/SceneDescriptionDetected.d.ts +14 -0
- package/esm/events/SceneDescriptionDetected.d.ts.map +1 -0
- package/esm/events/SceneDescriptionDetected.js +22 -0
- package/esm/events/SceneDescriptionDetected.js.map +1 -0
- package/esm/events/SceneFinished.d.ts +15 -0
- package/esm/events/SceneFinished.d.ts.map +1 -0
- package/esm/events/SceneFinished.js +25 -0
- package/esm/events/SceneFinished.js.map +1 -0
- package/esm/events/SceneFinishes.d.ts +22 -0
- package/esm/events/SceneFinishes.d.ts.map +1 -0
- package/esm/events/SceneFinishes.js +32 -0
- package/esm/events/SceneFinishes.js.map +1 -0
- package/esm/events/SceneParametersDetected.d.ts +15 -0
- package/esm/events/SceneParametersDetected.d.ts.map +1 -0
- package/esm/events/SceneParametersDetected.js +25 -0
- package/esm/events/SceneParametersDetected.js.map +1 -0
- package/esm/events/SceneSequenceDetected.d.ts +14 -0
- package/esm/events/SceneSequenceDetected.d.ts.map +1 -0
- package/esm/events/SceneSequenceDetected.js +22 -0
- package/esm/events/SceneSequenceDetected.js.map +1 -0
- package/esm/events/SceneStarts.d.ts +16 -0
- package/esm/events/SceneStarts.d.ts.map +1 -0
- package/esm/events/SceneStarts.js +24 -0
- package/esm/events/SceneStarts.js.map +1 -0
- package/esm/events/SceneTagged.d.ts +14 -0
- package/esm/events/SceneTagged.d.ts.map +1 -0
- package/esm/events/SceneTagged.js +22 -0
- package/esm/events/SceneTagged.js.map +1 -0
- package/esm/events/SceneTemplateDetected.d.ts +14 -0
- package/esm/events/SceneTemplateDetected.d.ts.map +1 -0
- package/esm/events/SceneTemplateDetected.js +22 -0
- package/esm/events/SceneTemplateDetected.js.map +1 -0
- package/esm/events/TaskFinished.d.ts +9 -0
- package/esm/events/TaskFinished.d.ts.map +1 -0
- package/esm/events/TaskFinished.js +12 -0
- package/esm/events/TaskFinished.js.map +1 -0
- package/esm/events/TaskStarts.d.ts +9 -0
- package/esm/events/TaskStarts.d.ts.map +1 -0
- package/esm/events/TaskStarts.js +12 -0
- package/esm/events/TaskStarts.js.map +1 -0
- package/esm/events/TestRunFinished.d.ts +15 -0
- package/esm/events/TestRunFinished.d.ts.map +1 -0
- package/esm/events/TestRunFinished.js +19 -0
- package/esm/events/TestRunFinished.js.map +1 -0
- package/esm/events/TestRunFinishes.d.ts +13 -0
- package/esm/events/TestRunFinishes.d.ts.map +1 -0
- package/esm/events/TestRunFinishes.js +17 -0
- package/esm/events/TestRunFinishes.js.map +1 -0
- package/esm/events/TestRunStarts.d.ts +12 -0
- package/esm/events/TestRunStarts.d.ts.map +1 -0
- package/esm/events/TestRunStarts.js +16 -0
- package/esm/events/TestRunStarts.js.map +1 -0
- package/esm/events/TestRunnerDetected.d.ts +14 -0
- package/esm/events/TestRunnerDetected.d.ts.map +1 -0
- package/esm/events/TestRunnerDetected.js +22 -0
- package/esm/events/TestRunnerDetected.js.map +1 -0
- package/esm/events/TestSuiteFinished.d.ts +14 -0
- package/esm/events/TestSuiteFinished.d.ts.map +1 -0
- package/esm/events/TestSuiteFinished.js +22 -0
- package/esm/events/TestSuiteFinished.js.map +1 -0
- package/esm/events/TestSuiteStarts.d.ts +13 -0
- package/esm/events/TestSuiteStarts.d.ts.map +1 -0
- package/esm/events/TestSuiteStarts.js +19 -0
- package/esm/events/TestSuiteStarts.js.map +1 -0
- package/esm/events/actor/ActorEntersStage.d.ts +23 -0
- package/esm/events/actor/ActorEntersStage.d.ts.map +1 -0
- package/esm/events/actor/ActorEntersStage.js +31 -0
- package/esm/events/actor/ActorEntersStage.js.map +1 -0
- package/esm/events/actor/ActorSpotlighted.d.ts +25 -0
- package/esm/events/actor/ActorSpotlighted.d.ts.map +1 -0
- package/esm/events/actor/ActorSpotlighted.js +32 -0
- package/esm/events/actor/ActorSpotlighted.js.map +1 -0
- package/esm/events/actor/ActorStageExitAttempted.d.ts +19 -0
- package/esm/events/actor/ActorStageExitAttempted.d.ts.map +1 -0
- package/esm/events/actor/ActorStageExitAttempted.js +25 -0
- package/esm/events/actor/ActorStageExitAttempted.js.map +1 -0
- package/esm/events/actor/ActorStageExitCompleted.d.ts +20 -0
- package/esm/events/actor/ActorStageExitCompleted.d.ts.map +1 -0
- package/esm/events/actor/ActorStageExitCompleted.js +26 -0
- package/esm/events/actor/ActorStageExitCompleted.js.map +1 -0
- package/esm/events/actor/ActorStageExitFailed.d.ts +17 -0
- package/esm/events/actor/ActorStageExitFailed.d.ts.map +1 -0
- package/esm/events/actor/ActorStageExitFailed.js +21 -0
- package/esm/events/actor/ActorStageExitFailed.js.map +1 -0
- package/esm/events/actor/ActorStageExitStarts.d.ts +20 -0
- package/esm/events/actor/ActorStageExitStarts.d.ts.map +1 -0
- package/esm/events/actor/ActorStageExitStarts.js +28 -0
- package/esm/events/actor/ActorStageExitStarts.js.map +1 -0
- package/esm/events/actor/index.d.ts +7 -0
- package/esm/events/actor/index.d.ts.map +1 -0
- package/esm/events/actor/index.js +7 -0
- package/esm/events/actor/index.js.map +1 -0
- package/esm/events/index.d.ts +36 -0
- package/esm/events/index.d.ts.map +1 -0
- package/esm/events/index.js +36 -0
- package/esm/events/index.js.map +1 -0
- package/esm/index.d.ts +8 -0
- package/esm/index.d.ts.map +1 -0
- package/esm/index.js +8 -0
- package/esm/index.js.map +1 -0
- package/esm/instance.d.ts +253 -0
- package/esm/instance.d.ts.map +1 -0
- package/esm/instance.js +270 -0
- package/esm/instance.js.map +1 -0
- package/esm/io/Config.d.ts +18 -0
- package/esm/io/Config.d.ts.map +1 -0
- package/esm/io/Config.js +44 -0
- package/esm/io/Config.js.map +1 -0
- package/esm/io/FileFinder.d.ts +7 -0
- package/esm/io/FileFinder.d.ts.map +1 -0
- package/esm/io/FileFinder.js +19 -0
- package/esm/io/FileFinder.js.map +1 -0
- package/esm/io/FileSystem.d.ts +39 -0
- package/esm/io/FileSystem.d.ts.map +1 -0
- package/esm/io/FileSystem.js +88 -0
- package/esm/io/FileSystem.js.map +1 -0
- package/esm/io/FileSystemLocation.d.ts +11 -0
- package/esm/io/FileSystemLocation.d.ts.map +1 -0
- package/esm/io/FileSystemLocation.js +17 -0
- package/esm/io/FileSystemLocation.js.map +1 -0
- package/esm/io/Path.d.ts +20 -0
- package/esm/io/Path.d.ts.map +1 -0
- package/esm/io/Path.js +96 -0
- package/esm/io/Path.js.map +1 -0
- package/esm/io/RequirementsHierarchy.d.ts +16 -0
- package/esm/io/RequirementsHierarchy.d.ts.map +1 -0
- package/esm/io/RequirementsHierarchy.js +72 -0
- package/esm/io/RequirementsHierarchy.js.map +1 -0
- package/esm/io/Version.d.ts +24 -0
- package/esm/io/Version.d.ts.map +1 -0
- package/esm/io/Version.js +51 -0
- package/esm/io/Version.js.map +1 -0
- package/esm/io/asyncMap.d.ts +8 -0
- package/esm/io/asyncMap.d.ts.map +1 -0
- package/esm/io/asyncMap.js +14 -0
- package/esm/io/asyncMap.js.map +1 -0
- package/esm/io/commaSeparated.d.ts +13 -0
- package/esm/io/commaSeparated.d.ts.map +1 -0
- package/esm/io/commaSeparated.js +26 -0
- package/esm/io/commaSeparated.js.map +1 -0
- package/esm/io/format.d.ts +75 -0
- package/esm/io/format.d.ts.map +1 -0
- package/esm/io/format.js +82 -0
- package/esm/io/format.js.map +1 -0
- package/esm/io/index.d.ts +17 -0
- package/esm/io/index.d.ts.map +1 -0
- package/esm/io/index.js +17 -0
- package/esm/io/index.js.map +1 -0
- package/esm/io/inspected.d.ts +3 -0
- package/esm/io/inspected.d.ts.map +1 -0
- package/esm/io/inspected.js +14 -0
- package/esm/io/inspected.js.map +1 -0
- package/esm/io/inspectedObject.d.ts +3 -0
- package/esm/io/inspectedObject.d.ts.map +1 -0
- package/esm/io/inspectedObject.js +28 -0
- package/esm/io/inspectedObject.js.map +1 -0
- package/esm/io/loader/ClassDescriptionParser.d.ts +8 -0
- package/esm/io/loader/ClassDescriptionParser.d.ts.map +1 -0
- package/esm/io/loader/ClassDescriptionParser.js +45 -0
- package/esm/io/loader/ClassDescriptionParser.js.map +1 -0
- package/esm/io/loader/ClassDescriptor.d.ts +7 -0
- package/esm/io/loader/ClassDescriptor.d.ts.map +1 -0
- package/esm/io/loader/ClassDescriptor.js +2 -0
- package/esm/io/loader/ClassDescriptor.js.map +1 -0
- package/esm/io/loader/ClassLoader.d.ts +12 -0
- package/esm/io/loader/ClassLoader.d.ts.map +1 -0
- package/esm/io/loader/ClassLoader.js +54 -0
- package/esm/io/loader/ClassLoader.js.map +1 -0
- package/esm/io/loader/ModuleLoader.d.ts +48 -0
- package/esm/io/loader/ModuleLoader.d.ts.map +1 -0
- package/esm/io/loader/ModuleLoader.js +95 -0
- package/esm/io/loader/ModuleLoader.js.map +1 -0
- package/esm/io/loader/Version.d.ts +31 -0
- package/esm/io/loader/Version.d.ts.map +1 -0
- package/esm/io/loader/Version.js +50 -0
- package/esm/io/loader/Version.js.map +1 -0
- package/esm/io/loader/index.d.ts +5 -0
- package/esm/io/loader/index.d.ts.map +1 -0
- package/esm/io/loader/index.js +5 -0
- package/esm/io/loader/index.js.map +1 -0
- package/esm/io/proxies.d.ts +8 -0
- package/esm/io/proxies.d.ts.map +1 -0
- package/esm/io/proxies.js +13 -0
- package/esm/io/proxies.js.map +1 -0
- package/esm/io/reflection/ValueInspector.d.ts +56 -0
- package/esm/io/reflection/ValueInspector.d.ts.map +1 -0
- package/esm/io/reflection/ValueInspector.js +145 -0
- package/esm/io/reflection/ValueInspector.js.map +1 -0
- package/esm/io/reflection/has.d.ts +27 -0
- package/esm/io/reflection/has.d.ts.map +1 -0
- package/esm/io/reflection/has.js +31 -0
- package/esm/io/reflection/has.js.map +1 -0
- package/esm/io/reflection/index.d.ts +3 -0
- package/esm/io/reflection/index.d.ts.map +1 -0
- package/esm/io/reflection/index.js +3 -0
- package/esm/io/reflection/index.js.map +1 -0
- package/esm/io/stringified.d.ts +18 -0
- package/esm/io/stringified.d.ts.map +1 -0
- package/esm/io/stringified.js +113 -0
- package/esm/io/stringified.js.map +1 -0
- package/esm/io/trimmed.d.ts +10 -0
- package/esm/io/trimmed.d.ts.map +1 -0
- package/esm/io/trimmed.js +24 -0
- package/esm/io/trimmed.js.map +1 -0
- package/esm/model/ActivityDetails.d.ts +19 -0
- package/esm/model/ActivityDetails.d.ts.map +1 -0
- package/esm/model/ActivityDetails.js +24 -0
- package/esm/model/ActivityDetails.js.map +1 -0
- package/esm/model/Artifact.d.ts +16 -0
- package/esm/model/Artifact.d.ts.map +1 -0
- package/esm/model/Artifact.js +37 -0
- package/esm/model/Artifact.js.map +1 -0
- package/esm/model/BusinessRule.d.ts +11 -0
- package/esm/model/BusinessRule.d.ts.map +1 -0
- package/esm/model/BusinessRule.js +18 -0
- package/esm/model/BusinessRule.js.map +1 -0
- package/esm/model/Category.d.ts +7 -0
- package/esm/model/Category.d.ts.map +1 -0
- package/esm/model/Category.js +13 -0
- package/esm/model/Category.js.map +1 -0
- package/esm/model/CorrelationId.d.ts +8 -0
- package/esm/model/CorrelationId.d.ts.map +1 -0
- package/esm/model/CorrelationId.js +20 -0
- package/esm/model/CorrelationId.js.map +1 -0
- package/esm/model/CorrelationIdFactory.d.ts +8 -0
- package/esm/model/CorrelationIdFactory.d.ts.map +1 -0
- package/esm/model/CorrelationIdFactory.js +2 -0
- package/esm/model/CorrelationIdFactory.js.map +1 -0
- package/esm/model/Description.d.ts +7 -0
- package/esm/model/Description.d.ts.map +1 -0
- package/esm/model/Description.js +13 -0
- package/esm/model/Description.js.map +1 -0
- package/esm/model/Name.d.ts +7 -0
- package/esm/model/Name.d.ts.map +1 -0
- package/esm/model/Name.js +13 -0
- package/esm/model/Name.js.map +1 -0
- package/esm/model/ScenarioDetails.d.ts +13 -0
- package/esm/model/ScenarioDetails.d.ts.map +1 -0
- package/esm/model/ScenarioDetails.js +22 -0
- package/esm/model/ScenarioDetails.js.map +1 -0
- package/esm/model/ScenarioParameters.d.ts +16 -0
- package/esm/model/ScenarioParameters.d.ts.map +1 -0
- package/esm/model/ScenarioParameters.js +21 -0
- package/esm/model/ScenarioParameters.js.map +1 -0
- package/esm/model/TestSuiteDetails.d.ts +13 -0
- package/esm/model/TestSuiteDetails.d.ts.map +1 -0
- package/esm/model/TestSuiteDetails.js +19 -0
- package/esm/model/TestSuiteDetails.js.map +1 -0
- package/esm/model/artifacts/HTTPRequestResponse.d.ts +27 -0
- package/esm/model/artifacts/HTTPRequestResponse.d.ts.map +1 -0
- package/esm/model/artifacts/HTTPRequestResponse.js +10 -0
- package/esm/model/artifacts/HTTPRequestResponse.js.map +1 -0
- package/esm/model/artifacts/JSONData.d.ts +7 -0
- package/esm/model/artifacts/JSONData.d.ts.map +1 -0
- package/esm/model/artifacts/JSONData.js +10 -0
- package/esm/model/artifacts/JSONData.js.map +1 -0
- package/esm/model/artifacts/LogEntry.d.ts +7 -0
- package/esm/model/artifacts/LogEntry.d.ts.map +1 -0
- package/esm/model/artifacts/LogEntry.js +7 -0
- package/esm/model/artifacts/LogEntry.js.map +1 -0
- package/esm/model/artifacts/Photo.d.ts +14 -0
- package/esm/model/artifacts/Photo.d.ts.map +1 -0
- package/esm/model/artifacts/Photo.js +23 -0
- package/esm/model/artifacts/Photo.js.map +1 -0
- package/esm/model/artifacts/TestReport.d.ts +7 -0
- package/esm/model/artifacts/TestReport.d.ts.map +1 -0
- package/esm/model/artifacts/TestReport.js +10 -0
- package/esm/model/artifacts/TestReport.js.map +1 -0
- package/esm/model/artifacts/TextData.d.ts +8 -0
- package/esm/model/artifacts/TextData.d.ts.map +1 -0
- package/esm/model/artifacts/TextData.js +7 -0
- package/esm/model/artifacts/TextData.js.map +1 -0
- package/esm/model/artifacts/index.d.ts +7 -0
- package/esm/model/artifacts/index.d.ts.map +1 -0
- package/esm/model/artifacts/index.js +7 -0
- package/esm/model/artifacts/index.js.map +1 -0
- package/esm/model/index.d.ts +15 -0
- package/esm/model/index.d.ts.map +1 -0
- package/esm/model/index.js +16 -0
- package/esm/model/index.js.map +1 -0
- package/esm/model/outcomes.d.ts +97 -0
- package/esm/model/outcomes.d.ts.map +1 -0
- package/esm/model/outcomes.js +162 -0
- package/esm/model/outcomes.js.map +1 -0
- package/esm/model/tags/ArbitraryTag.d.ts +10 -0
- package/esm/model/tags/ArbitraryTag.d.ts.map +1 -0
- package/esm/model/tags/ArbitraryTag.js +12 -0
- package/esm/model/tags/ArbitraryTag.js.map +1 -0
- package/esm/model/tags/BrowserTag.d.ts +19 -0
- package/esm/model/tags/BrowserTag.d.ts.map +1 -0
- package/esm/model/tags/BrowserTag.js +28 -0
- package/esm/model/tags/BrowserTag.js.map +1 -0
- package/esm/model/tags/CapabilityTag.d.ts +9 -0
- package/esm/model/tags/CapabilityTag.d.ts.map +1 -0
- package/esm/model/tags/CapabilityTag.js +11 -0
- package/esm/model/tags/CapabilityTag.js.map +1 -0
- package/esm/model/tags/ExecutionRetriedTag.d.ts +14 -0
- package/esm/model/tags/ExecutionRetriedTag.d.ts.map +1 -0
- package/esm/model/tags/ExecutionRetriedTag.js +26 -0
- package/esm/model/tags/ExecutionRetriedTag.js.map +1 -0
- package/esm/model/tags/FeatureTag.d.ts +9 -0
- package/esm/model/tags/FeatureTag.d.ts.map +1 -0
- package/esm/model/tags/FeatureTag.js +11 -0
- package/esm/model/tags/FeatureTag.js.map +1 -0
- package/esm/model/tags/IssueTag.d.ts +9 -0
- package/esm/model/tags/IssueTag.d.ts.map +1 -0
- package/esm/model/tags/IssueTag.js +11 -0
- package/esm/model/tags/IssueTag.js.map +1 -0
- package/esm/model/tags/ManualTag.d.ts +9 -0
- package/esm/model/tags/ManualTag.d.ts.map +1 -0
- package/esm/model/tags/ManualTag.js +11 -0
- package/esm/model/tags/ManualTag.js.map +1 -0
- package/esm/model/tags/PlatformTag.d.ts +19 -0
- package/esm/model/tags/PlatformTag.d.ts.map +1 -0
- package/esm/model/tags/PlatformTag.js +28 -0
- package/esm/model/tags/PlatformTag.js.map +1 -0
- package/esm/model/tags/ProjectTag.d.ts +11 -0
- package/esm/model/tags/ProjectTag.d.ts.map +1 -0
- package/esm/model/tags/ProjectTag.js +13 -0
- package/esm/model/tags/ProjectTag.js.map +1 -0
- package/esm/model/tags/Tag.d.ts +15 -0
- package/esm/model/tags/Tag.d.ts.map +1 -0
- package/esm/model/tags/Tag.js +29 -0
- package/esm/model/tags/Tag.js.map +1 -0
- package/esm/model/tags/Tags.d.ts +14 -0
- package/esm/model/tags/Tags.d.ts.map +1 -0
- package/esm/model/tags/Tags.js +67 -0
- package/esm/model/tags/Tags.js.map +1 -0
- package/esm/model/tags/ThemeTag.d.ts +9 -0
- package/esm/model/tags/ThemeTag.d.ts.map +1 -0
- package/esm/model/tags/ThemeTag.js +11 -0
- package/esm/model/tags/ThemeTag.js.map +1 -0
- package/esm/model/tags/index.d.ts +13 -0
- package/esm/model/tags/index.d.ts.map +1 -0
- package/esm/model/tags/index.js +13 -0
- package/esm/model/tags/index.js.map +1 -0
- package/esm/screenplay/Activity.d.ts +40 -0
- package/esm/screenplay/Activity.d.ts.map +1 -0
- package/esm/screenplay/Activity.js +46 -0
- package/esm/screenplay/Activity.js.map +1 -0
- package/esm/screenplay/Actor.d.ts +162 -0
- package/esm/screenplay/Actor.d.ts.map +1 -0
- package/esm/screenplay/Actor.js +221 -0
- package/esm/screenplay/Actor.js.map +1 -0
- package/esm/screenplay/Answerable.d.ts +9 -0
- package/esm/screenplay/Answerable.d.ts.map +1 -0
- package/esm/screenplay/Answerable.js +2 -0
- package/esm/screenplay/Answerable.js.map +1 -0
- package/esm/screenplay/Answered.d.ts +13 -0
- package/esm/screenplay/Answered.d.ts.map +1 -0
- package/esm/screenplay/Answered.js +2 -0
- package/esm/screenplay/Answered.js.map +1 -0
- package/esm/screenplay/Interaction.d.ts +91 -0
- package/esm/screenplay/Interaction.d.ts.map +1 -0
- package/esm/screenplay/Interaction.js +95 -0
- package/esm/screenplay/Interaction.js.map +1 -0
- package/esm/screenplay/Optional.d.ts +26 -0
- package/esm/screenplay/Optional.d.ts.map +1 -0
- package/esm/screenplay/Optional.js +2 -0
- package/esm/screenplay/Optional.js.map +1 -0
- package/esm/screenplay/Question.d.ts +377 -0
- package/esm/screenplay/Question.d.ts.map +1 -0
- package/esm/screenplay/Question.js +699 -0
- package/esm/screenplay/Question.js.map +1 -0
- package/esm/screenplay/RecursivelyAnswered.d.ts +40 -0
- package/esm/screenplay/RecursivelyAnswered.d.ts.map +1 -0
- package/esm/screenplay/RecursivelyAnswered.js +2 -0
- package/esm/screenplay/RecursivelyAnswered.js.map +1 -0
- package/esm/screenplay/SerialisedActor.d.ts +9 -0
- package/esm/screenplay/SerialisedActor.d.ts.map +1 -0
- package/esm/screenplay/SerialisedActor.js +2 -0
- package/esm/screenplay/SerialisedActor.js.map +1 -0
- package/esm/screenplay/Task.d.ts +196 -0
- package/esm/screenplay/Task.d.ts.map +1 -0
- package/esm/screenplay/Task.js +212 -0
- package/esm/screenplay/Task.js.map +1 -0
- package/esm/screenplay/WithAnswerableProperties.d.ts +33 -0
- package/esm/screenplay/WithAnswerableProperties.d.ts.map +1 -0
- package/esm/screenplay/WithAnswerableProperties.js +2 -0
- package/esm/screenplay/WithAnswerableProperties.js.map +1 -0
- package/esm/screenplay/abilities/Ability.d.ts +463 -0
- package/esm/screenplay/abilities/Ability.d.ts.map +1 -0
- package/esm/screenplay/abilities/Ability.js +517 -0
- package/esm/screenplay/abilities/Ability.js.map +1 -0
- package/esm/screenplay/abilities/AbilityType.d.ts +49 -0
- package/esm/screenplay/abilities/AbilityType.d.ts.map +1 -0
- package/esm/screenplay/abilities/AbilityType.js +2 -0
- package/esm/screenplay/abilities/AbilityType.js.map +1 -0
- package/esm/screenplay/abilities/AnswerQuestions.d.ts +20 -0
- package/esm/screenplay/abilities/AnswerQuestions.d.ts.map +1 -0
- package/esm/screenplay/abilities/AnswerQuestions.js +32 -0
- package/esm/screenplay/abilities/AnswerQuestions.js.map +1 -0
- package/esm/screenplay/abilities/CanHaveAbilities.d.ts +19 -0
- package/esm/screenplay/abilities/CanHaveAbilities.d.ts.map +1 -0
- package/esm/screenplay/abilities/CanHaveAbilities.js +2 -0
- package/esm/screenplay/abilities/CanHaveAbilities.js.map +1 -0
- package/esm/screenplay/abilities/Discardable.d.ts +26 -0
- package/esm/screenplay/abilities/Discardable.d.ts.map +1 -0
- package/esm/screenplay/abilities/Discardable.js +2 -0
- package/esm/screenplay/abilities/Discardable.js.map +1 -0
- package/esm/screenplay/abilities/Initialisable.d.ts +33 -0
- package/esm/screenplay/abilities/Initialisable.d.ts.map +1 -0
- package/esm/screenplay/abilities/Initialisable.js +2 -0
- package/esm/screenplay/abilities/Initialisable.js.map +1 -0
- package/esm/screenplay/abilities/PerformActivities.d.ts +30 -0
- package/esm/screenplay/abilities/PerformActivities.d.ts.map +1 -0
- package/esm/screenplay/abilities/PerformActivities.js +75 -0
- package/esm/screenplay/abilities/PerformActivities.js.map +1 -0
- package/esm/screenplay/abilities/SerialisedAbility.d.ts +10 -0
- package/esm/screenplay/abilities/SerialisedAbility.d.ts.map +1 -0
- package/esm/screenplay/abilities/SerialisedAbility.js +2 -0
- package/esm/screenplay/abilities/SerialisedAbility.js.map +1 -0
- package/esm/screenplay/abilities/UsesAbilities.d.ts +23 -0
- package/esm/screenplay/abilities/UsesAbilities.d.ts.map +1 -0
- package/esm/screenplay/abilities/UsesAbilities.js +2 -0
- package/esm/screenplay/abilities/UsesAbilities.js.map +1 -0
- package/esm/screenplay/abilities/index.d.ts +10 -0
- package/esm/screenplay/abilities/index.d.ts.map +1 -0
- package/esm/screenplay/abilities/index.js +10 -0
- package/esm/screenplay/abilities/index.js.map +1 -0
- package/esm/screenplay/activities/PerformsActivities.d.ts +20 -0
- package/esm/screenplay/activities/PerformsActivities.d.ts.map +1 -0
- package/esm/screenplay/activities/PerformsActivities.js +2 -0
- package/esm/screenplay/activities/PerformsActivities.js.map +1 -0
- package/esm/screenplay/activities/index.d.ts +2 -0
- package/esm/screenplay/activities/index.d.ts.map +1 -0
- package/esm/screenplay/activities/index.js +2 -0
- package/esm/screenplay/activities/index.js.map +1 -0
- package/esm/screenplay/artifacts/CollectsArtifacts.d.ts +77 -0
- package/esm/screenplay/artifacts/CollectsArtifacts.d.ts.map +1 -0
- package/esm/screenplay/artifacts/CollectsArtifacts.js +2 -0
- package/esm/screenplay/artifacts/CollectsArtifacts.js.map +1 -0
- package/esm/screenplay/artifacts/index.d.ts +2 -0
- package/esm/screenplay/artifacts/index.d.ts.map +1 -0
- package/esm/screenplay/artifacts/index.js +2 -0
- package/esm/screenplay/artifacts/index.js.map +1 -0
- package/esm/screenplay/debugging/Debug.d.ts +108 -0
- package/esm/screenplay/debugging/Debug.d.ts.map +1 -0
- package/esm/screenplay/debugging/Debug.js +129 -0
- package/esm/screenplay/debugging/Debug.js.map +1 -0
- package/esm/screenplay/debugging/DebuggingResult.d.ts +11 -0
- package/esm/screenplay/debugging/DebuggingResult.d.ts.map +1 -0
- package/esm/screenplay/debugging/DebuggingResult.js +2 -0
- package/esm/screenplay/debugging/DebuggingResult.js.map +1 -0
- package/esm/screenplay/debugging/Log.d.ts +49 -0
- package/esm/screenplay/debugging/Log.d.ts.map +1 -0
- package/esm/screenplay/debugging/Log.js +58 -0
- package/esm/screenplay/debugging/Log.js.map +1 -0
- package/esm/screenplay/debugging/index.d.ts +4 -0
- package/esm/screenplay/debugging/index.d.ts.map +1 -0
- package/esm/screenplay/debugging/index.js +4 -0
- package/esm/screenplay/debugging/index.js.map +1 -0
- package/esm/screenplay/index.d.ts +19 -0
- package/esm/screenplay/index.d.ts.map +1 -0
- package/esm/screenplay/index.js +19 -0
- package/esm/screenplay/index.js.map +1 -0
- package/esm/screenplay/notes/ChainableSetter.d.ts +9 -0
- package/esm/screenplay/notes/ChainableSetter.d.ts.map +1 -0
- package/esm/screenplay/notes/ChainableSetter.js +2 -0
- package/esm/screenplay/notes/ChainableSetter.js.map +1 -0
- package/esm/screenplay/notes/Notepad.d.ts +164 -0
- package/esm/screenplay/notes/Notepad.d.ts.map +1 -0
- package/esm/screenplay/notes/Notepad.js +197 -0
- package/esm/screenplay/notes/Notepad.js.map +1 -0
- package/esm/screenplay/notes/NotepadAdapter.d.ts +245 -0
- package/esm/screenplay/notes/NotepadAdapter.d.ts.map +1 -0
- package/esm/screenplay/notes/NotepadAdapter.js +335 -0
- package/esm/screenplay/notes/NotepadAdapter.js.map +1 -0
- package/esm/screenplay/notes/TakeNotes.d.ts +250 -0
- package/esm/screenplay/notes/TakeNotes.d.ts.map +1 -0
- package/esm/screenplay/notes/TakeNotes.js +264 -0
- package/esm/screenplay/notes/TakeNotes.js.map +1 -0
- package/esm/screenplay/notes/index.d.ts +6 -0
- package/esm/screenplay/notes/index.d.ts.map +1 -0
- package/esm/screenplay/notes/index.js +6 -0
- package/esm/screenplay/notes/index.js.map +1 -0
- package/esm/screenplay/notes/notes.d.ts +117 -0
- package/esm/screenplay/notes/notes.d.ts.map +1 -0
- package/esm/screenplay/notes/notes.js +119 -0
- package/esm/screenplay/notes/notes.js.map +1 -0
- package/esm/screenplay/questions/AnswersQuestions.d.ts +19 -0
- package/esm/screenplay/questions/AnswersQuestions.d.ts.map +1 -0
- package/esm/screenplay/questions/AnswersQuestions.js +2 -0
- package/esm/screenplay/questions/AnswersQuestions.js.map +1 -0
- package/esm/screenplay/questions/ChainableMetaQuestion.d.ts +26 -0
- package/esm/screenplay/questions/ChainableMetaQuestion.d.ts.map +1 -0
- package/esm/screenplay/questions/ChainableMetaQuestion.js +2 -0
- package/esm/screenplay/questions/ChainableMetaQuestion.js.map +1 -0
- package/esm/screenplay/questions/Check.d.ts +65 -0
- package/esm/screenplay/questions/Check.d.ts.map +1 -0
- package/esm/screenplay/questions/Check.js +77 -0
- package/esm/screenplay/questions/Check.js.map +1 -0
- package/esm/screenplay/questions/Describable.d.ts +27 -0
- package/esm/screenplay/questions/Describable.d.ts.map +1 -0
- package/esm/screenplay/questions/Describable.js +36 -0
- package/esm/screenplay/questions/Describable.js.map +1 -0
- package/esm/screenplay/questions/DescriptionFormattingOptions.d.ts +14 -0
- package/esm/screenplay/questions/DescriptionFormattingOptions.d.ts.map +1 -0
- package/esm/screenplay/questions/DescriptionFormattingOptions.js +2 -0
- package/esm/screenplay/questions/DescriptionFormattingOptions.js.map +1 -0
- package/esm/screenplay/questions/Expectation.d.ts +186 -0
- package/esm/screenplay/questions/Expectation.d.ts.map +1 -0
- package/esm/screenplay/questions/Expectation.js +227 -0
- package/esm/screenplay/questions/Expectation.js.map +1 -0
- package/esm/screenplay/questions/List.d.ts +84 -0
- package/esm/screenplay/questions/List.d.ts.map +1 -0
- package/esm/screenplay/questions/List.js +267 -0
- package/esm/screenplay/questions/List.js.map +1 -0
- package/esm/screenplay/questions/Masked.d.ts +37 -0
- package/esm/screenplay/questions/Masked.d.ts.map +1 -0
- package/esm/screenplay/questions/Masked.js +38 -0
- package/esm/screenplay/questions/Masked.js.map +1 -0
- package/esm/screenplay/questions/MetaQuestion.d.ts +35 -0
- package/esm/screenplay/questions/MetaQuestion.d.ts.map +1 -0
- package/esm/screenplay/questions/MetaQuestion.js +2 -0
- package/esm/screenplay/questions/MetaQuestion.js.map +1 -0
- package/esm/screenplay/questions/Numeric.d.ts +534 -0
- package/esm/screenplay/questions/Numeric.d.ts.map +1 -0
- package/esm/screenplay/questions/Numeric.js +642 -0
- package/esm/screenplay/questions/Numeric.js.map +1 -0
- package/esm/screenplay/questions/Unanswered.d.ts +22 -0
- package/esm/screenplay/questions/Unanswered.d.ts.map +1 -0
- package/esm/screenplay/questions/Unanswered.js +31 -0
- package/esm/screenplay/questions/Unanswered.js.map +1 -0
- package/esm/screenplay/questions/expectations/ExpectationDetails.d.ts +25 -0
- package/esm/screenplay/questions/expectations/ExpectationDetails.d.ts.map +1 -0
- package/esm/screenplay/questions/expectations/ExpectationDetails.js +53 -0
- package/esm/screenplay/questions/expectations/ExpectationDetails.js.map +1 -0
- package/esm/screenplay/questions/expectations/ExpectationMet.d.ts +9 -0
- package/esm/screenplay/questions/expectations/ExpectationMet.d.ts.map +1 -0
- package/esm/screenplay/questions/expectations/ExpectationMet.js +9 -0
- package/esm/screenplay/questions/expectations/ExpectationMet.js.map +1 -0
- package/esm/screenplay/questions/expectations/ExpectationNotMet.d.ts +9 -0
- package/esm/screenplay/questions/expectations/ExpectationNotMet.d.ts.map +1 -0
- package/esm/screenplay/questions/expectations/ExpectationNotMet.js +9 -0
- package/esm/screenplay/questions/expectations/ExpectationNotMet.js.map +1 -0
- package/esm/screenplay/questions/expectations/ExpectationOutcome.d.ts +16 -0
- package/esm/screenplay/questions/expectations/ExpectationOutcome.d.ts.map +1 -0
- package/esm/screenplay/questions/expectations/ExpectationOutcome.js +21 -0
- package/esm/screenplay/questions/expectations/ExpectationOutcome.js.map +1 -0
- package/esm/screenplay/questions/expectations/index.d.ts +5 -0
- package/esm/screenplay/questions/expectations/index.d.ts.map +1 -0
- package/esm/screenplay/questions/expectations/index.js +5 -0
- package/esm/screenplay/questions/expectations/index.js.map +1 -0
- package/esm/screenplay/questions/index.d.ts +14 -0
- package/esm/screenplay/questions/index.d.ts.map +1 -0
- package/esm/screenplay/questions/index.js +14 -0
- package/esm/screenplay/questions/index.js.map +1 -0
- package/esm/screenplay/questions/tag-functions.d.ts +230 -0
- package/esm/screenplay/questions/tag-functions.d.ts.map +1 -0
- package/esm/screenplay/questions/tag-functions.js +110 -0
- package/esm/screenplay/questions/tag-functions.js.map +1 -0
- package/esm/screenplay/time/TellsTime.d.ts +19 -0
- package/esm/screenplay/time/TellsTime.d.ts.map +1 -0
- package/esm/screenplay/time/TellsTime.js +2 -0
- package/esm/screenplay/time/TellsTime.js.map +1 -0
- package/esm/screenplay/time/abilities/ScheduleWork.d.ts +26 -0
- package/esm/screenplay/time/abilities/ScheduleWork.d.ts.map +1 -0
- package/esm/screenplay/time/abilities/ScheduleWork.js +41 -0
- package/esm/screenplay/time/abilities/ScheduleWork.js.map +1 -0
- package/esm/screenplay/time/abilities/index.d.ts +2 -0
- package/esm/screenplay/time/abilities/index.d.ts.map +1 -0
- package/esm/screenplay/time/abilities/index.js +2 -0
- package/esm/screenplay/time/abilities/index.js.map +1 -0
- package/esm/screenplay/time/activities/Wait.d.ts +214 -0
- package/esm/screenplay/time/activities/Wait.d.ts.map +1 -0
- package/esm/screenplay/time/activities/Wait.js +273 -0
- package/esm/screenplay/time/activities/Wait.js.map +1 -0
- package/esm/screenplay/time/activities/index.d.ts +2 -0
- package/esm/screenplay/time/activities/index.d.ts.map +1 -0
- package/esm/screenplay/time/activities/index.js +2 -0
- package/esm/screenplay/time/activities/index.js.map +1 -0
- package/esm/screenplay/time/index.d.ts +5 -0
- package/esm/screenplay/time/index.d.ts.map +1 -0
- package/esm/screenplay/time/index.js +5 -0
- package/esm/screenplay/time/index.js.map +1 -0
- package/esm/screenplay/time/models/Clock.d.ts +50 -0
- package/esm/screenplay/time/models/Clock.d.ts.map +1 -0
- package/esm/screenplay/time/models/Clock.js +73 -0
- package/esm/screenplay/time/models/Clock.js.map +1 -0
- package/esm/screenplay/time/models/DelayedCallback.d.ts +11 -0
- package/esm/screenplay/time/models/DelayedCallback.d.ts.map +1 -0
- package/esm/screenplay/time/models/DelayedCallback.js +2 -0
- package/esm/screenplay/time/models/DelayedCallback.js.map +1 -0
- package/esm/screenplay/time/models/Duration.d.ts +34 -0
- package/esm/screenplay/time/models/Duration.d.ts.map +1 -0
- package/esm/screenplay/time/models/Duration.js +66 -0
- package/esm/screenplay/time/models/Duration.js.map +1 -0
- package/esm/screenplay/time/models/RepeatUntilLimits.d.ts +12 -0
- package/esm/screenplay/time/models/RepeatUntilLimits.d.ts.map +1 -0
- package/esm/screenplay/time/models/RepeatUntilLimits.js +2 -0
- package/esm/screenplay/time/models/RepeatUntilLimits.js.map +1 -0
- package/esm/screenplay/time/models/Scheduler.d.ts +42 -0
- package/esm/screenplay/time/models/Scheduler.d.ts.map +1 -0
- package/esm/screenplay/time/models/Scheduler.js +150 -0
- package/esm/screenplay/time/models/Scheduler.js.map +1 -0
- package/esm/screenplay/time/models/Timestamp.d.ts +36 -0
- package/esm/screenplay/time/models/Timestamp.d.ts.map +1 -0
- package/esm/screenplay/time/models/Timestamp.js +113 -0
- package/esm/screenplay/time/models/Timestamp.js.map +1 -0
- package/esm/screenplay/time/models/index.d.ts +7 -0
- package/esm/screenplay/time/models/index.d.ts.map +1 -0
- package/esm/screenplay/time/models/index.js +7 -0
- package/esm/screenplay/time/models/index.js.map +1 -0
- package/esm/stage/Cast.d.ts +172 -0
- package/esm/stage/Cast.d.ts.map +1 -0
- package/esm/stage/Cast.js +168 -0
- package/esm/stage/Cast.js.map +1 -0
- package/esm/stage/Extras.d.ts +9 -0
- package/esm/stage/Extras.d.ts.map +1 -0
- package/esm/stage/Extras.js +9 -0
- package/esm/stage/Extras.js.map +1 -0
- package/esm/stage/ListensToDomainEvents.d.ts +23 -0
- package/esm/stage/ListensToDomainEvents.d.ts.map +1 -0
- package/esm/stage/ListensToDomainEvents.js +2 -0
- package/esm/stage/ListensToDomainEvents.js.map +1 -0
- package/esm/stage/Stage.d.ts +169 -0
- package/esm/stage/Stage.d.ts.map +1 -0
- package/esm/stage/Stage.js +310 -0
- package/esm/stage/Stage.js.map +1 -0
- package/esm/stage/StageCrewMember.d.ts +78 -0
- package/esm/stage/StageCrewMember.d.ts.map +1 -0
- package/esm/stage/StageCrewMember.js +2 -0
- package/esm/stage/StageCrewMember.js.map +1 -0
- package/esm/stage/StageCrewMemberBuilder.d.ts +23 -0
- package/esm/stage/StageCrewMemberBuilder.d.ts.map +1 -0
- package/esm/stage/StageCrewMemberBuilder.js +2 -0
- package/esm/stage/StageCrewMemberBuilder.js.map +1 -0
- package/esm/stage/StageCrewMemberBuilderDependencies.d.ts +17 -0
- package/esm/stage/StageCrewMemberBuilderDependencies.d.ts.map +1 -0
- package/esm/stage/StageCrewMemberBuilderDependencies.js +2 -0
- package/esm/stage/StageCrewMemberBuilderDependencies.js.map +1 -0
- package/esm/stage/StageManager.d.ts +23 -0
- package/esm/stage/StageManager.d.ts.map +1 -0
- package/esm/stage/StageManager.js +146 -0
- package/esm/stage/StageManager.js.map +1 -0
- package/esm/stage/crew/artifact-archiver/ArtifactArchiver.d.ts +126 -0
- package/esm/stage/crew/artifact-archiver/ArtifactArchiver.d.ts.map +1 -0
- package/esm/stage/crew/artifact-archiver/ArtifactArchiver.js +186 -0
- package/esm/stage/crew/artifact-archiver/ArtifactArchiver.js.map +1 -0
- package/esm/stage/crew/artifact-archiver/Hash.d.ts +12 -0
- package/esm/stage/crew/artifact-archiver/Hash.d.ts.map +1 -0
- package/esm/stage/crew/artifact-archiver/Hash.js +23 -0
- package/esm/stage/crew/artifact-archiver/Hash.js.map +1 -0
- package/esm/stage/crew/artifact-archiver/index.d.ts +2 -0
- package/esm/stage/crew/artifact-archiver/index.d.ts.map +1 -0
- package/esm/stage/crew/artifact-archiver/index.js +2 -0
- package/esm/stage/crew/artifact-archiver/index.js.map +1 -0
- package/esm/stage/crew/index.d.ts +3 -0
- package/esm/stage/crew/index.d.ts.map +1 -0
- package/esm/stage/crew/index.js +3 -0
- package/esm/stage/crew/index.js.map +1 -0
- package/esm/stage/crew/stream-reporter/StreamReporter.d.ts +137 -0
- package/esm/stage/crew/stream-reporter/StreamReporter.d.ts.map +1 -0
- package/esm/stage/crew/stream-reporter/StreamReporter.js +144 -0
- package/esm/stage/crew/stream-reporter/StreamReporter.js.map +1 -0
- package/esm/stage/crew/stream-reporter/index.d.ts +2 -0
- package/esm/stage/crew/stream-reporter/index.d.ts.map +1 -0
- package/esm/stage/crew/stream-reporter/index.js +2 -0
- package/esm/stage/crew/stream-reporter/index.js.map +1 -0
- package/esm/stage/index.d.ts +11 -0
- package/esm/stage/index.d.ts.map +1 -0
- package/esm/stage/index.js +11 -0
- package/esm/stage/index.js.map +1 -0
- package/esm/stage/queues/DomainEventQueue.d.ts +25 -0
- package/esm/stage/queues/DomainEventQueue.d.ts.map +1 -0
- package/esm/stage/queues/DomainEventQueue.js +30 -0
- package/esm/stage/queues/DomainEventQueue.js.map +1 -0
- package/esm/stage/queues/DomainEventQueues.d.ts +22 -0
- package/esm/stage/queues/DomainEventQueues.d.ts.map +1 -0
- package/esm/stage/queues/DomainEventQueues.js +70 -0
- package/esm/stage/queues/DomainEventQueues.js.map +1 -0
- package/esm/stage/queues/index.d.ts +3 -0
- package/esm/stage/queues/index.d.ts.map +1 -0
- package/esm/stage/queues/index.js +3 -0
- package/esm/stage/queues/index.js.map +1 -0
- package/lib/Serenity.d.ts +8 -8
- package/lib/Serenity.d.ts.map +1 -1
- package/lib/Serenity.js +21 -21
- 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/adapter/index.d.ts +2 -2
- package/lib/adapter/index.d.ts.map +1 -1
- package/lib/adapter/index.js +2 -2
- package/lib/adapter/index.js.map +1 -1
- package/lib/config/SerenityConfig.d.ts +5 -5
- package/lib/config/SerenityConfig.d.ts.map +1 -1
- package/lib/config/index.d.ts +2 -2
- package/lib/config/index.d.ts.map +1 -1
- package/lib/config/index.js +2 -2
- package/lib/config/index.js.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 +14 -14
- 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/ErrorStackParser.d.ts +2 -2
- package/lib/errors/ErrorStackParser.d.ts.map +1 -1
- package/lib/errors/ErrorStackParser.js +5 -35
- package/lib/errors/ErrorStackParser.js.map +1 -1
- package/lib/errors/RaiseErrors.d.ts +4 -4
- package/lib/errors/RaiseErrors.d.ts.map +1 -1
- package/lib/errors/RaiseErrors.js +2 -2
- package/lib/errors/RaiseErrors.js.map +1 -1
- package/lib/errors/diff/AnsiDiffFormatter.d.ts +1 -1
- package/lib/errors/diff/AnsiDiffFormatter.d.ts.map +1 -1
- package/lib/errors/diff/AnsiDiffFormatter.js +6 -2
- 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/diff/index.d.ts +3 -3
- package/lib/errors/diff/index.d.ts.map +1 -1
- package/lib/errors/diff/index.js +3 -3
- package/lib/errors/diff/index.js.map +1 -1
- package/lib/errors/index.d.ts +7 -7
- package/lib/errors/index.d.ts.map +1 -1
- package/lib/errors/index.js +12 -12
- package/lib/errors/index.js.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/AssertionError.js +4 -4
- package/lib/errors/model/AssertionError.js.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/ConfigurationError.js +4 -4
- package/lib/errors/model/ConfigurationError.js.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/ImplementationPendingError.js +4 -4
- package/lib/errors/model/ImplementationPendingError.js.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/ListItemNotFoundError.js +4 -4
- package/lib/errors/model/ListItemNotFoundError.js.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/LogicError.js +4 -4
- package/lib/errors/model/LogicError.js.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/OperationInterruptedError.js +4 -4
- package/lib/errors/model/OperationInterruptedError.js.map +1 -1
- package/lib/errors/model/RuntimeError.d.ts +16 -1
- package/lib/errors/model/RuntimeError.d.ts.map +1 -1
- package/lib/errors/model/RuntimeError.js +40 -1
- package/lib/errors/model/RuntimeError.js.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/TestCompromisedError.js +4 -4
- package/lib/errors/model/TestCompromisedError.js.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/TimeoutExpiredError.js +4 -4
- package/lib/errors/model/TimeoutExpiredError.js.map +1 -1
- package/lib/errors/model/UnknownError.d.ts +1 -1
- package/lib/errors/model/UnknownError.d.ts.map +1 -1
- package/lib/errors/model/UnknownError.js +4 -4
- package/lib/errors/model/UnknownError.js.map +1 -1
- package/lib/errors/model/index.d.ts +10 -10
- package/lib/errors/model/index.d.ts.map +1 -1
- package/lib/errors/model/index.js +10 -10
- package/lib/errors/model/index.js.map +1 -1
- package/lib/events/ActivityFinished.d.ts +3 -3
- package/lib/events/ActivityFinished.d.ts.map +1 -1
- package/lib/events/ActivityFinished.js +2 -2
- package/lib/events/ActivityFinished.js.map +1 -1
- package/lib/events/ActivityRelatedArtifactArchived.d.ts +5 -5
- package/lib/events/ActivityRelatedArtifactArchived.d.ts.map +1 -1
- package/lib/events/ActivityRelatedArtifactArchived.js +6 -6
- package/lib/events/ActivityRelatedArtifactArchived.js.map +1 -1
- package/lib/events/ActivityRelatedArtifactGenerated.d.ts +3 -3
- package/lib/events/ActivityRelatedArtifactGenerated.d.ts.map +1 -1
- package/lib/events/ActivityRelatedArtifactGenerated.js +5 -5
- package/lib/events/ActivityRelatedArtifactGenerated.js.map +1 -1
- package/lib/events/ActivityStarts.d.ts +3 -3
- package/lib/events/ActivityStarts.d.ts.map +1 -1
- package/lib/events/ActivityStarts.js +2 -2
- package/lib/events/ActivityStarts.js.map +1 -1
- package/lib/events/ArtifactArchived.d.ts +5 -5
- package/lib/events/ArtifactArchived.d.ts.map +1 -1
- package/lib/events/ArtifactArchived.js +6 -6
- package/lib/events/ArtifactArchived.js.map +1 -1
- package/lib/events/ArtifactGenerated.d.ts +3 -3
- package/lib/events/ArtifactGenerated.d.ts.map +1 -1
- package/lib/events/ArtifactGenerated.js +5 -5
- package/lib/events/ArtifactGenerated.js.map +1 -1
- package/lib/events/AsyncOperationAborted.d.ts +3 -3
- package/lib/events/AsyncOperationAborted.d.ts.map +1 -1
- package/lib/events/AsyncOperationAborted.js +5 -5
- package/lib/events/AsyncOperationAborted.js.map +1 -1
- package/lib/events/AsyncOperationAttempted.d.ts +3 -3
- package/lib/events/AsyncOperationAttempted.d.ts.map +1 -1
- package/lib/events/AsyncOperationAttempted.js +5 -5
- package/lib/events/AsyncOperationAttempted.js.map +1 -1
- package/lib/events/AsyncOperationCompleted.d.ts +3 -3
- package/lib/events/AsyncOperationCompleted.d.ts.map +1 -1
- package/lib/events/AsyncOperationCompleted.js +5 -5
- package/lib/events/AsyncOperationCompleted.js.map +1 -1
- package/lib/events/AsyncOperationFailed.d.ts +3 -3
- package/lib/events/AsyncOperationFailed.d.ts.map +1 -1
- package/lib/events/AsyncOperationFailed.js +7 -7
- package/lib/events/AsyncOperationFailed.js.map +1 -1
- package/lib/events/BusinessRuleDetected.d.ts +3 -3
- package/lib/events/BusinessRuleDetected.d.ts.map +1 -1
- package/lib/events/BusinessRuleDetected.js +5 -5
- package/lib/events/BusinessRuleDetected.js.map +1 -1
- package/lib/events/DomainEvent.d.ts +1 -1
- package/lib/events/DomainEvent.d.ts.map +1 -1
- package/lib/events/DomainEvent.js +2 -2
- package/lib/events/DomainEvent.js.map +1 -1
- package/lib/events/EmitsDomainEvents.d.ts +3 -3
- package/lib/events/EmitsDomainEvents.d.ts.map +1 -1
- package/lib/events/FeatureNarrativeDetected.d.ts +3 -3
- package/lib/events/FeatureNarrativeDetected.d.ts.map +1 -1
- package/lib/events/FeatureNarrativeDetected.js +5 -5
- 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 +5 -5
- 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/InteractionStarts.js +5 -5
- package/lib/events/InteractionStarts.js.map +1 -1
- package/lib/events/RetryableSceneDetected.d.ts +3 -3
- package/lib/events/RetryableSceneDetected.d.ts.map +1 -1
- package/lib/events/RetryableSceneDetected.js +5 -5
- package/lib/events/RetryableSceneDetected.js.map +1 -1
- package/lib/events/SceneBackgroundDetected.d.ts +3 -3
- package/lib/events/SceneBackgroundDetected.d.ts.map +1 -1
- package/lib/events/SceneBackgroundDetected.js +4 -4
- package/lib/events/SceneBackgroundDetected.js.map +1 -1
- package/lib/events/SceneDescriptionDetected.d.ts +3 -3
- package/lib/events/SceneDescriptionDetected.d.ts.map +1 -1
- package/lib/events/SceneDescriptionDetected.js +5 -5
- package/lib/events/SceneDescriptionDetected.js.map +1 -1
- package/lib/events/SceneFinished.d.ts +3 -3
- package/lib/events/SceneFinished.d.ts.map +1 -1
- package/lib/events/SceneFinished.js +5 -5
- package/lib/events/SceneFinished.js.map +1 -1
- package/lib/events/SceneFinishes.d.ts +3 -3
- package/lib/events/SceneFinishes.d.ts.map +1 -1
- package/lib/events/SceneFinishes.js +7 -7
- package/lib/events/SceneFinishes.js.map +1 -1
- package/lib/events/SceneParametersDetected.d.ts +3 -3
- package/lib/events/SceneParametersDetected.d.ts.map +1 -1
- package/lib/events/SceneParametersDetected.js +5 -5
- package/lib/events/SceneParametersDetected.js.map +1 -1
- package/lib/events/SceneSequenceDetected.d.ts +3 -3
- package/lib/events/SceneSequenceDetected.d.ts.map +1 -1
- package/lib/events/SceneSequenceDetected.js +5 -5
- package/lib/events/SceneSequenceDetected.js.map +1 -1
- package/lib/events/SceneStarts.d.ts +3 -3
- package/lib/events/SceneStarts.d.ts.map +1 -1
- package/lib/events/SceneStarts.js +5 -5
- package/lib/events/SceneStarts.js.map +1 -1
- package/lib/events/SceneTagged.d.ts +3 -3
- package/lib/events/SceneTagged.d.ts.map +1 -1
- package/lib/events/SceneTagged.js +5 -5
- package/lib/events/SceneTagged.js.map +1 -1
- package/lib/events/SceneTemplateDetected.d.ts +3 -3
- package/lib/events/SceneTemplateDetected.d.ts.map +1 -1
- package/lib/events/SceneTemplateDetected.js +5 -5
- 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 +5 -5
- 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/TaskStarts.js +5 -5
- package/lib/events/TaskStarts.js.map +1 -1
- package/lib/events/TestRunFinished.d.ts +3 -3
- package/lib/events/TestRunFinished.d.ts.map +1 -1
- package/lib/events/TestRunFinished.js +5 -5
- package/lib/events/TestRunFinished.js.map +1 -1
- package/lib/events/TestRunFinishes.d.ts +2 -2
- package/lib/events/TestRunFinishes.d.ts.map +1 -1
- package/lib/events/TestRunFinishes.js +4 -4
- package/lib/events/TestRunFinishes.js.map +1 -1
- package/lib/events/TestRunStarts.d.ts +2 -2
- package/lib/events/TestRunStarts.d.ts.map +1 -1
- package/lib/events/TestRunStarts.js +4 -4
- package/lib/events/TestRunStarts.js.map +1 -1
- package/lib/events/TestRunnerDetected.d.ts +3 -3
- package/lib/events/TestRunnerDetected.d.ts.map +1 -1
- package/lib/events/TestRunnerDetected.js +5 -5
- package/lib/events/TestRunnerDetected.js.map +1 -1
- package/lib/events/TestSuiteFinished.d.ts +3 -3
- package/lib/events/TestSuiteFinished.d.ts.map +1 -1
- package/lib/events/TestSuiteFinished.js +5 -5
- package/lib/events/TestSuiteFinished.js.map +1 -1
- package/lib/events/TestSuiteStarts.d.ts +3 -3
- package/lib/events/TestSuiteStarts.d.ts.map +1 -1
- package/lib/events/TestSuiteStarts.js +5 -5
- package/lib/events/TestSuiteStarts.js.map +1 -1
- package/lib/events/actor/ActorEntersStage.d.ts +3 -3
- package/lib/events/actor/ActorEntersStage.d.ts.map +1 -1
- package/lib/events/actor/ActorEntersStage.js +5 -5
- package/lib/events/actor/ActorEntersStage.js.map +1 -1
- package/lib/events/actor/ActorSpotlighted.d.ts +4 -4
- package/lib/events/actor/ActorSpotlighted.d.ts.map +1 -1
- package/lib/events/actor/ActorSpotlighted.js +5 -5
- package/lib/events/actor/ActorSpotlighted.js.map +1 -1
- package/lib/events/actor/ActorStageExitAttempted.d.ts +3 -3
- package/lib/events/actor/ActorStageExitAttempted.d.ts.map +1 -1
- package/lib/events/actor/ActorStageExitAttempted.js +6 -6
- package/lib/events/actor/ActorStageExitAttempted.js.map +1 -1
- package/lib/events/actor/ActorStageExitCompleted.d.ts +3 -3
- package/lib/events/actor/ActorStageExitCompleted.d.ts.map +1 -1
- package/lib/events/actor/ActorStageExitCompleted.js +5 -5
- package/lib/events/actor/ActorStageExitCompleted.js.map +1 -1
- package/lib/events/actor/ActorStageExitFailed.d.ts +1 -1
- package/lib/events/actor/ActorStageExitFailed.d.ts.map +1 -1
- package/lib/events/actor/ActorStageExitFailed.js +6 -6
- package/lib/events/actor/ActorStageExitFailed.js.map +1 -1
- package/lib/events/actor/ActorStageExitStarts.d.ts +3 -3
- package/lib/events/actor/ActorStageExitStarts.d.ts.map +1 -1
- package/lib/events/actor/ActorStageExitStarts.js +5 -5
- package/lib/events/actor/ActorStageExitStarts.js.map +1 -1
- package/lib/events/actor/index.d.ts +6 -6
- package/lib/events/actor/index.d.ts.map +1 -1
- package/lib/events/actor/index.js +6 -6
- package/lib/events/actor/index.js.map +1 -1
- package/lib/events/index.d.ts +35 -35
- package/lib/events/index.d.ts.map +1 -1
- package/lib/events/index.js +35 -35
- package/lib/events/index.js.map +1 -1
- package/lib/index.d.ts +7 -7
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +10 -10
- package/lib/index.js.map +1 -1
- package/lib/instance.d.ts +4 -4
- package/lib/instance.d.ts.map +1 -1
- package/lib/instance.js +14 -4
- package/lib/instance.js.map +1 -1
- package/lib/io/FileFinder.d.ts +1 -1
- package/lib/io/FileFinder.d.ts.map +1 -1
- package/lib/io/FileFinder.js +2 -2
- package/lib/io/FileFinder.js.map +1 -1
- package/lib/io/FileSystem.d.ts +1 -1
- package/lib/io/FileSystem.d.ts.map +1 -1
- package/lib/io/FileSystem.js +10 -7
- package/lib/io/FileSystem.js.map +1 -1
- package/lib/io/FileSystemLocation.d.ts +1 -1
- package/lib/io/FileSystemLocation.d.ts.map +1 -1
- package/lib/io/FileSystemLocation.js +2 -2
- package/lib/io/FileSystemLocation.js.map +1 -1
- package/lib/io/Path.d.ts.map +1 -1
- package/lib/io/Path.js +17 -48
- package/lib/io/Path.js.map +1 -1
- package/lib/io/RequirementsHierarchy.d.ts +3 -3
- package/lib/io/RequirementsHierarchy.d.ts.map +1 -1
- package/lib/io/RequirementsHierarchy.js +11 -11
- package/lib/io/RequirementsHierarchy.js.map +1 -1
- package/lib/io/format.d.ts +1 -1
- package/lib/io/format.d.ts.map +1 -1
- package/lib/io/format.js +2 -2
- package/lib/io/format.js.map +1 -1
- package/lib/io/index.d.ts +16 -15
- package/lib/io/index.d.ts.map +1 -1
- package/lib/io/index.js +16 -15
- package/lib/io/index.js.map +1 -1
- package/lib/io/inspectedObject.js +2 -2
- package/lib/io/inspectedObject.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 +7 -7
- package/lib/io/loader/ClassDescriptionParser.js.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/loader/ClassLoader.js +10 -10
- package/lib/io/loader/ClassLoader.js.map +1 -1
- package/lib/io/loader/ModuleLoader.d.ts +2 -1
- package/lib/io/loader/ModuleLoader.d.ts.map +1 -1
- package/lib/io/loader/ModuleLoader.js +21 -6
- package/lib/io/loader/ModuleLoader.js.map +1 -1
- package/lib/io/loader/index.d.ts +4 -4
- package/lib/io/loader/index.d.ts.map +1 -1
- package/lib/io/loader/index.js +4 -4
- package/lib/io/loader/index.js.map +1 -1
- package/lib/io/reflection/index.d.ts +2 -2
- package/lib/io/reflection/index.d.ts.map +1 -1
- package/lib/io/reflection/index.js +2 -2
- package/lib/io/reflection/index.js.map +1 -1
- package/lib/io/stringified.d.ts +1 -1
- package/lib/io/stringified.d.ts.map +1 -1
- package/lib/io/stringified.js +9 -9
- package/lib/io/stringified.js.map +1 -1
- package/lib/model/ActivityDetails.d.ts +2 -2
- package/lib/model/ActivityDetails.d.ts.map +1 -1
- package/lib/model/ActivityDetails.js +3 -3
- package/lib/model/ActivityDetails.js.map +1 -1
- package/lib/model/Artifact.js +3 -3
- package/lib/model/Artifact.js.map +1 -1
- package/lib/model/BusinessRule.d.ts +2 -2
- package/lib/model/BusinessRule.d.ts.map +1 -1
- package/lib/model/BusinessRule.js +3 -3
- package/lib/model/BusinessRule.js.map +1 -1
- package/lib/model/CorrelationIdFactory.d.ts +1 -1
- package/lib/model/CorrelationIdFactory.d.ts.map +1 -1
- package/lib/model/ScenarioDetails.d.ts +3 -3
- package/lib/model/ScenarioDetails.d.ts.map +1 -1
- package/lib/model/ScenarioDetails.js +4 -4
- package/lib/model/ScenarioDetails.js.map +1 -1
- package/lib/model/ScenarioParameters.d.ts +2 -2
- package/lib/model/ScenarioParameters.d.ts.map +1 -1
- package/lib/model/ScenarioParameters.js +3 -3
- package/lib/model/ScenarioParameters.js.map +1 -1
- package/lib/model/TestSuiteDetails.d.ts +3 -3
- package/lib/model/TestSuiteDetails.d.ts.map +1 -1
- package/lib/model/TestSuiteDetails.js +5 -5
- 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/HTTPRequestResponse.js +2 -2
- package/lib/model/artifacts/HTTPRequestResponse.js.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/JSONData.js +2 -2
- package/lib/model/artifacts/JSONData.js.map +1 -1
- package/lib/model/artifacts/LogEntry.d.ts +1 -1
- package/lib/model/artifacts/LogEntry.d.ts.map +1 -1
- package/lib/model/artifacts/LogEntry.js +2 -2
- package/lib/model/artifacts/LogEntry.js.map +1 -1
- package/lib/model/artifacts/Photo.d.ts +1 -1
- package/lib/model/artifacts/Photo.d.ts.map +1 -1
- package/lib/model/artifacts/Photo.js +2 -2
- package/lib/model/artifacts/Photo.js.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/artifacts/TestReport.js +2 -2
- package/lib/model/artifacts/TestReport.js.map +1 -1
- package/lib/model/artifacts/TextData.d.ts +1 -1
- package/lib/model/artifacts/TextData.d.ts.map +1 -1
- package/lib/model/artifacts/TextData.js +2 -2
- package/lib/model/artifacts/TextData.js.map +1 -1
- package/lib/model/artifacts/index.d.ts +6 -6
- package/lib/model/artifacts/index.d.ts.map +1 -1
- package/lib/model/artifacts/index.js +6 -6
- package/lib/model/artifacts/index.js.map +1 -1
- package/lib/model/index.d.ts +14 -14
- package/lib/model/index.d.ts.map +1 -1
- package/lib/model/index.js +14 -14
- package/lib/model/index.js.map +1 -1
- package/lib/model/outcomes.d.ts +16 -1
- package/lib/model/outcomes.d.ts.map +1 -1
- package/lib/model/outcomes.js +48 -9
- package/lib/model/outcomes.js.map +1 -1
- package/lib/model/tags/ArbitraryTag.d.ts +1 -1
- package/lib/model/tags/ArbitraryTag.d.ts.map +1 -1
- package/lib/model/tags/ArbitraryTag.js +2 -2
- 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 +2 -2
- package/lib/model/tags/BrowserTag.js.map +1 -1
- package/lib/model/tags/CapabilityTag.d.ts +1 -1
- package/lib/model/tags/CapabilityTag.d.ts.map +1 -1
- package/lib/model/tags/CapabilityTag.js +2 -2
- 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 +2 -2
- package/lib/model/tags/ExecutionRetriedTag.js.map +1 -1
- package/lib/model/tags/FeatureTag.d.ts +1 -1
- package/lib/model/tags/FeatureTag.d.ts.map +1 -1
- package/lib/model/tags/FeatureTag.js +2 -2
- package/lib/model/tags/FeatureTag.js.map +1 -1
- package/lib/model/tags/IssueTag.d.ts +1 -1
- package/lib/model/tags/IssueTag.d.ts.map +1 -1
- package/lib/model/tags/IssueTag.js +2 -2
- package/lib/model/tags/IssueTag.js.map +1 -1
- package/lib/model/tags/ManualTag.d.ts +1 -1
- package/lib/model/tags/ManualTag.d.ts.map +1 -1
- package/lib/model/tags/ManualTag.js +2 -2
- 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 +2 -2
- package/lib/model/tags/PlatformTag.js.map +1 -1
- package/lib/model/tags/ProjectTag.d.ts +1 -1
- package/lib/model/tags/ProjectTag.d.ts.map +1 -1
- package/lib/model/tags/ProjectTag.js +2 -2
- package/lib/model/tags/ProjectTag.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 +24 -24
- package/lib/model/tags/Tags.js.map +1 -1
- package/lib/model/tags/ThemeTag.d.ts +1 -1
- package/lib/model/tags/ThemeTag.d.ts.map +1 -1
- package/lib/model/tags/ThemeTag.js +2 -2
- package/lib/model/tags/ThemeTag.js.map +1 -1
- package/lib/model/tags/index.d.ts +12 -12
- package/lib/model/tags/index.d.ts.map +1 -1
- package/lib/model/tags/index.js +12 -12
- package/lib/model/tags/index.js.map +1 -1
- package/lib/package.json +1 -0
- package/lib/screenplay/Activity.d.ts +6 -6
- package/lib/screenplay/Activity.d.ts.map +1 -1
- package/lib/screenplay/Activity.js +6 -6
- package/lib/screenplay/Activity.js.map +1 -1
- package/lib/screenplay/Actor.d.ts +17 -12
- package/lib/screenplay/Actor.d.ts.map +1 -1
- package/lib/screenplay/Actor.js +22 -17
- 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 +5 -5
- package/lib/screenplay/Interaction.d.ts.map +1 -1
- package/lib/screenplay/Interaction.js +2 -2
- package/lib/screenplay/Interaction.js.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 +41 -13
- package/lib/screenplay/Question.d.ts.map +1 -1
- package/lib/screenplay/Question.js +58 -29
- package/lib/screenplay/Question.js.map +1 -1
- package/lib/screenplay/RecursivelyAnswered.d.ts +1 -1
- package/lib/screenplay/RecursivelyAnswered.d.ts.map +1 -1
- package/lib/screenplay/SerialisedActor.d.ts +1 -1
- package/lib/screenplay/SerialisedActor.d.ts.map +1 -1
- package/lib/screenplay/Task.d.ts +5 -5
- package/lib/screenplay/Task.d.ts.map +1 -1
- package/lib/screenplay/Task.js +6 -6
- package/lib/screenplay/Task.js.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 +26 -3
- package/lib/screenplay/abilities/Ability.d.ts.map +1 -1
- package/lib/screenplay/abilities/Ability.js +52 -1
- package/lib/screenplay/abilities/Ability.js.map +1 -1
- package/lib/screenplay/abilities/AbilityType.d.ts +2 -2
- package/lib/screenplay/abilities/AbilityType.d.ts.map +1 -1
- package/lib/screenplay/abilities/AnswerQuestions.d.ts +4 -4
- package/lib/screenplay/abilities/AnswerQuestions.d.ts.map +1 -1
- package/lib/screenplay/abilities/AnswerQuestions.js +6 -6
- package/lib/screenplay/abilities/AnswerQuestions.js.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 +7 -7
- package/lib/screenplay/abilities/PerformActivities.d.ts.map +1 -1
- package/lib/screenplay/abilities/PerformActivities.js +21 -21
- 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/abilities/index.d.ts +9 -9
- package/lib/screenplay/abilities/index.d.ts.map +1 -1
- package/lib/screenplay/abilities/index.js +9 -9
- package/lib/screenplay/abilities/index.js.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/activities/index.d.ts +1 -1
- package/lib/screenplay/activities/index.d.ts.map +1 -1
- package/lib/screenplay/activities/index.js +1 -1
- package/lib/screenplay/activities/index.js.map +1 -1
- package/lib/screenplay/artifacts/CollectsArtifacts.d.ts +4 -4
- package/lib/screenplay/artifacts/CollectsArtifacts.d.ts.map +1 -1
- package/lib/screenplay/artifacts/index.d.ts +1 -1
- package/lib/screenplay/artifacts/index.d.ts.map +1 -1
- package/lib/screenplay/artifacts/index.js +1 -1
- package/lib/screenplay/artifacts/index.js.map +1 -1
- package/lib/screenplay/debugging/Debug.d.ts +7 -7
- package/lib/screenplay/debugging/Debug.d.ts.map +1 -1
- package/lib/screenplay/debugging/Debug.js +11 -11
- package/lib/screenplay/debugging/Debug.js.map +1 -1
- package/lib/screenplay/debugging/Log.d.ts +5 -5
- package/lib/screenplay/debugging/Log.d.ts.map +1 -1
- package/lib/screenplay/debugging/Log.js +7 -7
- package/lib/screenplay/debugging/Log.js.map +1 -1
- package/lib/screenplay/debugging/index.d.ts +3 -3
- package/lib/screenplay/debugging/index.d.ts.map +1 -1
- package/lib/screenplay/debugging/index.js +3 -3
- package/lib/screenplay/debugging/index.js.map +1 -1
- package/lib/screenplay/index.d.ts +18 -18
- package/lib/screenplay/index.d.ts.map +1 -1
- package/lib/screenplay/index.js +18 -18
- package/lib/screenplay/index.js.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/Notepad.d.ts +1 -1
- package/lib/screenplay/notes/Notepad.d.ts.map +1 -1
- package/lib/screenplay/notes/Notepad.js +5 -5
- package/lib/screenplay/notes/Notepad.js.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 +25 -25
- package/lib/screenplay/notes/NotepadAdapter.js.map +1 -1
- package/lib/screenplay/notes/TakeNotes.d.ts +2 -2
- package/lib/screenplay/notes/TakeNotes.d.ts.map +1 -1
- package/lib/screenplay/notes/TakeNotes.js +4 -4
- package/lib/screenplay/notes/TakeNotes.js.map +1 -1
- package/lib/screenplay/notes/index.d.ts +5 -5
- package/lib/screenplay/notes/index.d.ts.map +1 -1
- package/lib/screenplay/notes/index.js +5 -5
- package/lib/screenplay/notes/index.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/notes/notes.js +2 -2
- package/lib/screenplay/notes/notes.js.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/ChainableMetaQuestion.d.ts +3 -3
- package/lib/screenplay/questions/ChainableMetaQuestion.d.ts.map +1 -1
- package/lib/screenplay/questions/Check.d.ts +6 -6
- package/lib/screenplay/questions/Check.d.ts.map +1 -1
- package/lib/screenplay/questions/Check.js +6 -6
- package/lib/screenplay/questions/Check.js.map +1 -1
- package/lib/screenplay/questions/Describable.d.ts +3 -3
- package/lib/screenplay/questions/Describable.d.ts.map +1 -1
- package/lib/screenplay/questions/Describable.js +2 -2
- package/lib/screenplay/questions/Describable.js.map +1 -1
- package/lib/screenplay/questions/Expectation.d.ts +3 -3
- package/lib/screenplay/questions/Expectation.d.ts.map +1 -1
- package/lib/screenplay/questions/Expectation.js +16 -16
- package/lib/screenplay/questions/Expectation.js.map +1 -1
- package/lib/screenplay/questions/List.d.ts +8 -8
- package/lib/screenplay/questions/List.d.ts.map +1 -1
- package/lib/screenplay/questions/List.js +31 -31
- package/lib/screenplay/questions/List.js.map +1 -1
- package/lib/screenplay/questions/Masked.d.ts +2 -2
- package/lib/screenplay/questions/Masked.d.ts.map +1 -1
- package/lib/screenplay/questions/Masked.js +2 -2
- package/lib/screenplay/questions/Masked.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/Numeric.d.ts +14 -14
- package/lib/screenplay/questions/Numeric.d.ts.map +1 -1
- package/lib/screenplay/questions/Numeric.js +24 -24
- package/lib/screenplay/questions/Numeric.js.map +1 -1
- package/lib/screenplay/questions/Unanswered.d.ts +1 -0
- package/lib/screenplay/questions/Unanswered.d.ts.map +1 -1
- package/lib/screenplay/questions/Unanswered.js +3 -0
- package/lib/screenplay/questions/Unanswered.js.map +1 -1
- package/lib/screenplay/questions/expectations/ExpectationDetails.d.ts +2 -2
- package/lib/screenplay/questions/expectations/ExpectationDetails.d.ts.map +1 -1
- package/lib/screenplay/questions/expectations/ExpectationDetails.js +9 -9
- package/lib/screenplay/questions/expectations/ExpectationDetails.js.map +1 -1
- package/lib/screenplay/questions/expectations/ExpectationMet.d.ts +1 -1
- package/lib/screenplay/questions/expectations/ExpectationMet.d.ts.map +1 -1
- package/lib/screenplay/questions/expectations/ExpectationMet.js +2 -2
- package/lib/screenplay/questions/expectations/ExpectationMet.js.map +1 -1
- package/lib/screenplay/questions/expectations/ExpectationNotMet.d.ts +1 -1
- package/lib/screenplay/questions/expectations/ExpectationNotMet.d.ts.map +1 -1
- package/lib/screenplay/questions/expectations/ExpectationNotMet.js +2 -2
- package/lib/screenplay/questions/expectations/ExpectationNotMet.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/expectations/index.d.ts +4 -4
- package/lib/screenplay/questions/expectations/index.d.ts.map +1 -1
- package/lib/screenplay/questions/expectations/index.js +4 -4
- package/lib/screenplay/questions/expectations/index.js.map +1 -1
- package/lib/screenplay/questions/index.d.ts +13 -13
- package/lib/screenplay/questions/index.d.ts.map +1 -1
- package/lib/screenplay/questions/index.js +13 -13
- package/lib/screenplay/questions/index.js.map +1 -1
- package/lib/screenplay/questions/tag-functions.d.ts +4 -4
- package/lib/screenplay/questions/tag-functions.d.ts.map +1 -1
- package/lib/screenplay/questions/tag-functions.js +10 -10
- package/lib/screenplay/questions/tag-functions.js.map +1 -1
- package/lib/screenplay/time/TellsTime.d.ts +1 -1
- package/lib/screenplay/time/TellsTime.d.ts.map +1 -1
- package/lib/screenplay/time/abilities/ScheduleWork.d.ts +3 -3
- package/lib/screenplay/time/abilities/ScheduleWork.d.ts.map +1 -1
- package/lib/screenplay/time/abilities/ScheduleWork.js +4 -4
- package/lib/screenplay/time/abilities/ScheduleWork.js.map +1 -1
- package/lib/screenplay/time/abilities/index.d.ts +1 -1
- package/lib/screenplay/time/abilities/index.d.ts.map +1 -1
- package/lib/screenplay/time/abilities/index.js +1 -1
- package/lib/screenplay/time/abilities/index.js.map +1 -1
- package/lib/screenplay/time/activities/Wait.d.ts +5 -5
- package/lib/screenplay/time/activities/Wait.d.ts.map +1 -1
- package/lib/screenplay/time/activities/Wait.js +22 -22
- package/lib/screenplay/time/activities/Wait.js.map +1 -1
- package/lib/screenplay/time/activities/index.d.ts +1 -1
- package/lib/screenplay/time/activities/index.d.ts.map +1 -1
- package/lib/screenplay/time/activities/index.js +1 -1
- package/lib/screenplay/time/activities/index.js.map +1 -1
- package/lib/screenplay/time/index.d.ts +4 -4
- package/lib/screenplay/time/index.d.ts.map +1 -1
- package/lib/screenplay/time/index.js +4 -4
- package/lib/screenplay/time/index.js.map +1 -1
- package/lib/screenplay/time/models/Clock.d.ts +2 -2
- package/lib/screenplay/time/models/Clock.d.ts.map +1 -1
- package/lib/screenplay/time/models/Clock.js +5 -5
- 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/RepeatUntilLimits.d.ts +1 -1
- package/lib/screenplay/time/models/RepeatUntilLimits.d.ts.map +1 -1
- package/lib/screenplay/time/models/Scheduler.d.ts +4 -4
- package/lib/screenplay/time/models/Scheduler.d.ts.map +1 -1
- package/lib/screenplay/time/models/Scheduler.js +5 -5
- package/lib/screenplay/time/models/Scheduler.js.map +1 -1
- package/lib/screenplay/time/models/Timestamp.d.ts +1 -1
- package/lib/screenplay/time/models/Timestamp.d.ts.map +1 -1
- package/lib/screenplay/time/models/Timestamp.js +2 -2
- package/lib/screenplay/time/models/Timestamp.js.map +1 -1
- package/lib/screenplay/time/models/index.d.ts +6 -6
- package/lib/screenplay/time/models/index.d.ts.map +1 -1
- package/lib/screenplay/time/models/index.js +6 -6
- package/lib/screenplay/time/models/index.js.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 +8 -8
- package/lib/stage/Stage.d.ts.map +1 -1
- package/lib/stage/Stage.js +27 -27
- package/lib/stage/Stage.js.map +1 -1
- package/lib/stage/StageCrewMember.d.ts +4 -4
- 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 +3 -3
- package/lib/stage/StageCrewMemberBuilderDependencies.d.ts.map +1 -1
- package/lib/stage/StageManager.d.ts +3 -3
- package/lib/stage/StageManager.d.ts.map +1 -1
- package/lib/stage/StageManager.js +4 -4
- package/lib/stage/StageManager.js.map +1 -1
- package/lib/stage/crew/artifact-archiver/ArtifactArchiver.d.ts +4 -4
- package/lib/stage/crew/artifact-archiver/ArtifactArchiver.d.ts.map +1 -1
- package/lib/stage/crew/artifact-archiver/ArtifactArchiver.js +20 -20
- package/lib/stage/crew/artifact-archiver/ArtifactArchiver.js.map +1 -1
- package/lib/stage/crew/artifact-archiver/index.d.ts +1 -1
- package/lib/stage/crew/artifact-archiver/index.d.ts.map +1 -1
- package/lib/stage/crew/artifact-archiver/index.js +1 -1
- package/lib/stage/crew/artifact-archiver/index.js.map +1 -1
- package/lib/stage/crew/index.d.ts +2 -2
- package/lib/stage/crew/index.d.ts.map +1 -1
- package/lib/stage/crew/index.js +2 -2
- package/lib/stage/crew/index.js.map +1 -1
- package/lib/stage/crew/stream-reporter/StreamReporter.d.ts +3 -3
- package/lib/stage/crew/stream-reporter/StreamReporter.d.ts.map +1 -1
- package/lib/stage/crew/stream-reporter/StreamReporter.js +3 -3
- package/lib/stage/crew/stream-reporter/StreamReporter.js.map +1 -1
- package/lib/stage/crew/stream-reporter/index.d.ts +1 -1
- package/lib/stage/crew/stream-reporter/index.d.ts.map +1 -1
- package/lib/stage/crew/stream-reporter/index.js +1 -1
- package/lib/stage/crew/stream-reporter/index.js.map +1 -1
- package/lib/stage/index.d.ts +10 -9
- package/lib/stage/index.d.ts.map +1 -1
- package/lib/stage/index.js +10 -9
- package/lib/stage/index.js.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 +3 -3
- package/lib/stage/queues/DomainEventQueues.d.ts.map +1 -1
- package/lib/stage/queues/DomainEventQueues.js +9 -9
- package/lib/stage/queues/DomainEventQueues.js.map +1 -1
- package/lib/stage/queues/index.d.ts +2 -2
- package/lib/stage/queues/index.d.ts.map +1 -1
- package/lib/stage/queues/index.js +2 -2
- package/lib/stage/queues/index.js.map +1 -1
- package/package.json +280 -9
- package/src/Serenity.ts +14 -14
- package/src/adapter/TestRunnerAdapter.ts +1 -1
- package/src/adapter/index.ts +2 -2
- package/src/config/SerenityConfig.ts +5 -5
- package/src/config/index.ts +2 -2
- package/src/errors/ErrorFactory.ts +8 -8
- package/src/errors/ErrorOptions.ts +2 -2
- package/src/errors/ErrorStackParser.ts +3 -2
- package/src/errors/RaiseErrors.ts +4 -4
- package/src/errors/diff/AnsiDiffFormatter.ts +4 -2
- package/src/errors/diff/NoOpDiffFormatter.ts +1 -1
- package/src/errors/diff/index.ts +3 -3
- package/src/errors/index.ts +9 -9
- package/src/errors/model/AssertionError.ts +2 -2
- package/src/errors/model/ConfigurationError.ts +2 -2
- package/src/errors/model/ImplementationPendingError.ts +2 -2
- package/src/errors/model/ListItemNotFoundError.ts +2 -2
- package/src/errors/model/LogicError.ts +2 -2
- package/src/errors/model/OperationInterruptedError.ts +2 -2
- package/src/errors/model/RuntimeError.ts +47 -1
- package/src/errors/model/TestCompromisedError.ts +2 -2
- package/src/errors/model/TimeoutExpiredError.ts +2 -2
- package/src/errors/model/UnknownError.ts +2 -2
- package/src/errors/model/index.ts +10 -10
- package/src/events/ActivityFinished.ts +3 -3
- package/src/events/ActivityRelatedArtifactArchived.ts +5 -5
- package/src/events/ActivityRelatedArtifactGenerated.ts +4 -4
- package/src/events/ActivityStarts.ts +3 -3
- package/src/events/ArtifactArchived.ts +5 -5
- package/src/events/ArtifactGenerated.ts +4 -4
- package/src/events/AsyncOperationAborted.ts +3 -3
- package/src/events/AsyncOperationAttempted.ts +3 -3
- package/src/events/AsyncOperationCompleted.ts +3 -3
- package/src/events/AsyncOperationFailed.ts +4 -4
- package/src/events/BusinessRuleDetected.ts +3 -3
- package/src/events/DomainEvent.ts +1 -1
- package/src/events/EmitsDomainEvents.ts +3 -3
- package/src/events/FeatureNarrativeDetected.ts +3 -3
- package/src/events/InteractionFinished.ts +4 -4
- package/src/events/InteractionStarts.ts +3 -3
- package/src/events/RetryableSceneDetected.ts +3 -3
- package/src/events/SceneBackgroundDetected.ts +3 -3
- package/src/events/SceneDescriptionDetected.ts +3 -3
- package/src/events/SceneFinished.ts +4 -4
- package/src/events/SceneFinishes.ts +4 -4
- package/src/events/SceneParametersDetected.ts +3 -3
- package/src/events/SceneSequenceDetected.ts +3 -3
- package/src/events/SceneStarts.ts +3 -3
- package/src/events/SceneTagged.ts +3 -3
- package/src/events/SceneTemplateDetected.ts +3 -3
- package/src/events/TaskFinished.ts +4 -4
- package/src/events/TaskStarts.ts +3 -3
- package/src/events/TestRunFinished.ts +4 -4
- package/src/events/TestRunFinishes.ts +2 -2
- package/src/events/TestRunStarts.ts +2 -2
- package/src/events/TestRunnerDetected.ts +3 -3
- package/src/events/TestSuiteFinished.ts +4 -4
- package/src/events/TestSuiteStarts.ts +3 -3
- package/src/events/actor/ActorEntersStage.ts +3 -3
- package/src/events/actor/ActorSpotlighted.ts +4 -4
- package/src/events/actor/ActorStageExitAttempted.ts +3 -3
- package/src/events/actor/ActorStageExitCompleted.ts +3 -3
- package/src/events/actor/ActorStageExitFailed.ts +4 -4
- package/src/events/actor/ActorStageExitStarts.ts +3 -3
- package/src/events/actor/index.ts +6 -6
- package/src/events/index.ts +35 -35
- package/src/index.ts +7 -7
- package/src/instance.ts +20 -7
- package/src/io/FileFinder.ts +1 -1
- package/src/io/FileSystem.ts +2 -2
- package/src/io/FileSystemLocation.ts +1 -1
- package/src/io/Path.ts +4 -1
- package/src/io/RequirementsHierarchy.ts +4 -4
- package/src/io/format.ts +2 -2
- package/src/io/index.ts +16 -15
- package/src/io/inspectedObject.ts +1 -1
- package/src/io/loader/ClassDescriptionParser.ts +4 -4
- package/src/io/loader/ClassLoader.ts +5 -5
- package/src/io/loader/ModuleLoader.ts +23 -6
- package/src/io/loader/index.ts +4 -4
- package/src/io/reflection/index.ts +2 -2
- package/src/io/stringified.ts +3 -3
- package/src/model/ActivityDetails.ts +2 -2
- package/src/model/Artifact.ts +2 -2
- package/src/model/BusinessRule.ts +2 -2
- package/src/model/CorrelationIdFactory.ts +1 -1
- package/src/model/ScenarioDetails.ts +3 -3
- package/src/model/ScenarioParameters.ts +2 -2
- package/src/model/TestSuiteDetails.ts +3 -3
- package/src/model/artifacts/HTTPRequestResponse.ts +1 -1
- package/src/model/artifacts/JSONData.ts +1 -1
- package/src/model/artifacts/LogEntry.ts +1 -1
- package/src/model/artifacts/Photo.ts +1 -1
- package/src/model/artifacts/TestReport.ts +1 -1
- package/src/model/artifacts/TextData.ts +1 -1
- package/src/model/artifacts/index.ts +6 -6
- package/src/model/index.ts +14 -14
- package/src/model/outcomes.ts +48 -2
- package/src/model/tags/ArbitraryTag.ts +1 -1
- package/src/model/tags/BrowserTag.ts +1 -1
- package/src/model/tags/CapabilityTag.ts +1 -1
- package/src/model/tags/ExecutionRetriedTag.ts +1 -1
- package/src/model/tags/FeatureTag.ts +1 -1
- package/src/model/tags/IssueTag.ts +1 -1
- package/src/model/tags/ManualTag.ts +1 -1
- package/src/model/tags/PlatformTag.ts +1 -1
- package/src/model/tags/ProjectTag.ts +1 -1
- package/src/model/tags/Tags.ts +11 -11
- package/src/model/tags/ThemeTag.ts +1 -1
- package/src/model/tags/index.ts +12 -12
- package/src/screenplay/Activity.ts +7 -7
- package/src/screenplay/Actor.ts +25 -20
- package/src/screenplay/Answerable.ts +1 -1
- package/src/screenplay/Answered.ts +1 -1
- package/src/screenplay/Interaction.ts +5 -5
- package/src/screenplay/Optional.ts +1 -1
- package/src/screenplay/Question.ts +48 -19
- package/src/screenplay/RecursivelyAnswered.ts +1 -1
- package/src/screenplay/SerialisedActor.ts +1 -1
- package/src/screenplay/Task.ts +6 -6
- package/src/screenplay/WithAnswerableProperties.ts +2 -2
- package/src/screenplay/abilities/Ability.ts +64 -5
- package/src/screenplay/abilities/AbilityType.ts +2 -2
- package/src/screenplay/abilities/AnswerQuestions.ts +6 -6
- package/src/screenplay/abilities/CanHaveAbilities.ts +2 -2
- package/src/screenplay/abilities/PerformActivities.ts +12 -12
- package/src/screenplay/abilities/UsesAbilities.ts +2 -2
- package/src/screenplay/abilities/index.ts +9 -9
- package/src/screenplay/activities/PerformsActivities.ts +1 -1
- package/src/screenplay/activities/index.ts +1 -1
- package/src/screenplay/artifacts/CollectsArtifacts.ts +4 -4
- package/src/screenplay/artifacts/index.ts +1 -1
- package/src/screenplay/debugging/Debug.ts +11 -11
- package/src/screenplay/debugging/Log.ts +8 -8
- package/src/screenplay/debugging/index.ts +3 -3
- package/src/screenplay/index.ts +18 -18
- package/src/screenplay/notes/ChainableSetter.ts +2 -2
- package/src/screenplay/notes/Notepad.ts +3 -3
- package/src/screenplay/notes/NotepadAdapter.ts +10 -10
- package/src/screenplay/notes/TakeNotes.ts +2 -2
- package/src/screenplay/notes/index.ts +5 -5
- package/src/screenplay/notes/notes.ts +2 -2
- package/src/screenplay/questions/AnswersQuestions.ts +1 -1
- package/src/screenplay/questions/ChainableMetaQuestion.ts +3 -3
- package/src/screenplay/questions/Check.ts +8 -8
- package/src/screenplay/questions/Describable.ts +4 -4
- package/src/screenplay/questions/Expectation.ts +7 -7
- package/src/screenplay/questions/List.ts +11 -11
- package/src/screenplay/questions/Masked.ts +2 -2
- package/src/screenplay/questions/MetaQuestion.ts +2 -2
- package/src/screenplay/questions/Numeric.ts +18 -18
- package/src/screenplay/questions/Unanswered.ts +5 -0
- package/src/screenplay/questions/expectations/ExpectationDetails.ts +3 -3
- package/src/screenplay/questions/expectations/ExpectationMet.ts +1 -1
- package/src/screenplay/questions/expectations/ExpectationNotMet.ts +1 -1
- package/src/screenplay/questions/expectations/ExpectationOutcome.ts +1 -1
- package/src/screenplay/questions/expectations/index.ts +4 -4
- package/src/screenplay/questions/index.ts +13 -13
- package/src/screenplay/questions/tag-functions.ts +9 -9
- package/src/screenplay/time/TellsTime.ts +1 -1
- package/src/screenplay/time/abilities/ScheduleWork.ts +4 -4
- package/src/screenplay/time/abilities/index.ts +1 -1
- package/src/screenplay/time/activities/Wait.ts +10 -10
- package/src/screenplay/time/activities/index.ts +1 -1
- package/src/screenplay/time/index.ts +4 -4
- package/src/screenplay/time/models/Clock.ts +2 -2
- package/src/screenplay/time/models/DelayedCallback.ts +1 -1
- package/src/screenplay/time/models/RepeatUntilLimits.ts +1 -1
- package/src/screenplay/time/models/Scheduler.ts +6 -6
- package/src/screenplay/time/models/Timestamp.ts +1 -1
- package/src/screenplay/time/models/index.ts +6 -6
- 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 +8 -8
- package/src/stage/StageCrewMember.ts +4 -4
- package/src/stage/StageCrewMemberBuilder.ts +2 -2
- package/src/stage/StageCrewMemberBuilderDependencies.ts +3 -3
- package/src/stage/StageManager.ts +5 -5
- package/src/stage/crew/artifact-archiver/ArtifactArchiver.ts +8 -8
- package/src/stage/crew/artifact-archiver/index.ts +1 -1
- package/src/stage/crew/index.ts +2 -2
- package/src/stage/crew/stream-reporter/StreamReporter.ts +4 -4
- package/src/stage/crew/stream-reporter/index.ts +1 -1
- package/src/stage/index.ts +10 -9
- package/src/stage/queues/DomainEventQueue.ts +2 -2
- package/src/stage/queues/DomainEventQueues.ts +6 -6
- package/src/stage/queues/index.ts +2 -2
- package/tsconfig-cjs.build.json +17 -0
- package/tsconfig-esm.build.json +18 -0
|
@@ -0,0 +1,699 @@
|
|
|
1
|
+
import util from 'node:util';
|
|
2
|
+
import { isRecord } from 'tiny-types/lib/objects/isRecord.js';
|
|
3
|
+
import { significantFieldsOf } from 'tiny-types/lib/objects/significantFields.js';
|
|
4
|
+
import { LogicError } from '../errors/index.js';
|
|
5
|
+
import { asyncMap, f, inspectedObject, ValueInspector } from '../io/index.js';
|
|
6
|
+
import { Interaction } from './Interaction.js';
|
|
7
|
+
import { Describable } from './questions/Describable.js';
|
|
8
|
+
import { the } from './questions/tag-functions.js';
|
|
9
|
+
import { Unanswered } from './questions/Unanswered.js';
|
|
10
|
+
/**
|
|
11
|
+
* **Questions** describe how [actors](https://serenity-js.org/api/core/class/Actor/) should query the system under test or the test environment to retrieve some information.
|
|
12
|
+
*
|
|
13
|
+
* Questions are the core building block of the [Screenplay Pattern](https://serenity-js.org/handbook/design/screenplay-pattern),
|
|
14
|
+
* along with [actors](https://serenity-js.org/api/core/class/Actor/), [abilities](https://serenity-js.org/api/core/class/Ability/),
|
|
15
|
+
* [interactions](https://serenity-js.org/api/core/class/Interaction/),
|
|
16
|
+
* and [tasks](https://serenity-js.org/api/core/class/Task/).
|
|
17
|
+
*
|
|
18
|
+
* 
|
|
19
|
+
*
|
|
20
|
+
* Learn more about:
|
|
21
|
+
* - [`Actor`](https://serenity-js.org/api/core/class/Actor/)
|
|
22
|
+
* - [`Ability`](https://serenity-js.org/api/core/class/Ability/)
|
|
23
|
+
* - [`Interaction`](https://serenity-js.org/api/core/class/Interaction/)
|
|
24
|
+
* - [`QuestionAdapter`](https://serenity-js.org/api/core/#QuestionAdapter)
|
|
25
|
+
*
|
|
26
|
+
* ## Implementing a basic custom Question
|
|
27
|
+
*
|
|
28
|
+
* ```ts
|
|
29
|
+
* import { actorCalled, AnswersQuestions, UsesAbilities, Question } from '@serenity-js/core'
|
|
30
|
+
* import { Ensure, equals } from '@serenity-js/assertions'
|
|
31
|
+
*
|
|
32
|
+
* const LastItemOf = <T>(list: T[]): Question<T> =>
|
|
33
|
+
* Question.about('last item from the list', (actor: AnswersQuestions & UsesAbilities) => {
|
|
34
|
+
* return list[list.length - 1]
|
|
35
|
+
* });
|
|
36
|
+
*
|
|
37
|
+
* await actorCalled('Quentin').attemptsTo(
|
|
38
|
+
* Ensure.that(LastItemOf([1,2,3]), equals(3)),
|
|
39
|
+
* )
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* However, it's worth noting that sometimes you don't even need a custom question.
|
|
43
|
+
* You can instead use a [`QuestionAdapter`](https://serenity-js.org/api/core/#QuestionAdapter),
|
|
44
|
+
* which proxies the known members of the type.
|
|
45
|
+
* In our list example, we can use a Serenity/JS [`List`](https://serenity-js.org/api/core/class/List/)
|
|
46
|
+
* which conveniently already has a `last()`.
|
|
47
|
+
*
|
|
48
|
+
* ```ts
|
|
49
|
+
* import { Page } from '@serenity-js/web'
|
|
50
|
+
* import { actorCalled, List } from '@serenity-js/core'
|
|
51
|
+
* import { Ensure, equals, includes } from '@serenity-js/assertions'
|
|
52
|
+
*
|
|
53
|
+
* const list = List.of([ 1, 2, 3 ]);
|
|
54
|
+
*
|
|
55
|
+
* await actorCalled('Quentin').attemptsTo(
|
|
56
|
+
* Ensure.that(list.last(), equals(3)),
|
|
57
|
+
* )
|
|
58
|
+
*
|
|
59
|
+
* const urlPath = () =>
|
|
60
|
+
* Page.current()
|
|
61
|
+
* .url() // ← QuestionAdapter<URL>, lets you access all the regular members of URL as QuestionAdapters
|
|
62
|
+
* .pathname // ← QuestionAdapter<string>
|
|
63
|
+
* .describedAs('the URL path'); // ← Optionally, add a clear and concise description
|
|
64
|
+
*
|
|
65
|
+
* await actorCalled('Quentin').attemptsTo(
|
|
66
|
+
* Ensure.that(urlPath(), includes('index.html')),
|
|
67
|
+
* )
|
|
68
|
+
* ```
|
|
69
|
+
*
|
|
70
|
+
* ## Implementing a Question that uses an Ability
|
|
71
|
+
*
|
|
72
|
+
* Just like the [interactions](https://serenity-js.org/api/core/class/Interaction/), a [`Question`](https://serenity-js.org/api/core/class/Question/)
|
|
73
|
+
* also can use [actor's](https://serenity-js.org/api/core/class/Actor/) [abilities](https://serenity-js.org/api/core/class/Ability/).
|
|
74
|
+
*
|
|
75
|
+
* Here, we use the ability to [`CallAnApi`](https://serenity-js.org/api/rest/class/CallAnApi/) to retrieve a property of
|
|
76
|
+
* an HTTP response.
|
|
77
|
+
*
|
|
78
|
+
* ```ts
|
|
79
|
+
* import { AnswersQuestions, UsesAbilities, Question } from '@serenity-js/core'
|
|
80
|
+
* import { CallAnApi } from '@serenity-js/rest'
|
|
81
|
+
*
|
|
82
|
+
* const TextOfLastResponseStatus = () =>
|
|
83
|
+
* Question.about(`the text of the last response status`, actor => {
|
|
84
|
+
* return CallAnApi.as(actor).mapLastResponse(response => response.statusText)
|
|
85
|
+
* })
|
|
86
|
+
* ```
|
|
87
|
+
*
|
|
88
|
+
* #### Learn more
|
|
89
|
+
* - [`CallAnApi`](https://serenity-js.org/api/rest/class/CallAnApi/)
|
|
90
|
+
* - [`LastResponse`](https://serenity-js.org/api/rest/class/LastResponse/)
|
|
91
|
+
*
|
|
92
|
+
* ## Mapping answers to other questions
|
|
93
|
+
*
|
|
94
|
+
* Apart from retrieving information, [questions](https://serenity-js.org/api/core/class/Question/) can be used to transform information retrieved by other questions.
|
|
95
|
+
*
|
|
96
|
+
* Here, we use the factory method [`Question.about`](https://serenity-js.org/api/core/class/Question/#about) to produce a question that makes the received [actor](https://serenity-js.org/api/core/class/Actor/)
|
|
97
|
+
* answer [`LastResponse.status`](https://serenity-js.org/api/rest/class/LastResponse/#status) and then compare it against some expected value.
|
|
98
|
+
*
|
|
99
|
+
* ```ts
|
|
100
|
+
* import { actorCalled, AnswersQuestions, UsesAbilities, Question } from '@serenity-js/core'
|
|
101
|
+
* import { CallAnApi, LastResponse } from '@serenity-js/rest'
|
|
102
|
+
* import { Ensure, equals } from '@serenity-js/assertions'
|
|
103
|
+
*
|
|
104
|
+
* const RequestWasSuccessful = () =>
|
|
105
|
+
* Question.about<boolean>(`the request was successful`, async actor => {
|
|
106
|
+
* const status = await actor.answer(LastResponse.status());
|
|
107
|
+
*
|
|
108
|
+
* return status === 200;
|
|
109
|
+
* })
|
|
110
|
+
*
|
|
111
|
+
* await actorCalled('Quentin')
|
|
112
|
+
* .whoCan(CallAnApi.at('https://api.example.org/'));
|
|
113
|
+
* .attemptsTo(
|
|
114
|
+
* Send.a(GetRequest.to('/books/0-688-00230-7')),
|
|
115
|
+
* Ensure.that(RequestWasSuccessful(), isTrue()),
|
|
116
|
+
* )
|
|
117
|
+
* ```
|
|
118
|
+
*
|
|
119
|
+
* Note that the above example is for demonstration purposes only, Serenity/JS provides an easier way to
|
|
120
|
+
* verify the response status of the [`LastResponse`](https://serenity-js.org/api/rest/class/LastResponse/):
|
|
121
|
+
*
|
|
122
|
+
* ```ts
|
|
123
|
+
* import { actorCalled } from '@serenity-js/core'
|
|
124
|
+
* import { CallAnApi, LastResponse } from '@serenity-js/rest'
|
|
125
|
+
* import { Ensure, equals } from '@serenity-js/assertions'
|
|
126
|
+
*
|
|
127
|
+
* await actorCalled('Quentin')
|
|
128
|
+
* .whoCan(CallAnApi.at('https://api.example.org/'));
|
|
129
|
+
* .attemptsTo(
|
|
130
|
+
* Send.a(GetRequest.to('/books/0-688-00230-7')),
|
|
131
|
+
* Ensure.that(LastResponse.status(), equals(200)),
|
|
132
|
+
* )
|
|
133
|
+
* ```
|
|
134
|
+
*
|
|
135
|
+
* @group Screenplay Pattern
|
|
136
|
+
*/
|
|
137
|
+
export class Question extends Describable {
|
|
138
|
+
static about(description, body, metaQuestionBody) {
|
|
139
|
+
const statement = typeof metaQuestionBody === 'function'
|
|
140
|
+
? new MetaQuestionStatement(description, body, metaQuestionBody)
|
|
141
|
+
: new QuestionStatement(description, body);
|
|
142
|
+
return Question.createAdapter(statement);
|
|
143
|
+
}
|
|
144
|
+
/**
|
|
145
|
+
* Generates a [`QuestionAdapter`](https://serenity-js.org/api/core/#QuestionAdapter) that recursively resolves
|
|
146
|
+
* any [`Answerable`](https://serenity-js.org/api/core/#Answerable) fields of the provided object,
|
|
147
|
+
* including [`Answerable`](https://serenity-js.org/api/core/#Answerable) fields
|
|
148
|
+
* of [nested objects](https://serenity-js.org/api/core/#WithAnswerableProperties).
|
|
149
|
+
*
|
|
150
|
+
* Optionally, the method accepts `overrides` to be shallow-merged with the fields of the original `source`,
|
|
151
|
+
* producing a new merged object.
|
|
152
|
+
*
|
|
153
|
+
* Overrides are applied from left to right, with subsequent objects overwriting property assignments of the previous ones.
|
|
154
|
+
*
|
|
155
|
+
* #### Resolving an object recursively using `Question.fromObject`
|
|
156
|
+
*
|
|
157
|
+
* ```ts
|
|
158
|
+
* import { actorCalled, Question } from '@serenity-js/core'
|
|
159
|
+
* import { Send, PostRequest } from '@serenity-js/rest'
|
|
160
|
+
* import { By, Text, PageElement } from '@serenity-js/web'
|
|
161
|
+
*
|
|
162
|
+
* await actorCalled('Daisy')
|
|
163
|
+
* .whoCan(CallAnApi.at('https://api.example.org'))
|
|
164
|
+
* .attemptsTo(
|
|
165
|
+
* Send.a(
|
|
166
|
+
* PostRequest.to('/products/2')
|
|
167
|
+
* .with(
|
|
168
|
+
* Question.fromObject({
|
|
169
|
+
* name: Text.of(PageElement.located(By.css('.name'))),
|
|
170
|
+
* })
|
|
171
|
+
* )
|
|
172
|
+
* )
|
|
173
|
+
* );
|
|
174
|
+
* ```
|
|
175
|
+
*
|
|
176
|
+
* #### Merging objects using `Question.fromObject`
|
|
177
|
+
*
|
|
178
|
+
* ```ts
|
|
179
|
+
* import { actorCalled, Question } from '@serenity-js/core'
|
|
180
|
+
* import { Send, PostRequest } from '@serenity-js/rest'
|
|
181
|
+
* import { By, Text, PageElement } from '@serenity-js/web'
|
|
182
|
+
*
|
|
183
|
+
* await actorCalled('Daisy')
|
|
184
|
+
* .whoCan(CallAnApi.at('https://api.example.org'))
|
|
185
|
+
* .attemptsTo(
|
|
186
|
+
* Send.a(
|
|
187
|
+
* PostRequest.to('/products/2')
|
|
188
|
+
* .with(
|
|
189
|
+
* Question.fromObject({
|
|
190
|
+
* name: Text.of(PageElement.located(By.css('.name'))),
|
|
191
|
+
* quantity: undefined,
|
|
192
|
+
* }, {
|
|
193
|
+
* quantity: 2,
|
|
194
|
+
* })
|
|
195
|
+
* )
|
|
196
|
+
* )
|
|
197
|
+
* );
|
|
198
|
+
* ```
|
|
199
|
+
*
|
|
200
|
+
* #### Learn more
|
|
201
|
+
* - [`WithAnswerableProperties`](https://serenity-js.org/api/core/#WithAnswerableProperties)
|
|
202
|
+
* - [`RecursivelyAnswered`](https://serenity-js.org/api/core/#RecursivelyAnswered)
|
|
203
|
+
* - [`Answerable`](https://serenity-js.org/api/core/#Answerable)
|
|
204
|
+
*
|
|
205
|
+
* @param source
|
|
206
|
+
* @param overrides
|
|
207
|
+
*/
|
|
208
|
+
static fromObject(source, ...overrides) {
|
|
209
|
+
return Question.about('value', async (actor) => {
|
|
210
|
+
if (source === null || source === undefined) {
|
|
211
|
+
return source;
|
|
212
|
+
}
|
|
213
|
+
const sources = [];
|
|
214
|
+
for (const [i, currentSource] of [source, ...overrides].entries()) {
|
|
215
|
+
sources.push(await recursivelyAnswer(actor, currentSource, `argument ${i}`));
|
|
216
|
+
}
|
|
217
|
+
return Object.assign({}, ...sources);
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Generates a [`QuestionAdapter`](https://serenity-js.org/api/core/#QuestionAdapter) that resolves
|
|
222
|
+
* any [`Answerable`](https://serenity-js.org/api/core/#Answerable) elements of the provided array.
|
|
223
|
+
*/
|
|
224
|
+
static fromArray(source, options) {
|
|
225
|
+
const formatter = new ValueFormatter(ValueFormatter.defaultOptions);
|
|
226
|
+
const description = source.length === 0
|
|
227
|
+
? '[ ]'
|
|
228
|
+
: Question.about(formatter.format(source), async (actor) => {
|
|
229
|
+
const descriptions = await asyncMap(source, item => item instanceof Describable
|
|
230
|
+
? item.describedBy(actor)
|
|
231
|
+
: Question.formattedValue(options).of(item).answeredBy(actor));
|
|
232
|
+
return `[ ${descriptions.join(', ')} ]`;
|
|
233
|
+
});
|
|
234
|
+
return Question.about(description, async (actor) => {
|
|
235
|
+
return await asyncMap(source, item => actor.answer(item));
|
|
236
|
+
});
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* Checks if the value is a [`Question`](https://serenity-js.org/api/core/class/Question/).
|
|
240
|
+
*
|
|
241
|
+
* @param maybeQuestion
|
|
242
|
+
* The value to check
|
|
243
|
+
*/
|
|
244
|
+
static isAQuestion(maybeQuestion) {
|
|
245
|
+
return !!maybeQuestion
|
|
246
|
+
&& typeof maybeQuestion.answeredBy === 'function';
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Checks if the value is a [`MetaQuestion`](https://serenity-js.org/api/core/interface/MetaQuestion/).
|
|
250
|
+
*
|
|
251
|
+
* @param maybeMetaQuestion
|
|
252
|
+
* The value to check
|
|
253
|
+
*/
|
|
254
|
+
static isAMetaQuestion(maybeMetaQuestion) {
|
|
255
|
+
return !!maybeMetaQuestion
|
|
256
|
+
&& typeof maybeMetaQuestion['of'] === 'function'
|
|
257
|
+
&& maybeMetaQuestion['of'].length === 1; // arity of 1
|
|
258
|
+
}
|
|
259
|
+
/**
|
|
260
|
+
* Creates a [`MetaQuestion`](https://serenity-js.org/api/core/interface/MetaQuestion/) that can be composed with any [`Answerable`](https://serenity-js.org/api/core/#Answerable)
|
|
261
|
+
* to produce a single-line description of its value.
|
|
262
|
+
*
|
|
263
|
+
* ```ts
|
|
264
|
+
* import { actorCalled, Question } from '@serenity-js/core'
|
|
265
|
+
* import { Ensure, equals } from '@serenity-js/assertions'
|
|
266
|
+
*
|
|
267
|
+
* const accountDetails = () =>
|
|
268
|
+
* Question.about('account details', actor => ({ name: 'Alice', age: 28 }))
|
|
269
|
+
*
|
|
270
|
+
* await actorCalled('Alice').attemptsTo(
|
|
271
|
+
* Ensure.that(
|
|
272
|
+
* Question.formattedValue().of(accountDetails()),
|
|
273
|
+
* equals('{ name: "Alice", age: 28 }'),
|
|
274
|
+
* ),
|
|
275
|
+
* )
|
|
276
|
+
* ```
|
|
277
|
+
*
|
|
278
|
+
* @param options
|
|
279
|
+
*/
|
|
280
|
+
static formattedValue(options) {
|
|
281
|
+
return MetaQuestionAboutFormattedValue.using(options);
|
|
282
|
+
}
|
|
283
|
+
/**
|
|
284
|
+
* Creates a [`MetaQuestion`](https://serenity-js.org/api/core/interface/MetaQuestion/) that can be composed with any [`Answerable`](https://serenity-js.org/api/core/#Answerable)
|
|
285
|
+
* to return its value when the answerable is a [`Question`](https://serenity-js.org/api/core/class/Question/),
|
|
286
|
+
* or the answerable itself otherwise.
|
|
287
|
+
*
|
|
288
|
+
* The description of the resulting question is produced by calling [`Question.describedBy`](https://serenity-js.org/api/core/class/Question/#describedBy) on the
|
|
289
|
+
* provided answerable.
|
|
290
|
+
*
|
|
291
|
+
* ```ts
|
|
292
|
+
* import { actorCalled, Question } from '@serenity-js/core'
|
|
293
|
+
* import { Ensure, equals } from '@serenity-js/assertions'
|
|
294
|
+
*
|
|
295
|
+
* const accountDetails = () =>
|
|
296
|
+
* Question.about('account details', actor => ({ name: 'Alice', age: 28 }))
|
|
297
|
+
*
|
|
298
|
+
* await actorCalled('Alice').attemptsTo(
|
|
299
|
+
* Ensure.that(
|
|
300
|
+
* Question.description().of(accountDetails()),
|
|
301
|
+
* equals('account details'),
|
|
302
|
+
* ),
|
|
303
|
+
* Ensure.that(
|
|
304
|
+
* Question.value().of(accountDetails()),
|
|
305
|
+
* equals({ name: 'Alice', age: 28 }),
|
|
306
|
+
* ),
|
|
307
|
+
* )
|
|
308
|
+
* ```
|
|
309
|
+
*/
|
|
310
|
+
static value() {
|
|
311
|
+
return new MetaQuestionAboutValue();
|
|
312
|
+
}
|
|
313
|
+
static createAdapter(statement) {
|
|
314
|
+
function getStatement() {
|
|
315
|
+
return statement;
|
|
316
|
+
}
|
|
317
|
+
if (typeof statement[util.inspect.custom] === 'function') {
|
|
318
|
+
Object.defineProperty(
|
|
319
|
+
// statement must be a function because Proxy apply trap works only with functions
|
|
320
|
+
getStatement, util.inspect.custom, {
|
|
321
|
+
value: statement[util.inspect.custom].bind(statement),
|
|
322
|
+
writable: false,
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
return new Proxy(getStatement, {
|
|
326
|
+
get(currentStatement, key, receiver) {
|
|
327
|
+
const target = currentStatement();
|
|
328
|
+
if (key === util.inspect.custom) {
|
|
329
|
+
return target[util.inspect.custom].bind(target);
|
|
330
|
+
}
|
|
331
|
+
if (key === Symbol.toPrimitive) {
|
|
332
|
+
return (_hint) => {
|
|
333
|
+
return target.toString();
|
|
334
|
+
};
|
|
335
|
+
}
|
|
336
|
+
if (key in target) {
|
|
337
|
+
const field = Reflect.get(target, key);
|
|
338
|
+
const isFunction = typeof field == 'function';
|
|
339
|
+
const mustAllowProxyChaining = isFunction
|
|
340
|
+
&& target instanceof QuestionStatement
|
|
341
|
+
&& key === 'describedAs'; // `describedAs` returns `this`, which must be bound to proxy itself to allow proxy chaining
|
|
342
|
+
if (mustAllowProxyChaining) {
|
|
343
|
+
// see https://javascript.info/proxy#proxy-limitations
|
|
344
|
+
return field.bind(receiver);
|
|
345
|
+
}
|
|
346
|
+
return isFunction
|
|
347
|
+
? field.bind(target)
|
|
348
|
+
: field;
|
|
349
|
+
}
|
|
350
|
+
if (key === 'then') {
|
|
351
|
+
return;
|
|
352
|
+
}
|
|
353
|
+
return Question.about(Question.staticFieldDescription(target, key), async (actor) => {
|
|
354
|
+
const answer = await actor.answer(target);
|
|
355
|
+
if (!isDefined(answer)) {
|
|
356
|
+
return undefined;
|
|
357
|
+
}
|
|
358
|
+
const field = answer[key];
|
|
359
|
+
return typeof field === 'function'
|
|
360
|
+
? field.bind(answer)
|
|
361
|
+
: field;
|
|
362
|
+
}).describedAs(Question.formattedValue());
|
|
363
|
+
},
|
|
364
|
+
set(currentStatement, key, value, receiver) {
|
|
365
|
+
const target = currentStatement();
|
|
366
|
+
return Reflect.set(target, key, value);
|
|
367
|
+
},
|
|
368
|
+
apply(currentStatement, _thisArgument, parameters) {
|
|
369
|
+
const target = currentStatement();
|
|
370
|
+
return Question.about(Question.methodDescription(target, parameters), async (actor) => {
|
|
371
|
+
const params = [];
|
|
372
|
+
for (const parameter of parameters) {
|
|
373
|
+
const answered = await actor.answer(parameter);
|
|
374
|
+
params.push(answered);
|
|
375
|
+
}
|
|
376
|
+
const field = await actor.answer(target);
|
|
377
|
+
return typeof field === 'function'
|
|
378
|
+
? field(...params)
|
|
379
|
+
: field;
|
|
380
|
+
});
|
|
381
|
+
},
|
|
382
|
+
getPrototypeOf(currentStatement) {
|
|
383
|
+
return Reflect.getPrototypeOf(currentStatement());
|
|
384
|
+
},
|
|
385
|
+
});
|
|
386
|
+
}
|
|
387
|
+
static staticFieldDescription(target, key) {
|
|
388
|
+
// "of" is characteristic of Serenity/JS MetaQuestion
|
|
389
|
+
if (key === 'of') {
|
|
390
|
+
return `${target} ${key}`;
|
|
391
|
+
}
|
|
392
|
+
const originalSubject = f `${target}`;
|
|
393
|
+
const fieldDescription = (typeof key === 'number' || /^\d+$/.test(String(key)))
|
|
394
|
+
? `[${String(key)}]` // array index
|
|
395
|
+
: `.${String(key)}`; // field/method name
|
|
396
|
+
return `${originalSubject}${fieldDescription}`;
|
|
397
|
+
}
|
|
398
|
+
static methodDescription(target, parameters) {
|
|
399
|
+
const targetDescription = target.toString();
|
|
400
|
+
// this is a Serenity/JS MetaQuestion, of(singleParameter)
|
|
401
|
+
if (targetDescription.endsWith(' of') && parameters.length === 1) {
|
|
402
|
+
return `${targetDescription} ${parameters[0]}`;
|
|
403
|
+
}
|
|
404
|
+
const parameterDescriptions = [
|
|
405
|
+
'(', parameters.map(p => f `${p}`).join(', '), ')',
|
|
406
|
+
].join('');
|
|
407
|
+
return `${targetDescription}${parameterDescriptions}`;
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* Changes the description of this object, as returned by [`Describable.describedBy`](https://serenity-js.org/api/core/class/Describable/#describedBy)
|
|
411
|
+
* and [`Describable.toString`](https://serenity-js.org/api/core/class/Describable/#toString).
|
|
412
|
+
*
|
|
413
|
+
* @param description
|
|
414
|
+
* Replaces the current description according to the following rules:
|
|
415
|
+
* - If `description` is an [`Answerable`](https://serenity-js.org/api/core/#Answerable), it replaces the current description
|
|
416
|
+
* - If `description` is a [`MetaQuestion`](https://serenity-js.org/api/core/interface/MetaQuestion/), the current description is passed as `context` to `description.of(context)`, and the result replaces the current description
|
|
417
|
+
*/
|
|
418
|
+
describedAs(description) {
|
|
419
|
+
super.setDescription(Question.isAMetaQuestion(description)
|
|
420
|
+
? description.of(this)
|
|
421
|
+
: description);
|
|
422
|
+
return this;
|
|
423
|
+
}
|
|
424
|
+
/**
|
|
425
|
+
* Maps this question to one of a different type.
|
|
426
|
+
*
|
|
427
|
+
* ```ts
|
|
428
|
+
* Question.about('number returned as string', actor => '42') // returns: QuestionAdapter<string>
|
|
429
|
+
* .as(Number) // returns: QuestionAdapter<number>
|
|
430
|
+
* ```
|
|
431
|
+
*
|
|
432
|
+
* @param mapping
|
|
433
|
+
*/
|
|
434
|
+
as(mapping) {
|
|
435
|
+
return Question.about(f `${this}.as(${mapping})`, async (actor) => {
|
|
436
|
+
const answer = (await actor.answer(this));
|
|
437
|
+
return mapping(answer);
|
|
438
|
+
});
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
/**
|
|
442
|
+
* @package
|
|
443
|
+
*/
|
|
444
|
+
class QuestionStatement extends Interaction {
|
|
445
|
+
body;
|
|
446
|
+
answer = new Unanswered();
|
|
447
|
+
constructor(subject, body, location = QuestionStatement.callerLocation(4)) {
|
|
448
|
+
super(subject, location);
|
|
449
|
+
this.body = body;
|
|
450
|
+
}
|
|
451
|
+
/**
|
|
452
|
+
* Returns a Question that resolves to `true` if resolving the `QuestionStatement`
|
|
453
|
+
* returns a value other than `null` or `undefined`, and doesn't throw errors.
|
|
454
|
+
*/
|
|
455
|
+
isPresent() {
|
|
456
|
+
return new IsPresent(this);
|
|
457
|
+
}
|
|
458
|
+
async answeredBy(actor) {
|
|
459
|
+
this.answer = await this.body(actor);
|
|
460
|
+
return this.answer;
|
|
461
|
+
}
|
|
462
|
+
async performAs(actor) {
|
|
463
|
+
await this.body(actor);
|
|
464
|
+
}
|
|
465
|
+
[util.inspect.custom](depth, options, inspect) {
|
|
466
|
+
return inspectedObject(this.answer)(depth, options, inspect);
|
|
467
|
+
}
|
|
468
|
+
describedAs(description) {
|
|
469
|
+
super.setDescription(Question.isAMetaQuestion(description)
|
|
470
|
+
? description.of(this)
|
|
471
|
+
: description);
|
|
472
|
+
return this;
|
|
473
|
+
}
|
|
474
|
+
as(mapping) {
|
|
475
|
+
return Question.about(f `${this}.as(${mapping})`, async (actor) => {
|
|
476
|
+
const answer = await actor.answer(this);
|
|
477
|
+
if (!isDefined(answer)) {
|
|
478
|
+
return undefined;
|
|
479
|
+
}
|
|
480
|
+
return mapping(answer);
|
|
481
|
+
});
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
/**
|
|
485
|
+
* @package
|
|
486
|
+
*/
|
|
487
|
+
class MetaQuestionStatement extends QuestionStatement {
|
|
488
|
+
metaQuestionBody;
|
|
489
|
+
constructor(subject, body, metaQuestionBody) {
|
|
490
|
+
super(subject, body);
|
|
491
|
+
this.metaQuestionBody = metaQuestionBody;
|
|
492
|
+
}
|
|
493
|
+
of(answerable) {
|
|
494
|
+
return Question.about(the `${this} of ${answerable}`, actor => actor.answer(this.metaQuestionBody(answerable)));
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* @package
|
|
499
|
+
*/
|
|
500
|
+
class IsPresent extends Question {
|
|
501
|
+
question;
|
|
502
|
+
constructor(question) {
|
|
503
|
+
super(f `${question}.isPresent()`);
|
|
504
|
+
this.question = question;
|
|
505
|
+
}
|
|
506
|
+
async answeredBy(actor) {
|
|
507
|
+
try {
|
|
508
|
+
const answer = await actor.answer(this.question);
|
|
509
|
+
if (answer === undefined || answer === null) {
|
|
510
|
+
return false;
|
|
511
|
+
}
|
|
512
|
+
if (this.isOptional(answer)) {
|
|
513
|
+
return await actor.answer(answer.isPresent());
|
|
514
|
+
}
|
|
515
|
+
return true;
|
|
516
|
+
}
|
|
517
|
+
catch {
|
|
518
|
+
return false;
|
|
519
|
+
}
|
|
520
|
+
}
|
|
521
|
+
isOptional(maybeOptional) {
|
|
522
|
+
return typeof maybeOptional === 'object'
|
|
523
|
+
&& Reflect.has(maybeOptional, 'isPresent');
|
|
524
|
+
}
|
|
525
|
+
}
|
|
526
|
+
/**
|
|
527
|
+
* @package
|
|
528
|
+
*/
|
|
529
|
+
function isDefined(value) {
|
|
530
|
+
return value !== undefined
|
|
531
|
+
&& value !== null;
|
|
532
|
+
}
|
|
533
|
+
/**
|
|
534
|
+
* @package
|
|
535
|
+
*/
|
|
536
|
+
const maxRecursiveCallsLimit = 100;
|
|
537
|
+
/**
|
|
538
|
+
* @package
|
|
539
|
+
*/
|
|
540
|
+
async function recursivelyAnswer(actor, answerable, description, currentRecursion = 0) {
|
|
541
|
+
if (currentRecursion >= maxRecursiveCallsLimit) {
|
|
542
|
+
throw new LogicError(`Question.fromObject() has reached the limit of ${maxRecursiveCallsLimit} recursive calls while trying to resolve ${description}. Could it contain cyclic references?`);
|
|
543
|
+
}
|
|
544
|
+
const answer = await actor.answer(answerable);
|
|
545
|
+
if (isRecord(answer)) {
|
|
546
|
+
const entries = Object.entries(answer);
|
|
547
|
+
const answeredEntries = [];
|
|
548
|
+
for (const [key, value] of entries) {
|
|
549
|
+
answeredEntries.push([key, await recursivelyAnswer(actor, value, description, currentRecursion + 1)]);
|
|
550
|
+
}
|
|
551
|
+
return Object.fromEntries(answeredEntries);
|
|
552
|
+
}
|
|
553
|
+
if (Array.isArray(answer)) {
|
|
554
|
+
const answeredEntries = [];
|
|
555
|
+
for (const item of answer) {
|
|
556
|
+
answeredEntries.push(await recursivelyAnswer(actor, item, description, currentRecursion + 1));
|
|
557
|
+
}
|
|
558
|
+
return answeredEntries;
|
|
559
|
+
}
|
|
560
|
+
return answer;
|
|
561
|
+
}
|
|
562
|
+
class MetaQuestionAboutValue {
|
|
563
|
+
of(answerable) {
|
|
564
|
+
return new QuestionAboutValue(answerable);
|
|
565
|
+
}
|
|
566
|
+
toString() {
|
|
567
|
+
return 'value';
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
class QuestionAboutValue extends Question {
|
|
571
|
+
context;
|
|
572
|
+
constructor(context) {
|
|
573
|
+
super(QuestionAboutFormattedValue.of(context).toString());
|
|
574
|
+
this.context = context;
|
|
575
|
+
}
|
|
576
|
+
async answeredBy(actor) {
|
|
577
|
+
return await actor.answer(this.context);
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
class MetaQuestionAboutFormattedValue {
|
|
581
|
+
formatter;
|
|
582
|
+
static using(options) {
|
|
583
|
+
return new MetaQuestionAboutFormattedValue(new ValueFormatter({
|
|
584
|
+
...ValueFormatter.defaultOptions,
|
|
585
|
+
...options,
|
|
586
|
+
}));
|
|
587
|
+
}
|
|
588
|
+
constructor(formatter) {
|
|
589
|
+
this.formatter = formatter;
|
|
590
|
+
}
|
|
591
|
+
of(context) {
|
|
592
|
+
return new QuestionAboutFormattedValue(this.formatter, context);
|
|
593
|
+
}
|
|
594
|
+
toString() {
|
|
595
|
+
return 'formatted value';
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
class QuestionAboutFormattedValue extends Question {
|
|
599
|
+
formatter;
|
|
600
|
+
context;
|
|
601
|
+
static of(context) {
|
|
602
|
+
return new QuestionAboutFormattedValue(new ValueFormatter(ValueFormatter.defaultOptions), context);
|
|
603
|
+
}
|
|
604
|
+
constructor(formatter, context) {
|
|
605
|
+
const description = context === undefined
|
|
606
|
+
? 'formatted value'
|
|
607
|
+
: formatter.format(context);
|
|
608
|
+
super(description);
|
|
609
|
+
this.formatter = formatter;
|
|
610
|
+
this.context = context;
|
|
611
|
+
}
|
|
612
|
+
async answeredBy(actor) {
|
|
613
|
+
const answer = await actor.answer(this.context);
|
|
614
|
+
return this.formatter.format(answer);
|
|
615
|
+
}
|
|
616
|
+
async describedBy(actor) {
|
|
617
|
+
const unanswered = !this.context
|
|
618
|
+
|| !this.context['answer']
|
|
619
|
+
|| Unanswered.isUnanswered(this.context.answer);
|
|
620
|
+
const answer = unanswered
|
|
621
|
+
? await actor.answer(this.context)
|
|
622
|
+
: this.context.answer;
|
|
623
|
+
return this.formatter.format(answer);
|
|
624
|
+
}
|
|
625
|
+
of(context) {
|
|
626
|
+
return new QuestionAboutFormattedValue(this.formatter, Question.isAMetaQuestion(this.context)
|
|
627
|
+
? this.context.of(context)
|
|
628
|
+
: context);
|
|
629
|
+
}
|
|
630
|
+
}
|
|
631
|
+
class ValueFormatter {
|
|
632
|
+
options;
|
|
633
|
+
static defaultOptions = { maxLength: Number.POSITIVE_INFINITY };
|
|
634
|
+
constructor(options) {
|
|
635
|
+
this.options = options;
|
|
636
|
+
}
|
|
637
|
+
format(value) {
|
|
638
|
+
if (value === null) {
|
|
639
|
+
return 'null';
|
|
640
|
+
}
|
|
641
|
+
if (value === undefined) {
|
|
642
|
+
return 'undefined';
|
|
643
|
+
}
|
|
644
|
+
if (typeof value === 'string') {
|
|
645
|
+
return `"${this.trim(value)}"`;
|
|
646
|
+
}
|
|
647
|
+
if (typeof value === 'symbol') {
|
|
648
|
+
return `Symbol(${this.trim(value.description)})`;
|
|
649
|
+
}
|
|
650
|
+
if (typeof value === 'bigint') {
|
|
651
|
+
return `${this.trim(value.toString())}`;
|
|
652
|
+
}
|
|
653
|
+
if (ValueInspector.isPromise(value)) {
|
|
654
|
+
return 'Promise';
|
|
655
|
+
}
|
|
656
|
+
if (Array.isArray(value)) {
|
|
657
|
+
return value.length === 0
|
|
658
|
+
? '[ ]'
|
|
659
|
+
: `[ ${this.trim(value.map(item => this.format(item)).join(', '))} ]`;
|
|
660
|
+
}
|
|
661
|
+
if (value instanceof Map) {
|
|
662
|
+
return `Map(${this.format(Object.fromEntries(value.entries()))})`;
|
|
663
|
+
}
|
|
664
|
+
if (value instanceof Set) {
|
|
665
|
+
return `Set(${this.format(Array.from(value.values()))})`;
|
|
666
|
+
}
|
|
667
|
+
if (ValueInspector.isDate(value)) {
|
|
668
|
+
return `Date(${value.toISOString()})`;
|
|
669
|
+
}
|
|
670
|
+
if (value instanceof RegExp) {
|
|
671
|
+
return `${value}`;
|
|
672
|
+
}
|
|
673
|
+
if (ValueInspector.hasItsOwnToString(value)) {
|
|
674
|
+
return `${this.trim(value.toString())}`;
|
|
675
|
+
}
|
|
676
|
+
if (ValueInspector.isPlainObject(value)) {
|
|
677
|
+
const stringifiedEntries = Object
|
|
678
|
+
.entries(value)
|
|
679
|
+
.reduce((acc, [key, value]) => acc.concat(`${key}: ${this.format(value)}`), [])
|
|
680
|
+
.join(', ');
|
|
681
|
+
return `{ ${this.trim(stringifiedEntries)} }`;
|
|
682
|
+
}
|
|
683
|
+
if (typeof value === 'object') {
|
|
684
|
+
const entries = significantFieldsOf(value)
|
|
685
|
+
.map(field => [field, value[field]]);
|
|
686
|
+
return `${value.constructor.name}(${this.format(Object.fromEntries(entries))})`;
|
|
687
|
+
}
|
|
688
|
+
return String(value);
|
|
689
|
+
}
|
|
690
|
+
trim(value) {
|
|
691
|
+
const ellipsis = '...';
|
|
692
|
+
const oneLiner = value.replaceAll(/\n+/g, ' ');
|
|
693
|
+
const maxLength = Math.max(ellipsis.length + 1, this.options.maxLength);
|
|
694
|
+
return oneLiner.length > maxLength
|
|
695
|
+
? `${oneLiner.slice(0, Math.max(0, maxLength) - ellipsis.length)}${ellipsis}`
|
|
696
|
+
: oneLiner;
|
|
697
|
+
}
|
|
698
|
+
}
|
|
699
|
+
//# sourceMappingURL=Question.js.map
|