@sprucelabs/spruce-cli 19.1.23 → 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 +16 -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
|
@@ -18,7 +18,7 @@ var _AbstractSchemaTest2 = _interopRequireDefault(require("../../tests/AbstractS
|
|
|
18
18
|
var _dec, _dec2, _dec3, _dec4, _class;
|
|
19
19
|
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); }; }
|
|
20
20
|
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; } }
|
|
21
|
-
var FeatureCommandExecuterTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.test)(), _dec3 = (0, _testUtils.test)(), _dec4 = (0, _testUtils.test)(), (_class = /*#__PURE__*/function (_AbstractSchemaTest) {
|
|
21
|
+
var FeatureCommandExecuterTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.test)(), _dec3 = (0, _testUtils.test)(), _dec4 = (0, _testUtils.test)(), (_class = /*#__PURE__*/function (_AbstractSchemaTest, _canInstantiateExecuter, _throwWhenExecutingWhenMissingDependencies, _shouldAskAllQuestionsOfFeature, _shouldNotAskAlreadyAnsweredQuestions) {
|
|
22
22
|
(0, _inherits2["default"])(FeatureCommandExecuterTest, _AbstractSchemaTest);
|
|
23
23
|
var _super = _createSuper(FeatureCommandExecuterTest);
|
|
24
24
|
function FeatureCommandExecuterTest() {
|
|
@@ -27,8 +27,8 @@ var FeatureCommandExecuterTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _te
|
|
|
27
27
|
}
|
|
28
28
|
(0, _createClass2["default"])(FeatureCommandExecuterTest, null, [{
|
|
29
29
|
key: "canInstantiateExecuter",
|
|
30
|
-
value: function () {
|
|
31
|
-
|
|
30
|
+
value: function canInstantiateExecuter() {
|
|
31
|
+
return (_canInstantiateExecuter = _canInstantiateExecuter || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
32
32
|
var executer;
|
|
33
33
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
34
34
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -42,16 +42,12 @@ var FeatureCommandExecuterTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _te
|
|
|
42
42
|
return _context.stop();
|
|
43
43
|
}
|
|
44
44
|
}, _callee, this);
|
|
45
|
-
}));
|
|
46
|
-
|
|
47
|
-
return _canInstantiateExecuter.apply(this, arguments);
|
|
48
|
-
}
|
|
49
|
-
return canInstantiateExecuter;
|
|
50
|
-
}()
|
|
45
|
+
}))).apply(this, arguments);
|
|
46
|
+
}
|
|
51
47
|
}, {
|
|
52
48
|
key: "throwWhenExecutingWhenMissingDependencies",
|
|
53
|
-
value: function () {
|
|
54
|
-
|
|
49
|
+
value: function throwWhenExecutingWhenMissingDependencies() {
|
|
50
|
+
return (_throwWhenExecutingWhenMissingDependencies = _throwWhenExecutingWhenMissingDependencies || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
55
51
|
var _this = this;
|
|
56
52
|
var err;
|
|
57
53
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
@@ -69,16 +65,12 @@ var FeatureCommandExecuterTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _te
|
|
|
69
65
|
return _context2.stop();
|
|
70
66
|
}
|
|
71
67
|
}, _callee2);
|
|
72
|
-
}));
|
|
73
|
-
|
|
74
|
-
return _throwWhenExecutingWhenMissingDependencies.apply(this, arguments);
|
|
75
|
-
}
|
|
76
|
-
return throwWhenExecutingWhenMissingDependencies;
|
|
77
|
-
}()
|
|
68
|
+
}))).apply(this, arguments);
|
|
69
|
+
}
|
|
78
70
|
}, {
|
|
79
71
|
key: "shouldAskAllQuestionsOfFeature",
|
|
80
|
-
value: function () {
|
|
81
|
-
|
|
72
|
+
value: function shouldAskAllQuestionsOfFeature() {
|
|
73
|
+
return (_shouldAskAllQuestionsOfFeature = _shouldAskAllQuestionsOfFeature || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3() {
|
|
82
74
|
var executer, promise;
|
|
83
75
|
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
84
76
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -106,16 +98,12 @@ var FeatureCommandExecuterTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _te
|
|
|
106
98
|
return _context3.stop();
|
|
107
99
|
}
|
|
108
100
|
}, _callee3, this);
|
|
109
|
-
}));
|
|
110
|
-
|
|
111
|
-
return _shouldAskAllQuestionsOfFeature.apply(this, arguments);
|
|
112
|
-
}
|
|
113
|
-
return shouldAskAllQuestionsOfFeature;
|
|
114
|
-
}()
|
|
101
|
+
}))).apply(this, arguments);
|
|
102
|
+
}
|
|
115
103
|
}, {
|
|
116
104
|
key: "shouldNotAskAlreadyAnsweredQuestions",
|
|
117
|
-
value: function () {
|
|
118
|
-
|
|
105
|
+
value: function shouldNotAskAlreadyAnsweredQuestions() {
|
|
106
|
+
return (_shouldNotAskAlreadyAnsweredQuestions = _shouldNotAskAlreadyAnsweredQuestions || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4() {
|
|
119
107
|
var executer, promise;
|
|
120
108
|
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
|
121
109
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -140,12 +128,8 @@ var FeatureCommandExecuterTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _te
|
|
|
140
128
|
return _context4.stop();
|
|
141
129
|
}
|
|
142
130
|
}, _callee4, this);
|
|
143
|
-
}));
|
|
144
|
-
|
|
145
|
-
return _shouldNotAskAlreadyAnsweredQuestions.apply(this, arguments);
|
|
146
|
-
}
|
|
147
|
-
return shouldNotAskAlreadyAnsweredQuestions;
|
|
148
|
-
}()
|
|
131
|
+
}))).apply(this, arguments);
|
|
132
|
+
}
|
|
149
133
|
}]);
|
|
150
134
|
return FeatureCommandExecuterTest;
|
|
151
135
|
}(_AbstractSchemaTest2["default"]), ((0, _applyDecoratedDescriptor2["default"])(_class, "canInstantiateExecuter", [_dec], Object.getOwnPropertyDescriptor(_class, "canInstantiateExecuter"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "throwWhenExecutingWhenMissingDependencies", [_dec2], Object.getOwnPropertyDescriptor(_class, "throwWhenExecutingWhenMissingDependencies"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "shouldAskAllQuestionsOfFeature", [_dec3], Object.getOwnPropertyDescriptor(_class, "shouldAskAllQuestionsOfFeature"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "shouldNotAskAlreadyAnsweredQuestions", [_dec4], Object.getOwnPropertyDescriptor(_class, "shouldNotAskAlreadyAnsweredQuestions"), _class)), _class));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionExecuter3.test.js","names":["_testUtils","require","_AbstractSchemaTest2","_interopRequireDefault","_dec","_dec2","_dec3","_dec4","_class","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","FeatureCommandExecuterTest","test","_AbstractSchemaTest","_inherits2","_super","_classCallCheck2","_createClass2","key","value","
|
|
1
|
+
{"version":3,"file":"ActionExecuter3.test.js","names":["_testUtils","require","_AbstractSchemaTest2","_interopRequireDefault","_dec","_dec2","_dec3","_dec4","_class","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","FeatureCommandExecuterTest","test","_AbstractSchemaTest","_canInstantiateExecuter","_throwWhenExecutingWhenMissingDependencies","_shouldAskAllQuestionsOfFeature","_shouldNotAskAlreadyAnsweredQuestions","_inherits2","_super","_classCallCheck2","_createClass2","key","value","canInstantiateExecuter","_asyncToGenerator2","_regenerator","mark","_callee","executer","wrap","_callee$","_context","prev","next","Action","shouldAutoHandleDependencies","assert","isTruthy","stop","throwWhenExecutingWhenMissingDependencies","_callee2","_this","err","_callee2$","_context2","doesThrowAsync","execute","sent","errorAssert","assertError","shouldAskAllQuestionsOfFeature","_callee3","promise","_callee3$","_context3","waitForInput","ui","sendInput","assertHealthySkillNamed","shouldNotAskAlreadyAnsweredQuestions","_callee4","_callee4$","_context4","description","AbstractSchemaTest","_applyDecoratedDescriptor2","Object","getOwnPropertyDescriptor","exports"],"sources":["../../../src/__tests__/implementation/ActionExecuter3.test.ts"],"sourcesContent":["import { test, assert } from '@sprucelabs/test-utils'\nimport { errorAssert } from '@sprucelabs/test-utils'\nimport AbstractSchemaTest from '../../tests/AbstractSchemaTest'\n\nexport default class FeatureCommandExecuterTest extends AbstractSchemaTest {\n\t@test()\n\tprotected static async canInstantiateExecuter() {\n\t\tconst executer = this.Action('schema', 'create', {\n\t\t\tshouldAutoHandleDependencies: true,\n\t\t})\n\t\tassert.isTruthy(executer)\n\t}\n\n\t@test()\n\tprotected static async throwWhenExecutingWhenMissingDependencies() {\n\t\tconst err = await assert.doesThrowAsync(() =>\n\t\t\tthis.Action('skill', 'create').execute({})\n\t\t)\n\t\terrorAssert.assertError(err, 'FEATURE_NOT_INSTALLED')\n\t}\n\n\t@test()\n\tprotected static async shouldAskAllQuestionsOfFeature() {\n\t\tconst executer = this.Action('skill', 'create', {\n\t\t\tshouldAutoHandleDependencies: true,\n\t\t})\n\t\tconst promise = executer.execute({})\n\n\t\tawait this.waitForInput()\n\n\t\tawait this.ui.sendInput('My new skill')\n\t\tawait this.ui.sendInput('So great!')\n\n\t\tawait promise\n\n\t\tawait this.assertHealthySkillNamed('my-new-skill')\n\t}\n\n\t@test()\n\tprotected static async shouldNotAskAlreadyAnsweredQuestions() {\n\t\tconst executer = this.Action('skill', 'create', {\n\t\t\tshouldAutoHandleDependencies: true,\n\t\t})\n\t\tconst promise = executer.execute({ description: 'go team!' })\n\n\t\tawait this.waitForInput()\n\n\t\tvoid this.ui.sendInput('Already answered skill')\n\n\t\tawait promise\n\n\t\tawait this.assertHealthySkillNamed('already-answered-skill')\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAAC,oBAAA,GAAAC,sBAAA,CAAAF,OAAA;AAA+D,IAAAG,IAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,MAAA;AAAA,SAAAC,aAAAC,OAAA,QAAAC,yBAAA,GAAAC,yBAAA,oBAAAC,qBAAA,QAAAC,KAAA,OAAAC,gBAAA,aAAAL,OAAA,GAAAM,MAAA,MAAAL,yBAAA,QAAAM,SAAA,OAAAF,gBAAA,mBAAAG,WAAA,EAAAF,MAAA,GAAAG,OAAA,CAAAC,SAAA,CAAAN,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A,OAEvD,IAAI,CAACsB,YAAY,CAAC,CAAC;YAAA;cAEzB,KAAK,IAAI,CAACC,EAAE,CAACC,SAAS,CAAC,wBAAwB,CAAC;cAAAK,SAAA,CAAA7B,IAAA;cAAA,OAE1CmB,OAAO;YAAA;cAAAU,SAAA,CAAA7B,IAAA;cAAA,OAEP,IAAI,CAACyB,uBAAuB,CAAC,wBAAwB,CAAC;YAAA;YAAA;cAAA,OAAAI,SAAA,CAAAxB,IAAA;UAAA;QAAA,GAAAsB,QAAA;MAAA,CAC5D,IAAA3D,KAAA,OAAAD,SAAA;IAAA;EAAA;EAAA,OAAAU,0BAAA;AAAA,EAhDsDsD,+BAAkB,QAAAC,0BAAA,aAAA9E,MAAA,6BAAAJ,IAAA,GAAAmF,MAAA,CAAAC,wBAAA,CAAAhF,MAAA,6BAAAA,MAAA,OAAA8E,0BAAA,aAAA9E,MAAA,gDAAAH,KAAA,GAAAkF,MAAA,CAAAC,wBAAA,CAAAhF,MAAA,gDAAAA,MAAA,OAAA8E,0BAAA,aAAA9E,MAAA,qCAAAF,KAAA,GAAAiF,MAAA,CAAAC,wBAAA,CAAAhF,MAAA,qCAAAA,MAAA,OAAA8E,0BAAA,aAAA9E,MAAA,2CAAAD,KAAA,GAAAgF,MAAA,CAAAC,wBAAA,CAAAhF,MAAA,2CAAAA,MAAA,IAAAA,MAAA;AAAAiF,OAAA,cAAA1D,0BAAA"}
|
|
@@ -21,7 +21,7 @@ var _AbstractCliTest2 = _interopRequireDefault(require("../../tests/AbstractCliT
|
|
|
21
21
|
var _dec, _dec2, _dec3, _dec4, _class;
|
|
22
22
|
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); }; }
|
|
23
23
|
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; } }
|
|
24
|
-
var ActionExecuter4Test = (_dec = (0, _testUtils.test)('throws by default with will-execute listener error 1', 'test'), _dec2 = (0, _testUtils.test)('throws by default with will-execute listener error 2', 'test2'), _dec3 = (0, _testUtils.test)('throws by default with did-execute listener error 1', 'test2', 'did'), _dec4 = (0, _testUtils.test)(), (_class = /*#__PURE__*/function (_AbstractCliTest) {
|
|
24
|
+
var ActionExecuter4Test = (_dec = (0, _testUtils.test)('throws by default with will-execute listener error 1', 'test'), _dec2 = (0, _testUtils.test)('throws by default with will-execute listener error 2', 'test2'), _dec3 = (0, _testUtils.test)('throws by default with did-execute listener error 1', 'test2', 'did'), _dec4 = (0, _testUtils.test)(), (_class = /*#__PURE__*/function (_AbstractCliTest, _beforeEach, _canBeConfiguredToThrowWhenExecuteListenersReturnErrors, _stillReturnsIfNoErrorThrows) {
|
|
25
25
|
(0, _inherits2["default"])(ActionExecuter4Test, _AbstractCliTest);
|
|
26
26
|
var _super = _createSuper(ActionExecuter4Test);
|
|
27
27
|
function ActionExecuter4Test() {
|
|
@@ -30,8 +30,8 @@ var ActionExecuter4Test = (_dec = (0, _testUtils.test)('throws by default with w
|
|
|
30
30
|
}
|
|
31
31
|
(0, _createClass2["default"])(ActionExecuter4Test, null, [{
|
|
32
32
|
key: "beforeEach",
|
|
33
|
-
value: function () {
|
|
34
|
-
|
|
33
|
+
value: function beforeEach() {
|
|
34
|
+
return (_beforeEach = _beforeEach || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
35
35
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
36
36
|
while (1) switch (_context.prev = _context.next) {
|
|
37
37
|
case 0:
|
|
@@ -49,16 +49,12 @@ var ActionExecuter4Test = (_dec = (0, _testUtils.test)('throws by default with w
|
|
|
49
49
|
return _context.stop();
|
|
50
50
|
}
|
|
51
51
|
}, _callee, this);
|
|
52
|
-
}));
|
|
53
|
-
|
|
54
|
-
return _beforeEach.apply(this, arguments);
|
|
55
|
-
}
|
|
56
|
-
return beforeEach;
|
|
57
|
-
}()
|
|
52
|
+
}))).apply(this, arguments);
|
|
53
|
+
}
|
|
58
54
|
}, {
|
|
59
55
|
key: "canBeConfiguredToThrowWhenExecuteListenersReturnErrors",
|
|
60
|
-
value: function () {
|
|
61
|
-
|
|
56
|
+
value: function canBeConfiguredToThrowWhenExecuteListenersReturnErrors(_x) {
|
|
57
|
+
return (_canBeConfiguredToThrowWhenExecuteListenersReturnErrors = _canBeConfiguredToThrowWhenExecuteListenersReturnErrors || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(msg) {
|
|
62
58
|
var _this = this;
|
|
63
59
|
var willDid,
|
|
64
60
|
err,
|
|
@@ -86,16 +82,12 @@ var ActionExecuter4Test = (_dec = (0, _testUtils.test)('throws by default with w
|
|
|
86
82
|
return _context2.stop();
|
|
87
83
|
}
|
|
88
84
|
}, _callee2, this);
|
|
89
|
-
}));
|
|
90
|
-
|
|
91
|
-
return _canBeConfiguredToThrowWhenExecuteListenersReturnErrors.apply(this, arguments);
|
|
92
|
-
}
|
|
93
|
-
return canBeConfiguredToThrowWhenExecuteListenersReturnErrors;
|
|
94
|
-
}()
|
|
85
|
+
}))).apply(this, arguments);
|
|
86
|
+
}
|
|
95
87
|
}, {
|
|
96
88
|
key: "stillReturnsIfNoErrorThrows",
|
|
97
|
-
value: function () {
|
|
98
|
-
|
|
89
|
+
value: function stillReturnsIfNoErrorThrows() {
|
|
90
|
+
return (_stillReturnsIfNoErrorThrows = _stillReturnsIfNoErrorThrows || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3() {
|
|
99
91
|
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
100
92
|
while (1) switch (_context3.prev = _context3.next) {
|
|
101
93
|
case 0:
|
|
@@ -106,12 +98,8 @@ var ActionExecuter4Test = (_dec = (0, _testUtils.test)('throws by default with w
|
|
|
106
98
|
return _context3.stop();
|
|
107
99
|
}
|
|
108
100
|
}, _callee3, this);
|
|
109
|
-
}));
|
|
110
|
-
|
|
111
|
-
return _stillReturnsIfNoErrorThrows.apply(this, arguments);
|
|
112
|
-
}
|
|
113
|
-
return stillReturnsIfNoErrorThrows;
|
|
114
|
-
}()
|
|
101
|
+
}))).apply(this, arguments);
|
|
102
|
+
}
|
|
115
103
|
}]);
|
|
116
104
|
return ActionExecuter4Test;
|
|
117
105
|
}(_AbstractCliTest2["default"]), ((0, _applyDecoratedDescriptor2["default"])(_class, "canBeConfiguredToThrowWhenExecuteListenersReturnErrors", [_dec, _dec2, _dec3], Object.getOwnPropertyDescriptor(_class, "canBeConfiguredToThrowWhenExecuteListenersReturnErrors"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "stillReturnsIfNoErrorThrows", [_dec4], Object.getOwnPropertyDescriptor(_class, "stillReturnsIfNoErrorThrows"), _class)), _class));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ActionExecuter4.test.js","names":["_testUtils","require","_constants","_CommandService","_interopRequireDefault","_AbstractCliTest2","_dec","_dec2","_dec3","_dec4","_class","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","ActionExecuter4Test","test","_AbstractCliTest","_inherits2","_super","_classCallCheck2","_createClass2","key","value","
|
|
1
|
+
{"version":3,"file":"ActionExecuter4.test.js","names":["_testUtils","require","_constants","_CommandService","_interopRequireDefault","_AbstractCliTest2","_dec","_dec2","_dec3","_dec4","_class","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","ActionExecuter4Test","test","_AbstractCliTest","_beforeEach","_canBeConfiguredToThrowWhenExecuteListenersReturnErrors","_stillReturnsIfNoErrorThrows","_inherits2","_super","_classCallCheck2","_createClass2","key","value","beforeEach","_asyncToGenerator2","_regenerator","mark","_callee","wrap","_callee$","_context","prev","next","_get2","CommandService","fakeCommand","code","ENABLE_NPM_CACHE_COMMAND","stop","canBeConfiguredToThrowWhenExecuteListenersReturnErrors","_x","_callee2","msg","_this","willDid","err","_args2","_callee2$","_context2","length","undefined","emitter","on","concat","Error","assert","doesThrowAsync","Action","execute","sent","errorAssert","assertError","stillReturnsIfNoErrorThrows","_callee3","_callee3$","_context3","AbstractCliTest","_applyDecoratedDescriptor2","Object","getOwnPropertyDescriptor","exports"],"sources":["../../../src/__tests__/implementation/ActionExecuter4.test.ts"],"sourcesContent":["import { test, assert } from '@sprucelabs/test-utils'\nimport { errorAssert } from '@sprucelabs/test-utils'\nimport { ENABLE_NPM_CACHE_COMMAND } from '../../features/cache/constants'\nimport CommandService from '../../services/CommandService'\nimport AbstractCliTest from '../../tests/AbstractCliTest'\n\nexport default class ActionExecuter4Test extends AbstractCliTest {\n\tprotected static async beforeEach() {\n\t\tawait super.beforeEach()\n\n\t\tCommandService.fakeCommand(/which docker/gis, {\n\t\t\tcode: 0,\n\t\t})\n\t\tCommandService.fakeCommand(ENABLE_NPM_CACHE_COMMAND, {\n\t\t\tcode: 0,\n\t\t})\n\t}\n\n\t@test('throws by default with will-execute listener error 1', 'test')\n\t@test('throws by default with will-execute listener error 2', 'test2')\n\t@test('throws by default with did-execute listener error 1', 'test2', 'did')\n\tprotected static async canBeConfiguredToThrowWhenExecuteListenersReturnErrors(\n\t\tmsg: string,\n\t\twillDid: 'will' | 'did' = 'will'\n\t) {\n\t\tawait this.emitter.on(`feature.${willDid}-execute`, () => {\n\t\t\tthrow new Error(msg)\n\t\t})\n\n\t\tconst err = await assert.doesThrowAsync(() =>\n\t\t\tthis.Action('cache', 'enable').execute({})\n\t\t)\n\n\t\terrorAssert.assertError(err, 'LISTENER_ERROR', {\n\t\t\t'originalError.message': msg,\n\t\t})\n\t}\n\n\t@test()\n\tprotected static async stillReturnsIfNoErrorThrows() {\n\t\tawait this.Action('cache', 'enable').execute({})\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,iBAAA,GAAAD,sBAAA,CAAAH,OAAA;AAAyD,IAAAK,IAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,MAAA;AAAA,SAAAC,aAAAC,OAAA,QAAAC,yBAAA,GAAAC,yBAAA,oBAAAC,qBAAA,QAAAC,KAAA,OAAAC,gBAAA,aAAAL,OAAA,GAAAM,MAAA,MAAAL,yBAAA,QAAAM,SAAA,OAAAF,gBAAA,mBAAAG,WAAA,EAAAF,MAAA,GAAAG,OAAA,CAAAC,SAAA,CAAAN,KAAA,EAAAO,SAAA,EAAAJ,SAAA,YAAAD,MAAA,GAAAF,KAAA,CAAAQ,KAAA,OAAAD,SAAA,gBAAAE,2BAAA,mBAAAP,MAAA;AAAA,SAAAJ,0BAAA,eAAAO,OAAA,qBAAAA,OAAA,CAAAC,SAAA,oBAAAD,OAAA,CAAAC,SAAA,CAAAI,IAAA,2BAAAC,KAAA,oCAAAC,OAAA,CAAAC,SAAA,CAAAC,OAAA,CAAAC,IAAA,CAAAV,OAAA,CAAAC,SAAA,CAAAM,OAAA,8CAAAI,CAAA;AAAA,IAEpCC,mBAAmB,IAAA3B,IAAA,GAYtC,IAAA4B,eAAI,EAAC,sDAAsD,EAAE,MAAM,CAAC,EAAA3B,KAAA,GACpE,IAAA2B,eAAI,EAA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;YAAA;cAAAiC,SAAA,CAAAjC,IAAA;cAAA,OAEO,IAAI,CAACyB,MAAM,CAAC,OAAO,EAAE,QAAQ,CAAC,CAACC,OAAO,CAAC,CAAC,CAAC,CAAC;YAAA;YAAA;cAAA,OAAAO,SAAA,CAAA3B,IAAA;UAAA;QAAA,GAAAyB,QAAA;MAAA,CAChD,IAAA7D,KAAA,OAAAD,SAAA;IAAA;EAAA;EAAA,OAAAU,mBAAA;AAAA,EAnC+CuD,4BAAe,QAAAC,0BAAA,aAAA/E,MAAA,6DAAAJ,IAAA,EAAAC,KAAA,EAAAC,KAAA,GAAAkF,MAAA,CAAAC,wBAAA,CAAAjF,MAAA,6DAAAA,MAAA,OAAA+E,0BAAA,aAAA/E,MAAA,kCAAAD,KAAA,GAAAiF,MAAA,CAAAC,wBAAA,CAAAjF,MAAA,kCAAAA,MAAA,IAAAA,MAAA;AAAAkF,OAAA,cAAA3D,mBAAA"}
|
|
@@ -28,7 +28,7 @@ var ArgParserTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.test)
|
|
|
28
28
|
}), _dec5 = (0, _testUtils.test)('Parses `-d false --test true` as { d: "false":, test: "true" }', '-d false --test true', {
|
|
29
29
|
d: 'false',
|
|
30
30
|
test: 'true'
|
|
31
|
-
}), (_class = /*#__PURE__*/function (_AbstractSpruceTest) {
|
|
31
|
+
}), (_class = /*#__PURE__*/function (_AbstractSpruceTest, _canGetArgParser, _parse) {
|
|
32
32
|
(0, _inherits2["default"])(ArgParserTest, _AbstractSpruceTest);
|
|
33
33
|
var _super = _createSuper(ArgParserTest);
|
|
34
34
|
function ArgParserTest() {
|
|
@@ -37,8 +37,8 @@ var ArgParserTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.test)
|
|
|
37
37
|
}
|
|
38
38
|
(0, _createClass2["default"])(ArgParserTest, null, [{
|
|
39
39
|
key: "canGetArgParser",
|
|
40
|
-
value: function () {
|
|
41
|
-
|
|
40
|
+
value: function canGetArgParser() {
|
|
41
|
+
return (_canGetArgParser = _canGetArgParser || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
42
42
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
43
43
|
while (1) switch (_context.prev = _context.next) {
|
|
44
44
|
case 0:
|
|
@@ -48,16 +48,12 @@ var ArgParserTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.test)
|
|
|
48
48
|
return _context.stop();
|
|
49
49
|
}
|
|
50
50
|
}, _callee);
|
|
51
|
-
}));
|
|
52
|
-
|
|
53
|
-
return _canGetArgParser.apply(this, arguments);
|
|
54
|
-
}
|
|
55
|
-
return canGetArgParser;
|
|
56
|
-
}()
|
|
51
|
+
}))).apply(this, arguments);
|
|
52
|
+
}
|
|
57
53
|
}, {
|
|
58
54
|
key: "parse",
|
|
59
|
-
value: function () {
|
|
60
|
-
|
|
55
|
+
value: function parse(_x, _x2) {
|
|
56
|
+
return (_parse = _parse || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(args, expected) {
|
|
61
57
|
var results;
|
|
62
58
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
63
59
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -69,12 +65,8 @@ var ArgParserTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.test)
|
|
|
69
65
|
return _context2.stop();
|
|
70
66
|
}
|
|
71
67
|
}, _callee2);
|
|
72
|
-
}));
|
|
73
|
-
|
|
74
|
-
return _parse.apply(this, arguments);
|
|
75
|
-
}
|
|
76
|
-
return parse;
|
|
77
|
-
}()
|
|
68
|
+
}))).apply(this, arguments);
|
|
69
|
+
}
|
|
78
70
|
}]);
|
|
79
71
|
return ArgParserTest;
|
|
80
72
|
}(_testUtils["default"]), ((0, _applyDecoratedDescriptor2["default"])(_class, "canGetArgParser", [_dec], Object.getOwnPropertyDescriptor(_class, "canGetArgParser"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "parse", [_dec2, _dec3, _dec4, _dec5], Object.getOwnPropertyDescriptor(_class, "parse"), _class)), _class));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ArgParser.test.js","names":["_testUtils","_interopRequireWildcard","require","_argParser","_dec","_dec2","_dec3","_dec4","_dec5","_class","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","valueOf","e","ArgParserTest","test","d","_AbstractSpruceTest","_inherits2","_super","_classCallCheck2","_createClass2","value","
|
|
1
|
+
{"version":3,"file":"ArgParser.test.js","names":["_testUtils","_interopRequireWildcard","require","_argParser","_dec","_dec2","_dec3","_dec4","_dec5","_class","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","valueOf","e","ArgParserTest","test","d","_AbstractSpruceTest","_canGetArgParser","_parse","_inherits2","_super","_classCallCheck2","_createClass2","value","canGetArgParser","_asyncToGenerator2","_regenerator","mark","_callee","wrap","_callee$","_context","prev","next","assert","isTruthy","argParserUtil","stop","parse","_x","_x2","_callee2","args","expected","results","_callee2$","_context2","isEqualDeep","AbstractSpruceTest","_applyDecoratedDescriptor2","exports"],"sources":["../../../src/__tests__/implementation/ArgParser.test.ts"],"sourcesContent":["import AbstractSpruceTest, { test, assert } from '@sprucelabs/test-utils'\nimport { argParserUtil } from '../../utilities/argParser.utility'\n\nexport default class ArgParserTest extends AbstractSpruceTest {\n\t@test()\n\tprotected static async canGetArgParser() {\n\t\tassert.isTruthy(argParserUtil)\n\t}\n\n\t@test('Parses empty string as empty array obj', '', {})\n\t@test('Parses `-d` as { d: \"true\" } ', '-d', { d: 'true' })\n\t@test('Parses `-d false` as { d: \"false\" }', '-d false', { d: 'false' })\n\t@test(\n\t\t'Parses `-d false --test true` as { d: \"false\":, test: \"true\" }',\n\t\t'-d false --test true',\n\t\t{ d: 'false', test: 'true' }\n\t)\n\tprotected static async parse(args: string, expected: Record<string, string>) {\n\t\tconst results = argParserUtil.parse(args)\n\t\tassert.isEqualDeep(results, expected)\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AAAiE,IAAAE,IAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,MAAA;AAAA,SAAAC,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAV,wBAAAc,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,aAAAE,OAAA,CAAAF,GAAA,yBAAAA,GAAA,uCAAAA,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,G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AA,YAAAC,IAAA,CAED,SAAAc,SAQ6BC,IAAY,EAAEC,QAAgC;QAAA,IAAAC,OAAA;QAAA,OAAAlB,YAAA,YAAAG,IAAA,UAAAgB,UAAAC,SAAA;UAAA,kBAAAA,SAAA,CAAAd,IAAA,GAAAc,SAAA,CAAAb,IAAA;YAAA;cACpEW,OAAO,GAAGR,wBAAa,CAACE,KAAK,CAACI,IAAI,CAAC;cACzCR,iBAAM,CAACa,WAAW,CAACH,OAAO,EAAED,QAAQ,CAAC;YAAA;YAAA;cAAA,OAAAG,SAAA,CAAAT,IAAA;UAAA;QAAA,GAAAI,QAAA;MAAA,CACrC,IAAAnC,KAAA,OAAAD,SAAA;IAAA;EAAA;EAAA,OAAAQ,aAAA;AAAA,EAjByCmC,qBAAkB,QAAAC,0BAAA,aAAA/E,MAAA,sBAAAL,IAAA,GAAAmB,MAAA,CAAAE,wBAAA,CAAAhB,MAAA,sBAAAA,MAAA,OAAA+E,0BAAA,aAAA/E,MAAA,YAAAJ,KAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,KAAA,GAAAe,MAAA,CAAAE,wBAAA,CAAAhB,MAAA,YAAAA,MAAA,IAAAA,MAAA;AAAAgF,OAAA,cAAArC,aAAA"}
|
|
@@ -19,7 +19,7 @@ var _AbstractCliTest2 = _interopRequireDefault(require("../../tests/AbstractCliT
|
|
|
19
19
|
var _dec, _dec2, _class;
|
|
20
20
|
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); }; }
|
|
21
21
|
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; } }
|
|
22
|
-
var BuildServiceTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.test)(), (_class = /*#__PURE__*/function (_AbstractCliTest) {
|
|
22
|
+
var BuildServiceTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.test)(), (_class = /*#__PURE__*/function (_AbstractCliTest, _canBuildSkill, _installSkill) {
|
|
23
23
|
(0, _inherits2["default"])(BuildServiceTest, _AbstractCliTest);
|
|
24
24
|
var _super = _createSuper(BuildServiceTest);
|
|
25
25
|
function BuildServiceTest() {
|
|
@@ -34,8 +34,8 @@ var BuildServiceTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.te
|
|
|
34
34
|
}
|
|
35
35
|
}, {
|
|
36
36
|
key: "canBuildSkill",
|
|
37
|
-
value: function () {
|
|
38
|
-
|
|
37
|
+
value: function canBuildSkill() {
|
|
38
|
+
return (_canBuildSkill = _canBuildSkill || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
39
39
|
var testFile, destination, service, builtFilePath, contents;
|
|
40
40
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
41
41
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -58,16 +58,12 @@ var BuildServiceTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.te
|
|
|
58
58
|
return _context.stop();
|
|
59
59
|
}
|
|
60
60
|
}, _callee, this);
|
|
61
|
-
}));
|
|
62
|
-
|
|
63
|
-
return _canBuildSkill.apply(this, arguments);
|
|
64
|
-
}
|
|
65
|
-
return canBuildSkill;
|
|
66
|
-
}()
|
|
61
|
+
}))).apply(this, arguments);
|
|
62
|
+
}
|
|
67
63
|
}, {
|
|
68
64
|
key: "installSkill",
|
|
69
|
-
value: function () {
|
|
70
|
-
|
|
65
|
+
value: function installSkill(_x) {
|
|
66
|
+
return (_installSkill = _installSkill || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(cacheKey) {
|
|
71
67
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
72
68
|
while (1) switch (_context2.prev = _context2.next) {
|
|
73
69
|
case 0:
|
|
@@ -78,12 +74,8 @@ var BuildServiceTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.te
|
|
|
78
74
|
return _context2.stop();
|
|
79
75
|
}
|
|
80
76
|
}, _callee2, this);
|
|
81
|
-
}));
|
|
82
|
-
|
|
83
|
-
return _installSkill.apply(this, arguments);
|
|
84
|
-
}
|
|
85
|
-
return installSkill;
|
|
86
|
-
}()
|
|
77
|
+
}))).apply(this, arguments);
|
|
78
|
+
}
|
|
87
79
|
}]);
|
|
88
80
|
return BuildServiceTest;
|
|
89
81
|
}(_AbstractCliTest2["default"]), ((0, _applyDecoratedDescriptor2["default"])(_class, "buildServiceExists", [_dec], Object.getOwnPropertyDescriptor(_class, "buildServiceExists"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "canBuildSkill", [_dec2], Object.getOwnPropertyDescriptor(_class, "canBuildSkill"), _class)), _class));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BuildService.test.js","names":["_spruceSkillUtils","require","_testUtils","_AbstractCliTest2","_interopRequireDefault","_dec","_dec2","_class","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","BuildServiceTest","test","_AbstractCliTest","_inherits2","_super","_classCallCheck2","_createClass2","key","value","buildServiceExists","service","Service","assert","isTruthy","
|
|
1
|
+
{"version":3,"file":"BuildService.test.js","names":["_spruceSkillUtils","require","_testUtils","_AbstractCliTest2","_interopRequireDefault","_dec","_dec2","_class","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","BuildServiceTest","test","_AbstractCliTest","_canBuildSkill","_installSkill","_inherits2","_super","_classCallCheck2","_createClass2","key","value","buildServiceExists","service","Service","assert","isTruthy","canBuildSkill","_asyncToGenerator2","_regenerator","mark","_callee","testFile","destination","builtFilePath","contents","wrap","_callee$","_context","prev","next","installSkill","resolvePath","diskUtil","writeFile","build","readFile","isEqual","stop","_x","_callee2","cacheKey","_callee2$","_context2","FeatureFixture","installCachedFeatures","AbstractCliTest","_applyDecoratedDescriptor2","Object","getOwnPropertyDescriptor","exports"],"sources":["../../../src/__tests__/implementation/BuildService.test.ts"],"sourcesContent":["import { diskUtil } from '@sprucelabs/spruce-skill-utils'\nimport { test, assert } from '@sprucelabs/test-utils'\nimport AbstractCliTest from '../../tests/AbstractCliTest'\n\nexport default class BuildServiceTest extends AbstractCliTest {\n\t@test()\n\tprotected static buildServiceExists() {\n\t\tconst service = this.Service('build')\n\t\tassert.isTruthy(service)\n\t}\n\n\t@test()\n\tprotected static async canBuildSkill() {\n\t\tawait this.installSkill('skills')\n\n\t\tconst testFile = \"const testVar = 'hello world'\\nconsole.log(testVar)\\n\"\n\t\tconst destination = this.resolvePath('src/test.ts')\n\t\tdiskUtil.writeFile(destination, testFile)\n\n\t\tconst service = this.Service('build')\n\t\tawait service.build()\n\n\t\tconst builtFilePath = this.resolvePath('build/test.js')\n\t\tconst contents = diskUtil.readFile(builtFilePath)\n\n\t\tassert.isEqual(\n\t\t\tcontents,\n\t\t\t`\"use strict\";\nconst testVar = 'hello world';\nconsole.log(testVar);\n//# sourceMappingURL=test.js.map`\n\t\t)\n\t}\n\n\tprivate static async installSkill(cacheKey?: string) {\n\t\tawait this.FeatureFixture().installCachedFeatures(cacheKey ?? 'skills')\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AACA,IAAAC,UA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