@sprucelabs/spruce-cli 17.1.40 → 17.1.41
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 +10 -12
- package/build/__tests__/behavioral/AddingADependency.test.js.map +1 -1
- package/build/__tests__/behavioral/BlockingCommands.test.js +3 -5
- package/build/__tests__/behavioral/BlockingCommands.test.js.map +1 -1
- package/build/__tests__/behavioral/BootingTheCli.test.js +3 -3
- package/build/__tests__/behavioral/BootingTheCli.test.js.map +1 -1
- package/build/__tests__/behavioral/BootingWithBadFiles.test.js +7 -7
- package/build/__tests__/behavioral/BootingWithBadFiles.test.js.map +1 -1
- package/build/__tests__/behavioral/CreatingAConversationTopic.test.js +13 -13
- package/build/__tests__/behavioral/CreatingAConversationTopic.test.js.map +1 -1
- package/build/__tests__/behavioral/CreatingSchemasWithGenerics.test.js +10 -10
- package/build/__tests__/behavioral/CreatingSchemasWithGenerics.test.js.map +1 -1
- package/build/__tests__/behavioral/DeployingASkill.test.js +32 -34
- package/build/__tests__/behavioral/DeployingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/DeployingToSandbox.test.js +15 -17
- package/build/__tests__/behavioral/DeployingToSandbox.test.js.map +1 -1
- package/build/__tests__/behavioral/EnablingAndDisablingCache.test.js +11 -13
- package/build/__tests__/behavioral/EnablingAndDisablingCache.test.js.map +1 -1
- package/build/__tests__/behavioral/GettingCliVersion.test.js +4 -4
- package/build/__tests__/behavioral/GettingCliVersion.test.js.map +1 -1
- package/build/__tests__/behavioral/InstallingASkillAtAnOrg.test.js +11 -13
- package/build/__tests__/behavioral/InstallingASkillAtAnOrg.test.js.map +1 -1
- package/build/__tests__/behavioral/ListeningToCoreEvents.test.js +4 -4
- package/build/__tests__/behavioral/ListeningToCoreEvents.test.js.map +1 -1
- package/build/__tests__/behavioral/LoggingInAsASkill.test.js +14 -16
- package/build/__tests__/behavioral/LoggingInAsASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/ManagingDependencies.test.js +9 -9
- package/build/__tests__/behavioral/ManagingDependencies.test.js.map +1 -1
- package/build/__tests__/behavioral/OverridingCommandsInPackageJson.test.js +3 -3
- package/build/__tests__/behavioral/OverridingCommandsInPackageJson.test.js.map +1 -1
- package/build/__tests__/behavioral/RebuildingASkill.test.js +4 -6
- package/build/__tests__/behavioral/RebuildingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/RegisteringConversationsOnBoot.test.js +4 -4
- package/build/__tests__/behavioral/RegisteringConversationsOnBoot.test.js.map +1 -1
- package/build/__tests__/behavioral/RegisteringEventsOnBoot.test.js +7 -7
- package/build/__tests__/behavioral/RegisteringEventsOnBoot.test.js.map +1 -1
- package/build/__tests__/behavioral/RegisteringGlobalEvents.test.js +11 -11
- package/build/__tests__/behavioral/RegisteringGlobalEvents.test.js.map +1 -1
- package/build/__tests__/behavioral/RegisteringSkillViewOnBoot.test.js +6 -6
- package/build/__tests__/behavioral/RegisteringSkillViewOnBoot.test.js.map +1 -1
- package/build/__tests__/behavioral/RememberingUpgradeSelections.test.js +5 -5
- package/build/__tests__/behavioral/RememberingUpgradeSelections.test.js.map +1 -1
- package/build/__tests__/behavioral/SettingLogTransportsInASkill.test.js +10 -12
- package/build/__tests__/behavioral/SettingLogTransportsInASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/SettingRemote.test.js +9 -9
- package/build/__tests__/behavioral/SettingRemote.test.js.map +1 -1
- package/build/__tests__/behavioral/SettingUpASkillForTesting.test.js +10 -10
- package/build/__tests__/behavioral/SettingUpASkillForTesting.test.js.map +1 -1
- package/build/__tests__/behavioral/SettingUpSchemasForModuleDistribution.test.js +29 -31
- package/build/__tests__/behavioral/SettingUpSchemasForModuleDistribution.test.js.map +1 -1
- package/build/__tests__/behavioral/SettingUpVscode.test.js +10 -10
- package/build/__tests__/behavioral/SettingUpVscode.test.js.map +1 -1
- package/build/__tests__/behavioral/SyncingEventsOnlyFromDependencies.test.js +13 -13
- package/build/__tests__/behavioral/SyncingEventsOnlyFromDependencies.test.js.map +1 -1
- package/build/__tests__/behavioral/TestReporterSettingsRemembered.test.js +6 -6
- package/build/__tests__/behavioral/TestReporterSettingsRemembered.test.js.map +1 -1
- package/build/__tests__/behavioral/TestingAConversation.test.js +17 -17
- package/build/__tests__/behavioral/TestingAConversation.test.js.map +1 -1
- package/build/__tests__/behavioral/TestingDataStores.test.js +13 -13
- package/build/__tests__/behavioral/TestingDataStores.test.js.map +1 -1
- package/build/__tests__/behavioral/WatchingSkillViews.test.js +15 -15
- package/build/__tests__/behavioral/WatchingSkillViews.test.js.map +1 -1
- package/build/__tests__/behavioral/errors/CreatingANewErrorBuilder.test.js +15 -15
- package/build/__tests__/behavioral/errors/CreatingANewErrorBuilder.test.js.map +1 -1
- package/build/__tests__/behavioral/errors/KeepingErrorClassInSync.test.js +8 -8
- package/build/__tests__/behavioral/errors/KeepingErrorClassInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/errors/KeepingErrorsInSync.test.js +32 -32
- package/build/__tests__/behavioral/errors/KeepingErrorsInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/errors/SettingUpErrors.test.js +4 -6
- package/build/__tests__/behavioral/errors/SettingUpErrors.test.js.map +1 -1
- package/build/__tests__/behavioral/eventContract/PullingMercuryEventContract.test.js +25 -25
- package/build/__tests__/behavioral/eventContract/PullingMercuryEventContract.test.js.map +1 -1
- package/build/__tests__/behavioral/events/CreatingAListener.test.js +29 -31
- package/build/__tests__/behavioral/events/CreatingAListener.test.js.map +1 -1
- package/build/__tests__/behavioral/events/CreatingAnEvent.test.js +26 -28
- package/build/__tests__/behavioral/events/CreatingAnEvent.test.js.map +1 -1
- package/build/__tests__/behavioral/events/KeepingEventsInSync.test.js +22 -22
- package/build/__tests__/behavioral/events/KeepingEventsInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/events/KeepingEventsInSync2.test.js +38 -38
- package/build/__tests__/behavioral/events/KeepingEventsInSync2.test.js.map +1 -1
- package/build/__tests__/behavioral/events/KeepingListenersInSync.test.js +7 -7
- package/build/__tests__/behavioral/events/KeepingListenersInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/events/ListeningToAnEventYouCreate.test.js +6 -6
- package/build/__tests__/behavioral/events/ListeningToAnEventYouCreate.test.js.map +1 -1
- package/build/__tests__/behavioral/events/SettingUpEvents.test.js +4 -4
- package/build/__tests__/behavioral/events/SettingUpEvents.test.js.map +1 -1
- package/build/__tests__/behavioral/events/SkillEmitsBootEvents.test.js +3 -5
- package/build/__tests__/behavioral/events/SkillEmitsBootEvents.test.js.map +1 -1
- package/build/__tests__/behavioral/node/CreatingANodeModule.test.js +6 -6
- package/build/__tests__/behavioral/node/CreatingANodeModule.test.js.map +1 -1
- package/build/__tests__/behavioral/onboard/StartingOnboarding.test.js +6 -6
- package/build/__tests__/behavioral/onboard/StartingOnboarding.test.js.map +1 -1
- package/build/__tests__/behavioral/organization/CreatingAnOrg.test.js +6 -6
- package/build/__tests__/behavioral/organization/CreatingAnOrg.test.js.map +1 -1
- package/build/__tests__/behavioral/permissions/CreatingPermissions.test.js +3 -3
- package/build/__tests__/behavioral/permissions/CreatingPermissions.test.js.map +1 -1
- package/build/__tests__/behavioral/person/LoggingInAsPerson.test.js +14 -16
- package/build/__tests__/behavioral/person/LoggingInAsPerson.test.js.map +1 -1
- package/build/__tests__/behavioral/person/SeeWhoIsLoggedIn.test.js +7 -7
- package/build/__tests__/behavioral/person/SeeWhoIsLoggedIn.test.js.map +1 -1
- package/build/__tests__/behavioral/polish/SettingUpPolish.test.js +8 -8
- package/build/__tests__/behavioral/polish/SettingUpPolish.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/CreatingANewSchemaBuilder.test.js +23 -25
- package/build/__tests__/behavioral/schemas/CreatingANewSchemaBuilder.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/GeneratingFieldTypesOnly.test.js +7 -7
- package/build/__tests__/behavioral/schemas/GeneratingFieldTypesOnly.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/GettingSchemasFromHealthCheck.test.js +6 -6
- package/build/__tests__/behavioral/schemas/GettingSchemasFromHealthCheck.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/HandlesRelatedSchemas.test.js +18 -18
- package/build/__tests__/behavioral/schemas/HandlesRelatedSchemas.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/ImportingSchemaImports.test.js +7 -7
- package/build/__tests__/behavioral/schemas/ImportingSchemaImports.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/KeepingSchemasInSync.test.js +62 -64
- package/build/__tests__/behavioral/schemas/KeepingSchemasInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/SettingUpSchemas.test.js +6 -8
- package/build/__tests__/behavioral/schemas/SettingUpSchemas.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/SyncingBadSchemasProvidesHelpfulErrorMessages.test.js +4 -6
- package/build/__tests__/behavioral/schemas/SyncingBadSchemasProvidesHelpfulErrorMessages.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/UsingSchemasInCli.test.d.ts +1 -1
- package/build/__tests__/behavioral/schemas/UsingSchemasInCli.test.js +4 -4
- package/build/__tests__/behavioral/schemas/UsingSchemasInCli.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/BootingASkill.test.js +12 -12
- package/build/__tests__/behavioral/skill/BootingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/CreatingASkill.test.js +5 -5
- package/build/__tests__/behavioral/skill/CreatingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/RegisteringASkill.test.js +12 -14
- package/build/__tests__/behavioral/skill/RegisteringASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/SettingUpASkill.test.js +29 -29
- package/build/__tests__/behavioral/skill/SettingUpASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/stores/CreatingADataStore.test.js +26 -28
- package/build/__tests__/behavioral/stores/CreatingADataStore.test.js.map +1 -1
- package/build/__tests__/behavioral/stores/KeepingDataStoresInSync.test.js +8 -10
- package/build/__tests__/behavioral/stores/KeepingDataStoresInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/CreatingATest.test.js +10 -10
- package/build/__tests__/behavioral/tests/CreatingATest.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/RunningTests.test.js +8 -10
- package/build/__tests__/behavioral/tests/RunningTests.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/SelectingAnAbstractTestClass.test.js +17 -17
- package/build/__tests__/behavioral/tests/SelectingAnAbstractTestClass.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/SettingUpTests.test.js +3 -5
- package/build/__tests__/behavioral/tests/SettingUpTests.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpdatingDependencies.test.js +8 -8
- package/build/__tests__/behavioral/upgrading/UpdatingDependencies.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpdatingDependencies2.test.js +7 -7
- package/build/__tests__/behavioral/upgrading/UpdatingDependencies2.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingANodeModule.test.js +6 -6
- package/build/__tests__/behavioral/upgrading/UpgradingANodeModule.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingASkill.test.js +15 -15
- package/build/__tests__/behavioral/upgrading/UpgradingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingASkill2.test.js +24 -24
- package/build/__tests__/behavioral/upgrading/UpgradingASkill2.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingASkill3.test.js +22 -22
- package/build/__tests__/behavioral/upgrading/UpgradingASkill3.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingASkill4.test.js +10 -10
- package/build/__tests__/behavioral/upgrading/UpgradingASkill4.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingASkill5.test.js +9 -9
- package/build/__tests__/behavioral/upgrading/UpgradingASkill5.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingWithListeners.test.js +4 -4
- package/build/__tests__/behavioral/upgrading/UpgradingWithListeners.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingWithSandboxFeatureInstalled.test.js +9 -9
- package/build/__tests__/behavioral/upgrading/UpgradingWithSandboxFeatureInstalled.test.js.map +1 -1
- package/build/__tests__/behavioral/views/CreatingASkillView.test.js +28 -30
- package/build/__tests__/behavioral/views/CreatingASkillView.test.js.map +1 -1
- package/build/__tests__/behavioral/views/CreatingATheme.test.js +9 -11
- package/build/__tests__/behavioral/views/CreatingATheme.test.js.map +1 -1
- package/build/__tests__/behavioral/views/KeepingViewsInSync.test.js +8 -8
- package/build/__tests__/behavioral/views/KeepingViewsInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/views/SettingUpViews.test.js +5 -5
- package/build/__tests__/behavioral/views/SettingUpViews.test.js.map +1 -1
- package/build/__tests__/behavioral/views/TestingViewControllers.test.js +12 -12
- package/build/__tests__/behavioral/views/TestingViewControllers.test.js.map +1 -1
- package/build/__tests__/behavioral/watchers/WatchingForChanges.test.js +10 -10
- package/build/__tests__/behavioral/watchers/WatchingForChanges.test.js.map +1 -1
- package/build/__tests__/implementation/ActionExecuter.test.js +5 -5
- package/build/__tests__/implementation/ActionExecuter.test.js.map +1 -1
- package/build/__tests__/implementation/ActionExecuter2.test.js +30 -30
- package/build/__tests__/implementation/ActionExecuter2.test.js.map +1 -1
- package/build/__tests__/implementation/ActionExecuter3.test.js +3 -5
- package/build/__tests__/implementation/ActionExecuter3.test.js.map +1 -1
- package/build/__tests__/implementation/ActionExecuter4.test.js +2 -4
- package/build/__tests__/implementation/ActionExecuter4.test.js.map +1 -1
- package/build/__tests__/implementation/ArgParser.test.d.ts +1 -1
- package/build/__tests__/implementation/ArgParser.test.js +7 -7
- package/build/__tests__/implementation/ArgParser.test.js.map +1 -1
- package/build/__tests__/implementation/BuildService.test.js +4 -4
- package/build/__tests__/implementation/BuildService.test.js.map +1 -1
- package/build/__tests__/implementation/BulkImporting.test.d.ts +1 -1
- package/build/__tests__/implementation/BulkImporting.test.js +20 -22
- package/build/__tests__/implementation/BulkImporting.test.js.map +1 -1
- package/build/__tests__/implementation/CachingImports.test.js +3 -3
- package/build/__tests__/implementation/CachingImports.test.js.map +1 -1
- package/build/__tests__/implementation/CommandOptionBuilder.test.js +12 -12
- package/build/__tests__/implementation/CommandOptionBuilder.test.js.map +1 -1
- package/build/__tests__/implementation/CommanderCommandResultMapper.test.d.ts +1 -1
- package/build/__tests__/implementation/CommanderCommandResultMapper.test.js +13 -13
- package/build/__tests__/implementation/CommanderCommandResultMapper.test.js.map +1 -1
- package/build/__tests__/implementation/DataStoreStore.test.js +16 -18
- package/build/__tests__/implementation/DataStoreStore.test.js.map +1 -1
- package/build/__tests__/implementation/DeletingOrphanedSchemaDefinitions.test.js +6 -6
- package/build/__tests__/implementation/DeletingOrphanedSchemaDefinitions.test.js.map +1 -1
- package/build/__tests__/implementation/EventContractCleanerUtil.test.d.ts +1 -1
- package/build/__tests__/implementation/EventContractCleanerUtil.test.js +7 -7
- package/build/__tests__/implementation/EventContractCleanerUtil.test.js.map +1 -1
- package/build/__tests__/implementation/EventStore.test.js +27 -29
- package/build/__tests__/implementation/EventStore.test.js.map +1 -1
- package/build/__tests__/implementation/EventTemplateItemBuilder.test.js +12 -12
- package/build/__tests__/implementation/EventTemplateItemBuilder.test.js.map +1 -1
- package/build/__tests__/implementation/FeatureCommandAttacher.test.js +23 -23
- package/build/__tests__/implementation/FeatureCommandAttacher.test.js.map +1 -1
- package/build/__tests__/implementation/FeatureFixture.test.js +7 -7
- package/build/__tests__/implementation/FeatureFixture.test.js.map +1 -1
- package/build/__tests__/implementation/FeatureInstaller.test.js +8 -8
- package/build/__tests__/implementation/FeatureInstaller.test.js.map +1 -1
- package/build/__tests__/implementation/FeaturesUtil.test.d.ts +1 -1
- package/build/__tests__/implementation/FeaturesUtil.test.js +4 -4
- package/build/__tests__/implementation/FeaturesUtil.test.js.map +1 -1
- package/build/__tests__/implementation/FieldTemplateItemBuilder.test.js +11 -11
- package/build/__tests__/implementation/FieldTemplateItemBuilder.test.js.map +1 -1
- package/build/__tests__/implementation/GlobalEmitter.js +3 -3
- package/build/__tests__/implementation/GlobalEmitter.js.map +1 -1
- package/build/__tests__/implementation/Introspection.test.js +4 -4
- package/build/__tests__/implementation/Introspection.test.js.map +1 -1
- package/build/__tests__/implementation/JestJsonParser.test.d.ts +1 -1
- package/build/__tests__/implementation/JestJsonParser.test.js +31 -31
- package/build/__tests__/implementation/JestJsonParser.test.js.map +1 -1
- package/build/__tests__/implementation/LintService.test.js +3 -3
- package/build/__tests__/implementation/LintService.test.js.map +1 -1
- package/build/__tests__/implementation/ListenerStore.test.js +3 -3
- package/build/__tests__/implementation/ListenerStore.test.js.map +1 -1
- package/build/__tests__/implementation/OnboardingScriptLoader.test.js +9 -9
- package/build/__tests__/implementation/OnboardingScriptLoader.test.js.map +1 -1
- package/build/__tests__/implementation/OnboardingScriptPlayer.test.js +17 -17
- package/build/__tests__/implementation/OnboardingScriptPlayer.test.js.map +1 -1
- package/build/__tests__/implementation/OnboardingStore.test.js +14 -14
- package/build/__tests__/implementation/OnboardingStore.test.js.map +1 -1
- package/build/__tests__/implementation/OrganizationStore.test.js +10 -10
- package/build/__tests__/implementation/OrganizationStore.test.js.map +1 -1
- package/build/__tests__/implementation/ParentTestFinder.test.js +6 -6
- package/build/__tests__/implementation/ParentTestFinder.test.js.map +1 -1
- package/build/__tests__/implementation/PkgService.test.js +8 -8
- package/build/__tests__/implementation/PkgService.test.js.map +1 -1
- package/build/__tests__/implementation/SchemaStore.test.js +30 -32
- package/build/__tests__/implementation/SchemaStore.test.js.map +1 -1
- package/build/__tests__/implementation/SchemaTemplateItemBuilder.test.js +10 -10
- package/build/__tests__/implementation/SchemaTemplateItemBuilder.test.js.map +1 -1
- package/build/__tests__/implementation/SchemaValueTypeWriter.test.js +13 -13
- package/build/__tests__/implementation/SchemaValueTypeWriter.test.js.map +1 -1
- package/build/__tests__/implementation/ServiceFactory.test.js +3 -3
- package/build/__tests__/implementation/ServiceFactory.test.js.map +1 -1
- package/build/__tests__/implementation/SettingUpANodeModule.test.js +4 -6
- package/build/__tests__/implementation/SettingUpANodeModule.test.js.map +1 -1
- package/build/__tests__/implementation/SkillStore.test.js +25 -27
- package/build/__tests__/implementation/SkillStore.test.js.map +1 -1
- package/build/__tests__/implementation/StoreFeature.test.js +4 -4
- package/build/__tests__/implementation/StoreFeature.test.js.map +1 -1
- package/build/__tests__/implementation/TestReporter.test.js +5 -5
- package/build/__tests__/implementation/TestReporter.test.js.map +1 -1
- package/build/__tests__/implementation/TestRunner.test.js +23 -25
- package/build/__tests__/implementation/TestRunner.test.js.map +1 -1
- package/build/__tests__/implementation/ValueTypeMapping.test.js +4 -4
- package/build/__tests__/implementation/ValueTypeMapping.test.js.map +1 -1
- package/build/__tests__/implementation/Widgets.test.js +10 -10
- package/build/__tests__/implementation/Widgets.test.js.map +1 -1
- package/build/__tests__/testDirsAndFiles/abstract_tests/AbstractTest.d.ts +1 -1
- package/build/__tests__/testDirsAndFiles/abstract_tests/AbstractTest.ts +1 -1
- package/build/__tests__/testDirsAndFiles/abstract_tests/AbstractTest2.d.ts +1 -1
- package/build/__tests__/testDirsAndFiles/abstract_tests/AbstractTest2.ts +1 -1
- package/build/__tests__/testDirsAndFiles/abstract_tests/deeper/AbstractBananaTest.d.ts +1 -1
- package/build/__tests__/testDirsAndFiles/abstract_tests/deeper/AbstractBananaTest.ts +1 -1
- package/build/features/onboard/templates/ManagingTodos.test.ts.hbs +1 -1
- package/build/features/test/TestLogItemGenerator.js +2 -2
- package/build/features/test/TestLogItemGenerator.js.map +1 -1
- package/build/interfaces/SpyInterface.js +5 -5
- package/build/interfaces/SpyInterface.js.map +1 -1
- package/build/tests/AbstractCliTest.d.ts +1 -1
- package/build/tests/AbstractCliTest.js +11 -11
- package/build/tests/AbstractCliTest.js.map +1 -1
- package/build/tests/AbstractSchemaTest.js +4 -4
- package/build/tests/AbstractSchemaTest.js.map +1 -1
- package/build/tests/utilities/test.utility.js +6 -6
- package/build/tests/utilities/test.utility.js.map +1 -1
- package/build/tests/utilities/uiAssert.utility.js +6 -6
- package/build/tests/utilities/uiAssert.utility.js.map +1 -1
- package/package.json +5 -5
- package/src/__tests__/behavioral/AddingADependency.test.ts +1 -1
- package/src/__tests__/behavioral/BlockingCommands.test.ts +1 -1
- package/src/__tests__/behavioral/BootingTheCli.test.ts +1 -1
- package/src/__tests__/behavioral/BootingWithBadFiles.test.ts +1 -1
- package/src/__tests__/behavioral/CreatingAConversationTopic.test.ts +1 -1
- package/src/__tests__/behavioral/CreatingSchemasWithGenerics.test.ts +1 -1
- package/src/__tests__/behavioral/DeployingASkill.test.ts +1 -1
- package/src/__tests__/behavioral/DeployingToSandbox.test.ts +1 -1
- package/src/__tests__/behavioral/EnablingAndDisablingCache.test.ts +1 -1
- package/src/__tests__/behavioral/GettingCliVersion.test.ts +1 -1
- package/src/__tests__/behavioral/InstallingASkillAtAnOrg.test.ts +1 -1
- package/src/__tests__/behavioral/ListeningToCoreEvents.test.ts +1 -1
- package/src/__tests__/behavioral/LoggingInAsASkill.test.ts +1 -1
- package/src/__tests__/behavioral/ManagingDependencies.test.ts +1 -1
- package/src/__tests__/behavioral/OverridingCommandsInPackageJson.test.ts +1 -1
- package/src/__tests__/behavioral/RebuildingASkill.test.ts +1 -1
- package/src/__tests__/behavioral/RegisteringConversationsOnBoot.test.ts +1 -1
- package/src/__tests__/behavioral/RegisteringEventsOnBoot.test.ts +1 -1
- package/src/__tests__/behavioral/RegisteringGlobalEvents.test.ts +1 -1
- package/src/__tests__/behavioral/RegisteringSkillViewOnBoot.test.ts +1 -1
- package/src/__tests__/behavioral/RememberingUpgradeSelections.test.ts +1 -1
- package/src/__tests__/behavioral/SettingLogTransportsInASkill.test.ts +1 -1
- package/src/__tests__/behavioral/SettingRemote.test.ts +1 -1
- package/src/__tests__/behavioral/SettingUpASkillForTesting.test.ts +1 -1
- package/src/__tests__/behavioral/SettingUpSchemasForModuleDistribution.test.ts +1 -1
- package/src/__tests__/behavioral/SettingUpVscode.test.ts +1 -1
- package/src/__tests__/behavioral/SyncingEventsOnlyFromDependencies.test.ts +1 -1
- package/src/__tests__/behavioral/TestReporterSettingsRemembered.test.ts +1 -1
- package/src/__tests__/behavioral/TestingAConversation.test.ts +1 -1
- package/src/__tests__/behavioral/TestingDataStores.test.ts +1 -1
- package/src/__tests__/behavioral/WatchingSkillViews.test.ts +1 -1
- package/src/__tests__/behavioral/errors/CreatingANewErrorBuilder.test.ts +1 -1
- package/src/__tests__/behavioral/errors/KeepingErrorClassInSync.test.ts +1 -1
- package/src/__tests__/behavioral/errors/KeepingErrorsInSync.test.ts +1 -1
- package/src/__tests__/behavioral/errors/SettingUpErrors.test.ts +1 -1
- package/src/__tests__/behavioral/eventContract/PullingMercuryEventContract.test.ts +1 -1
- package/src/__tests__/behavioral/events/CreatingAListener.test.ts +1 -1
- package/src/__tests__/behavioral/events/CreatingAnEvent.test.ts +1 -1
- package/src/__tests__/behavioral/events/KeepingEventsInSync.test.ts +1 -1
- package/src/__tests__/behavioral/events/KeepingEventsInSync2.test.ts +1 -1
- package/src/__tests__/behavioral/events/KeepingListenersInSync.test.ts +1 -1
- package/src/__tests__/behavioral/events/ListeningToAnEventYouCreate.test.ts +1 -1
- package/src/__tests__/behavioral/events/SettingUpEvents.test.ts +1 -1
- package/src/__tests__/behavioral/events/SkillEmitsBootEvents.test.ts +1 -1
- package/src/__tests__/behavioral/node/CreatingANodeModule.test.ts +1 -1
- package/src/__tests__/behavioral/onboard/StartingOnboarding.test.ts +1 -1
- package/src/__tests__/behavioral/organization/CreatingAnOrg.test.ts +1 -1
- package/src/__tests__/behavioral/permissions/CreatingPermissions.test.ts +1 -1
- package/src/__tests__/behavioral/person/LoggingInAsPerson.test.ts +1 -1
- package/src/__tests__/behavioral/person/SeeWhoIsLoggedIn.test.ts +1 -1
- package/src/__tests__/behavioral/polish/SettingUpPolish.test.ts +1 -1
- package/src/__tests__/behavioral/schemas/CreatingANewSchemaBuilder.test.ts +1 -1
- package/src/__tests__/behavioral/schemas/GeneratingFieldTypesOnly.test.ts +1 -1
- package/src/__tests__/behavioral/schemas/GettingSchemasFromHealthCheck.test.ts +1 -1
- package/src/__tests__/behavioral/schemas/HandlesRelatedSchemas.test.ts +1 -1
- package/src/__tests__/behavioral/schemas/ImportingSchemaImports.test.ts +1 -1
- package/src/__tests__/behavioral/schemas/KeepingSchemasInSync.test.ts +1 -1
- package/src/__tests__/behavioral/schemas/SettingUpSchemas.test.ts +1 -1
- package/src/__tests__/behavioral/schemas/SyncingBadSchemasProvidesHelpfulErrorMessages.test.ts +1 -1
- package/src/__tests__/behavioral/schemas/UsingSchemasInCli.test.ts +1 -1
- package/src/__tests__/behavioral/skill/BootingASkill.test.ts +1 -1
- package/src/__tests__/behavioral/skill/CreatingASkill.test.ts +1 -1
- package/src/__tests__/behavioral/skill/RegisteringASkill.test.ts +1 -1
- package/src/__tests__/behavioral/skill/SettingUpASkill.test.ts +1 -1
- package/src/__tests__/behavioral/stores/CreatingADataStore.test.ts +1 -1
- package/src/__tests__/behavioral/stores/KeepingDataStoresInSync.test.ts +1 -1
- package/src/__tests__/behavioral/tests/CreatingATest.test.ts +1 -1
- package/src/__tests__/behavioral/tests/RunningTests.test.ts +1 -1
- package/src/__tests__/behavioral/tests/SelectingAnAbstractTestClass.test.ts +1 -1
- package/src/__tests__/behavioral/tests/SettingUpTests.test.ts +1 -1
- package/src/__tests__/behavioral/upgrading/UpdatingDependencies.test.ts +1 -1
- package/src/__tests__/behavioral/upgrading/UpdatingDependencies2.test.ts +1 -1
- package/src/__tests__/behavioral/upgrading/UpgradingANodeModule.test.ts +1 -1
- package/src/__tests__/behavioral/upgrading/UpgradingASkill.test.ts +1 -1
- package/src/__tests__/behavioral/upgrading/UpgradingASkill2.test.ts +1 -1
- package/src/__tests__/behavioral/upgrading/UpgradingASkill3.test.ts +1 -1
- package/src/__tests__/behavioral/upgrading/UpgradingASkill4.test.ts +1 -1
- package/src/__tests__/behavioral/upgrading/UpgradingASkill5.test.ts +1 -1
- package/src/__tests__/behavioral/upgrading/UpgradingWithListeners.test.ts +1 -1
- package/src/__tests__/behavioral/upgrading/UpgradingWithSandboxFeatureInstalled.test.ts +1 -1
- package/src/__tests__/behavioral/views/CreatingASkillView.test.ts +1 -1
- package/src/__tests__/behavioral/views/CreatingATheme.test.ts +1 -1
- package/src/__tests__/behavioral/views/KeepingViewsInSync.test.ts +1 -1
- package/src/__tests__/behavioral/views/SettingUpViews.test.ts +1 -1
- package/src/__tests__/behavioral/views/TestingViewControllers.test.ts +1 -1
- package/src/__tests__/behavioral/watchers/WatchingForChanges.test.ts +1 -1
- package/src/__tests__/implementation/ActionExecuter.test.ts +1 -1
- package/src/__tests__/implementation/ActionExecuter2.test.ts +1 -1
- package/src/__tests__/implementation/ActionExecuter3.test.ts +1 -1
- package/src/__tests__/implementation/ActionExecuter4.test.ts +1 -1
- package/src/__tests__/implementation/ArgParser.test.ts +1 -1
- package/src/__tests__/implementation/BuildService.test.ts +1 -1
- package/src/__tests__/implementation/BulkImporting.test.ts +1 -1
- package/src/__tests__/implementation/CachingImports.test.ts +1 -1
- package/src/__tests__/implementation/CommandOptionBuilder.test.ts +1 -1
- package/src/__tests__/implementation/CommanderCommandResultMapper.test.ts +1 -1
- package/src/__tests__/implementation/DataStoreStore.test.ts +1 -1
- package/src/__tests__/implementation/DeletingOrphanedSchemaDefinitions.test.ts +1 -1
- package/src/__tests__/implementation/EventContractCleanerUtil.test.ts +1 -1
- package/src/__tests__/implementation/EventStore.test.ts +1 -1
- package/src/__tests__/implementation/EventTemplateItemBuilder.test.ts +1 -1
- package/src/__tests__/implementation/FeatureCommandAttacher.test.ts +1 -1
- package/src/__tests__/implementation/FeatureFixture.test.ts +1 -1
- package/src/__tests__/implementation/FeatureInstaller.test.ts +1 -1
- package/src/__tests__/implementation/FeaturesUtil.test.ts +1 -1
- package/src/__tests__/implementation/FieldTemplateItemBuilder.test.ts +1 -1
- package/src/__tests__/implementation/GlobalEmitter.ts +1 -1
- package/src/__tests__/implementation/Introspection.test.ts +1 -1
- package/src/__tests__/implementation/JestJsonParser.test.ts +1 -1
- package/src/__tests__/implementation/LintService.test.ts +1 -1
- package/src/__tests__/implementation/ListenerStore.test.ts +1 -1
- package/src/__tests__/implementation/OnboardingScriptLoader.test.ts +1 -1
- package/src/__tests__/implementation/OnboardingScriptPlayer.test.ts +1 -1
- package/src/__tests__/implementation/OnboardingStore.test.ts +1 -1
- package/src/__tests__/implementation/OrganizationStore.test.ts +1 -1
- package/src/__tests__/implementation/ParentTestFinder.test.ts +1 -1
- package/src/__tests__/implementation/PkgService.test.ts +1 -1
- package/src/__tests__/implementation/SchemaStore.test.ts +1 -1
- package/src/__tests__/implementation/SchemaTemplateItemBuilder.test.ts +1 -1
- package/src/__tests__/implementation/SchemaValueTypeWriter.test.ts +1 -1
- package/src/__tests__/implementation/ServiceFactory.test.ts +1 -1
- package/src/__tests__/implementation/SettingUpANodeModule.test.ts +1 -1
- package/src/__tests__/implementation/SkillStore.test.ts +1 -1
- package/src/__tests__/implementation/StoreFeature.test.ts +1 -1
- package/src/__tests__/implementation/TestReporter.test.ts +1 -1
- package/src/__tests__/implementation/TestRunner.test.ts +1 -1
- package/src/__tests__/implementation/ValueTypeMapping.test.ts +1 -1
- package/src/__tests__/implementation/Widgets.test.ts +1 -1
- package/src/__tests__/testDirsAndFiles/abstract_tests/AbstractTest.ts +1 -1
- package/src/__tests__/testDirsAndFiles/abstract_tests/AbstractTest2.ts +1 -1
- package/src/__tests__/testDirsAndFiles/abstract_tests/deeper/AbstractBananaTest.ts +1 -1
- package/src/features/onboard/templates/ManagingTodos.test.ts.hbs +1 -1
- package/src/features/test/TestLogItemGenerator.ts +1 -1
- package/src/interfaces/SpyInterface.ts +1 -1
- package/src/tests/AbstractCliTest.ts +1 -1
- package/src/tests/AbstractSchemaTest.ts +1 -1
- package/src/tests/utilities/test.utility.ts +1 -1
- package/src/tests/utilities/uiAssert.utility.ts +1 -1
|
@@ -25,7 +25,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
25
25
|
|
|
26
26
|
var _applyDecoratedDescriptor2 = _interopRequireDefault(require("@babel/runtime/helpers/applyDecoratedDescriptor"));
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _testUtils = require("@sprucelabs/test-utils");
|
|
29
29
|
|
|
30
30
|
var _AbstractSkillTest2 = _interopRequireDefault(require("../../tests/AbstractSkillTest"));
|
|
31
31
|
|
|
@@ -35,7 +35,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
35
35
|
|
|
36
36
|
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; } }
|
|
37
37
|
|
|
38
|
-
var ManagingDependenciesTest = (_dec = (0,
|
|
38
|
+
var ManagingDependenciesTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.test)(), _dec3 = (0, _testUtils.test)(), _dec4 = (0, _testUtils.test)(), _dec5 = (0, _testUtils.test)(), (_class = (_class2 = /*#__PURE__*/function (_AbstractSkillTest) {
|
|
39
39
|
(0, _inherits2["default"])(ManagingDependenciesTest, _AbstractSkillTest);
|
|
40
40
|
|
|
41
41
|
var _super = _createSuper(ManagingDependenciesTest);
|
|
@@ -53,7 +53,7 @@ var ManagingDependenciesTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test
|
|
|
53
53
|
while (1) {
|
|
54
54
|
switch (_context.prev = _context.next) {
|
|
55
55
|
case 0:
|
|
56
|
-
|
|
56
|
+
_testUtils.assert.isFunction(this.Action('dependency', 'manage').execute);
|
|
57
57
|
|
|
58
58
|
case 1:
|
|
59
59
|
case "end":
|
|
@@ -99,13 +99,13 @@ var ManagingDependenciesTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test
|
|
|
99
99
|
case 9:
|
|
100
100
|
last = this.ui.getLastInvocation();
|
|
101
101
|
|
|
102
|
-
|
|
102
|
+
_testUtils.assert.isEqual(last.options.type, 'select');
|
|
103
103
|
|
|
104
|
-
|
|
104
|
+
_testUtils.assert.doesInclude(last.options.options.choices, {
|
|
105
105
|
value: skill1.id
|
|
106
106
|
});
|
|
107
107
|
|
|
108
|
-
|
|
108
|
+
_testUtils.assert.doesInclude(last.options.options.choices, {
|
|
109
109
|
value: skill2.id
|
|
110
110
|
});
|
|
111
111
|
|
|
@@ -152,7 +152,7 @@ var ManagingDependenciesTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test
|
|
|
152
152
|
case 7:
|
|
153
153
|
last = this.ui.getLastInvocation();
|
|
154
154
|
|
|
155
|
-
|
|
155
|
+
_testUtils.assert.isEqualDeep(last.options.value, [skill1.id]);
|
|
156
156
|
|
|
157
157
|
this.ui.reset();
|
|
158
158
|
|
|
@@ -204,7 +204,7 @@ var ManagingDependenciesTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test
|
|
|
204
204
|
case 11:
|
|
205
205
|
dependencies = this.Service('settings').get('dependencies');
|
|
206
206
|
|
|
207
|
-
|
|
207
|
+
_testUtils.assert.isEqualDeep(dependencies, [{
|
|
208
208
|
id: skill1.id,
|
|
209
209
|
namespace: skill1.slug
|
|
210
210
|
}, {
|
|
@@ -252,7 +252,7 @@ var ManagingDependenciesTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test
|
|
|
252
252
|
case 6:
|
|
253
253
|
last = this.ui.getLastInvocation();
|
|
254
254
|
|
|
255
|
-
|
|
255
|
+
_testUtils.assert.doesNotInclude(last.options.options.choices, {
|
|
256
256
|
value: skill.id
|
|
257
257
|
});
|
|
258
258
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ManagingDependencies.test.js","names":["ManagingDependenciesTest","test","assert","isFunction","Action","execute","getSkillFixture","seedDemoSkill","name","skill1","skill2","waitForInput","last","ui","getLastInvocation","isEqual","options","type","doesInclude","choices","value","id","reset","Service","set","namespace","slug","isEqualDeep","promise","sendInput","dependencies","get","registerCurrentSkill","skill","doesNotInclude","AbstractSkillTest"],"sources":["../../../src/__tests__/behavioral/ManagingDependencies.test.ts"],"sourcesContent":["import { test, assert } from '@sprucelabs/test'\nimport AbstractSkillTest from '../../tests/AbstractSkillTest'\n\nexport default class ManagingDependenciesTest extends AbstractSkillTest {\n\tprotected static skillCacheKey = 'skills'\n\n\t@test()\n\tprotected static async hasAddDependencyAction() {\n\t\tassert.isFunction(this.Action('dependency', 'manage').execute)\n\t}\n\n\t@test()\n\tprotected static async showsSkillsAsCheckboxes() {\n\t\tconst skill1 = await this.getSkillFixture().seedDemoSkill({\n\t\t\tname: 'dependency manage 1',\n\t\t})\n\n\t\tconst skill2 = await this.getSkillFixture().seedDemoSkill({\n\t\t\tname: 'dependency manage 2',\n\t\t})\n\n\t\tvoid this.Action('dependency', 'manage').execute({})\n\n\t\tawait this.waitForInput()\n\n\t\tconst last = this.ui.getLastInvocation()\n\n\t\tassert.isEqual(last.options.type, 'select')\n\n\t\tassert.doesInclude(last.options.options.choices, {\n\t\t\tvalue: skill1.id,\n\t\t})\n\n\t\tassert.doesInclude(last.options.options.choices, {\n\t\t\tvalue: skill2.id,\n\t\t})\n\n\t\tthis.ui.reset()\n\t}\n\n\t@test()\n\tprotected static async selectsExistingDependencies() {\n\t\tconst skill1 = await this.getSkillFixture().seedDemoSkill({\n\t\t\tname: 'dependency manage 3',\n\t\t})\n\n\t\tthis.Service('dependency').set([\n\t\t\t{\n\t\t\t\tnamespace: skill1.slug,\n\t\t\t\tid: skill1.id,\n\t\t\t},\n\t\t])\n\n\t\tvoid this.Action('dependency', 'manage').execute({})\n\n\t\tawait this.waitForInput()\n\n\t\tconst last = this.ui.getLastInvocation()\n\n\t\tassert.isEqualDeep(last.options.value, [skill1.id])\n\n\t\tthis.ui.reset()\n\t}\n\n\t@test()\n\tprotected static async canSelectANewDependencies() {\n\t\tconst skill1 = await this.getSkillFixture().seedDemoSkill({\n\t\t\tname: 'dependency manage 4',\n\t\t})\n\n\t\tconst skill2 = await this.getSkillFixture().seedDemoSkill({\n\t\t\tname: 'dependency manage 5',\n\t\t})\n\n\t\tconst promise = this.Action('dependency', 'manage').execute({})\n\n\t\tawait this.waitForInput()\n\n\t\tawait this.ui.sendInput([skill1.id, skill2.id])\n\n\t\tconst dependencies = this.Service('settings').get('dependencies')\n\n\t\tassert.isEqualDeep(dependencies, [\n\t\t\t{\n\t\t\t\tid: skill1.id,\n\t\t\t\tnamespace: skill1.slug,\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: skill2.id,\n\t\t\t\tnamespace: skill2.slug,\n\t\t\t},\n\t\t])\n\n\t\tawait promise\n\t}\n\n\t@test()\n\tprotected static async doesNotShowCurrentSkill() {\n\t\tconst skill = await this.getSkillFixture().registerCurrentSkill({\n\t\t\tname: 'current skill in managing deps',\n\t\t})\n\n\t\tvoid this.Action('dependency', 'manage').execute({})\n\n\t\tawait this.waitForInput()\n\n\t\tconst last = this.ui.getLastInvocation()\n\n\t\tassert.doesNotInclude(last.options.options.choices, {\n\t\t\tvalue: skill.id,\n\t\t})\n\n\t\tthis.ui.reset()\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;;;;;;;IAEqBA,wB,WAGnB,IAAAC,
|
|
1
|
+
{"version":3,"file":"ManagingDependencies.test.js","names":["ManagingDependenciesTest","test","assert","isFunction","Action","execute","getSkillFixture","seedDemoSkill","name","skill1","skill2","waitForInput","last","ui","getLastInvocation","isEqual","options","type","doesInclude","choices","value","id","reset","Service","set","namespace","slug","isEqualDeep","promise","sendInput","dependencies","get","registerCurrentSkill","skill","doesNotInclude","AbstractSkillTest"],"sources":["../../../src/__tests__/behavioral/ManagingDependencies.test.ts"],"sourcesContent":["import { test, assert } from '@sprucelabs/test-utils'\nimport AbstractSkillTest from '../../tests/AbstractSkillTest'\n\nexport default class ManagingDependenciesTest extends AbstractSkillTest {\n\tprotected static skillCacheKey = 'skills'\n\n\t@test()\n\tprotected static async hasAddDependencyAction() {\n\t\tassert.isFunction(this.Action('dependency', 'manage').execute)\n\t}\n\n\t@test()\n\tprotected static async showsSkillsAsCheckboxes() {\n\t\tconst skill1 = await this.getSkillFixture().seedDemoSkill({\n\t\t\tname: 'dependency manage 1',\n\t\t})\n\n\t\tconst skill2 = await this.getSkillFixture().seedDemoSkill({\n\t\t\tname: 'dependency manage 2',\n\t\t})\n\n\t\tvoid this.Action('dependency', 'manage').execute({})\n\n\t\tawait this.waitForInput()\n\n\t\tconst last = this.ui.getLastInvocation()\n\n\t\tassert.isEqual(last.options.type, 'select')\n\n\t\tassert.doesInclude(last.options.options.choices, {\n\t\t\tvalue: skill1.id,\n\t\t})\n\n\t\tassert.doesInclude(last.options.options.choices, {\n\t\t\tvalue: skill2.id,\n\t\t})\n\n\t\tthis.ui.reset()\n\t}\n\n\t@test()\n\tprotected static async selectsExistingDependencies() {\n\t\tconst skill1 = await this.getSkillFixture().seedDemoSkill({\n\t\t\tname: 'dependency manage 3',\n\t\t})\n\n\t\tthis.Service('dependency').set([\n\t\t\t{\n\t\t\t\tnamespace: skill1.slug,\n\t\t\t\tid: skill1.id,\n\t\t\t},\n\t\t])\n\n\t\tvoid this.Action('dependency', 'manage').execute({})\n\n\t\tawait this.waitForInput()\n\n\t\tconst last = this.ui.getLastInvocation()\n\n\t\tassert.isEqualDeep(last.options.value, [skill1.id])\n\n\t\tthis.ui.reset()\n\t}\n\n\t@test()\n\tprotected static async canSelectANewDependencies() {\n\t\tconst skill1 = await this.getSkillFixture().seedDemoSkill({\n\t\t\tname: 'dependency manage 4',\n\t\t})\n\n\t\tconst skill2 = await this.getSkillFixture().seedDemoSkill({\n\t\t\tname: 'dependency manage 5',\n\t\t})\n\n\t\tconst promise = this.Action('dependency', 'manage').execute({})\n\n\t\tawait this.waitForInput()\n\n\t\tawait this.ui.sendInput([skill1.id, skill2.id])\n\n\t\tconst dependencies = this.Service('settings').get('dependencies')\n\n\t\tassert.isEqualDeep(dependencies, [\n\t\t\t{\n\t\t\t\tid: skill1.id,\n\t\t\t\tnamespace: skill1.slug,\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: skill2.id,\n\t\t\t\tnamespace: skill2.slug,\n\t\t\t},\n\t\t])\n\n\t\tawait promise\n\t}\n\n\t@test()\n\tprotected static async doesNotShowCurrentSkill() {\n\t\tconst skill = await this.getSkillFixture().registerCurrentSkill({\n\t\t\tname: 'current skill in managing deps',\n\t\t})\n\n\t\tvoid this.Action('dependency', 'manage').execute({})\n\n\t\tawait this.waitForInput()\n\n\t\tconst last = this.ui.getLastInvocation()\n\n\t\tassert.doesNotInclude(last.options.options.choices, {\n\t\t\tvalue: skill.id,\n\t\t})\n\n\t\tthis.ui.reset()\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;;;;;;;IAEqBA,wB,WAGnB,IAAAC,eAAA,G,UAKA,IAAAA,eAAA,G,UA6BA,IAAAA,eAAA,G,UAwBA,IAAAA,eAAA,G,UAgCA,IAAAA,eAAA,G;;;;;;;;;;;;;kHA1FD;QAAA;UAAA;YAAA;cAAA;gBAECC,iBAAA,CAAOC,UAAP,CAAkB,KAAKC,MAAL,CAAY,YAAZ,EAA0B,QAA1B,EAAoCC,OAAtD;;cAFD;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,C;;;;;;;;;;;mHAKA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA,OAEsB,KAAKC,eAAL,GAAuBC,aAAvB,CAAqC;kBACzDC,IAAI,EAAE;gBADmD,CAArC,CAFtB;;cAAA;gBAEOC,MAFP;gBAAA;gBAAA,OAMsB,KAAKH,eAAL,GAAuBC,aAAvB,CAAqC;kBACzDC,IAAI,EAAE;gBADmD,CAArC,CANt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,GAAuB0B,oBAAvB,CAA4C;kBAC/DxB,IAAI,EAAE;gBADyD,CAA5C,CAFrB;;cAAA;gBAEOyB,KAFP;gBAMC,KAAK,KAAK7B,MAAL,CAAY,YAAZ,EAA0B,QAA1B,EAAoCC,OAApC,CAA4C,EAA5C,CAAL;gBAND;gBAAA,OAQO,KAAKM,YAAL,EARP;;cAAA;gBAUOC,IAVP,GAUc,KAAKC,EAAL,CAAQC,iBAAR,EAVd;;gBAYCZ,iBAAA,CAAOgC,cAAP,CAAsBtB,IAAI,CAACI,OAAL,CAAaA,OAAb,CAAqBG,OAA3C,EAAoD;kBACnDC,KAAK,EAAEa,KAAK,CAACZ;gBADsC,CAApD;;gBAIA,KAAKR,EAAL,CAAQS,KAAR;;cAhBD;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,C;;;;;;;;;;EA7FqDa,8B,8DACpB,Q"}
|
|
@@ -27,7 +27,7 @@ var _applyDecoratedDescriptor2 = _interopRequireDefault(require("@babel/runtime/
|
|
|
27
27
|
|
|
28
28
|
var _spruceSkillUtils = require("@sprucelabs/spruce-skill-utils");
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _testUtils = require("@sprucelabs/test-utils");
|
|
31
31
|
|
|
32
32
|
var _AbstractSkillTest2 = _interopRequireDefault(require("../../tests/AbstractSkillTest"));
|
|
33
33
|
|
|
@@ -39,7 +39,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
39
39
|
|
|
40
40
|
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; } }
|
|
41
41
|
|
|
42
|
-
var OverridingCommandsInPackageJsonTest = (_dec = (0,
|
|
42
|
+
var OverridingCommandsInPackageJsonTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.test)(), (_class = (_class2 = /*#__PURE__*/function (_AbstractSkillTest) {
|
|
43
43
|
(0, _inherits2["default"])(OverridingCommandsInPackageJsonTest, _AbstractSkillTest);
|
|
44
44
|
|
|
45
45
|
var _super = _createSuper(OverridingCommandsInPackageJsonTest);
|
|
@@ -137,7 +137,7 @@ var OverridingCommandsInPackageJsonTest = (_dec = (0, _test.test)(), _dec2 = (0,
|
|
|
137
137
|
value: function assertCoreSchemasDidNotSync() {
|
|
138
138
|
var personPath = this.resolveHashSprucePath('schemas', 'spruce', 'v2020_07_22', 'person.schema.ts');
|
|
139
139
|
|
|
140
|
-
|
|
140
|
+
_testUtils.assert.isFalse(_spruceSkillUtils.diskUtil.doesFileExist(personPath));
|
|
141
141
|
}
|
|
142
142
|
}, {
|
|
143
143
|
key: "overrideOptions",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OverridingCommandsInPackageJson.test.js","names":["OverridingCommandsInPackageJsonTest","test","overrideOptions","FeatureFixture","Cli","program","MockProgramFactory","Program","cli","executer","getActionExecuter","Action","execute","assertCoreSchemasDidNotSync","nameReadable","namePascal","nameCamel","description","personPath","resolveHashSprucePath","assert","isFalse","diskUtil","doesFileExist","pkg","Service","set","path","value","AbstractSkillTest"],"sources":["../../../src/__tests__/behavioral/OverridingCommandsInPackageJson.test.ts"],"sourcesContent":["import { diskUtil } from '@sprucelabs/spruce-skill-utils'\nimport { test, assert } from '@sprucelabs/test'\nimport AbstractSkillTest from '../../tests/AbstractSkillTest'\nimport MockProgramFactory from '../../tests/MockProgramFactory'\n\nexport default class OverridingCommandsInPackageJsonTest extends AbstractSkillTest {\n\tprotected static skillCacheKey = 'schemas'\n\n\t@test()\n\tprotected static async runningCommandHonorsOverrides() {\n\t\tthis.overrideOptions()\n\n\t\tconst cli = await this.FeatureFixture().Cli({\n\t\t\tprogram: MockProgramFactory.Program(),\n\t\t})\n\n\t\t//@ts-ignore\n\t\tconst executer = cli.getActionExecuter()\n\t\tawait executer.Action('schema', 'sync').execute()\n\n\t\tthis.assertCoreSchemasDidNotSync()\n\t}\n\n\t@test()\n\tprotected static async runningCommandHonorsOverridesWhenCommandIsForwarded() {\n\t\tthis.overrideOptions()\n\n\t\tconst cli = await this.FeatureFixture().Cli({\n\t\t\tprogram: MockProgramFactory.Program(),\n\t\t})\n\n\t\t//@ts-ignore\n\t\tconst executer = cli.getActionExecuter()\n\t\tawait executer.Action('schema', 'create').execute({\n\t\t\tnameReadable: 'Test schema!',\n\t\t\tnamePascal: 'Test',\n\t\t\tnameCamel: 'test',\n\t\t\tdescription: 'this is so great!',\n\t\t})\n\n\t\tthis.assertCoreSchemasDidNotSync()\n\t}\n\n\tprivate static assertCoreSchemasDidNotSync() {\n\t\tconst personPath = this.resolveHashSprucePath(\n\t\t\t'schemas',\n\t\t\t'spruce',\n\t\t\t'v2020_07_22',\n\t\t\t'person.schema.ts'\n\t\t)\n\n\t\tassert.isFalse(diskUtil.doesFileExist(personPath))\n\t}\n\n\tprivate static overrideOptions() {\n\t\tconst pkg = this.Service('pkg')\n\t\tpkg.set({\n\t\t\tpath: ['skill', 'commandOverrides', 'sync.schemas'],\n\t\t\tvalue: '--shouldFetchCoreSchemas false',\n\t\t})\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;;;IAEqBA,mC,WAGnB,IAAAC,
|
|
1
|
+
{"version":3,"file":"OverridingCommandsInPackageJson.test.js","names":["OverridingCommandsInPackageJsonTest","test","overrideOptions","FeatureFixture","Cli","program","MockProgramFactory","Program","cli","executer","getActionExecuter","Action","execute","assertCoreSchemasDidNotSync","nameReadable","namePascal","nameCamel","description","personPath","resolveHashSprucePath","assert","isFalse","diskUtil","doesFileExist","pkg","Service","set","path","value","AbstractSkillTest"],"sources":["../../../src/__tests__/behavioral/OverridingCommandsInPackageJson.test.ts"],"sourcesContent":["import { diskUtil } from '@sprucelabs/spruce-skill-utils'\nimport { test, assert } from '@sprucelabs/test-utils'\nimport AbstractSkillTest from '../../tests/AbstractSkillTest'\nimport MockProgramFactory from '../../tests/MockProgramFactory'\n\nexport default class OverridingCommandsInPackageJsonTest extends AbstractSkillTest {\n\tprotected static skillCacheKey = 'schemas'\n\n\t@test()\n\tprotected static async runningCommandHonorsOverrides() {\n\t\tthis.overrideOptions()\n\n\t\tconst cli = await this.FeatureFixture().Cli({\n\t\t\tprogram: MockProgramFactory.Program(),\n\t\t})\n\n\t\t//@ts-ignore\n\t\tconst executer = cli.getActionExecuter()\n\t\tawait executer.Action('schema', 'sync').execute()\n\n\t\tthis.assertCoreSchemasDidNotSync()\n\t}\n\n\t@test()\n\tprotected static async runningCommandHonorsOverridesWhenCommandIsForwarded() {\n\t\tthis.overrideOptions()\n\n\t\tconst cli = await this.FeatureFixture().Cli({\n\t\t\tprogram: MockProgramFactory.Program(),\n\t\t})\n\n\t\t//@ts-ignore\n\t\tconst executer = cli.getActionExecuter()\n\t\tawait executer.Action('schema', 'create').execute({\n\t\t\tnameReadable: 'Test schema!',\n\t\t\tnamePascal: 'Test',\n\t\t\tnameCamel: 'test',\n\t\t\tdescription: 'this is so great!',\n\t\t})\n\n\t\tthis.assertCoreSchemasDidNotSync()\n\t}\n\n\tprivate static assertCoreSchemasDidNotSync() {\n\t\tconst personPath = this.resolveHashSprucePath(\n\t\t\t'schemas',\n\t\t\t'spruce',\n\t\t\t'v2020_07_22',\n\t\t\t'person.schema.ts'\n\t\t)\n\n\t\tassert.isFalse(diskUtil.doesFileExist(personPath))\n\t}\n\n\tprivate static overrideOptions() {\n\t\tconst pkg = this.Service('pkg')\n\t\tpkg.set({\n\t\t\tpath: ['skill', 'commandOverrides', 'sync.schemas'],\n\t\t\tvalue: '--shouldFetchCoreSchemas false',\n\t\t})\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;;;IAEqBA,mC,WAGnB,IAAAC,eAAA,G,UAeA,IAAAA,eAAA,G;;;;;;;;;;;;;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AAG,GAAG,KAAKC,OAAL,CAAa,KAAb,CAAZ;MACAD,GAAG,CAACE,GAAJ,CAAQ;QACPC,IAAI,EAAE,CAAC,OAAD,EAAU,kBAAV,EAA8B,cAA9B,CADC;QAEPC,KAAK,EAAE;MAFA,CAAR;IAIA;;;EAvD+DC,8B,8DAC/B,S"}
|
|
@@ -25,8 +25,6 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
25
25
|
|
|
26
26
|
var _applyDecoratedDescriptor2 = _interopRequireDefault(require("@babel/runtime/helpers/applyDecoratedDescriptor"));
|
|
27
27
|
|
|
28
|
-
var _test = require("@sprucelabs/test");
|
|
29
|
-
|
|
30
28
|
var _testUtils = require("@sprucelabs/test-utils");
|
|
31
29
|
|
|
32
30
|
var _CommandService = _interopRequireDefault(require("../../services/CommandService"));
|
|
@@ -39,7 +37,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
39
37
|
|
|
40
38
|
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; } }
|
|
41
39
|
|
|
42
|
-
var RebuildingASkillTest = (_dec = (0,
|
|
40
|
+
var RebuildingASkillTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.test)(), _dec3 = (0, _testUtils.test)(), (_class = (_class2 = /*#__PURE__*/function (_AbstractSkillTest) {
|
|
43
41
|
(0, _inherits2["default"])(RebuildingASkillTest, _AbstractSkillTest);
|
|
44
42
|
|
|
45
43
|
var _super = _createSuper(RebuildingASkillTest);
|
|
@@ -57,7 +55,7 @@ var RebuildingASkillTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(),
|
|
|
57
55
|
while (1) {
|
|
58
56
|
switch (_context.prev = _context.next) {
|
|
59
57
|
case 0:
|
|
60
|
-
|
|
58
|
+
_testUtils.assert.isFunction(this.Action('skill', 'rebuild').execute);
|
|
61
59
|
|
|
62
60
|
case 1:
|
|
63
61
|
case "end":
|
|
@@ -94,7 +92,7 @@ var RebuildingASkillTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(),
|
|
|
94
92
|
case 3:
|
|
95
93
|
results = _context2.sent;
|
|
96
94
|
|
|
97
|
-
|
|
95
|
+
_testUtils.assert.isFalsy(results.errors);
|
|
98
96
|
|
|
99
97
|
case 5:
|
|
100
98
|
case "end":
|
|
@@ -131,7 +129,7 @@ var RebuildingASkillTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(),
|
|
|
131
129
|
case 3:
|
|
132
130
|
results = _context3.sent;
|
|
133
131
|
|
|
134
|
-
|
|
132
|
+
_testUtils.assert.isArray(results.errors);
|
|
135
133
|
|
|
136
134
|
_testUtils.errorAssert.assertError(results.errors[0], 'EXECUTING_COMMAND_FAILED');
|
|
137
135
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RebuildingASkill.test.js","names":["RebuildingASkillTest","test","assert","isFunction","Action","execute","CommandService","fakeCommand","code","shouldPlayGames","results","isFalsy","errors","isArray","errorAssert","assertError","AbstractSkillTest"],"sources":["../../../src/__tests__/behavioral/RebuildingASkill.test.ts"],"sourcesContent":["import { test, assert } from '@sprucelabs/test'\nimport { errorAssert } from '@sprucelabs/test-utils'\nimport CommandService from '../../services/CommandService'\nimport AbstractSkillTest from '../../tests/AbstractSkillTest'\n\nexport default class RebuildingASkillTest extends AbstractSkillTest {\n\tprotected static skillCacheKey = 'skills'\n\n\t@test()\n\tprotected static async hasRebuildCommand() {\n\t\tassert.isFunction(this.Action('skill', 'rebuild').execute)\n\t}\n\n\t@test()\n\tprotected static async runsExpectedCommand() {\n\t\tCommandService.fakeCommand('yarn rebuild', { code: 0 })\n\n\t\tconst results = await this.Action('skill', 'rebuild').execute({\n\t\t\tshouldPlayGames: false,\n\t\t})\n\n\t\tassert.isFalsy(results.errors)\n\t}\n\n\t@test()\n\tprotected static async handlesError() {\n\t\tCommandService.fakeCommand('yarn rebuild', { code: 1 })\n\n\t\tconst results = await this.Action('skill', 'rebuild').execute({\n\t\t\tshouldPlayGames: false,\n\t\t})\n\n\t\tassert.isArray(results.errors)\n\n\t\terrorAssert.assertError(results.errors[0], 'EXECUTING_COMMAND_FAILED')\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;
|
|
1
|
+
{"version":3,"file":"RebuildingASkill.test.js","names":["RebuildingASkillTest","test","assert","isFunction","Action","execute","CommandService","fakeCommand","code","shouldPlayGames","results","isFalsy","errors","isArray","errorAssert","assertError","AbstractSkillTest"],"sources":["../../../src/__tests__/behavioral/RebuildingASkill.test.ts"],"sourcesContent":["import { test, assert } from '@sprucelabs/test-utils'\nimport { errorAssert } from '@sprucelabs/test-utils'\nimport CommandService from '../../services/CommandService'\nimport AbstractSkillTest from '../../tests/AbstractSkillTest'\n\nexport default class RebuildingASkillTest extends AbstractSkillTest {\n\tprotected static skillCacheKey = 'skills'\n\n\t@test()\n\tprotected static async hasRebuildCommand() {\n\t\tassert.isFunction(this.Action('skill', 'rebuild').execute)\n\t}\n\n\t@test()\n\tprotected static async runsExpectedCommand() {\n\t\tCommandService.fakeCommand('yarn rebuild', { code: 0 })\n\n\t\tconst results = await this.Action('skill', 'rebuild').execute({\n\t\t\tshouldPlayGames: false,\n\t\t})\n\n\t\tassert.isFalsy(results.errors)\n\t}\n\n\t@test()\n\tprotected static async handlesError() {\n\t\tCommandService.fakeCommand('yarn rebuild', { code: 1 })\n\n\t\tconst results = await this.Action('skill', 'rebuild').execute({\n\t\t\tshouldPlayGames: false,\n\t\t})\n\n\t\tassert.isArray(results.errors)\n\n\t\terrorAssert.assertError(results.errors[0], 'EXECUTING_COMMAND_FAILED')\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAEA;;AACA;;;;;;;;IAEqBA,oB,WAGnB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23
23
|
|
|
24
24
|
var _applyDecoratedDescriptor2 = _interopRequireDefault(require("@babel/runtime/helpers/applyDecoratedDescriptor"));
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _testUtils = require("@sprucelabs/test-utils");
|
|
27
27
|
|
|
28
28
|
var _AbstractEventTest2 = _interopRequireDefault(require("../../tests/AbstractEventTest"));
|
|
29
29
|
|
|
@@ -33,7 +33,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
33
33
|
|
|
34
34
|
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; } }
|
|
35
35
|
|
|
36
|
-
var RegisteringConversationsOnBootTest = (_dec = (0,
|
|
36
|
+
var RegisteringConversationsOnBootTest = (_dec = (0, _testUtils.test)(), (_class = /*#__PURE__*/function (_AbstractEventTest) {
|
|
37
37
|
(0, _inherits2["default"])(RegisteringConversationsOnBootTest, _AbstractEventTest);
|
|
38
38
|
|
|
39
39
|
var _super = _createSuper(RegisteringConversationsOnBootTest);
|
|
@@ -114,9 +114,9 @@ var RegisteringConversationsOnBootTest = (_dec = (0, _test.test)(), (_class = /*
|
|
|
114
114
|
topics = topicResults.topics;
|
|
115
115
|
(_boot$meta = boot.meta) === null || _boot$meta === void 0 ? void 0 : _boot$meta.kill();
|
|
116
116
|
|
|
117
|
-
|
|
117
|
+
_testUtils.assert.isLength(topics, 1);
|
|
118
118
|
|
|
119
|
-
|
|
119
|
+
_testUtils.assert.isEqual(topics[0].key, 'bookAnAppointment');
|
|
120
120
|
|
|
121
121
|
case 19:
|
|
122
122
|
case "end":
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RegisteringConversationsOnBoot.test.js","names":["RegisteringConversationsOnBootTest","test","seedDummySkillRegisterCurrentSkillAndInstallToOrg","currentSkill","Action","execute","nameReadable","nameCamel","local","boot","connectToApi","skillId","id","apiKey","client","Store","apiClientFactory","fetchRegisteredTopics","topicResults","topics","meta","kill","assert","isLength","isEqual","key","AbstractEventTest"],"sources":["../../../src/__tests__/behavioral/RegisteringConversationsOnBoot.test.ts"],"sourcesContent":["import { test, assert } from '@sprucelabs/test'\nimport AbstractEventTest from '../../tests/AbstractEventTest'\n\nexport default class RegisteringConversationsOnBootTest extends AbstractEventTest {\n\t@test()\n\tprotected static async canRegisterConversationsOnBoot() {\n\t\tconst { currentSkill } =\n\t\t\tawait this.seedDummySkillRegisterCurrentSkillAndInstallToOrg(\n\t\t\t\t'conversation'\n\t\t\t)\n\n\t\tawait this.Action('conversation', 'create').execute({\n\t\t\tnameReadable: 'book an appointment',\n\t\t\tnameCamel: 'bookAnAppointment',\n\t\t})\n\n\t\tconst boot = await this.Action('skill', 'boot').execute({ local: true })\n\n\t\tconst client = await this.connectToApi({\n\t\t\tskillId: currentSkill.id,\n\t\t\tapiKey: currentSkill.apiKey,\n\t\t})\n\n\t\tconst topicResults = await this.Store('conversation', {\n\t\t\tapiClientFactory: async () => client,\n\t\t}).fetchRegisteredTopics()\n\n\t\tconst topics = topicResults.topics\n\n\t\tboot.meta?.kill()\n\n\t\tassert.isLength(topics, 1)\n\t\tassert.isEqual(topics[0].key, 'bookAnAppointment')\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;;;;;;;IAEqBA,kC,WACnB,IAAAC,
|
|
1
|
+
{"version":3,"file":"RegisteringConversationsOnBoot.test.js","names":["RegisteringConversationsOnBootTest","test","seedDummySkillRegisterCurrentSkillAndInstallToOrg","currentSkill","Action","execute","nameReadable","nameCamel","local","boot","connectToApi","skillId","id","apiKey","client","Store","apiClientFactory","fetchRegisteredTopics","topicResults","topics","meta","kill","assert","isLength","isEqual","key","AbstractEventTest"],"sources":["../../../src/__tests__/behavioral/RegisteringConversationsOnBoot.test.ts"],"sourcesContent":["import { test, assert } from '@sprucelabs/test-utils'\nimport AbstractEventTest from '../../tests/AbstractEventTest'\n\nexport default class RegisteringConversationsOnBootTest extends AbstractEventTest {\n\t@test()\n\tprotected static async canRegisterConversationsOnBoot() {\n\t\tconst { currentSkill } =\n\t\t\tawait this.seedDummySkillRegisterCurrentSkillAndInstallToOrg(\n\t\t\t\t'conversation'\n\t\t\t)\n\n\t\tawait this.Action('conversation', 'create').execute({\n\t\t\tnameReadable: 'book an appointment',\n\t\t\tnameCamel: 'bookAnAppointment',\n\t\t})\n\n\t\tconst boot = await this.Action('skill', 'boot').execute({ local: true })\n\n\t\tconst client = await this.connectToApi({\n\t\t\tskillId: currentSkill.id,\n\t\t\tapiKey: currentSkill.apiKey,\n\t\t})\n\n\t\tconst topicResults = await this.Store('conversation', {\n\t\t\tapiClientFactory: async () => client,\n\t\t}).fetchRegisteredTopics()\n\n\t\tconst topics = topicResults.topics\n\n\t\tboot.meta?.kill()\n\n\t\tassert.isLength(topics, 1)\n\t\tassert.isEqual(topics[0].key, 'bookAnAppointment')\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;;;;;;;IAEqBA,kC,WACnB,IAAAC,eAAA,G;;;;;;;;;;;;;0HAAD;QAAA;;QAAA;;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA,OAGQ,KAAKC,iDAAL,CACL,cADK,CAHR;;cAAA;gBAAA;gBAESC,YAFT,yBAESA,YAFT;gBAAA;gBAAA,OAOO,KAAKC,MAAL,CAAY,cAAZ,EAA4B,QAA5B,EAAsCC,OAAtC,CAA8C;kBACnDC,YAAY,EAAE,qBADqC;kBAEnDC,SAAS,EAAE;gBAFwC,CAA9C,CAPP;;cAAA;gBAAA;gBAAA,OAYoB,KAAKH,MAAL,CAAY,OAAZ,EAAqB,MAArB,EAA6BC,OAA7B,CAAqC;kBAAEG,KAAK,EAAE;gBAAT,CAArC,CAZpB;;cAAA;gBAYOC,IAZP;gBAAA;gBAAA,OAcsB,KAAKC,YAAL,CAAkB;kBACtCC,OAAO,EAAER,YAAY,CAACS,EADgB;kBAEtCC,MAAM,EAAEV,YAAY,CAACU;gBAFiB,CAAlB,CAdtB;;cAAA;gBAcOC,MAdP;gBAAA;gBAAA,OAmB4B,KAAKC,KAAL,CAAW,cAAX,EAA2B;kBACrDC,gBAAgB;oBAAA,sGAAE;sBAAA;wBAAA;0BAAA;4BAAA;8BAAA,iCAAYF,MAAZ;;4BAAA;4BAAA;8BAAA;0BAAA;wBAAA;sBAAA;oBAAA,CAAF;;oBAAA;sBAAA;oBAAA;;oBAAA;kBAAA;gBADqC,CAA3B,EAExBG,qBAFwB,EAnB5B;;cAAA;gBAmBOC,YAnBP;gBAuBOC,MAvBP,GAuBgBD,YAAY,CAACC,MAvB7B;gBAyBC,cAAAV,IAAI,CAACW,IAAL,0DAAWC,IAAX;;gBAEAC,iBAAA,CAAOC,QAAP,CAAgBJ,MAAhB,EAAwB,CAAxB;;gBACAG,iBAAA,CAAOE,OAAP,CAAeL,MAAM,CAAC,CAAD,CAAN,CAAUM,GAAzB,EAA8B,mBAA9B;;cA5BD;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,C;;;;;;;;;;EAD+DC,8B"}
|
|
@@ -29,7 +29,7 @@ var _spruceEventUtils = require("@sprucelabs/spruce-event-utils");
|
|
|
29
29
|
|
|
30
30
|
var _spruceSkillUtils = require("@sprucelabs/spruce-skill-utils");
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _testUtils = require("@sprucelabs/test-utils");
|
|
33
33
|
|
|
34
34
|
var _AbstractEventTest2 = _interopRequireDefault(require("../../tests/AbstractEventTest"));
|
|
35
35
|
|
|
@@ -44,7 +44,7 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Re
|
|
|
44
44
|
var EVENT_NAME_READABLE = 'did book appointment';
|
|
45
45
|
var EVENT_NAME = 'did-book-appointment';
|
|
46
46
|
var EVENT_CAMEL = 'didBookAppointment';
|
|
47
|
-
var RegisteringEventsOnBootTest = (_dec = (0,
|
|
47
|
+
var RegisteringEventsOnBootTest = (_dec = (0, _testUtils.test)(), (_class = /*#__PURE__*/function (_AbstractEventTest) {
|
|
48
48
|
(0, _inherits2["default"])(RegisteringEventsOnBootTest, _AbstractEventTest);
|
|
49
49
|
|
|
50
50
|
var _super = _createSuper(RegisteringEventsOnBootTest);
|
|
@@ -170,29 +170,29 @@ var RegisteringEventsOnBootTest = (_dec = (0, _test.test)(), (_class = /*#__PURE
|
|
|
170
170
|
version: version
|
|
171
171
|
});
|
|
172
172
|
|
|
173
|
-
|
|
173
|
+
_testUtils.assert.isTrue(contracts.length >= 2);
|
|
174
174
|
|
|
175
175
|
namespace = _spruceSkillUtils.namesUtil.toPascal(currentSkill.slug);
|
|
176
176
|
sig = _spruceEventUtils.eventContractUtil.getSignatureByName(contracts[1], name);
|
|
177
177
|
|
|
178
|
-
|
|
178
|
+
_testUtils.assert.doesInclude(sig.emitPayloadSchema, {
|
|
179
179
|
id: 'didBookAppointmentEmitTargetAndPayload',
|
|
180
180
|
version: version,
|
|
181
181
|
namespace: namespace
|
|
182
182
|
});
|
|
183
183
|
|
|
184
|
-
|
|
184
|
+
_testUtils.assert.doesInclude(sig.responsePayloadSchema, {
|
|
185
185
|
id: 'myFantasticallyAmazingEventResponsePayload',
|
|
186
186
|
version: version,
|
|
187
187
|
namespace: namespace
|
|
188
188
|
});
|
|
189
189
|
|
|
190
|
-
|
|
190
|
+
_testUtils.assert.doesInclude(sig.emitPermissionContract, {
|
|
191
191
|
id: 'myFantasticallyAmazingEventEmitPermissions',
|
|
192
192
|
name: 'my fantastically amazing event'
|
|
193
193
|
});
|
|
194
194
|
|
|
195
|
-
|
|
195
|
+
_testUtils.assert.doesInclude(sig.listenPermissionContract, {
|
|
196
196
|
id: 'myFantasticallyAmazingEventListenPermissions',
|
|
197
197
|
name: 'my fantastically amazing event'
|
|
198
198
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RegisteringEventsOnBoot.test.js","names":["EVENT_NAME_READABLE","EVENT_NAME","EVENT_CAMEL","RegisteringEventsOnBootTest","test","people","loginAsDemoPerson","DEMO_NUMBER_EVENTS_ON_BOOT","seedDummySkillRegisterCurrentSkillAndInstallToOrg","skill2","currentSkill","Action","execute","nameReadable","nameKebab","nameCamel","copyEventBuildersAndPermissions","local","boot","connectToApi","skillId","id","apiKey","client","Store","apiClientFactory","fetchEventContracts","contracts","meta","kill","version","versionUtil","generateVersion","constValue","name","eventNameUtil","join","eventNamespace","slug","eventName","assert","isTrue","length","namespace","namesUtil","toPascal","sig","eventContractUtil","getSignatureByName","doesInclude","emitPayloadSchema","responsePayloadSchema","emitPermissionContract","listenPermissionContract","AbstractEventTest"],"sources":["../../../src/__tests__/behavioral/RegisteringEventsOnBoot.test.ts"],"sourcesContent":["import {\n\teventContractUtil,\n\teventNameUtil,\n} from '@sprucelabs/spruce-event-utils'\nimport { namesUtil, versionUtil } from '@sprucelabs/spruce-skill-utils'\nimport { test, assert } from '@sprucelabs/test'\nimport AbstractEventTest from '../../tests/AbstractEventTest'\nimport { DEMO_NUMBER_EVENTS_ON_BOOT } from '../../tests/constants'\n\nconst EVENT_NAME_READABLE = 'did book appointment'\nconst EVENT_NAME = 'did-book-appointment'\nconst EVENT_CAMEL = 'didBookAppointment'\n\nexport default class RegisteringEventsOnBootTest extends AbstractEventTest {\n\tprotected static async beforeEach() {\n\t\tawait super.beforeEach()\n\t\tawait this.people.loginAsDemoPerson(DEMO_NUMBER_EVENTS_ON_BOOT)\n\t}\n\n\t@test()\n\tprotected static async registeringEventsOnBoot() {\n\t\tconst { skill2, currentSkill } =\n\t\t\tawait this.seedDummySkillRegisterCurrentSkillAndInstallToOrg()\n\n\t\tawait this.Action('event', 'create').execute({\n\t\t\tnameReadable: EVENT_NAME_READABLE,\n\t\t\tnameKebab: EVENT_NAME,\n\t\t\tnameCamel: EVENT_CAMEL,\n\t\t})\n\n\t\tawait this.copyEventBuildersAndPermissions(EVENT_NAME)\n\n\t\tawait this.Action('event', 'sync').execute({})\n\n\t\tconst boot = await this.Action('skill', 'boot').execute({ local: true })\n\n\t\tconst client = await this.connectToApi({\n\t\t\tskillId: skill2.id,\n\t\t\tapiKey: skill2.apiKey,\n\t\t})\n\n\t\tconst { contracts } = await this.Store('event', {\n\t\t\tapiClientFactory: async () => client,\n\t\t}).fetchEventContracts()\n\n\t\tboot.meta?.kill()\n\n\t\tconst version = versionUtil.generateVersion().constValue\n\t\tconst name = eventNameUtil.join({\n\t\t\teventNamespace: currentSkill.slug,\n\t\t\teventName: EVENT_NAME,\n\t\t\tversion,\n\t\t})\n\n\t\tassert.isTrue(contracts.length >= 2)\n\n\t\tconst namespace = namesUtil.toPascal(currentSkill.slug)\n\t\tconst sig = eventContractUtil.getSignatureByName(contracts[1], name)\n\n\t\tassert.doesInclude(sig.emitPayloadSchema, {\n\t\t\tid: 'didBookAppointmentEmitTargetAndPayload',\n\t\t\tversion,\n\t\t\tnamespace,\n\t\t})\n\n\t\tassert.doesInclude(sig.responsePayloadSchema, {\n\t\t\tid: 'myFantasticallyAmazingEventResponsePayload',\n\t\t\tversion,\n\t\t\tnamespace,\n\t\t})\n\t\tassert.doesInclude(sig.emitPermissionContract, {\n\t\t\tid: 'myFantasticallyAmazingEventEmitPermissions',\n\t\t\tname: 'my fantastically amazing event',\n\t\t})\n\n\t\tassert.doesInclude(sig.listenPermissionContract, {\n\t\t\tid: 'myFantasticallyAmazingEventListenPermissions',\n\t\t\tname: 'my fantastically amazing event',\n\t\t})\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAIA;;AACA;;AACA;;AACA;;;;;;;;AAEA,IAAMA,mBAAmB,GAAG,sBAA5B;AACA,IAAMC,UAAU,GAAG,sBAAnB;AACA,IAAMC,WAAW,GAAG,oBAApB;IAEqBC,2B,WAMnB,IAAAC,
|
|
1
|
+
{"version":3,"file":"RegisteringEventsOnBoot.test.js","names":["EVENT_NAME_READABLE","EVENT_NAME","EVENT_CAMEL","RegisteringEventsOnBootTest","test","people","loginAsDemoPerson","DEMO_NUMBER_EVENTS_ON_BOOT","seedDummySkillRegisterCurrentSkillAndInstallToOrg","skill2","currentSkill","Action","execute","nameReadable","nameKebab","nameCamel","copyEventBuildersAndPermissions","local","boot","connectToApi","skillId","id","apiKey","client","Store","apiClientFactory","fetchEventContracts","contracts","meta","kill","version","versionUtil","generateVersion","constValue","name","eventNameUtil","join","eventNamespace","slug","eventName","assert","isTrue","length","namespace","namesUtil","toPascal","sig","eventContractUtil","getSignatureByName","doesInclude","emitPayloadSchema","responsePayloadSchema","emitPermissionContract","listenPermissionContract","AbstractEventTest"],"sources":["../../../src/__tests__/behavioral/RegisteringEventsOnBoot.test.ts"],"sourcesContent":["import {\n\teventContractUtil,\n\teventNameUtil,\n} from '@sprucelabs/spruce-event-utils'\nimport { namesUtil, versionUtil } from '@sprucelabs/spruce-skill-utils'\nimport { test, assert } from '@sprucelabs/test-utils'\nimport AbstractEventTest from '../../tests/AbstractEventTest'\nimport { DEMO_NUMBER_EVENTS_ON_BOOT } from '../../tests/constants'\n\nconst EVENT_NAME_READABLE = 'did book appointment'\nconst EVENT_NAME = 'did-book-appointment'\nconst EVENT_CAMEL = 'didBookAppointment'\n\nexport default class RegisteringEventsOnBootTest extends AbstractEventTest {\n\tprotected static async beforeEach() {\n\t\tawait super.beforeEach()\n\t\tawait this.people.loginAsDemoPerson(DEMO_NUMBER_EVENTS_ON_BOOT)\n\t}\n\n\t@test()\n\tprotected static async registeringEventsOnBoot() {\n\t\tconst { skill2, currentSkill } =\n\t\t\tawait this.seedDummySkillRegisterCurrentSkillAndInstallToOrg()\n\n\t\tawait this.Action('event', 'create').execute({\n\t\t\tnameReadable: EVENT_NAME_READABLE,\n\t\t\tnameKebab: EVENT_NAME,\n\t\t\tnameCamel: EVENT_CAMEL,\n\t\t})\n\n\t\tawait this.copyEventBuildersAndPermissions(EVENT_NAME)\n\n\t\tawait this.Action('event', 'sync').execute({})\n\n\t\tconst boot = await this.Action('skill', 'boot').execute({ local: true })\n\n\t\tconst client = await this.connectToApi({\n\t\t\tskillId: skill2.id,\n\t\t\tapiKey: skill2.apiKey,\n\t\t})\n\n\t\tconst { contracts } = await this.Store('event', {\n\t\t\tapiClientFactory: async () => client,\n\t\t}).fetchEventContracts()\n\n\t\tboot.meta?.kill()\n\n\t\tconst version = versionUtil.generateVersion().constValue\n\t\tconst name = eventNameUtil.join({\n\t\t\teventNamespace: currentSkill.slug,\n\t\t\teventName: EVENT_NAME,\n\t\t\tversion,\n\t\t})\n\n\t\tassert.isTrue(contracts.length >= 2)\n\n\t\tconst namespace = namesUtil.toPascal(currentSkill.slug)\n\t\tconst sig = eventContractUtil.getSignatureByName(contracts[1], name)\n\n\t\tassert.doesInclude(sig.emitPayloadSchema, {\n\t\t\tid: 'didBookAppointmentEmitTargetAndPayload',\n\t\t\tversion,\n\t\t\tnamespace,\n\t\t})\n\n\t\tassert.doesInclude(sig.responsePayloadSchema, {\n\t\t\tid: 'myFantasticallyAmazingEventResponsePayload',\n\t\t\tversion,\n\t\t\tnamespace,\n\t\t})\n\t\tassert.doesInclude(sig.emitPermissionContract, {\n\t\t\tid: 'myFantasticallyAmazingEventEmitPermissions',\n\t\t\tname: 'my fantastically amazing event',\n\t\t})\n\n\t\tassert.doesInclude(sig.listenPermissionContract, {\n\t\t\tid: 'myFantasticallyAmazingEventListenPermissions',\n\t\t\tname: 'my fantastically amazing event',\n\t\t})\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAIA;;AACA;;AACA;;AACA;;;;;;;;AAEA,IAAMA,mBAAmB,GAAG,sBAA5B;AACA,IAAMC,UAAU,GAAG,sBAAnB;AACA,IAAMC,WAAW,GAAG,oBAApB;IAEqBC,2B,WAMnB,IAAAC,eAAA,G;;;;;;;;;;;;;sGALD;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA;;cAAA;gBAAA;gBAAA,OAE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AAA,C;;;;;;;;;;EANwDoB,8B"}
|
|
@@ -29,7 +29,7 @@ var _applyDecoratedDescriptor2 = _interopRequireDefault(require("@babel/runtime/
|
|
|
29
29
|
|
|
30
30
|
var _spruceSkillUtils = require("@sprucelabs/spruce-skill-utils");
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _testUtils = require("@sprucelabs/test-utils");
|
|
33
33
|
|
|
34
34
|
var _dotenv = _interopRequireDefault(require("dotenv"));
|
|
35
35
|
|
|
@@ -37,7 +37,7 @@ var _AbstractSkillTest2 = _interopRequireDefault(require("../../tests/AbstractSk
|
|
|
37
37
|
|
|
38
38
|
var _constants = require("../../tests/constants");
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _test = _interopRequireDefault(require("../../tests/utilities/test.utility"));
|
|
41
41
|
|
|
42
42
|
var _dec, _dec2, _dec3, _class, _class2;
|
|
43
43
|
|
|
@@ -51,7 +51,7 @@ var stamp = new Date().getTime();
|
|
|
51
51
|
var EVENT_NAME_READABLE = 'did book appointment';
|
|
52
52
|
var EVENT_NAME = "test-register-skill-views".concat(stamp);
|
|
53
53
|
var EVENT_CAMEL = "testRegisterSkillViews".concat(stamp);
|
|
54
|
-
var RegisteringGlobalEventsTest = (_dec = (0,
|
|
54
|
+
var RegisteringGlobalEventsTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.test)(), _dec3 = (0, _testUtils.test)(), (_class = (_class2 = /*#__PURE__*/function (_AbstractSkillTest) {
|
|
55
55
|
(0, _inherits2["default"])(RegisteringGlobalEventsTest, _AbstractSkillTest);
|
|
56
56
|
|
|
57
57
|
var _super = _createSuper(RegisteringGlobalEventsTest);
|
|
@@ -185,21 +185,21 @@ var RegisteringGlobalEventsTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.t
|
|
|
185
185
|
case 2:
|
|
186
186
|
results = _context4.sent;
|
|
187
187
|
|
|
188
|
-
|
|
188
|
+
_testUtils.assert.isFalsy(results.errors);
|
|
189
189
|
|
|
190
|
-
optionsFile =
|
|
190
|
+
optionsFile = _test["default"].assertFileByNameInGeneratedFiles('event.options.ts', results.files);
|
|
191
191
|
_context4.next = 7;
|
|
192
192
|
return this.Service('import').importDefault(optionsFile);
|
|
193
193
|
|
|
194
194
|
case 7:
|
|
195
195
|
importedOptions = _context4.sent;
|
|
196
196
|
|
|
197
|
-
|
|
197
|
+
_testUtils.assert.isEqualDeep(importedOptions, {
|
|
198
198
|
isGlobal: true
|
|
199
199
|
});
|
|
200
200
|
|
|
201
201
|
version = _spruceSkillUtils.versionUtil.generateVersion().dirValue;
|
|
202
|
-
contractFile =
|
|
202
|
+
contractFile = _test["default"].assertFileByNameInGeneratedFiles("".concat(EVENT_CAMEL, ".").concat(version, ".contract.ts"), results.files);
|
|
203
203
|
_context4.next = 13;
|
|
204
204
|
return this.Service('import').importDefault(contractFile);
|
|
205
205
|
|
|
@@ -207,9 +207,9 @@ var RegisteringGlobalEventsTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.t
|
|
|
207
207
|
importedContract = _context4.sent;
|
|
208
208
|
sig = importedContract.eventSignatures["".concat(this.skill.slug, ".").concat(EVENT_NAME, "::").concat(version)];
|
|
209
209
|
|
|
210
|
-
|
|
210
|
+
_testUtils.assert.isTrue(sig.isGlobal);
|
|
211
211
|
|
|
212
|
-
|
|
212
|
+
_testUtils.assert.isTruthy(sig.emitPayloadSchema);
|
|
213
213
|
|
|
214
214
|
case 17:
|
|
215
215
|
case "end":
|
|
@@ -284,7 +284,7 @@ var RegisteringGlobalEventsTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.t
|
|
|
284
284
|
version = _spruceSkillUtils.versionUtil.generateVersion().constValue;
|
|
285
285
|
eventName = "".concat(this.skill.slug, ".").concat(EVENT_NAME, "::").concat(version);
|
|
286
286
|
|
|
287
|
-
|
|
287
|
+
_testUtils.assert.isTruthy(contracts[1].eventSignatures[eventName]);
|
|
288
288
|
|
|
289
289
|
case 14:
|
|
290
290
|
case "end":
|
|
@@ -315,7 +315,7 @@ var RegisteringGlobalEventsTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.t
|
|
|
315
315
|
case 2:
|
|
316
316
|
results = _context7.sent;
|
|
317
317
|
|
|
318
|
-
|
|
318
|
+
_testUtils.assert.isFalsy(results.errors);
|
|
319
319
|
|
|
320
320
|
_context7.next = 6;
|
|
321
321
|
return this.Service('typeChecker').check(this.resolveHashSprucePath('events/events.contract.ts'));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RegisteringGlobalEvents.test.js","names":["dotenv","config","stamp","Date","getTime","EVENT_NAME_READABLE","EVENT_NAME","EVENT_CAMEL","RegisteringGlobalEventsTest","test","people","loginAsDemoPerson","DEMO_NUMBER_GLOBAL_EVENTS","resetAccount","orgFixture","getOrganizationFixture","skillFixture","getSkillFixture","seedDemoOrg","name","org","registerCurrentSkill","skill","installSkillAtOrganization","id","Action","execute","isGlobal","nameReadable","nameKebab","nameCamel","results","assert","isFalsy","errors","optionsFile","testUtil","assertFileByNameInGeneratedFiles","files","Service","importDefault","importedOptions","isEqualDeep","version","versionUtil","generateVersion","dirValue","contractFile","importedContract","sig","eventSignatures","slug","isTrue","isTruthy","emitPayloadSchema","local","boot","connectToApi","skillId","apiKey","client","Store","apiClientFactory","fetchEventContracts","contractResults","contracts","meta","kill","constValue","eventName","check","resolveHashSprucePath","AbstractSkillTest"],"sources":["../../../src/__tests__/behavioral/RegisteringGlobalEvents.test.ts"],"sourcesContent":["import { versionUtil } from '@sprucelabs/spruce-skill-utils'\nimport { test, assert } from '@sprucelabs/test'\nimport dotenv from 'dotenv'\nimport AbstractSkillTest from '../../tests/AbstractSkillTest'\nimport { DEMO_NUMBER_GLOBAL_EVENTS } from '../../tests/constants'\nimport testUtil from '../../tests/utilities/test.utility'\nimport { RegisteredSkill } from '../../types/cli.types'\ndotenv.config()\n\nconst stamp = new Date().getTime()\nconst EVENT_NAME_READABLE = 'did book appointment'\nconst EVENT_NAME = `test-register-skill-views${stamp}`\nconst EVENT_CAMEL = `testRegisterSkillViews${stamp}`\n\nexport default class RegisteringGlobalEventsTest extends AbstractSkillTest {\n\tprotected static skillCacheKey = 'events'\n\tprotected static skill: RegisteredSkill\n\n\tprotected static async beforeAll() {\n\t\tawait super.beforeAll()\n\n\t\tawait this.people.loginAsDemoPerson(DEMO_NUMBER_GLOBAL_EVENTS)\n\n\t\tawait this.resetAccount()\n\n\t\tconst orgFixture = this.getOrganizationFixture()\n\t\tconst skillFixture = this.getSkillFixture()\n\n\t\tconst org = await orgFixture.seedDemoOrg({ name: 'my org' })\n\n\t\tthis.skill = await skillFixture.registerCurrentSkill({\n\t\t\tname: 'heartwood test',\n\t\t})\n\n\t\tawait orgFixture.installSkillAtOrganization(this.skill.id, org.id)\n\t}\n\n\tprotected static async afterAll() {\n\t\tawait super.afterAll()\n\t\tawait this.resetAccount()\n\t}\n\n\tprivate static async resetAccount() {\n\t\t// await this.getOrganizationFixture().clearAllOrgs()\n\t\t// await this.getSkillFixture().clearAllSkills()\n\t}\n\n\t@test()\n\tprotected static async canCreateGlobalEvent() {\n\t\tconst results = await this.Action('event', 'create').execute({\n\t\t\tisGlobal: true,\n\t\t\tnameReadable: EVENT_NAME_READABLE,\n\t\t\tnameKebab: EVENT_NAME,\n\t\t\tnameCamel: EVENT_CAMEL,\n\t\t})\n\n\t\tassert.isFalsy(results.errors)\n\n\t\tconst optionsFile = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t'event.options.ts',\n\t\t\tresults.files\n\t\t)\n\n\t\tconst importedOptions = await this.Service('import').importDefault(\n\t\t\toptionsFile\n\t\t)\n\t\tassert.isEqualDeep(importedOptions, {\n\t\t\tisGlobal: true,\n\t\t})\n\n\t\tconst version = versionUtil.generateVersion().dirValue\n\t\tconst contractFile = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t`${EVENT_CAMEL}.${version}.contract.ts`,\n\t\t\tresults.files\n\t\t)\n\n\t\tconst importedContract = await this.Service('import').importDefault(\n\t\t\tcontractFile\n\t\t)\n\n\t\tconst sig =\n\t\t\timportedContract.eventSignatures[\n\t\t\t\t`${this.skill.slug}.${EVENT_NAME}::${version}`\n\t\t\t]\n\n\t\tassert.isTrue(sig.isGlobal)\n\t\tassert.isTruthy(sig.emitPayloadSchema)\n\t}\n\n\t@test()\n\tprotected static async registersGloballyOnBoot() {\n\t\tconst boot = await this.Action('skill', 'boot').execute({ local: true })\n\n\t\tconst client = await this.connectToApi({\n\t\t\tskillId: this.skill.id,\n\t\t\tapiKey: this.skill.apiKey,\n\t\t})\n\n\t\tconst contractResults = await this.Store('event', {\n\t\t\tapiClientFactory: async () => client,\n\t\t}).fetchEventContracts()\n\n\t\tconst contracts = contractResults.contracts\n\n\t\tboot.meta?.kill()\n\n\t\tconst version = versionUtil.generateVersion().constValue\n\t\tconst eventName = `${this.skill.slug}.${EVENT_NAME}::${version}`\n\n\t\tassert.isTruthy(contracts[1].eventSignatures[eventName])\n\t}\n\n\t@test()\n\tprotected static async canSyncGlobalEvents() {\n\t\tconst results = await this.Action('event', 'sync').execute({})\n\t\tassert.isFalsy(results.errors)\n\n\t\tawait this.Service('typeChecker').check(\n\t\t\tthis.resolveHashSprucePath('events/events.contract.ts')\n\t\t)\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;AAEAA,kBAAA,CAAOC,MAAP;;AAEA,IAAMC,KAAK,GAAG,IAAIC,IAAJ,GAAWC,OAAX,EAAd;AACA,IAAMC,mBAAmB,GAAG,sBAA5B;AACA,IAAMC,UAAU,sCAA+BJ,KAA/B,CAAhB;AACA,IAAMK,WAAW,mCAA4BL,KAA5B,CAAjB;IAEqBM,2B,WAiCnB,IAAAC,
|
|
1
|
+
{"version":3,"file":"RegisteringGlobalEvents.test.js","names":["dotenv","config","stamp","Date","getTime","EVENT_NAME_READABLE","EVENT_NAME","EVENT_CAMEL","RegisteringGlobalEventsTest","test","people","loginAsDemoPerson","DEMO_NUMBER_GLOBAL_EVENTS","resetAccount","orgFixture","getOrganizationFixture","skillFixture","getSkillFixture","seedDemoOrg","name","org","registerCurrentSkill","skill","installSkillAtOrganization","id","Action","execute","isGlobal","nameReadable","nameKebab","nameCamel","results","assert","isFalsy","errors","optionsFile","testUtil","assertFileByNameInGeneratedFiles","files","Service","importDefault","importedOptions","isEqualDeep","version","versionUtil","generateVersion","dirValue","contractFile","importedContract","sig","eventSignatures","slug","isTrue","isTruthy","emitPayloadSchema","local","boot","connectToApi","skillId","apiKey","client","Store","apiClientFactory","fetchEventContracts","contractResults","contracts","meta","kill","constValue","eventName","check","resolveHashSprucePath","AbstractSkillTest"],"sources":["../../../src/__tests__/behavioral/RegisteringGlobalEvents.test.ts"],"sourcesContent":["import { versionUtil } from '@sprucelabs/spruce-skill-utils'\nimport { test, assert } from '@sprucelabs/test-utils'\nimport dotenv from 'dotenv'\nimport AbstractSkillTest from '../../tests/AbstractSkillTest'\nimport { DEMO_NUMBER_GLOBAL_EVENTS } from '../../tests/constants'\nimport testUtil from '../../tests/utilities/test.utility'\nimport { RegisteredSkill } from '../../types/cli.types'\ndotenv.config()\n\nconst stamp = new Date().getTime()\nconst EVENT_NAME_READABLE = 'did book appointment'\nconst EVENT_NAME = `test-register-skill-views${stamp}`\nconst EVENT_CAMEL = `testRegisterSkillViews${stamp}`\n\nexport default class RegisteringGlobalEventsTest extends AbstractSkillTest {\n\tprotected static skillCacheKey = 'events'\n\tprotected static skill: RegisteredSkill\n\n\tprotected static async beforeAll() {\n\t\tawait super.beforeAll()\n\n\t\tawait this.people.loginAsDemoPerson(DEMO_NUMBER_GLOBAL_EVENTS)\n\n\t\tawait this.resetAccount()\n\n\t\tconst orgFixture = this.getOrganizationFixture()\n\t\tconst skillFixture = this.getSkillFixture()\n\n\t\tconst org = await orgFixture.seedDemoOrg({ name: 'my org' })\n\n\t\tthis.skill = await skillFixture.registerCurrentSkill({\n\t\t\tname: 'heartwood test',\n\t\t})\n\n\t\tawait orgFixture.installSkillAtOrganization(this.skill.id, org.id)\n\t}\n\n\tprotected static async afterAll() {\n\t\tawait super.afterAll()\n\t\tawait this.resetAccount()\n\t}\n\n\tprivate static async resetAccount() {\n\t\t// await this.getOrganizationFixture().clearAllOrgs()\n\t\t// await this.getSkillFixture().clearAllSkills()\n\t}\n\n\t@test()\n\tprotected static async canCreateGlobalEvent() {\n\t\tconst results = await this.Action('event', 'create').execute({\n\t\t\tisGlobal: true,\n\t\t\tnameReadable: EVENT_NAME_READABLE,\n\t\t\tnameKebab: EVENT_NAME,\n\t\t\tnameCamel: EVENT_CAMEL,\n\t\t})\n\n\t\tassert.isFalsy(results.errors)\n\n\t\tconst optionsFile = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t'event.options.ts',\n\t\t\tresults.files\n\t\t)\n\n\t\tconst importedOptions = await this.Service('import').importDefault(\n\t\t\toptionsFile\n\t\t)\n\t\tassert.isEqualDeep(importedOptions, {\n\t\t\tisGlobal: true,\n\t\t})\n\n\t\tconst version = versionUtil.generateVersion().dirValue\n\t\tconst contractFile = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t`${EVENT_CAMEL}.${version}.contract.ts`,\n\t\t\tresults.files\n\t\t)\n\n\t\tconst importedContract = await this.Service('import').importDefault(\n\t\t\tcontractFile\n\t\t)\n\n\t\tconst sig =\n\t\t\timportedContract.eventSignatures[\n\t\t\t\t`${this.skill.slug}.${EVENT_NAME}::${version}`\n\t\t\t]\n\n\t\tassert.isTrue(sig.isGlobal)\n\t\tassert.isTruthy(sig.emitPayloadSchema)\n\t}\n\n\t@test()\n\tprotected static async registersGloballyOnBoot() {\n\t\tconst boot = await this.Action('skill', 'boot').execute({ local: true })\n\n\t\tconst client = await this.connectToApi({\n\t\t\tskillId: this.skill.id,\n\t\t\tapiKey: this.skill.apiKey,\n\t\t})\n\n\t\tconst contractResults = await this.Store('event', {\n\t\t\tapiClientFactory: async () => client,\n\t\t}).fetchEventContracts()\n\n\t\tconst contracts = contractResults.contracts\n\n\t\tboot.meta?.kill()\n\n\t\tconst version = versionUtil.generateVersion().constValue\n\t\tconst eventName = `${this.skill.slug}.${EVENT_NAME}::${version}`\n\n\t\tassert.isTruthy(contracts[1].eventSignatures[eventName])\n\t}\n\n\t@test()\n\tprotected static async canSyncGlobalEvents() {\n\t\tconst results = await this.Action('event', 'sync').execute({})\n\t\tassert.isFalsy(results.errors)\n\n\t\tawait this.Service('typeChecker').check(\n\t\t\tthis.resolveHashSprucePath('events/events.contract.ts')\n\t\t)\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;AAEAA,kBAAA,CAAOC,MAAP;;AAEA,IAAMC,KAAK,GAAG,IAAIC,IAAJ,GAAWC,OAAX,EAAd;AACA,IAAMC,mBAAmB,GAAG,sBAA5B;AACA,IAAMC,UAAU,sCAA+BJ,KAA/B,CAAhB;AACA,IAAMK,WAAW,mCAA4BL,KAA5B,CAAjB;IAEqBM,2B,WAiCnB,IAAAC,eAAA,G,UA0CA,IAAAA,eAAA,G,UAuBA,IAAAA,eAAA,G;;;;;;;;;;;;;qGA9FD;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA;;cAAA;gBAAA;gBAAA,OAGO,KAAKC,MAAL,CAAYC,iBAAZ,CAA8BC,oCAA9B,CAHP;;cAAA;gBAAA;gBAAA,OAKO,KAAKC,YAAL,EALP;;cAAA;gBAOOC,UAPP,GAOoB,KAAKC,sBAAL,EAPpB;gBAQOC,YARP,GAQsB,KAAKC,eAAL,EARtB;gBAAA;gBAAA,OAUmBH,UAAU,CAACI,WAAX,CAAuB;kBAAEC,IAAI,EAAE;gBAAR,CAAvB,CAVnB;;cAAA;gBAUOC,GAVP;gBAAA;gBAAA,OAYoBJ,YAAY,CAACK,oBAAb,CAAkC;kBACpDF,IAAI,EAAE;gBAD8C,CAAlC,CAZpB;;cAAA;gBAYC,KAAKG,KA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,aAkBsB,KAAK/C,KAAL,CAAW6B,IAlBjC,cAkByC7C,UAlBzC,eAkBwDqC,OAlBxD;;gBAoBCX,iBAAA,CAAOqB,QAAP,CAAgBY,SAAS,CAAC,CAAD,CAAT,CAAaf,eAAb,CAA6BmB,SAA7B,CAAhB;;cApBD;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,C;;;;;;;;;;;+GAuBA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA,OAEuB,KAAK5C,MAAL,CAAY,OAAZ,EAAqB,MAArB,EAA6BC,OAA7B,CAAqC,EAArC,CAFvB;;cAAA;gBAEOK,OAFP;;gBAGCC,iBAAA,CAAOC,OAAP,CAAeF,OAAO,CAACG,MAAvB;;gBAHD;gBAAA,OAKO,KAAKK,OAAL,CAAa,aAAb,EAA4B+B,KAA5B,CACL,KAAKC,qBAAL,CAA2B,2BAA3B,CADK,CALP;;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,C;;;;;;;;;;EAlGwDC,8B,8DACvB,Q"}
|
|
@@ -25,7 +25,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
25
25
|
|
|
26
26
|
var _applyDecoratedDescriptor2 = _interopRequireDefault(require("@babel/runtime/helpers/applyDecoratedDescriptor"));
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _testUtils = require("@sprucelabs/test-utils");
|
|
29
29
|
|
|
30
30
|
var _AbstractSkillTest2 = _interopRequireDefault(require("../../tests/AbstractSkillTest"));
|
|
31
31
|
|
|
@@ -37,7 +37,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
37
37
|
|
|
38
38
|
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; } }
|
|
39
39
|
|
|
40
|
-
var RegisteringSkillViewOnBootTest = (_dec = (0,
|
|
40
|
+
var RegisteringSkillViewOnBootTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.test)(), (_class = (_class2 = /*#__PURE__*/function (_AbstractSkillTest) {
|
|
41
41
|
(0, _inherits2["default"])(RegisteringSkillViewOnBootTest, _AbstractSkillTest);
|
|
42
42
|
|
|
43
43
|
var _super = _createSuper(RegisteringSkillViewOnBootTest);
|
|
@@ -66,7 +66,7 @@ var RegisteringSkillViewOnBootTest = (_dec = (0, _test.test)(), _dec2 = (0, _tes
|
|
|
66
66
|
case 4:
|
|
67
67
|
skillViews = _context.sent;
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
_testUtils.assert.isFalsy(skillViews);
|
|
70
70
|
|
|
71
71
|
case 6:
|
|
72
72
|
case "end":
|
|
@@ -108,7 +108,7 @@ var RegisteringSkillViewOnBootTest = (_dec = (0, _test.test)(), _dec2 = (0, _tes
|
|
|
108
108
|
case 6:
|
|
109
109
|
results = _context2.sent;
|
|
110
110
|
|
|
111
|
-
|
|
111
|
+
_testUtils.assert.isFalsy(results.errors);
|
|
112
112
|
|
|
113
113
|
_context2.next = 10;
|
|
114
114
|
return this.Store('view').fetchSkillViews();
|
|
@@ -116,7 +116,7 @@ var RegisteringSkillViewOnBootTest = (_dec = (0, _test.test)(), _dec2 = (0, _tes
|
|
|
116
116
|
case 10:
|
|
117
117
|
skillViews = _context2.sent;
|
|
118
118
|
|
|
119
|
-
|
|
119
|
+
_testUtils.assert.isTruthy(skillViews, 'Skill views were not registered on boot!');
|
|
120
120
|
|
|
121
121
|
case 12:
|
|
122
122
|
case "end":
|
|
@@ -155,7 +155,7 @@ var RegisteringSkillViewOnBootTest = (_dec = (0, _test.test)(), _dec2 = (0, _tes
|
|
|
155
155
|
case 6:
|
|
156
156
|
results = _context3.sent;
|
|
157
157
|
|
|
158
|
-
|
|
158
|
+
_testUtils.assert.isFalsy(results.errors);
|
|
159
159
|
|
|
160
160
|
case 8:
|
|
161
161
|
case "end":
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RegisteringSkillViewOnBoot.test.js","names":["RegisteringSkillViewOnBootTest","test","registerAndBootSkill","Store","fetchSkillViews","skillViews","assert","isFalsy","Action","execute","viewType","isRoot","buildSkill","bootSkill","results","errors","isTruthy","registerCurrentSkillAndInstallToOrg","boot","meta","kill","Service","build","people","loginAsDemoPerson","DEMO_NUMBER_VIEWS_ON_BOOT","skillFixture","getSkillFixture","orgFixture","getOrganizationFixture","seedDemoOrg","name","org","registerCurrentSkill","skill","installSkillAtOrganization","id","currentSkill","AbstractSkillTest"],"sources":["../../../src/__tests__/behavioral/RegisteringSkillViewOnBoot.test.ts"],"sourcesContent":["import { test, assert } from '@sprucelabs/test'\nimport AbstractSkillTest from '../../tests/AbstractSkillTest'\nimport { DEMO_NUMBER_VIEWS_ON_BOOT } from '../../tests/constants'\n\nexport default class RegisteringSkillViewOnBootTest extends AbstractSkillTest {\n\tprotected static skillCacheKey = 'views'\n\n\t@test()\n\tprotected static async noEventsToStart() {\n\t\tawait this.registerAndBootSkill()\n\n\t\tconst skillViews = await this.Store('view').fetchSkillViews()\n\n\t\tassert.isFalsy(skillViews)\n\t}\n\n\t@test()\n\tprotected static async syncsViewsOnBoot() {\n\t\tawait this.Action('view', 'create').execute({\n\t\t\tviewType: 'skillView',\n\t\t\tisRoot: true,\n\t\t})\n\n\t\tawait this.buildSkill()\n\n\t\tconst results = await this.bootSkill()\n\n\t\tassert.isFalsy(results.errors)\n\n\t\tconst skillViews = await this.Store('view').fetchSkillViews()\n\n\t\tassert.isTruthy(skillViews, 'Skill views were not registered on boot!')\n\t}\n\n\tprotected static async registerAndBootSkill() {\n\t\tawait this.registerCurrentSkillAndInstallToOrg()\n\t\tawait this.buildSkill()\n\n\t\tconst results = await this.bootSkill()\n\t\tassert.isFalsy(results.errors)\n\t}\n\n\tprivate static async bootSkill() {\n\t\tconst boot = await this.Action('skill', 'boot').execute({})\n\t\tboot.meta?.kill()\n\t\treturn boot\n\t}\n\n\tprivate static async buildSkill() {\n\t\tawait this.Service('build').build()\n\t}\n\n\tprotected static async registerCurrentSkillAndInstallToOrg() {\n\t\tawait this.people.loginAsDemoPerson(DEMO_NUMBER_VIEWS_ON_BOOT)\n\t\tconst skillFixture = this.getSkillFixture()\n\t\tconst orgFixture = this.getOrganizationFixture()\n\n\t\tconst org = await orgFixture.seedDemoOrg({ name: 'my org' })\n\n\t\tconst skill = await skillFixture.registerCurrentSkill({\n\t\t\tname: 'current skill',\n\t\t})\n\n\t\tawait orgFixture.installSkillAtOrganization(skill.id, org.id)\n\n\t\treturn { skillFixture, currentSkill: skill, org, orgFixture }\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;;;;;;;IAEqBA,8B,WAGnB,IAAAC,
|
|
1
|
+
{"version":3,"file":"RegisteringSkillViewOnBoot.test.js","names":["RegisteringSkillViewOnBootTest","test","registerAndBootSkill","Store","fetchSkillViews","skillViews","assert","isFalsy","Action","execute","viewType","isRoot","buildSkill","bootSkill","results","errors","isTruthy","registerCurrentSkillAndInstallToOrg","boot","meta","kill","Service","build","people","loginAsDemoPerson","DEMO_NUMBER_VIEWS_ON_BOOT","skillFixture","getSkillFixture","orgFixture","getOrganizationFixture","seedDemoOrg","name","org","registerCurrentSkill","skill","installSkillAtOrganization","id","currentSkill","AbstractSkillTest"],"sources":["../../../src/__tests__/behavioral/RegisteringSkillViewOnBoot.test.ts"],"sourcesContent":["import { test, assert } from '@sprucelabs/test-utils'\nimport AbstractSkillTest from '../../tests/AbstractSkillTest'\nimport { DEMO_NUMBER_VIEWS_ON_BOOT } from '../../tests/constants'\n\nexport default class RegisteringSkillViewOnBootTest extends AbstractSkillTest {\n\tprotected static skillCacheKey = 'views'\n\n\t@test()\n\tprotected static async noEventsToStart() {\n\t\tawait this.registerAndBootSkill()\n\n\t\tconst skillViews = await this.Store('view').fetchSkillViews()\n\n\t\tassert.isFalsy(skillViews)\n\t}\n\n\t@test()\n\tprotected static async syncsViewsOnBoot() {\n\t\tawait this.Action('view', 'create').execute({\n\t\t\tviewType: 'skillView',\n\t\t\tisRoot: true,\n\t\t})\n\n\t\tawait this.buildSkill()\n\n\t\tconst results = await this.bootSkill()\n\n\t\tassert.isFalsy(results.errors)\n\n\t\tconst skillViews = await this.Store('view').fetchSkillViews()\n\n\t\tassert.isTruthy(skillViews, 'Skill views were not registered on boot!')\n\t}\n\n\tprotected static async registerAndBootSkill() {\n\t\tawait this.registerCurrentSkillAndInstallToOrg()\n\t\tawait this.buildSkill()\n\n\t\tconst results = await this.bootSkill()\n\t\tassert.isFalsy(results.errors)\n\t}\n\n\tprivate static async bootSkill() {\n\t\tconst boot = await this.Action('skill', 'boot').execute({})\n\t\tboot.meta?.kill()\n\t\treturn boot\n\t}\n\n\tprivate static async buildSkill() {\n\t\tawait this.Service('build').build()\n\t}\n\n\tprotected static async registerCurrentSkillAndInstallToOrg() {\n\t\tawait this.people.loginAsDemoPerson(DEMO_NUMBER_VIEWS_ON_BOOT)\n\t\tconst skillFixture = this.getSkillFixture()\n\t\tconst orgFixture = this.getOrganizationFixture()\n\n\t\tconst org = await orgFixture.seedDemoOrg({ name: 'my org' })\n\n\t\tconst skill = await skillFixture.registerCurrentSkill({\n\t\t\tname: 'current skill',\n\t\t})\n\n\t\tawait orgFixture.installSkillAtOrganization(skill.id, org.id)\n\n\t\treturn { skillFixture, currentSkill: skill, org, orgFixture }\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;;;;;;;IAEqBA,8B,WAGnB,IAAAC,eAAA,G,UASA,IAAAA,eAAA,G;;;;;;;;;;;;;2GATD;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA,OAEO,KAAKC,oBAAL,EAFP;;cAAA;gBAAA;gBAAA,OAI0B,KAAKC,KAAL,CAAW,MAAX,EAAmBC,eAAnB,EAJ1B;;cAA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AAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,C;;;;;;;;;;;sGAMA;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA,OACO,KAAKG,OAAL,CAAa,OAAb,EAAsBC,KAAtB,EADP;;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,C;;;;;;;;;;;+HAIA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA,OACO,KAAKC,MAAL,CAAYC,iBAAZ,CAA8BC,oCAA9B,CADP;;cAAA;gBAEOC,YAFP,GAEsB,KAAKC,eAAL,EAFtB;gBAGOC,UAHP,GAGoB,KAAKC,sBAAL,EAHpB;gBAAA;gBAAA,OAKmBD,UAAU,CAACE,WAAX,CAAuB;kBAAEC,IAAI,EAAE;gBAAR,CAAvB,CALnB;;cAAA;gBAKOC,GALP;gBAAA;gBAAA,OAOqBN,YAAY,CAACO,oBAAb,CAAkC;kBACrDF,IAAI,EAAE;gBAD+C,CAAlC,CAPrB;;cAAA;gBAOOG,KAPP;gBAAA;gBAAA,OAWON,UAAU,CAACO,0BAAX,CAAsCD,KAAK,CAACE,EAA5C,EAAgDJ,GAAG,CAACI,EAApD,CAXP;;cAAA;gBAAA,kCAaQ;kBAAEV,YAAY,EAAZA,YAAF;kBAAgBW,YAAY,EAAEH,KAA9B;kBAAqCF,GAAG,EAAHA,GAArC;kBAA0CJ,UAAU,EAAVA;gBAA1C,CAbR;;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,C;;;;;;;;;;EAhD2DU,8B,8DAC1B,O"}
|
|
@@ -25,7 +25,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
25
25
|
|
|
26
26
|
var _applyDecoratedDescriptor2 = _interopRequireDefault(require("@babel/runtime/helpers/applyDecoratedDescriptor"));
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _testUtils = require("@sprucelabs/test-utils");
|
|
29
29
|
|
|
30
30
|
var _constants = require("../../constants");
|
|
31
31
|
|
|
@@ -39,7 +39,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
39
39
|
|
|
40
40
|
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; } }
|
|
41
41
|
|
|
42
|
-
var RememberingUpgradeSelectionsTest = (_dec = (0,
|
|
42
|
+
var RememberingUpgradeSelectionsTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.test)(), _dec3 = (0, _testUtils.test)(), (_class = (_class2 = /*#__PURE__*/function (_AbstractSkillTest) {
|
|
43
43
|
(0, _inherits2["default"])(RememberingUpgradeSelectionsTest, _AbstractSkillTest);
|
|
44
44
|
|
|
45
45
|
var _super = _createSuper(RememberingUpgradeSelectionsTest);
|
|
@@ -75,7 +75,7 @@ var RememberingUpgradeSelectionsTest = (_dec = (0, _test.test)(), _dec2 = (0, _t
|
|
|
75
75
|
pkg = this.Service('pkg');
|
|
76
76
|
ci = pkg.get(['scripts', 'build.ci']);
|
|
77
77
|
|
|
78
|
-
|
|
78
|
+
_testUtils.assert.isEqual(ci, expected);
|
|
79
79
|
|
|
80
80
|
case 11:
|
|
81
81
|
case "end":
|
|
@@ -115,7 +115,7 @@ var RememberingUpgradeSelectionsTest = (_dec = (0, _test.test)(), _dec2 = (0, _t
|
|
|
115
115
|
pkg = this.Service('pkg');
|
|
116
116
|
ci = pkg.get(['scripts', 'build.ci']);
|
|
117
117
|
|
|
118
|
-
|
|
118
|
+
_testUtils.assert.isEqual(ci, expected);
|
|
119
119
|
|
|
120
120
|
case 7:
|
|
121
121
|
case "end":
|
|
@@ -189,7 +189,7 @@ var RememberingUpgradeSelectionsTest = (_dec = (0, _test.test)(), _dec2 = (0, _t
|
|
|
189
189
|
case 3:
|
|
190
190
|
last = this.ui.getLastInvocation();
|
|
191
191
|
|
|
192
|
-
|
|
192
|
+
_testUtils.assert.doesInclude(last, {
|
|
193
193
|
'options.options.choices[].value': _constants.FILE_ACTION_ALWAYS_SKIP
|
|
194
194
|
});
|
|
195
195
|
|