@sprucelabs/spruce-cli 19.1.24 → 19.1.25
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 +8 -0
- package/build/__tests__/behavioral/AddingADependency.test.js +29 -57
- package/build/__tests__/behavioral/AddingADependency.test.js.map +1 -1
- package/build/__tests__/behavioral/BlockingCommands.test.js +9 -17
- package/build/__tests__/behavioral/BlockingCommands.test.js.map +1 -1
- package/build/__tests__/behavioral/BootingTheCli.test.js +9 -17
- package/build/__tests__/behavioral/BootingTheCli.test.js.map +1 -1
- package/build/__tests__/behavioral/BootingWithBadFiles.test.js +13 -25
- package/build/__tests__/behavioral/BootingWithBadFiles.test.js.map +1 -1
- package/build/__tests__/behavioral/CreatingAConversationTopic.test.js +13 -25
- package/build/__tests__/behavioral/CreatingAConversationTopic.test.js.map +1 -1
- package/build/__tests__/behavioral/DeployingASkill.test.js +73 -145
- package/build/__tests__/behavioral/DeployingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/DeployingToSandbox.test.js +61 -121
- package/build/__tests__/behavioral/DeployingToSandbox.test.js.map +1 -1
- package/build/__tests__/behavioral/EnablingAndDisablingCache.test.js +33 -65
- package/build/__tests__/behavioral/EnablingAndDisablingCache.test.js.map +1 -1
- package/build/__tests__/behavioral/GettingCliVersion.test.js +13 -25
- package/build/__tests__/behavioral/GettingCliVersion.test.js.map +1 -1
- package/build/__tests__/behavioral/ManagingDependencies.test.js +21 -41
- package/build/__tests__/behavioral/ManagingDependencies.test.js.map +1 -1
- package/build/__tests__/behavioral/OverridingCommandsInPackageJson.test.js +9 -17
- package/build/__tests__/behavioral/OverridingCommandsInPackageJson.test.js.map +1 -1
- package/build/__tests__/behavioral/RegisteringConversationsOnBoot.test.js +10 -18
- package/build/__tests__/behavioral/RegisteringConversationsOnBoot.test.js.map +1 -1
- package/build/__tests__/behavioral/RememberingUpgradeSelections.test.js +17 -33
- package/build/__tests__/behavioral/RememberingUpgradeSelections.test.js.map +1 -1
- package/build/__tests__/behavioral/SettingLogTransportsInASkill.test.js +29 -57
- package/build/__tests__/behavioral/SettingLogTransportsInASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/SettingRemote.test.js +21 -41
- package/build/__tests__/behavioral/SettingRemote.test.js.map +1 -1
- package/build/__tests__/behavioral/SettingUpVscode.test.js +9 -17
- package/build/__tests__/behavioral/SettingUpVscode.test.js.map +1 -1
- package/build/__tests__/behavioral/TestingAConversation.test.js +25 -49
- package/build/__tests__/behavioral/TestingAConversation.test.js.map +1 -1
- package/build/__tests__/behavioral/errors/CreatingANewErrorBuilder.test.js +21 -41
- package/build/__tests__/behavioral/errors/CreatingANewErrorBuilder.test.js.map +1 -1
- package/build/__tests__/behavioral/errors/KeepingErrorClassInSync.test.js +9 -17
- package/build/__tests__/behavioral/errors/KeepingErrorClassInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/errors/KeepingErrorsInSync.test.js +21 -41
- package/build/__tests__/behavioral/errors/KeepingErrorsInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/errors/SettingUpErrors.test.js +9 -17
- package/build/__tests__/behavioral/errors/SettingUpErrors.test.js.map +1 -1
- package/build/__tests__/behavioral/eventContract/PullingMercuryEventContract.test.js +45 -89
- package/build/__tests__/behavioral/eventContract/PullingMercuryEventContract.test.js.map +1 -1
- package/build/__tests__/behavioral/events/CreatingAListener.test.js +73 -145
- package/build/__tests__/behavioral/events/CreatingAListener.test.js.map +1 -1
- package/build/__tests__/behavioral/events/CreatingAnEvent.test.js +53 -105
- package/build/__tests__/behavioral/events/CreatingAnEvent.test.js.map +1 -1
- package/build/__tests__/behavioral/events/EventWriter.test.js +5 -9
- package/build/__tests__/behavioral/events/EventWriter.test.js.map +1 -1
- package/build/__tests__/behavioral/events/KeepingEventsInSync.test.js +61 -121
- package/build/__tests__/behavioral/events/KeepingEventsInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/events/KeepingEventsInSync2.test.js +41 -81
- package/build/__tests__/behavioral/events/KeepingEventsInSync2.test.js.map +1 -1
- package/build/__tests__/behavioral/events/KeepingListenersInSync.test.js +13 -25
- package/build/__tests__/behavioral/events/KeepingListenersInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/events/ListeningToAnEventYouCreate.test.js +9 -17
- package/build/__tests__/behavioral/events/ListeningToAnEventYouCreate.test.js.map +1 -1
- package/build/__tests__/behavioral/events/ListeningToCoreEvents.test.js +9 -17
- package/build/__tests__/behavioral/events/ListeningToCoreEvents.test.js.map +1 -1
- package/build/__tests__/behavioral/events/RegisteringEventsOnBoot.test.js +14 -26
- package/build/__tests__/behavioral/events/RegisteringEventsOnBoot.test.js.map +1 -1
- package/build/__tests__/behavioral/events/RegisteringGlobalEvents.test.js +26 -50
- package/build/__tests__/behavioral/events/RegisteringGlobalEvents.test.js.map +1 -1
- package/build/__tests__/behavioral/events/SettingUpEvents.test.js +5 -9
- package/build/__tests__/behavioral/events/SettingUpEvents.test.js.map +1 -1
- package/build/__tests__/behavioral/events/SkillEmitsBootEvents.test.js +13 -25
- package/build/__tests__/behavioral/events/SkillEmitsBootEvents.test.js.map +1 -1
- package/build/__tests__/behavioral/events/SyncingEventsOnlyFromDependencies.test.js +13 -25
- package/build/__tests__/behavioral/events/SyncingEventsOnlyFromDependencies.test.js.map +1 -1
- package/build/__tests__/behavioral/node/CreatingANodeModule.test.js +13 -25
- package/build/__tests__/behavioral/node/CreatingANodeModule.test.js.map +1 -1
- package/build/__tests__/behavioral/onboard/StartingOnboarding.test.js +13 -25
- package/build/__tests__/behavioral/onboard/StartingOnboarding.test.js.map +1 -1
- package/build/__tests__/behavioral/organization/CreatingAnOrg.test.js +9 -17
- package/build/__tests__/behavioral/organization/CreatingAnOrg.test.js.map +1 -1
- package/build/__tests__/behavioral/permissions/CreatingPermissions.test.js +13 -25
- package/build/__tests__/behavioral/permissions/CreatingPermissions.test.js.map +1 -1
- package/build/__tests__/behavioral/permissions/PermissionPlugin.test.js +9 -17
- package/build/__tests__/behavioral/permissions/PermissionPlugin.test.js.map +1 -1
- package/build/__tests__/behavioral/permissions/PermissionStore.test.js +49 -97
- package/build/__tests__/behavioral/permissions/PermissionStore.test.js.map +1 -1
- package/build/__tests__/behavioral/permissions/PermissionWriter.test.js +9 -17
- package/build/__tests__/behavioral/permissions/PermissionWriter.test.js.map +1 -1
- package/build/__tests__/behavioral/permissions/SyncingPermissions.test.js +59 -113
- package/build/__tests__/behavioral/permissions/SyncingPermissions.test.js.map +1 -1
- package/build/__tests__/behavioral/permissions/support/AbstractPermissionsTest.js +13 -25
- package/build/__tests__/behavioral/permissions/support/AbstractPermissionsTest.js.map +1 -1
- package/build/__tests__/behavioral/person/LoggingInAsPerson.test.js +37 -73
- package/build/__tests__/behavioral/person/LoggingInAsPerson.test.js.map +1 -1
- package/build/__tests__/behavioral/person/SeeWhoIsLoggedIn.test.js +13 -25
- package/build/__tests__/behavioral/person/SeeWhoIsLoggedIn.test.js.map +1 -1
- package/build/__tests__/behavioral/polish/SettingUpPolish.test.js +29 -57
- package/build/__tests__/behavioral/polish/SettingUpPolish.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/CreatingANewSchemaBuilder.test.js +41 -81
- package/build/__tests__/behavioral/schemas/CreatingANewSchemaBuilder.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/CreatingSchemasWithGenerics.test.js +5 -9
- package/build/__tests__/behavioral/schemas/CreatingSchemasWithGenerics.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/GeneratingFieldTypesOnly.test.js +9 -17
- package/build/__tests__/behavioral/schemas/GeneratingFieldTypesOnly.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/GettingSchemasFromHealthCheck.test.js +17 -33
- package/build/__tests__/behavioral/schemas/GettingSchemasFromHealthCheck.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/HandlesRelatedSchemas.test.js +21 -41
- package/build/__tests__/behavioral/schemas/HandlesRelatedSchemas.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/ImportingSchemaImports.test.js +5 -9
- package/build/__tests__/behavioral/schemas/ImportingSchemaImports.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/KeepingSchemasInSync.test.js +81 -161
- package/build/__tests__/behavioral/schemas/KeepingSchemasInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/SettingUpSchemas.test.js +13 -25
- package/build/__tests__/behavioral/schemas/SettingUpSchemas.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/SettingUpSchemasForModuleDistribution.test.js +49 -97
- package/build/__tests__/behavioral/schemas/SettingUpSchemasForModuleDistribution.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/SyncingBadSchemasProvidesHelpfulErrorMessages.test.js +5 -9
- package/build/__tests__/behavioral/schemas/SyncingBadSchemasProvidesHelpfulErrorMessages.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/UsingSchemasInCli.test.js +5 -9
- package/build/__tests__/behavioral/schemas/UsingSchemasInCli.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/BootingASkill.test.js +13 -25
- package/build/__tests__/behavioral/skill/BootingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/CreatingASkill.test.js +9 -17
- package/build/__tests__/behavioral/skill/CreatingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/InstallingASkillAtAnOrg.test.js +33 -65
- package/build/__tests__/behavioral/skill/InstallingASkillAtAnOrg.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/LoggingInAsASkill.test.js +37 -73
- package/build/__tests__/behavioral/skill/LoggingInAsASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/RebuildingASkill.test.js +13 -25
- package/build/__tests__/behavioral/skill/RebuildingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/RegisteringASkill.test.js +17 -33
- package/build/__tests__/behavioral/skill/RegisteringASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/SettingUpASkill.test.js +29 -57
- package/build/__tests__/behavioral/skill/SettingUpASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/stores/CreatingADataStore.test.js +45 -89
- package/build/__tests__/behavioral/stores/CreatingADataStore.test.js.map +1 -1
- package/build/__tests__/behavioral/stores/KeepingDataStoresInSync.test.js +41 -81
- package/build/__tests__/behavioral/stores/KeepingDataStoresInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/CreatingATest.test.js +41 -81
- package/build/__tests__/behavioral/tests/CreatingATest.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/RunningTests.test.js +17 -33
- package/build/__tests__/behavioral/tests/RunningTests.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/SelectingAnAbstractTestClass.test.js +45 -89
- package/build/__tests__/behavioral/tests/SelectingAnAbstractTestClass.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/SettingUpASkillForTesting.test.js +21 -41
- package/build/__tests__/behavioral/tests/SettingUpASkillForTesting.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/SettingUpTests.test.js +9 -17
- package/build/__tests__/behavioral/tests/SettingUpTests.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/TestReporterSettingsRemembered.test.js +9 -17
- package/build/__tests__/behavioral/tests/TestReporterSettingsRemembered.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/TestingDataStores.test.js +9 -17
- package/build/__tests__/behavioral/tests/TestingDataStores.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpdatingDependencies.test.js +17 -33
- package/build/__tests__/behavioral/upgrading/UpdatingDependencies.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpdatingDependencies2.test.js +21 -41
- package/build/__tests__/behavioral/upgrading/UpdatingDependencies2.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingANodeModule.test.js +17 -33
- package/build/__tests__/behavioral/upgrading/UpgradingANodeModule.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingASkill.test.js +41 -81
- package/build/__tests__/behavioral/upgrading/UpgradingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingASkill2.test.js +29 -57
- package/build/__tests__/behavioral/upgrading/UpgradingASkill2.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingASkill3.test.js +41 -81
- package/build/__tests__/behavioral/upgrading/UpgradingASkill3.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingASkill4.test.js +17 -33
- package/build/__tests__/behavioral/upgrading/UpgradingASkill4.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingASkill5.test.js +29 -57
- package/build/__tests__/behavioral/upgrading/UpgradingASkill5.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingWithListeners.test.js +18 -32
- package/build/__tests__/behavioral/upgrading/UpgradingWithListeners.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingWithSandboxFeatureInstalled.test.js +29 -57
- package/build/__tests__/behavioral/upgrading/UpgradingWithSandboxFeatureInstalled.test.js.map +1 -1
- package/build/__tests__/behavioral/views/CreatingASkillView.test.js +53 -105
- package/build/__tests__/behavioral/views/CreatingASkillView.test.js.map +1 -1
- package/build/__tests__/behavioral/views/CreatingATheme.test.js +30 -56
- package/build/__tests__/behavioral/views/CreatingATheme.test.js.map +1 -1
- package/build/__tests__/behavioral/views/KeepingViewsInSync.test.js +25 -49
- package/build/__tests__/behavioral/views/KeepingViewsInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/views/RegisteringSkillViewOnBoot.test.js +25 -49
- package/build/__tests__/behavioral/views/RegisteringSkillViewOnBoot.test.js.map +1 -1
- package/build/__tests__/behavioral/views/SettingUpViews.test.js +9 -17
- package/build/__tests__/behavioral/views/SettingUpViews.test.js.map +1 -1
- package/build/__tests__/behavioral/views/TestingViewControllers.test.js +21 -41
- package/build/__tests__/behavioral/views/TestingViewControllers.test.js.map +1 -1
- package/build/__tests__/behavioral/views/WatchingSkillViews.test.js +13 -25
- package/build/__tests__/behavioral/views/WatchingSkillViews.test.js.map +1 -1
- package/build/__tests__/behavioral/watchers/WatchingForChanges.test.js +53 -105
- package/build/__tests__/behavioral/watchers/WatchingForChanges.test.js.map +1 -1
- package/build/__tests__/implementation/ActionExecuter.test.js +9 -17
- package/build/__tests__/implementation/ActionExecuter.test.js.map +1 -1
- package/build/__tests__/implementation/ActionExecuter2.test.js +33 -65
- package/build/__tests__/implementation/ActionExecuter2.test.js.map +1 -1
- package/build/__tests__/implementation/ActionExecuter3.test.js +17 -33
- package/build/__tests__/implementation/ActionExecuter3.test.js.map +1 -1
- package/build/__tests__/implementation/ActionExecuter4.test.js +13 -25
- package/build/__tests__/implementation/ActionExecuter4.test.js.map +1 -1
- package/build/__tests__/implementation/ArgParser.test.js +9 -17
- package/build/__tests__/implementation/ArgParser.test.js.map +1 -1
- package/build/__tests__/implementation/BuildService.test.js +9 -17
- package/build/__tests__/implementation/BuildService.test.js.map +1 -1
- package/build/__tests__/implementation/BulkImporting.test.js +41 -81
- package/build/__tests__/implementation/BulkImporting.test.js.map +1 -1
- package/build/__tests__/implementation/CachingImports.test.js +21 -41
- package/build/__tests__/implementation/CachingImports.test.js.map +1 -1
- package/build/__tests__/implementation/CommanderCommandResultMapper.test.js +37 -73
- package/build/__tests__/implementation/CommanderCommandResultMapper.test.js.map +1 -1
- package/build/__tests__/implementation/DataStoreStore.test.js +41 -81
- package/build/__tests__/implementation/DataStoreStore.test.js.map +1 -1
- package/build/__tests__/implementation/DeletingOrphanedSchemaDefinitions.test.js +13 -25
- package/build/__tests__/implementation/DeletingOrphanedSchemaDefinitions.test.js.map +1 -1
- package/build/__tests__/implementation/EventContractCleanerUtil.test.js +17 -33
- package/build/__tests__/implementation/EventContractCleanerUtil.test.js.map +1 -1
- package/build/__tests__/implementation/EventStore.test.js +58 -113
- package/build/__tests__/implementation/EventStore.test.js.map +1 -1
- package/build/__tests__/implementation/EventTemplateItemBuilder.test.js +13 -25
- package/build/__tests__/implementation/EventTemplateItemBuilder.test.js.map +1 -1
- package/build/__tests__/implementation/FeatureCommandAttacher.test.js +37 -73
- package/build/__tests__/implementation/FeatureCommandAttacher.test.js.map +1 -1
- package/build/__tests__/implementation/FeatureFixture.test.js +17 -33
- package/build/__tests__/implementation/FeatureFixture.test.js.map +1 -1
- package/build/__tests__/implementation/FeatureInstaller.test.js +17 -33
- package/build/__tests__/implementation/FeatureInstaller.test.js.map +1 -1
- package/build/__tests__/implementation/FeaturesUtil.test.js +5 -9
- package/build/__tests__/implementation/FeaturesUtil.test.js.map +1 -1
- package/build/__tests__/implementation/FieldTemplateItemBuilder.test.js +5 -9
- package/build/__tests__/implementation/FieldTemplateItemBuilder.test.js.map +1 -1
- package/build/__tests__/implementation/GlobalEmitter.test.js +9 -17
- package/build/__tests__/implementation/GlobalEmitter.test.js.map +1 -1
- package/build/__tests__/implementation/JestJsonParser.test.js +5 -9
- package/build/__tests__/implementation/JestJsonParser.test.js.map +1 -1
- package/build/__tests__/implementation/LintService.test.js +9 -17
- package/build/__tests__/implementation/LintService.test.js.map +1 -1
- package/build/__tests__/implementation/OnboardingScriptLoader.test.js +19 -34
- package/build/__tests__/implementation/OnboardingScriptLoader.test.js.map +1 -1
- package/build/__tests__/implementation/OnboardingScriptPlayer.test.js +58 -103
- package/build/__tests__/implementation/OnboardingScriptPlayer.test.js.map +1 -1
- package/build/__tests__/implementation/OnboardingStore.test.js +9 -17
- package/build/__tests__/implementation/OnboardingStore.test.js.map +1 -1
- package/build/__tests__/implementation/OrganizationStore.test.js +21 -41
- package/build/__tests__/implementation/OrganizationStore.test.js.map +1 -1
- package/build/__tests__/implementation/ParentTestFinder.test.js +13 -25
- package/build/__tests__/implementation/ParentTestFinder.test.js.map +1 -1
- package/build/__tests__/implementation/PkgService.test.js +25 -49
- package/build/__tests__/implementation/PkgService.test.js.map +1 -1
- package/build/__tests__/implementation/SchemaStore.test.js +65 -129
- package/build/__tests__/implementation/SchemaStore.test.js.map +1 -1
- package/build/__tests__/implementation/SchemaTemplateItemBuilder.test.js +5 -9
- package/build/__tests__/implementation/SchemaTemplateItemBuilder.test.js.map +1 -1
- package/build/__tests__/implementation/SchemaValueTypeWriter.test.js +29 -57
- package/build/__tests__/implementation/SchemaValueTypeWriter.test.js.map +1 -1
- package/build/__tests__/implementation/ServiceFactory.test.js +5 -9
- package/build/__tests__/implementation/ServiceFactory.test.js.map +1 -1
- package/build/__tests__/implementation/SettingUpANodeModule.test.js +13 -25
- package/build/__tests__/implementation/SettingUpANodeModule.test.js.map +1 -1
- package/build/__tests__/implementation/SkillStore.test.js +33 -65
- package/build/__tests__/implementation/SkillStore.test.js.map +1 -1
- package/build/__tests__/implementation/StoreFeature.test.js +10 -16
- package/build/__tests__/implementation/StoreFeature.test.js.map +1 -1
- package/build/__tests__/implementation/TestReporter.test.js +17 -33
- package/build/__tests__/implementation/TestReporter.test.js.map +1 -1
- package/build/__tests__/implementation/TestRunner.test.js +37 -73
- package/build/__tests__/implementation/TestRunner.test.js.map +1 -1
- package/build/__tests__/implementation/ValueTypeMapping.test.js +9 -17
- package/build/__tests__/implementation/ValueTypeMapping.test.js.map +1 -1
- package/build/__tests__/implementation/Widgets.test.js +17 -33
- package/build/__tests__/implementation/Widgets.test.js.map +1 -1
- package/build/__tests__/support/EventFaker.js +5 -9
- package/build/__tests__/support/EventFaker.js.map +1 -1
- package/build/__tests__/support/scripts/first.script.js +5 -7
- package/build/__tests__/support/scripts/first.script.js.map +1 -1
- package/build/boot.js +5 -12
- package/build/boot.js.map +1 -1
- package/build/cli/Cli.js +42 -80
- package/build/cli/Cli.js.map +1 -1
- package/build/components/FormComponent.js +9 -17
- package/build/components/FormComponent.js.map +1 -1
- package/build/components/QuizComponent.js +9 -17
- package/build/components/QuizComponent.js.map +1 -1
- package/build/features/AbstractAction.js +13 -25
- package/build/features/AbstractAction.js.map +1 -1
- package/build/features/AbstractFeature.js +17 -33
- package/build/features/AbstractFeature.js.map +1 -1
- package/build/features/ActionExecuter.js +11 -17
- package/build/features/ActionExecuter.js.map +1 -1
- package/build/features/ActionQuestionAsker.js +35 -65
- package/build/features/ActionQuestionAsker.js.map +1 -1
- package/build/features/FeatureCommandAttacher.js +5 -9
- package/build/features/FeatureCommandAttacher.js.map +1 -1
- package/build/features/FeatureInstaller.js +43 -81
- package/build/features/FeatureInstaller.js.map +1 -1
- package/build/features/OverrideActionDecorator.js +6 -8
- package/build/features/OverrideActionDecorator.js.map +1 -1
- package/build/features/cache/CacheFeature.js +5 -9
- package/build/features/cache/CacheFeature.js.map +1 -1
- package/build/features/cache/actions/DisableAction.js +5 -9
- package/build/features/cache/actions/DisableAction.js.map +1 -1
- package/build/features/cache/actions/EnableAction.js +5 -9
- package/build/features/cache/actions/EnableAction.js.map +1 -1
- package/build/features/conversation/ConversationFeature.js +13 -25
- package/build/features/conversation/ConversationFeature.js.map +1 -1
- package/build/features/conversation/actions/CreateAction.js +5 -9
- package/build/features/conversation/actions/CreateAction.js.map +1 -1
- package/build/features/conversation/actions/TestAction.js +14 -24
- package/build/features/conversation/actions/TestAction.js.map +1 -1
- package/build/features/conversation/stores/ConversationStore.js +5 -9
- package/build/features/conversation/stores/ConversationStore.js.map +1 -1
- package/build/features/conversation/writers/ConversationWriter.js +5 -9
- package/build/features/conversation/writers/ConversationWriter.js.map +1 -1
- package/build/features/dependencies/DependencyFeature.js +5 -9
- package/build/features/dependencies/DependencyFeature.js.map +1 -1
- package/build/features/dependencies/actions/AddAction.js +5 -9
- package/build/features/dependencies/actions/AddAction.js.map +1 -1
- package/build/features/dependencies/actions/ManageAction.js +5 -9
- package/build/features/dependencies/actions/ManageAction.js.map +1 -1
- package/build/features/deploy/DeployFeature.js +5 -9
- package/build/features/deploy/DeployFeature.js.map +1 -1
- package/build/features/deploy/actions/HerokuAction.js +41 -81
- package/build/features/deploy/actions/HerokuAction.js.map +1 -1
- package/build/features/error/ErrorFeature.js +13 -25
- package/build/features/error/ErrorFeature.js.map +1 -1
- package/build/features/error/ParentTestFinder.js +5 -9
- package/build/features/error/ParentTestFinder.js.map +1 -1
- package/build/features/error/actions/CreateAction.js +5 -9
- package/build/features/error/actions/CreateAction.js.map +1 -1
- package/build/features/error/actions/SyncAction.js +13 -25
- package/build/features/error/actions/SyncAction.js.map +1 -1
- package/build/features/error/writers/ErrorWriter.js +21 -41
- package/build/features/error/writers/ErrorWriter.js.map +1 -1
- package/build/features/event/EventFeature.js +29 -57
- package/build/features/event/EventFeature.js.map +1 -1
- package/build/features/event/actions/CreateAction.js +5 -9
- package/build/features/event/actions/CreateAction.js.map +1 -1
- package/build/features/event/actions/ListenAction.js +29 -57
- package/build/features/event/actions/ListenAction.js.map +1 -1
- package/build/features/event/actions/SetRemoteAction.js +5 -9
- package/build/features/event/actions/SetRemoteAction.js.map +1 -1
- package/build/features/event/actions/SyncAction.js +5 -9
- package/build/features/event/actions/SyncAction.js.map +1 -1
- package/build/features/event/actions/SyncListenersAction.js +5 -9
- package/build/features/event/actions/SyncListenersAction.js.map +1 -1
- package/build/features/event/builders/EventContractBuilder.js +17 -33
- package/build/features/event/builders/EventContractBuilder.js.map +1 -1
- package/build/features/event/stores/EventStore.js +26 -48
- package/build/features/event/stores/EventStore.js.map +1 -1
- package/build/features/event/stores/ListenerStore.js +5 -9
- package/build/features/event/stores/ListenerStore.js.map +1 -1
- package/build/features/event/writers/EventWriter.js +25 -49
- package/build/features/event/writers/EventWriter.js.map +1 -1
- package/build/features/eventContract/actions/PullAction.js +9 -17
- package/build/features/eventContract/actions/PullAction.js.map +1 -1
- package/build/features/log/actions/CreateTransportAction.js +5 -9
- package/build/features/log/actions/CreateTransportAction.js.map +1 -1
- package/build/features/log/writers/LogWriter.js +5 -9
- package/build/features/log/writers/LogWriter.js.map +1 -1
- package/build/features/node/NodeFeature.js +22 -40
- package/build/features/node/NodeFeature.js.map +1 -1
- package/build/features/node/actions/CreateAction.js +5 -9
- package/build/features/node/actions/CreateAction.js.map +1 -1
- package/build/features/node/actions/UpdateDependenciesAction.js +9 -17
- package/build/features/node/actions/UpdateDependenciesAction.js.map +1 -1
- package/build/features/node/actions/UpgradeAction.js +13 -25
- package/build/features/node/actions/UpgradeAction.js.map +1 -1
- package/build/features/node/writers/NodeWriter.js +5 -9
- package/build/features/node/writers/NodeWriter.js.map +1 -1
- package/build/features/onboard/OnboardFeature.js +18 -33
- package/build/features/onboard/OnboardFeature.js.map +1 -1
- package/build/features/onboard/ScriptLoader.js +5 -9
- package/build/features/onboard/ScriptLoader.js.map +1 -1
- package/build/features/onboard/ScriptPlayer.js +13 -25
- package/build/features/onboard/ScriptPlayer.js.map +1 -1
- package/build/features/onboard/actions/OnboardAction.js +5 -9
- package/build/features/onboard/actions/OnboardAction.js.map +1 -1
- package/build/features/onboard/scripts/onboarding.first.script.js +18 -37
- package/build/features/onboard/scripts/onboarding.first.script.js.map +1 -1
- package/build/features/onboard/scripts/onboarding.immersive.script.js +8 -13
- package/build/features/onboard/scripts/onboarding.immersive.script.js.map +1 -1
- package/build/features/onboard/scripts/onboarding.returning.script.js +5 -7
- package/build/features/onboard/scripts/onboarding.returning.script.js.map +1 -1
- package/build/features/onboard/scripts/onboarding.short.script.js +17 -31
- package/build/features/onboard/scripts/onboarding.short.script.js.map +1 -1
- package/build/features/onboard/scripts/todo/todo.create.skill.script.js +5 -7
- package/build/features/onboard/scripts/todo/todo.create.skill.script.js.map +1 -1
- package/build/features/onboard/scripts/todo/todo.test.script.js +5 -7
- package/build/features/onboard/scripts/todo/todo.test.script.js.map +1 -1
- package/build/features/onboard/scripts/wrongCommand.script.js +5 -7
- package/build/features/onboard/scripts/wrongCommand.script.js.map +1 -1
- package/build/features/organization/actions/CreateAction.js +5 -9
- package/build/features/organization/actions/CreateAction.js.map +1 -1
- package/build/features/organization/actions/InstallAction.js +5 -9
- package/build/features/organization/actions/InstallAction.js.map +1 -1
- package/build/features/organization/stores/OrganizationStore.js +21 -41
- package/build/features/organization/stores/OrganizationStore.js.map +1 -1
- package/build/features/permission/PermissionFeature.js +17 -33
- package/build/features/permission/PermissionFeature.js.map +1 -1
- package/build/features/permission/actions/CreateAction.js +5 -9
- package/build/features/permission/actions/CreateAction.js.map +1 -1
- package/build/features/permission/actions/SyncAction.js +8 -15
- package/build/features/permission/actions/SyncAction.js.map +1 -1
- package/build/features/permission/stores/PermissionStore.js +9 -17
- package/build/features/permission/stores/PermissionStore.js.map +1 -1
- package/build/features/permission/writers/PermissionWriter.js +13 -25
- package/build/features/permission/writers/PermissionWriter.js.map +1 -1
- package/build/features/person/actions/LoginAction.js +5 -9
- package/build/features/person/actions/LoginAction.js.map +1 -1
- package/build/features/person/actions/LogoutAction.js +5 -9
- package/build/features/person/actions/LogoutAction.js.map +1 -1
- package/build/features/person/actions/WhoamiAction.js +5 -9
- package/build/features/person/actions/WhoamiAction.js.map +1 -1
- package/build/features/polish/actions/SetupAction.js +5 -9
- package/build/features/polish/actions/SetupAction.js.map +1 -1
- package/build/features/polish/writers/PolishWriter.js +5 -9
- package/build/features/polish/writers/PolishWriter.js.map +1 -1
- package/build/features/sandbox/SandboxFeature.js +5 -7
- package/build/features/sandbox/SandboxFeature.js.map +1 -1
- package/build/features/sandbox/actions/SetupAction.js +5 -9
- package/build/features/sandbox/actions/SetupAction.js.map +1 -1
- package/build/features/sandbox/writers/SandboxWriter.js +5 -9
- package/build/features/sandbox/writers/SandboxWriter.js.map +1 -1
- package/build/features/schema/SchemaFeature.js +17 -33
- package/build/features/schema/SchemaFeature.js.map +1 -1
- package/build/features/schema/ValueTypeBuilder.js +5 -9
- package/build/features/schema/ValueTypeBuilder.js.map +1 -1
- package/build/features/schema/actions/CreateAction.js +5 -9
- package/build/features/schema/actions/CreateAction.js.map +1 -1
- package/build/features/schema/actions/SyncAction.js +21 -41
- package/build/features/schema/actions/SyncAction.js.map +1 -1
- package/build/features/schema/actions/SyncFieldsAction.js +5 -9
- package/build/features/schema/actions/SyncFieldsAction.js.map +1 -1
- package/build/features/schema/services/SchemaService.js +5 -9
- package/build/features/schema/services/SchemaService.js.map +1 -1
- package/build/features/schema/stores/SchemaStore.js +31 -57
- package/build/features/schema/stores/SchemaStore.js.map +1 -1
- package/build/features/schema/writers/SchemaWriter.js +25 -49
- package/build/features/schema/writers/SchemaWriter.js.map +1 -1
- package/build/features/skill/SkillFeature.js +25 -49
- package/build/features/skill/SkillFeature.js.map +1 -1
- package/build/features/skill/actions/BootAction.js +9 -17
- package/build/features/skill/actions/BootAction.js.map +1 -1
- package/build/features/skill/actions/CreateAction.js +5 -9
- package/build/features/skill/actions/CreateAction.js.map +1 -1
- package/build/features/skill/actions/DashboardAction.js +5 -9
- package/build/features/skill/actions/DashboardAction.js.map +1 -1
- package/build/features/skill/actions/LoginAction.js +5 -9
- package/build/features/skill/actions/LoginAction.js.map +1 -1
- package/build/features/skill/actions/RebuildAction.js +5 -9
- package/build/features/skill/actions/RebuildAction.js.map +1 -1
- package/build/features/skill/actions/RegisterAction.js +5 -9
- package/build/features/skill/actions/RegisterAction.js.map +1 -1
- package/build/features/skill/stores/SkillStore.js +37 -73
- package/build/features/skill/stores/SkillStore.js.map +1 -1
- package/build/features/skill/updaters/Updater.js +5 -9
- package/build/features/skill/updaters/Updater.js.map +1 -1
- package/build/features/skill/writers/SkillWriter.js +5 -9
- package/build/features/skill/writers/SkillWriter.js.map +1 -1
- package/build/features/store/StoreFeature.js +13 -25
- package/build/features/store/StoreFeature.js.map +1 -1
- package/build/features/store/actions/CreateAction.js +5 -9
- package/build/features/store/actions/CreateAction.js.map +1 -1
- package/build/features/store/actions/SyncAction.js +5 -9
- package/build/features/store/actions/SyncAction.js.map +1 -1
- package/build/features/store/stores/StoreStore.js +5 -9
- package/build/features/store/stores/StoreStore.js.map +1 -1
- package/build/features/store/writers/StoreWriter.js +17 -33
- package/build/features/store/writers/StoreWriter.js.map +1 -1
- package/build/features/test/TestFeature.js +9 -17
- package/build/features/test/TestFeature.js.map +1 -1
- package/build/features/test/TestReporter.js +17 -33
- package/build/features/test/TestReporter.js.map +1 -1
- package/build/features/test/TestRunner.js +14 -26
- package/build/features/test/TestRunner.js.map +1 -1
- package/build/features/test/actions/CreateAction.js +17 -33
- package/build/features/test/actions/CreateAction.js.map +1 -1
- package/build/features/test/actions/SetupAction.js +5 -9
- package/build/features/test/actions/SetupAction.js.map +1 -1
- package/build/features/test/actions/TestAction.js +21 -41
- package/build/features/test/actions/TestAction.js.map +1 -1
- package/build/features/test/writers/TestWriter.js +5 -9
- package/build/features/test/writers/TestWriter.js.map +1 -1
- package/build/features/view/ViewFeature.js +10 -16
- package/build/features/view/ViewFeature.js.map +1 -1
- package/build/features/view/actions/CreateAction.js +5 -9
- package/build/features/view/actions/CreateAction.js.map +1 -1
- package/build/features/view/actions/CreateThemeAction.js +5 -9
- package/build/features/view/actions/CreateThemeAction.js.map +1 -1
- package/build/features/view/actions/SyncAction.js +5 -9
- package/build/features/view/actions/SyncAction.js.map +1 -1
- package/build/features/view/actions/WatchAction.js +5 -9
- package/build/features/view/actions/WatchAction.js.map +1 -1
- package/build/features/view/stores/ViewStore.js +5 -9
- package/build/features/view/stores/ViewStore.js.map +1 -1
- package/build/features/view/writers/ViewWriter.js +9 -17
- package/build/features/view/writers/ViewWriter.js.map +1 -1
- package/build/features/vscode/actions/SetupAction.js +21 -41
- package/build/features/vscode/actions/SetupAction.js.map +1 -1
- package/build/features/vscode/services/VsCodeService.js +13 -25
- package/build/features/vscode/services/VsCodeService.js.map +1 -1
- package/build/features/vscode/writers/VsCodeWriter.js +5 -9
- package/build/features/vscode/writers/VsCodeWriter.js.map +1 -1
- package/build/features/watch/WatchFeature.js +23 -41
- package/build/features/watch/WatchFeature.js.map +1 -1
- package/build/interfaces/SpyInterface.js +25 -49
- package/build/interfaces/SpyInterface.js.map +1 -1
- package/build/interfaces/TerminalInterface.js +33 -65
- package/build/interfaces/TerminalInterface.js.map +1 -1
- package/build/services/BuildService.js +5 -9
- package/build/services/BuildService.js.map +1 -1
- package/build/services/CommandService.js +5 -9
- package/build/services/CommandService.js.map +1 -1
- package/build/services/GameService.js +5 -9
- package/build/services/GameService.js.map +1 -1
- package/build/services/ImportService.js +21 -31
- package/build/services/ImportService.js.map +1 -1
- package/build/services/LintService.js +6 -8
- package/build/services/LintService.js.map +1 -1
- package/build/services/PkgService.js +9 -17
- package/build/services/PkgService.js.map +1 -1
- package/build/services/TypeCheckerService.js +6 -8
- package/build/services/TypeCheckerService.js.map +1 -1
- package/build/stores/AbstractStore.js +5 -9
- package/build/stores/AbstractStore.js.map +1 -1
- package/build/tests/AbstractCliTest.js +61 -121
- package/build/tests/AbstractCliTest.js.map +1 -1
- package/build/tests/AbstractErrorTest.js +5 -9
- package/build/tests/AbstractErrorTest.js.map +1 -1
- package/build/tests/AbstractEventTest.js +17 -33
- package/build/tests/AbstractEventTest.js.map +1 -1
- package/build/tests/AbstractSchemaTest.js +13 -25
- package/build/tests/AbstractSchemaTest.js.map +1 -1
- package/build/tests/AbstractSkillTest.js +13 -25
- package/build/tests/AbstractSkillTest.js.map +1 -1
- package/build/tests/AbstractTestTest.js +5 -9
- package/build/tests/AbstractTestTest.js.map +1 -1
- package/build/tests/MockProgramFactory.js +10 -15
- package/build/tests/MockProgramFactory.js.map +1 -1
- package/build/tests/buildTestCache.js +32 -49
- package/build/tests/buildTestCache.js.map +1 -1
- package/build/tests/cleanTestData.js +27 -45
- package/build/tests/cleanTestData.js.map +1 -1
- package/build/tests/fixtures/FeatureFixture.js +25 -49
- package/build/tests/fixtures/FeatureFixture.js.map +1 -1
- package/build/tests/fixtures/MercuryFixture.js +5 -9
- package/build/tests/fixtures/MercuryFixture.js.map +1 -1
- package/build/tests/fixtures/OrganizationFixture.js +13 -25
- package/build/tests/fixtures/OrganizationFixture.js.map +1 -1
- package/build/tests/fixtures/PersonFixture.js +9 -17
- package/build/tests/fixtures/PersonFixture.js.map +1 -1
- package/build/tests/fixtures/SkillFixture.js +31 -57
- package/build/tests/fixtures/SkillFixture.js.map +1 -1
- package/build/tests/fixtures/ViewFixture.js +5 -9
- package/build/tests/fixtures/ViewFixture.js.map +1 -1
- package/build/updaters/ScriptUpdater.js +5 -9
- package/build/updaters/ScriptUpdater.js.map +1 -1
- package/build/widgets/terminalKit/TkBaseWidget.js +5 -9
- package/build/widgets/terminalKit/TkBaseWidget.js.map +1 -1
- package/build/widgets/terminalKit/TkInputWidget.js +9 -17
- package/build/widgets/terminalKit/TkInputWidget.js.map +1 -1
- package/build/widgets/terminalKit/TkLayoutWidget.js +5 -9
- package/build/widgets/terminalKit/TkLayoutWidget.js.map +1 -1
- package/build/widgets/terminalKit/TkTextWidget.js +5 -9
- package/build/widgets/terminalKit/TkTextWidget.js.map +1 -1
- package/build/widgets/terminalKit/TkWindowWidget.js +9 -17
- package/build/widgets/terminalKit/TkWindowWidget.js.map +1 -1
- package/build/writers/AbstractWriter.js +13 -25
- package/build/writers/AbstractWriter.js.map +1 -1
- package/package.json +29 -29
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PullingMercuryEventContract.test.js","names":["_spruceSkillUtils","require","_testUtils","_AbstractCliTest2","_interopRequireDefault","_test","_dec","_dec2","_dec3","_dec4","_dec5","_dec6","_dec7","_dec8","_class","_class2","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","GeneratingMercuryEventContractTest","test","_AbstractCliTest","_inherits2","_super","_classCallCheck2","_createClass2","key","value","_beforeEach","_asyncToGenerator2","_regenerator","mark","_callee","wrap","_callee$","_context","prev","next","_get2","Cli","cli","sent","diskUtil","writeFile","resolvePath","stop","beforeEach","_hasEventContractFeature","_callee2","_callee2$","_context2","assert","isTruthy","getFeature","hasEventContractFeature","_hasPullFeature","_callee3","_callee3$","_context3","isFunction","Action","execute","hasPullFeature","_generatesContractAtCwd","_callee4","_results$files","results","match","contents","_callee4$","_context4","FeatureFixture","installCachedFeatures","isFalsy","errors","testUtil","assertFileByNameInGeneratedFiles","files","isEqual","doesInclude","name","action","readFile","generatesContractAtCwd","_generatesAtDestination","_callee5","expected","_callee5$","_context5","destination","generatesAtDestination","_savesContractLocallyAndImportsAsDefault","_callee6","contracts","_callee6$","_context6","installSkillAndPullContracts","isArray","isObject","eventSignatures","savesContractLocallyAndImportsAsDefault","_doesNotPullGlobalContracts","_callee7","events","_callee7$","_context7","getSkillFixture","registerCurrentSkill","Store","registerEventContract","eventContract","isGlobal","length","doesNotPullGlobalContracts","_contractHasTypes","_callee8","promise","_callee8$","_context8","shouldAutoHandleDependencies","contractHasTypes","_generatingASecondTimeReportsAnUpdate","_callee9","_results$files2","_callee9$","_context9","generatingASecondTimeReportsAnUpdate","_installSkillAndPullContracts","_callee10","_callee10$","_context10","pullContracts","abrupt","_pullContracts","_callee11","_callee11$","_context11","Service","importDefault","AbstractCliTest","_defineProperty2","_applyDecoratedDescriptor2","Object","getOwnPropertyDescriptor","exports"],"sources":["../../../../src/__tests__/behavioral/eventContract/PullingMercuryEventContract.test.ts"],"sourcesContent":["import { EventContract } from '@sprucelabs/mercury-types'\nimport { diskUtil } from '@sprucelabs/spruce-skill-utils'\nimport { test, assert } from '@sprucelabs/test-utils'\nimport AbstractCliTest from '../../../tests/AbstractCliTest'\nimport testUtil from '../../../tests/utilities/test.utility'\nimport { CliInterface } from '../../../types/cli.types'\n\nexport default class GeneratingMercuryEventContractTest extends AbstractCliTest {\n\tprivate static cli: CliInterface\n\n\tprotected static async beforeEach() {\n\t\tawait super.beforeEach()\n\t\tthis.cli = await this.Cli()\n\t\tdiskUtil.writeFile(this.resolvePath('package.json'), '{}')\n\t}\n\n\t@test()\n\tprotected static async hasEventContractFeature() {\n\t\tassert.isTruthy(this.cli.getFeature('eventContract'))\n\t}\n\n\t@test()\n\tprotected static async hasPullFeature() {\n\t\tassert.isFunction(this.Action('eventContract', 'pull').execute)\n\t}\n\n\t@test()\n\tprotected static async generatesContractAtCwd() {\n\t\tawait this.FeatureFixture().installCachedFeatures('events')\n\t\tconst results = await this.Action('eventContract', 'pull').execute({})\n\t\tassert.isFalsy(results.errors)\n\n\t\tconst match = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t'events.contract.ts',\n\t\t\tresults.files\n\t\t)\n\n\t\tassert.isEqual(match, this.resolvePath('events.contract.ts'))\n\n\t\tassert.doesInclude(results.files ?? [], {\n\t\t\tname: 'events.contract.ts',\n\t\t\taction: 'generated',\n\t\t})\n\n\t\tconst contents = diskUtil.readFile(match)\n\n\t\tassert.doesInclude(\n\t\t\tcontents,\n\t\t\t\"import { buildEventContract } from '@sprucelabs/mercury-types'\"\n\t\t)\n\t}\n\n\t@test()\n\tprotected static async generatesAtDestination() {\n\t\tawait this.FeatureFixture().installCachedFeatures('events')\n\t\tconst results = await this.Action('eventContract', 'pull').execute({\n\t\t\tdestination: './src/tests',\n\t\t})\n\n\t\tconst match = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t'events.contract.ts',\n\t\t\tresults.files\n\t\t)\n\t\tconst expected = this.resolvePath('src/tests/events.contract.ts')\n\n\t\tassert.isEqual(expected, match)\n\t}\n\n\t@test()\n\tprotected static async savesContractLocallyAndImportsAsDefault() {\n\t\tconst contracts = await this.installSkillAndPullContracts()\n\n\t\tassert.isArray(contracts)\n\t\tassert.isObject(contracts[0].eventSignatures)\n\t\tassert.isObject(contracts[0].eventSignatures[`did-message::v2020_12_25`])\n\t}\n\n\t@test()\n\tprotected static async doesNotPullGlobalContracts() {\n\t\tthis.cli = await this.FeatureFixture().installCachedFeatures('events')\n\n\t\tawait this.getSkillFixture().registerCurrentSkill({\n\t\t\tname: 'heartwood test',\n\t\t})\n\n\t\tconst events = await this.Store('event')\n\t\tawait events.registerEventContract({\n\t\t\teventContract: {\n\t\t\t\teventSignatures: {\n\t\t\t\t\t'test-event::v2020_01_01': {\n\t\t\t\t\t\tisGlobal: true,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\n\t\tconst contracts = await this.installSkillAndPullContracts()\n\n\t\tassert.isEqual(contracts.length, 1)\n\t\tassert.isObject(contracts[0].eventSignatures)\n\t\tassert.isObject(contracts[0].eventSignatures['add-role::v2020_12_25'])\n\t}\n\n\t@test()\n\tprotected static async contractHasTypes() {\n\t\tthis.cli = await this.FeatureFixture().installCachedFeatures('node')\n\n\t\tconst promise = this.Action('eventContract', 'pull', {\n\t\t\tshouldAutoHandleDependencies: true,\n\t\t}).execute({})\n\n\t\tconst results = await promise\n\n\t\tconst match = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t'events.contract.ts',\n\t\t\tresults.files\n\t\t)\n\n\t\tconst contents = diskUtil.readFile(match)\n\n\t\tassert.doesInclude(contents, 'export default eventContracts')\n\t\tassert.doesInclude(contents, 'as const')\n\t\tassert.doesInclude(\n\t\t\tcontents,\n\t\t\t'export type CoreEventContract = typeof eventContracts[0]'\n\t\t)\n\t}\n\n\t@test()\n\tprotected static async generatingASecondTimeReportsAnUpdate() {\n\t\tthis.cli = await this.FeatureFixture().installCachedFeatures('events')\n\t\tawait this.Action('eventContract', 'pull').execute({})\n\n\t\tconst results = await this.Action('eventContract', 'pull').execute({})\n\n\t\ttestUtil.assertFileByNameInGeneratedFiles(\n\t\t\t'events.contract.ts',\n\t\t\tresults.files\n\t\t)\n\n\t\tassert.doesInclude(results.files ?? [], {\n\t\t\tname: 'events.contract.ts',\n\t\t\taction: 'updated',\n\t\t})\n\t}\n\n\tprivate static async installSkillAndPullContracts() {\n\t\tthis.cli = await this.FeatureFixture().installCachedFeatures('events')\n\t\treturn await this.pullContracts()\n\t}\n\n\tprivate static async pullContracts() {\n\t\tconst results = await this.Action('eventContract', 'pull').execute({})\n\n\t\tconst match = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t'events.contract.ts',\n\t\t\tresults.files\n\t\t)\n\n\t\tconst contracts = await this.Service('import').importDefault(match)\n\t\treturn contracts as EventContract[]\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AACA,IAAAA,iBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,iBAAA,GAAAC,s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,6BAAAA,MAAA,OAAAkJ,0BAAA,aAAAlJ,MAAA,6BAAAL,KAAA,GAAAwJ,MAAA,CAAAC,wBAAA,CAAApJ,MAAA,6BAAAA,MAAA,OAAAkJ,0BAAA,aAAAlJ,MAAA,8CAAAJ,KAAA,GAAAuJ,MAAA,CAAAC,wBAAA,CAAApJ,MAAA,8CAAAA,MAAA,OAAAkJ,0BAAA,aAAAlJ,MAAA,iCAAAH,KAAA,GAAAsJ,MAAA,CAAAC,wBAAA,CAAApJ,MAAA,iCAAAA,MAAA,OAAAkJ,0BAAA,aAAAlJ,MAAA,uBAAAF,KAAA,GAAAqJ,MAAA,CAAAC,wBAAA,CAAApJ,MAAA,uBAAAA,MAAA,OAAAkJ,0BAAA,aAAAlJ,MAAA,2CAAAD,KAAA,GAAAoJ,MAAA,CAAAC,wBAAA,CAAApJ,MAAA,2CAAAA,MAAA,IAAAA,MAAA;AAAAqJ,OAAA,cAAA7H,kCAAA"}
|
|
1
|
+
{"version":3,"file":"PullingMercuryEventContract.test.js","names":["_spruceSkillUtils","require","_testUtils","_AbstractCliTest2","_interopRequireDefault","_test","_dec","_dec2","_dec3","_dec4","_dec5","_dec6","_dec7","_dec8","_class","_class2","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","GeneratingMercuryEventContractTest","test","_AbstractCliTest","_beforeEach","_hasEventContractFeature","_hasPullFeature","_generatesContractAtCwd","_generatesAtDestination","_savesContractLocallyAndImportsAsDefault","_doesNotPullGlobalContracts","_contractHasTypes","_generatingASecondTimeReportsAnUpdate","_installSkillAndPullContracts","_pullContracts","_inherits2","_super","_classCallCheck2","_createClass2","key","value","beforeEach","_asyncToGenerator2","_regenerator","mark","_callee","wrap","_callee$","_context","prev","next","_get2","Cli","cli","sent","diskUtil","writeFile","resolvePath","stop","hasEventContractFeature","_callee2","_callee2$","_context2","assert","isTruthy","getFeature","hasPullFeature","_callee3","_callee3$","_context3","isFunction","Action","execute","generatesContractAtCwd","_callee4","_results$files","results","match","contents","_callee4$","_context4","FeatureFixture","installCachedFeatures","isFalsy","errors","testUtil","assertFileByNameInGeneratedFiles","files","isEqual","doesInclude","name","action","readFile","generatesAtDestination","_callee5","expected","_callee5$","_context5","destination","savesContractLocallyAndImportsAsDefault","_callee6","contracts","_callee6$","_context6","installSkillAndPullContracts","isArray","isObject","eventSignatures","doesNotPullGlobalContracts","_callee7","events","_callee7$","_context7","getSkillFixture","registerCurrentSkill","Store","registerEventContract","eventContract","isGlobal","length","contractHasTypes","_callee8","promise","_callee8$","_context8","shouldAutoHandleDependencies","generatingASecondTimeReportsAnUpdate","_callee9","_results$files2","_callee9$","_context9","_callee10","_callee10$","_context10","pullContracts","abrupt","_callee11","_callee11$","_context11","Service","importDefault","AbstractCliTest","_defineProperty2","_applyDecoratedDescriptor2","Object","getOwnPropertyDescriptor","exports"],"sources":["../../../../src/__tests__/behavioral/eventContract/PullingMercuryEventContract.test.ts"],"sourcesContent":["import { EventContract } from '@sprucelabs/mercury-types'\nimport { diskUtil } from '@sprucelabs/spruce-skill-utils'\nimport { test, assert } from '@sprucelabs/test-utils'\nimport AbstractCliTest from '../../../tests/AbstractCliTest'\nimport testUtil from '../../../tests/utilities/test.utility'\nimport { CliInterface } from '../../../types/cli.types'\n\nexport default class GeneratingMercuryEventContractTest extends AbstractCliTest {\n\tprivate static cli: CliInterface\n\n\tprotected static async beforeEach() {\n\t\tawait super.beforeEach()\n\t\tthis.cli = await this.Cli()\n\t\tdiskUtil.writeFile(this.resolvePath('package.json'), '{}')\n\t}\n\n\t@test()\n\tprotected static async hasEventContractFeature() {\n\t\tassert.isTruthy(this.cli.getFeature('eventContract'))\n\t}\n\n\t@test()\n\tprotected static async hasPullFeature() {\n\t\tassert.isFunction(this.Action('eventContract', 'pull').execute)\n\t}\n\n\t@test()\n\tprotected static async generatesContractAtCwd() {\n\t\tawait this.FeatureFixture().installCachedFeatures('events')\n\t\tconst results = await this.Action('eventContract', 'pull').execute({})\n\t\tassert.isFalsy(results.errors)\n\n\t\tconst match = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t'events.contract.ts',\n\t\t\tresults.files\n\t\t)\n\n\t\tassert.isEqual(match, this.resolvePath('events.contract.ts'))\n\n\t\tassert.doesInclude(results.files ?? [], {\n\t\t\tname: 'events.contract.ts',\n\t\t\taction: 'generated',\n\t\t})\n\n\t\tconst contents = diskUtil.readFile(match)\n\n\t\tassert.doesInclude(\n\t\t\tcontents,\n\t\t\t\"import { buildEventContract } from '@sprucelabs/mercury-types'\"\n\t\t)\n\t}\n\n\t@test()\n\tprotected static async generatesAtDestination() {\n\t\tawait this.FeatureFixture().installCachedFeatures('events')\n\t\tconst results = await this.Action('eventContract', 'pull').execute({\n\t\t\tdestination: './src/tests',\n\t\t})\n\n\t\tconst match = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t'events.contract.ts',\n\t\t\tresults.files\n\t\t)\n\t\tconst expected = this.resolvePath('src/tests/events.contract.ts')\n\n\t\tassert.isEqual(expected, match)\n\t}\n\n\t@test()\n\tprotected static async savesContractLocallyAndImportsAsDefault() {\n\t\tconst contracts = await this.installSkillAndPullContracts()\n\n\t\tassert.isArray(contracts)\n\t\tassert.isObject(contracts[0].eventSignatures)\n\t\tassert.isObject(contracts[0].eventSignatures[`did-message::v2020_12_25`])\n\t}\n\n\t@test()\n\tprotected static async doesNotPullGlobalContracts() {\n\t\tthis.cli = await this.FeatureFixture().installCachedFeatures('events')\n\n\t\tawait this.getSkillFixture().registerCurrentSkill({\n\t\t\tname: 'heartwood test',\n\t\t})\n\n\t\tconst events = await this.Store('event')\n\t\tawait events.registerEventContract({\n\t\t\teventContract: {\n\t\t\t\teventSignatures: {\n\t\t\t\t\t'test-event::v2020_01_01': {\n\t\t\t\t\t\tisGlobal: true,\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\n\t\tconst contracts = await this.installSkillAndPullContracts()\n\n\t\tassert.isEqual(contracts.length, 1)\n\t\tassert.isObject(contracts[0].eventSignatures)\n\t\tassert.isObject(contracts[0].eventSignatures['add-role::v2020_12_25'])\n\t}\n\n\t@test()\n\tprotected static async contractHasTypes() {\n\t\tthis.cli = await this.FeatureFixture().installCachedFeatures('node')\n\n\t\tconst promise = this.Action('eventContract', 'pull', {\n\t\t\tshouldAutoHandleDependencies: true,\n\t\t}).execute({})\n\n\t\tconst results = await promise\n\n\t\tconst match = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t'events.contract.ts',\n\t\t\tresults.files\n\t\t)\n\n\t\tconst contents = diskUtil.readFile(match)\n\n\t\tassert.doesInclude(contents, 'export default eventContracts')\n\t\tassert.doesInclude(contents, 'as const')\n\t\tassert.doesInclude(\n\t\t\tcontents,\n\t\t\t'export type CoreEventContract = typeof eventContracts[0]'\n\t\t)\n\t}\n\n\t@test()\n\tprotected static async generatingASecondTimeReportsAnUpdate() {\n\t\tthis.cli = await this.FeatureFixture().installCachedFeatures('events')\n\t\tawait this.Action('eventContract', 'pull').execute({})\n\n\t\tconst results = await this.Action('eventContract', 'pull').execute({})\n\n\t\ttestUtil.assertFileByNameInGeneratedFiles(\n\t\t\t'events.contract.ts',\n\t\t\tresults.files\n\t\t)\n\n\t\tassert.doesInclude(results.files ?? [], {\n\t\t\tname: 'events.contract.ts',\n\t\t\taction: 'updated',\n\t\t})\n\t}\n\n\tprivate static async installSkillAndPullContracts() {\n\t\tthis.cli = await this.FeatureFixture().installCachedFeatures('events')\n\t\treturn await this.pullContracts()\n\t}\n\n\tprivate static async pullContracts() {\n\t\tconst results = await this.Action('eventContract', 'pull').execute({})\n\n\t\tconst match = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t'events.contract.ts',\n\t\t\tresults.files\n\t\t)\n\n\t\tconst contracts = await this.Service('import').importDefault(match)\n\t\treturn contracts as EventContract[]\n\t}\n}\n"],"mapp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MAAA,8CAAAJ,KAAA,GAAAuJ,MAAA,CAAAC,wBAAA,CAAApJ,MAAA,8CAAAA,MAAA,OAAAkJ,0BAAA,aAAAlJ,MAAA,iCAAAH,KAAA,GAAAsJ,MAAA,CAAAC,wBAAA,CAAApJ,MAAA,iCAAAA,MAAA,OAAAkJ,0BAAA,aAAAlJ,MAAA,uBAAAF,KAAA,GAAAqJ,MAAA,CAAAC,wBAAA,CAAApJ,MAAA,uBAAAA,MAAA,OAAAkJ,0BAAA,aAAAlJ,MAAA,2CAAAD,KAAA,GAAAoJ,MAAA,CAAAC,wBAAA,CAAApJ,MAAA,2CAAAA,MAAA,IAAAA,MAAA;AAAAqJ,OAAA,cAAA7H,kCAAA"}
|
|
@@ -29,7 +29,7 @@ var _test = _interopRequireDefault(require("../../../tests/utilities/test.utilit
|
|
|
29
29
|
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _class, _class2;
|
|
30
30
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
|
31
31
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
32
|
-
var CreatingAListenerTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.test)(), _dec3 = (0, _testUtils.test)(), _dec4 = (0, _testUtils.test)(), _dec5 = (0, _testUtils.test)(), _dec6 = (0, _testUtils.test)(), _dec7 = (0, _testUtils.test)(), _dec8 = (0, _testUtils.test)(), _dec9 = (0, _testUtils.test)(), _dec10 = (0, _testUtils.test)(), _dec11 = (0, _testUtils.test)(), (_class = (_class2 = /*#__PURE__*/function (_AbstractEventTest) {
|
|
32
|
+
var CreatingAListenerTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.test)(), _dec3 = (0, _testUtils.test)(), _dec4 = (0, _testUtils.test)(), _dec5 = (0, _testUtils.test)(), _dec6 = (0, _testUtils.test)(), _dec7 = (0, _testUtils.test)(), _dec8 = (0, _testUtils.test)(), _dec9 = (0, _testUtils.test)(), _dec10 = (0, _testUtils.test)(), _dec11 = (0, _testUtils.test)(), (_class = (_class2 = /*#__PURE__*/function (_AbstractEventTest, _beforeEach, _throwsWithBadNamespace, _throwsWithBadEventName, _generatesMapFile, _createsValidListener, _creatingANewListenerAsksWhichEventToListenTo, _loadsContractsFilteringByDependencies, _fakeGetEventContracts, _generatesTypedListenerWithoutPayloads, _generatesTypedListenerWithEmitPayload, _emittingEventTriggersListenerAndCrashesWithListenerNotImplemented, _listeningToAnEventWithNoEmitTargetOrPayloadGeneratesValidListener, _hasIsGlobalCheck, _installAddDependencyExecuteAndWaitForInput, _executeAndWaitForInput, _installEventsAndCreateListener, _setupSkillsInstallAtOrgRegisterEventContractAndGenerateListener, _installEventsCreateListenerAndGetListenerMap) {
|
|
33
33
|
(0, _inherits2["default"])(CreatingAListenerTest, _AbstractEventTest);
|
|
34
34
|
var _super = _createSuper(CreatingAListenerTest);
|
|
35
35
|
function CreatingAListenerTest() {
|
|
@@ -38,8 +38,8 @@ var CreatingAListenerTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUti
|
|
|
38
38
|
}
|
|
39
39
|
(0, _createClass2["default"])(CreatingAListenerTest, null, [{
|
|
40
40
|
key: "beforeEach",
|
|
41
|
-
value: function () {
|
|
42
|
-
|
|
41
|
+
value: function beforeEach() {
|
|
42
|
+
return (_beforeEach = _beforeEach || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
43
43
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
44
44
|
while (1) switch (_context.prev = _context.next) {
|
|
45
45
|
case 0:
|
|
@@ -52,16 +52,12 @@ var CreatingAListenerTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUti
|
|
|
52
52
|
return _context.stop();
|
|
53
53
|
}
|
|
54
54
|
}, _callee, this);
|
|
55
|
-
}));
|
|
56
|
-
|
|
57
|
-
return _beforeEach.apply(this, arguments);
|
|
58
|
-
}
|
|
59
|
-
return beforeEach;
|
|
60
|
-
}()
|
|
55
|
+
}))).apply(this, arguments);
|
|
56
|
+
}
|
|
61
57
|
}, {
|
|
62
58
|
key: "throwsWithBadNamespace",
|
|
63
|
-
value: function () {
|
|
64
|
-
|
|
59
|
+
value: function throwsWithBadNamespace() {
|
|
60
|
+
return (_throwsWithBadNamespace = _throwsWithBadNamespace || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
65
61
|
var results, err;
|
|
66
62
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
67
63
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -85,16 +81,12 @@ var CreatingAListenerTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUti
|
|
|
85
81
|
return _context2.stop();
|
|
86
82
|
}
|
|
87
83
|
}, _callee2, this);
|
|
88
|
-
}));
|
|
89
|
-
|
|
90
|
-
return _throwsWithBadNamespace.apply(this, arguments);
|
|
91
|
-
}
|
|
92
|
-
return throwsWithBadNamespace;
|
|
93
|
-
}()
|
|
84
|
+
}))).apply(this, arguments);
|
|
85
|
+
}
|
|
94
86
|
}, {
|
|
95
87
|
key: "throwsWithBadEventName",
|
|
96
|
-
value: function () {
|
|
97
|
-
|
|
88
|
+
value: function throwsWithBadEventName() {
|
|
89
|
+
return (_throwsWithBadEventName = _throwsWithBadEventName || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3() {
|
|
98
90
|
var results, err;
|
|
99
91
|
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
100
92
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -119,16 +111,12 @@ var CreatingAListenerTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUti
|
|
|
119
111
|
return _context3.stop();
|
|
120
112
|
}
|
|
121
113
|
}, _callee3, this);
|
|
122
|
-
}));
|
|
123
|
-
|
|
124
|
-
return _throwsWithBadEventName.apply(this, arguments);
|
|
125
|
-
}
|
|
126
|
-
return throwsWithBadEventName;
|
|
127
|
-
}()
|
|
114
|
+
}))).apply(this, arguments);
|
|
115
|
+
}
|
|
128
116
|
}, {
|
|
129
117
|
key: "generatesMapFile",
|
|
130
|
-
value: function () {
|
|
131
|
-
|
|
118
|
+
value: function generatesMapFile() {
|
|
119
|
+
return (_generatesMapFile = _generatesMapFile || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4() {
|
|
132
120
|
var match;
|
|
133
121
|
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
|
134
122
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -144,16 +132,12 @@ var CreatingAListenerTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUti
|
|
|
144
132
|
return _context4.stop();
|
|
145
133
|
}
|
|
146
134
|
}, _callee4, this);
|
|
147
|
-
}));
|
|
148
|
-
|
|
149
|
-
return _generatesMapFile.apply(this, arguments);
|
|
150
|
-
}
|
|
151
|
-
return generatesMapFile;
|
|
152
|
-
}()
|
|
135
|
+
}))).apply(this, arguments);
|
|
136
|
+
}
|
|
153
137
|
}, {
|
|
154
138
|
key: "createsValidListener",
|
|
155
|
-
value: function () {
|
|
156
|
-
|
|
139
|
+
value: function createsValidListener() {
|
|
140
|
+
return (_createsValidListener = _createsValidListener || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5() {
|
|
157
141
|
var _health$event;
|
|
158
142
|
var _yield$this$installEv, version, results, cli, match, health;
|
|
159
143
|
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
|
@@ -189,16 +173,12 @@ var CreatingAListenerTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUti
|
|
|
189
173
|
return _context5.stop();
|
|
190
174
|
}
|
|
191
175
|
}, _callee5, this);
|
|
192
|
-
}));
|
|
193
|
-
|
|
194
|
-
return _createsValidListener.apply(this, arguments);
|
|
195
|
-
}
|
|
196
|
-
return createsValidListener;
|
|
197
|
-
}()
|
|
176
|
+
}))).apply(this, arguments);
|
|
177
|
+
}
|
|
198
178
|
}, {
|
|
199
179
|
key: "creatingANewListenerAsksWhichEventToListenTo",
|
|
200
|
-
value: function () {
|
|
201
|
-
|
|
180
|
+
value: function creatingANewListenerAsksWhichEventToListenTo() {
|
|
181
|
+
return (_creatingANewListenerAsksWhichEventToListenTo = _creatingANewListenerAsksWhichEventToListenTo || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee6() {
|
|
202
182
|
var lastInvocation;
|
|
203
183
|
return _regenerator["default"].wrap(function _callee6$(_context6) {
|
|
204
184
|
while (1) switch (_context6.prev = _context6.next) {
|
|
@@ -226,16 +206,12 @@ var CreatingAListenerTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUti
|
|
|
226
206
|
return _context6.stop();
|
|
227
207
|
}
|
|
228
208
|
}, _callee6, this);
|
|
229
|
-
}));
|
|
230
|
-
|
|
231
|
-
return _creatingANewListenerAsksWhichEventToListenTo.apply(this, arguments);
|
|
232
|
-
}
|
|
233
|
-
return creatingANewListenerAsksWhichEventToListenTo;
|
|
234
|
-
}()
|
|
209
|
+
}))).apply(this, arguments);
|
|
210
|
+
}
|
|
235
211
|
}, {
|
|
236
212
|
key: "loadsContractsFilteringByDependencies",
|
|
237
|
-
value: function () {
|
|
238
|
-
|
|
213
|
+
value: function loadsContractsFilteringByDependencies() {
|
|
214
|
+
return (_loadsContractsFilteringByDependencies = _loadsContractsFilteringByDependencies || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee7() {
|
|
239
215
|
var passedTarget, namespace;
|
|
240
216
|
return _regenerator["default"].wrap(function _callee7$(_context7) {
|
|
241
217
|
while (1) switch (_context7.prev = _context7.next) {
|
|
@@ -260,16 +236,12 @@ var CreatingAListenerTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUti
|
|
|
260
236
|
return _context7.stop();
|
|
261
237
|
}
|
|
262
238
|
}, _callee7, this);
|
|
263
|
-
}));
|
|
264
|
-
|
|
265
|
-
return _loadsContractsFilteringByDependencies.apply(this, arguments);
|
|
266
|
-
}
|
|
267
|
-
return loadsContractsFilteringByDependencies;
|
|
268
|
-
}()
|
|
239
|
+
}))).apply(this, arguments);
|
|
240
|
+
}
|
|
269
241
|
}, {
|
|
270
242
|
key: "fakeGetEventContracts",
|
|
271
|
-
value: function () {
|
|
272
|
-
|
|
243
|
+
value: function fakeGetEventContracts(_x, _x2) {
|
|
244
|
+
return (_fakeGetEventContracts = _fakeGetEventContracts || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee8(cb, results) {
|
|
273
245
|
return _regenerator["default"].wrap(function _callee8$(_context8) {
|
|
274
246
|
while (1) switch (_context8.prev = _context8.next) {
|
|
275
247
|
case 0:
|
|
@@ -286,16 +258,12 @@ var CreatingAListenerTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUti
|
|
|
286
258
|
return _context8.stop();
|
|
287
259
|
}
|
|
288
260
|
}, _callee8);
|
|
289
|
-
}));
|
|
290
|
-
|
|
291
|
-
return _fakeGetEventContracts.apply(this, arguments);
|
|
292
|
-
}
|
|
293
|
-
return fakeGetEventContracts;
|
|
294
|
-
}()
|
|
261
|
+
}))).apply(this, arguments);
|
|
262
|
+
}
|
|
295
263
|
}, {
|
|
296
264
|
key: "generatesTypedListenerWithoutPayloads",
|
|
297
|
-
value: function () {
|
|
298
|
-
|
|
265
|
+
value: function generatesTypedListenerWithoutPayloads() {
|
|
266
|
+
return (_generatesTypedListenerWithoutPayloads = _generatesTypedListenerWithoutPayloads || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee9() {
|
|
299
267
|
var _yield$this$setupSkil, contents;
|
|
300
268
|
return _regenerator["default"].wrap(function _callee9$(_context9) {
|
|
301
269
|
while (1) switch (_context9.prev = _context9.next) {
|
|
@@ -313,16 +281,12 @@ var CreatingAListenerTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUti
|
|
|
313
281
|
return _context9.stop();
|
|
314
282
|
}
|
|
315
283
|
}, _callee9, this);
|
|
316
|
-
}));
|
|
317
|
-
|
|
318
|
-
return _generatesTypedListenerWithoutPayloads.apply(this, arguments);
|
|
319
|
-
}
|
|
320
|
-
return generatesTypedListenerWithoutPayloads;
|
|
321
|
-
}()
|
|
284
|
+
}))).apply(this, arguments);
|
|
285
|
+
}
|
|
322
286
|
}, {
|
|
323
287
|
key: "generatesTypedListenerWithEmitPayload",
|
|
324
|
-
value: function () {
|
|
325
|
-
|
|
288
|
+
value: function generatesTypedListenerWithEmitPayload() {
|
|
289
|
+
return (_generatesTypedListenerWithEmitPayload = _generatesTypedListenerWithEmitPayload || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee10() {
|
|
326
290
|
var _yield$this$setupSkil2, contents, skill2;
|
|
327
291
|
return _regenerator["default"].wrap(function _callee10$(_context10) {
|
|
328
292
|
while (1) switch (_context10.prev = _context10.next) {
|
|
@@ -353,16 +317,12 @@ var CreatingAListenerTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUti
|
|
|
353
317
|
return _context10.stop();
|
|
354
318
|
}
|
|
355
319
|
}, _callee10, this);
|
|
356
|
-
}));
|
|
357
|
-
|
|
358
|
-
return _generatesTypedListenerWithEmitPayload.apply(this, arguments);
|
|
359
|
-
}
|
|
360
|
-
return generatesTypedListenerWithEmitPayload;
|
|
361
|
-
}()
|
|
320
|
+
}))).apply(this, arguments);
|
|
321
|
+
}
|
|
362
322
|
}, {
|
|
363
323
|
key: "emittingEventTriggersListenerAndCrashesWithListenerNotImplemented",
|
|
364
|
-
value: function () {
|
|
365
|
-
|
|
324
|
+
value: function emittingEventTriggersListenerAndCrashesWithListenerNotImplemented() {
|
|
325
|
+
return (_emittingEventTriggersListenerAndCrashesWithListenerNotImplemented = _emittingEventTriggersListenerAndCrashesWithListenerNotImplemented || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee11() {
|
|
366
326
|
var _boot$meta, _boot$meta2;
|
|
367
327
|
var _yield$this$setupSkil3, currentSkill, skill2, eventContract, org, currentClient, boot, client, eventName, results, error, responderRef;
|
|
368
328
|
return _regenerator["default"].wrap(function _callee11$(_context11) {
|
|
@@ -478,16 +438,12 @@ var CreatingAListenerTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUti
|
|
|
478
438
|
return _context11.stop();
|
|
479
439
|
}
|
|
480
440
|
}, _callee11, this);
|
|
481
|
-
}));
|
|
482
|
-
|
|
483
|
-
return _emittingEventTriggersListenerAndCrashesWithListenerNotImplemented.apply(this, arguments);
|
|
484
|
-
}
|
|
485
|
-
return emittingEventTriggersListenerAndCrashesWithListenerNotImplemented;
|
|
486
|
-
}()
|
|
441
|
+
}))).apply(this, arguments);
|
|
442
|
+
}
|
|
487
443
|
}, {
|
|
488
444
|
key: "listeningToAnEventWithNoEmitTargetOrPayloadGeneratesValidListener",
|
|
489
|
-
value: function () {
|
|
490
|
-
|
|
445
|
+
value: function listeningToAnEventWithNoEmitTargetOrPayloadGeneratesValidListener() {
|
|
446
|
+
return (_listeningToAnEventWithNoEmitTargetOrPayloadGeneratesValidListener = _listeningToAnEventWithNoEmitTargetOrPayloadGeneratesValidListener || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee12() {
|
|
491
447
|
var _yield$this$setupSkil4, listenerPath;
|
|
492
448
|
return _regenerator["default"].wrap(function _callee12$(_context12) {
|
|
493
449
|
while (1) switch (_context12.prev = _context12.next) {
|
|
@@ -514,16 +470,12 @@ var CreatingAListenerTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUti
|
|
|
514
470
|
return _context12.stop();
|
|
515
471
|
}
|
|
516
472
|
}, _callee12, this);
|
|
517
|
-
}));
|
|
518
|
-
|
|
519
|
-
return _listeningToAnEventWithNoEmitTargetOrPayloadGeneratesValidListener.apply(this, arguments);
|
|
520
|
-
}
|
|
521
|
-
return listeningToAnEventWithNoEmitTargetOrPayloadGeneratesValidListener;
|
|
522
|
-
}()
|
|
473
|
+
}))).apply(this, arguments);
|
|
474
|
+
}
|
|
523
475
|
}, {
|
|
524
476
|
key: "hasIsGlobalCheck",
|
|
525
|
-
value: function () {
|
|
526
|
-
|
|
477
|
+
value: function hasIsGlobalCheck() {
|
|
478
|
+
return (_hasIsGlobalCheck = _hasIsGlobalCheck || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee13() {
|
|
527
479
|
var match, contents;
|
|
528
480
|
return _regenerator["default"].wrap(function _callee13$(_context13) {
|
|
529
481
|
while (1) switch (_context13.prev = _context13.next) {
|
|
@@ -539,16 +491,12 @@ var CreatingAListenerTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUti
|
|
|
539
491
|
return _context13.stop();
|
|
540
492
|
}
|
|
541
493
|
}, _callee13, this);
|
|
542
|
-
}));
|
|
543
|
-
|
|
544
|
-
return _hasIsGlobalCheck.apply(this, arguments);
|
|
545
|
-
}
|
|
546
|
-
return hasIsGlobalCheck;
|
|
547
|
-
}()
|
|
494
|
+
}))).apply(this, arguments);
|
|
495
|
+
}
|
|
548
496
|
}, {
|
|
549
497
|
key: "installAddDependencyExecuteAndWaitForInput",
|
|
550
|
-
value: function () {
|
|
551
|
-
|
|
498
|
+
value: function installAddDependencyExecuteAndWaitForInput(_x3) {
|
|
499
|
+
return (_installAddDependencyExecuteAndWaitForInput = _installAddDependencyExecuteAndWaitForInput || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee14(namespace) {
|
|
552
500
|
return _regenerator["default"].wrap(function _callee14$(_context14) {
|
|
553
501
|
while (1) switch (_context14.prev = _context14.next) {
|
|
554
502
|
case 0:
|
|
@@ -565,16 +513,12 @@ var CreatingAListenerTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUti
|
|
|
565
513
|
return _context14.stop();
|
|
566
514
|
}
|
|
567
515
|
}, _callee14, this);
|
|
568
|
-
}));
|
|
569
|
-
|
|
570
|
-
return _installAddDependencyExecuteAndWaitForInput.apply(this, arguments);
|
|
571
|
-
}
|
|
572
|
-
return installAddDependencyExecuteAndWaitForInput;
|
|
573
|
-
}()
|
|
516
|
+
}))).apply(this, arguments);
|
|
517
|
+
}
|
|
574
518
|
}, {
|
|
575
519
|
key: "executeAndWaitForInput",
|
|
576
|
-
value: function () {
|
|
577
|
-
|
|
520
|
+
value: function executeAndWaitForInput() {
|
|
521
|
+
return (_executeAndWaitForInput = _executeAndWaitForInput || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee15() {
|
|
578
522
|
var _this = this;
|
|
579
523
|
return _regenerator["default"].wrap(function _callee15$(_context15) {
|
|
580
524
|
while (1) switch (_context15.prev = _context15.next) {
|
|
@@ -591,12 +535,8 @@ var CreatingAListenerTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUti
|
|
|
591
535
|
return _context15.stop();
|
|
592
536
|
}
|
|
593
537
|
}, _callee15, this);
|
|
594
|
-
}));
|
|
595
|
-
|
|
596
|
-
return _executeAndWaitForInput.apply(this, arguments);
|
|
597
|
-
}
|
|
598
|
-
return executeAndWaitForInput;
|
|
599
|
-
}()
|
|
538
|
+
}))).apply(this, arguments);
|
|
539
|
+
}
|
|
600
540
|
}, {
|
|
601
541
|
key: "addDependency",
|
|
602
542
|
value: function addDependency(namespace) {
|
|
@@ -608,8 +548,8 @@ var CreatingAListenerTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUti
|
|
|
608
548
|
}
|
|
609
549
|
}, {
|
|
610
550
|
key: "installEventsAndCreateListener",
|
|
611
|
-
value: function () {
|
|
612
|
-
|
|
551
|
+
value: function installEventsAndCreateListener() {
|
|
552
|
+
return (_installEventsAndCreateListener = _installEventsAndCreateListener || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee16() {
|
|
613
553
|
var cli, version, results;
|
|
614
554
|
return _regenerator["default"].wrap(function _callee16$(_context16) {
|
|
615
555
|
while (1) switch (_context16.prev = _context16.next) {
|
|
@@ -638,16 +578,12 @@ var CreatingAListenerTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUti
|
|
|
638
578
|
return _context16.stop();
|
|
639
579
|
}
|
|
640
580
|
}, _callee16, this);
|
|
641
|
-
}));
|
|
642
|
-
|
|
643
|
-
return _installEventsAndCreateListener.apply(this, arguments);
|
|
644
|
-
}
|
|
645
|
-
return installEventsAndCreateListener;
|
|
646
|
-
}()
|
|
581
|
+
}))).apply(this, arguments);
|
|
582
|
+
}
|
|
647
583
|
}, {
|
|
648
584
|
key: "setupSkillsInstallAtOrgRegisterEventContractAndGenerateListener",
|
|
649
|
-
value: function () {
|
|
650
|
-
|
|
585
|
+
value: function setupSkillsInstallAtOrgRegisterEventContractAndGenerateListener(_x4) {
|
|
586
|
+
return (_setupSkillsInstallAtOrgRegisterEventContractAndGenerateListener = _setupSkillsInstallAtOrgRegisterEventContractAndGenerateListener || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee17(eventSignature) {
|
|
651
587
|
var expectedVersion, eventContract, _yield$this$seedDummy, skillFixture, skill2, currentSkill, cli, org, results, listener, contents;
|
|
652
588
|
return _regenerator["default"].wrap(function _callee17$(_context17) {
|
|
653
589
|
while (1) switch (_context17.prev = _context17.next) {
|
|
@@ -700,16 +636,12 @@ var CreatingAListenerTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUti
|
|
|
700
636
|
return _context17.stop();
|
|
701
637
|
}
|
|
702
638
|
}, _callee17, this);
|
|
703
|
-
}));
|
|
704
|
-
|
|
705
|
-
return _setupSkillsInstallAtOrgRegisterEventContractAndGenerateListener.apply(this, arguments);
|
|
706
|
-
}
|
|
707
|
-
return setupSkillsInstallAtOrgRegisterEventContractAndGenerateListener;
|
|
708
|
-
}()
|
|
639
|
+
}))).apply(this, arguments);
|
|
640
|
+
}
|
|
709
641
|
}, {
|
|
710
642
|
key: "installEventsCreateListenerAndGetListenerMap",
|
|
711
|
-
value: function () {
|
|
712
|
-
|
|
643
|
+
value: function installEventsCreateListenerAndGetListenerMap() {
|
|
644
|
+
return (_installEventsCreateListenerAndGetListenerMap = _installEventsCreateListenerAndGetListenerMap || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee18() {
|
|
713
645
|
var _yield$this$installEv2, results, match;
|
|
714
646
|
return _regenerator["default"].wrap(function _callee18$(_context18) {
|
|
715
647
|
while (1) switch (_context18.prev = _context18.next) {
|
|
@@ -726,12 +658,8 @@ var CreatingAListenerTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUti
|
|
|
726
658
|
return _context18.stop();
|
|
727
659
|
}
|
|
728
660
|
}, _callee18, this);
|
|
729
|
-
}));
|
|
730
|
-
|
|
731
|
-
return _installEventsCreateListenerAndGetListenerMap.apply(this, arguments);
|
|
732
|
-
}
|
|
733
|
-
return installEventsCreateListenerAndGetListenerMap;
|
|
734
|
-
}()
|
|
661
|
+
}))).apply(this, arguments);
|
|
662
|
+
}
|
|
735
663
|
}]);
|
|
736
664
|
return CreatingAListenerTest;
|
|
737
665
|
}(_AbstractEventTest2["default"]), (0, _defineProperty2["default"])(_class2, "expectedVersion", _spruceSkillUtils.versionUtil.generateVersion().constValue), (0, _defineProperty2["default"])(_class2, "listen", void 0), _class2), ((0, _applyDecoratedDescriptor2["default"])(_class, "throwsWithBadNamespace", [_dec], Object.getOwnPropertyDescriptor(_class, "throwsWithBadNamespace"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "throwsWithBadEventName", [_dec2], Object.getOwnPropertyDescriptor(_class, "throwsWithBadEventName"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "generatesMapFile", [_dec3], Object.getOwnPropertyDescriptor(_class, "generatesMapFile"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "createsValidListener", [_dec4], Object.getOwnPropertyDescriptor(_class, "createsValidListener"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "creatingANewListenerAsksWhichEventToListenTo", [_dec5], Object.getOwnPropertyDescriptor(_class, "creatingANewListenerAsksWhichEventToListenTo"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "loadsContractsFilteringByDependencies", [_dec6], Object.getOwnPropertyDescriptor(_class, "loadsContractsFilteringByDependencies"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "generatesTypedListenerWithoutPayloads", [_dec7], Object.getOwnPropertyDescriptor(_class, "generatesTypedListenerWithoutPayloads"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "generatesTypedListenerWithEmitPayload", [_dec8], Object.getOwnPropertyDescriptor(_class, "generatesTypedListenerWithEmitPayload"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "emittingEventTriggersListenerAndCrashesWithListenerNotImplemented", [_dec9], Object.getOwnPropertyDescriptor(_class, "emittingEventTriggersListenerAndCrashesWithListenerNotImplemented"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "listeningToAnEventWithNoEmitTargetOrPayloadGeneratesValidListener", [_dec10], Object.getOwnPropertyDescriptor(_class, "listeningToAnEventWithNoEmitTargetOrPayloadGeneratesValidListener"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "hasIsGlobalCheck", [_dec11], Object.getOwnPropertyDescriptor(_class, "hasIsGlobalCheck"), _class)), _class));
|