@sprucelabs/spruce-cli 17.1.39 → 17.1.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/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/node_modules/@typescript-eslint/parser/package.json +5 -5
- package/node_modules/@typescript-eslint/scope-manager/package.json +5 -5
- package/node_modules/@typescript-eslint/types/package.json +2 -2
- package/node_modules/@typescript-eslint/typescript-estree/package.json +5 -5
- package/node_modules/@typescript-eslint/visitor-keys/package.json +3 -3
- package/package.json +15 -23
- 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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RememberingUpgradeSelections.test.js","names":["RememberingUpgradeSelectionsTest","test","expected","getExpectedBuildCi","updater","ScriptUpdater","assertShowsAlwaysSkipOption","ui","sendInput","wait","pkg","Service","ci","get","assert","isEqual","getFeatureInstaller","getFeature","scripts","update","key","value","latestScripts","settings","waitForInput","last","getLastInvocation","doesInclude","FILE_ACTION_ALWAYS_SKIP","AbstractSkillTest"],"sources":["../../../src/__tests__/behavioral/RememberingUpgradeSelections.test.ts"],"sourcesContent":["import { test, assert } from '@sprucelabs/test'\nimport { FILE_ACTION_ALWAYS_SKIP } from '../../constants'\nimport AbstractSkillTest from '../../tests/AbstractSkillTest'\nimport ScriptUpdater from '../../updaters/ScriptUpdater'\n\nexport default class RememberingUpgradeSelectionsTest extends AbstractSkillTest {\n\tprotected static skillCacheKey = 'schemas'\n\n\t@test()\n\tprotected static async changedScriptsHasAlwaysSkipOptions() {\n\t\tconst expected = this.getExpectedBuildCi()\n\t\tconst updater = this.ScriptUpdater('build.ci', 'taco')\n\n\t\tawait this.assertShowsAlwaysSkipOption(updater)\n\n\t\tawait this.ui.sendInput('alwaysSkip')\n\n\t\tawait this.wait(100)\n\n\t\tconst pkg = this.Service('pkg')\n\t\tconst ci = pkg.get(['scripts', 'build.ci'])\n\n\t\tassert.isEqual(ci, expected)\n\t}\n\n\tprivate static getExpectedBuildCi() {\n\t\t//@ts-ignore\n\t\treturn this.getFeatureInstaller().getFeature('skill').scripts['build.ci']\n\t}\n\n\t@test()\n\tprotected static async shouldNotAskASecondTime() {\n\t\tconst updater = this.ScriptUpdater('build.ci', 'taco2')\n\t\tawait updater.update()\n\n\t\tconst expected = this.getExpectedBuildCi()\n\t\tconst pkg = this.Service('pkg')\n\t\tconst ci = pkg.get(['scripts', 'build.ci'])\n\n\t\tassert.isEqual(ci, expected)\n\t}\n\n\t@test()\n\tprotected static async stillAsksAboutDifferentScript() {\n\t\tconst updater = this.ScriptUpdater('build.dev', 'taco')\n\t\tawait this.assertShowsAlwaysSkipOption(updater)\n\n\t\tawait this.ui.sendInput('alwaysSkip')\n\t}\n\n\tprivate static ScriptUpdater(key: string, value: string) {\n\t\tconst updater = new ScriptUpdater({\n\t\t\tpkg: this.Service('pkg'),\n\t\t\tlatestScripts: {\n\t\t\t\t[key]: value,\n\t\t\t},\n\t\t\tui: this.ui,\n\t\t\tsettings: this.Service('settings'),\n\t\t})\n\t\treturn updater\n\t}\n\n\tprivate static async assertShowsAlwaysSkipOption(updater: ScriptUpdater) {\n\t\tvoid updater.update()\n\n\t\tawait this.waitForInput()\n\n\t\tconst last = this.ui.getLastInvocation()\n\n\t\tassert.doesInclude(last, {\n\t\t\t'options.options.choices[].value': FILE_ACTION_ALWAYS_SKIP,\n\t\t})\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;;;IAEqBA,gC,WAGnB,IAAAC,
|
|
1
|
+
{"version":3,"file":"RememberingUpgradeSelections.test.js","names":["RememberingUpgradeSelectionsTest","test","expected","getExpectedBuildCi","updater","ScriptUpdater","assertShowsAlwaysSkipOption","ui","sendInput","wait","pkg","Service","ci","get","assert","isEqual","getFeatureInstaller","getFeature","scripts","update","key","value","latestScripts","settings","waitForInput","last","getLastInvocation","doesInclude","FILE_ACTION_ALWAYS_SKIP","AbstractSkillTest"],"sources":["../../../src/__tests__/behavioral/RememberingUpgradeSelections.test.ts"],"sourcesContent":["import { test, assert } from '@sprucelabs/test-utils'\nimport { FILE_ACTION_ALWAYS_SKIP } from '../../constants'\nimport AbstractSkillTest from '../../tests/AbstractSkillTest'\nimport ScriptUpdater from '../../updaters/ScriptUpdater'\n\nexport default class RememberingUpgradeSelectionsTest extends AbstractSkillTest {\n\tprotected static skillCacheKey = 'schemas'\n\n\t@test()\n\tprotected static async changedScriptsHasAlwaysSkipOptions() {\n\t\tconst expected = this.getExpectedBuildCi()\n\t\tconst updater = this.ScriptUpdater('build.ci', 'taco')\n\n\t\tawait this.assertShowsAlwaysSkipOption(updater)\n\n\t\tawait this.ui.sendInput('alwaysSkip')\n\n\t\tawait this.wait(100)\n\n\t\tconst pkg = this.Service('pkg')\n\t\tconst ci = pkg.get(['scripts', 'build.ci'])\n\n\t\tassert.isEqual(ci, expected)\n\t}\n\n\tprivate static getExpectedBuildCi() {\n\t\t//@ts-ignore\n\t\treturn this.getFeatureInstaller().getFeature('skill').scripts['build.ci']\n\t}\n\n\t@test()\n\tprotected static async shouldNotAskASecondTime() {\n\t\tconst updater = this.ScriptUpdater('build.ci', 'taco2')\n\t\tawait updater.update()\n\n\t\tconst expected = this.getExpectedBuildCi()\n\t\tconst pkg = this.Service('pkg')\n\t\tconst ci = pkg.get(['scripts', 'build.ci'])\n\n\t\tassert.isEqual(ci, expected)\n\t}\n\n\t@test()\n\tprotected static async stillAsksAboutDifferentScript() {\n\t\tconst updater = this.ScriptUpdater('build.dev', 'taco')\n\t\tawait this.assertShowsAlwaysSkipOption(updater)\n\n\t\tawait this.ui.sendInput('alwaysSkip')\n\t}\n\n\tprivate static ScriptUpdater(key: string, value: string) {\n\t\tconst updater = new ScriptUpdater({\n\t\t\tpkg: this.Service('pkg'),\n\t\t\tlatestScripts: {\n\t\t\t\t[key]: value,\n\t\t\t},\n\t\t\tui: this.ui,\n\t\t\tsettings: this.Service('settings'),\n\t\t})\n\t\treturn updater\n\t}\n\n\tprivate static async assertShowsAlwaysSkipOption(updater: ScriptUpdater) {\n\t\tvoid updater.update()\n\n\t\tawait this.waitForInput()\n\n\t\tconst last = this.ui.getLastInv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opRequireDefault(require("@babel/runtime/
|
|
|
27
27
|
|
|
28
28
|
var _spruceSkillUtils = require("@sprucelabs/spruce-skill-utils");
|
|
29
29
|
|
|
30
|
-
var _test = require("@sprucelabs/test");
|
|
31
|
-
|
|
32
30
|
var _testUtils = require("@sprucelabs/test-utils");
|
|
33
31
|
|
|
34
32
|
var _LintService = _interopRequireDefault(require("../../services/LintService"));
|
|
35
33
|
|
|
36
34
|
var _AbstractSkillTest2 = _interopRequireDefault(require("../../tests/AbstractSkillTest"));
|
|
37
35
|
|
|
38
|
-
var
|
|
36
|
+
var _test = _interopRequireDefault(require("../../tests/utilities/test.utility"));
|
|
39
37
|
|
|
40
38
|
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _class, _class2;
|
|
41
39
|
|
|
@@ -43,7 +41,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
43
41
|
|
|
44
42
|
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; } }
|
|
45
43
|
|
|
46
|
-
var SettingLogTransportsInASkillTest = (_dec = (0,
|
|
44
|
+
var SettingLogTransportsInASkillTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.test)(), _dec3 = (0, _testUtils.test)('can create transport 1', 'Sms'), _dec4 = (0, _testUtils.test)('can create transport 2', 'Email'), _dec5 = (0, _testUtils.test)(), _dec6 = (0, _testUtils.test)(), (_class = (_class2 = /*#__PURE__*/function (_AbstractSkillTest) {
|
|
47
45
|
(0, _inherits2["default"])(SettingLogTransportsInASkillTest, _AbstractSkillTest);
|
|
48
46
|
|
|
49
47
|
var _super = _createSuper(SettingLogTransportsInASkillTest);
|
|
@@ -64,7 +62,7 @@ var SettingLogTransportsInASkillTest = (_dec = (0, _test.test)(), _dec2 = (0, _t
|
|
|
64
62
|
case 0:
|
|
65
63
|
action = this.Action('log', 'createTransport');
|
|
66
64
|
|
|
67
|
-
|
|
65
|
+
_testUtils.assert.isFunction(action.execute);
|
|
68
66
|
|
|
69
67
|
case 2:
|
|
70
68
|
case "end":
|
|
@@ -95,7 +93,7 @@ var SettingLogTransportsInASkillTest = (_dec = (0, _test.test)(), _dec2 = (0, _t
|
|
|
95
93
|
case 2:
|
|
96
94
|
results = _context2.sent;
|
|
97
95
|
|
|
98
|
-
|
|
96
|
+
_testUtils.assert.isFalsy(results.errors);
|
|
99
97
|
|
|
100
98
|
case 4:
|
|
101
99
|
case "end":
|
|
@@ -126,11 +124,11 @@ var SettingLogTransportsInASkillTest = (_dec = (0, _test.test)(), _dec2 = (0, _t
|
|
|
126
124
|
case 2:
|
|
127
125
|
results = _context3.sent;
|
|
128
126
|
nameCamel = _spruceSkillUtils.namesUtil.toCamel(nameReadable);
|
|
129
|
-
match =
|
|
127
|
+
match = _test["default"].assertFileByNameInGeneratedFiles("".concat(nameCamel, "Transport.plugin.ts"), results.files);
|
|
130
128
|
|
|
131
|
-
|
|
129
|
+
_testUtils.assert.doesInclude(match, this.resolvePath('src/logTransports', "".concat(nameCamel, "Transport.plugin.ts")));
|
|
132
130
|
|
|
133
|
-
|
|
131
|
+
_testUtils.assert.isTrue(_spruceSkillUtils.diskUtil.doesFileExist(match));
|
|
134
132
|
|
|
135
133
|
case 7:
|
|
136
134
|
case "end":
|
|
@@ -161,7 +159,7 @@ var SettingLogTransportsInASkillTest = (_dec = (0, _test.test)(), _dec2 = (0, _t
|
|
|
161
159
|
case 2:
|
|
162
160
|
results = _context4.sent;
|
|
163
161
|
|
|
164
|
-
|
|
162
|
+
_testUtils.assert.isTruthy(results.errors);
|
|
165
163
|
|
|
166
164
|
_testUtils.errorAssert.assertError(results.errors[0], 'TRANSPORT_ALREADY_EXISTS', {
|
|
167
165
|
name: 'Slack'
|
|
@@ -212,7 +210,7 @@ var SettingLogTransportsInASkillTest = (_dec = (0, _test.test)(), _dec2 = (0, _t
|
|
|
212
210
|
return (_boot$meta = boot.meta) === null || _boot$meta === void 0 ? void 0 : _boot$meta.kill();
|
|
213
211
|
|
|
214
212
|
case 11:
|
|
215
|
-
|
|
213
|
+
_testUtils.assert.isTrue(_spruceSkillUtils.diskUtil.doesFileExist(_spruceSkillUtils.diskUtil.resolvePath(this.cwd, 'log.txt')));
|
|
216
214
|
|
|
217
215
|
case 12:
|
|
218
216
|
case "end":
|
|
@@ -242,7 +240,7 @@ var SettingLogTransportsInASkillTest = (_dec = (0, _test.test)(), _dec2 = (0, _t
|
|
|
242
240
|
|
|
243
241
|
case 2:
|
|
244
242
|
results = _context6.sent;
|
|
245
|
-
match =
|
|
243
|
+
match = _test["default"].assertFileByNameInGeneratedFiles("".concat(_spruceSkillUtils.namesUtil.toCamel(nameReadable), "Transport.plugin.ts"), results.files);
|
|
246
244
|
|
|
247
245
|
_spruceSkillUtils.diskUtil.writeFile(match, transportContents);
|
|
248
246
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingLogTransportsInASkill.test.js","names":["SettingLogTransportsInASkillTest","test","action","Action","assert","isFunction","execute","createTransport","results","isFalsy","errors","nameReadable","nameCamel","namesUtil","toCamel","match","testUtil","assertFileByNameInGeneratedFiles","files","doesInclude","resolvePath","isTrue","diskUtil","doesFileExist","isTruthy","errorAssert","assertError","name","LintService","enableLinting","transportContents","createTransportWithContents","Service","build","boot","meta","kill","cwd","writeFile","AbstractSkillTest"],"sources":["../../../src/__tests__/behavioral/SettingLogTransportsInASkill.test.ts"],"sourcesContent":["import { diskUtil, namesUtil } from '@sprucelabs/spruce-skill-utils'\nimport { test, assert } from '@sprucelabs/test'\nimport { errorAssert } from '@sprucelabs/test-utils'\nimport LintService from '../../services/LintService'\nimport AbstractSkillTest from '../../tests/AbstractSkillTest'\nimport testUtil from '../../tests/utilities/test.utility'\n\nexport default class SettingLogTransportsInASkillTest extends AbstractSkillTest {\n\tprotected static skillCacheKey = 'skills'\n\n\t@test()\n\tprotected static async hasCreateTransportCommand() {\n\t\tconst action = this.Action('log', 'createTransport')\n\t\tassert.isFunction(action.execute)\n\t}\n\n\t@test()\n\tprotected static async needsNameOfTransport() {\n\t\tconst results = await this.createTransport()\n\t\tassert.isFalsy(results.errors)\n\t}\n\n\t@test('can create transport 1', 'Sms')\n\t@test('can create transport 2', 'Email')\n\tprotected static async createsTransportFile(nameReadable: string) {\n\t\tconst results = await this.createTransport(nameReadable)\n\t\tconst nameCamel = namesUtil.toCamel(nameReadable)\n\t\tconst match = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t`${nameCamel}Transport.plugin.ts`,\n\t\t\tresults.files\n\t\t)\n\n\t\tassert.doesInclude(\n\t\t\tmatch,\n\t\t\tthis.resolvePath('src/logTransports', `${nameCamel}Transport.plugin.ts`)\n\t\t)\n\n\t\tassert.isTrue(diskUtil.doesFileExist(match))\n\t}\n\n\t@test()\n\tprotected static async cantCreateTransportThatAlreadyExists() {\n\t\tconst results = await this.createTransport('Slack')\n\t\tassert.isTruthy(results.errors)\n\t\terrorAssert.assertError(results.errors[0], 'TRANSPORT_ALREADY_EXISTS', {\n\t\t\tname: 'Slack',\n\t\t})\n\t}\n\n\t@test()\n\tprotected static async logsWriteToTransports() {\n\t\tLintService.enableLinting()\n\t\tconst transportContents = `\n\t\timport { diskUtil, Level, LogTransport } from '@sprucelabs/spruce-skill-utils'\n\t\t\n\t\texport default function (): {\n\t\t\tlevels: Level[]\n\t\t\ttransport: LogTransport\n\t\t} | null {\n\t\t\treturn {\n\t\t\t\tlevels: ['ERROR', 'INFO', 'WARN'],\n\t\t\t\ttransport: (...messageParts: string[]) => {\n\t\t\t\t\tconst message = messageParts.join(' ')\n\t\t\t\t\tdiskUtil.writeFile(\n\t\t\t\t\t\tdiskUtil.resolvePath(__dirname, '..', '..', 'log.txt'),\n\t\t\t\t\t\tmessage\n\t\t\t\t\t)\n\t\t\t\t},\n\t\t\t}\n\t\t}\n\t\t`\n\n\t\tawait this.createTransportWithContents(transportContents, 'File')\n\t\tawait this.Service('build').build()\n\n\t\tconst boot = await this.Action('skill', 'boot').execute({})\n\n\t\tawait boot.meta?.kill()\n\n\t\tassert.isTrue(\n\t\t\tdiskUtil.doesFileExist(diskUtil.resolvePath(this.cwd, 'log.txt'))\n\t\t)\n\t}\n\n\tprivate static async createTransportWithContents(\n\t\ttransportContents: string,\n\t\tnameReadable: string\n\t) {\n\t\tconst results = await this.createTransport(nameReadable)\n\t\tconst match = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t`${namesUtil.toCamel(nameReadable)}Transport.plugin.ts`,\n\t\t\tresults.files\n\t\t)\n\n\t\tdiskUtil.writeFile(match, transportContents)\n\t}\n\n\tprivate static async createTransport(nameReadable = 'Slack') {\n\t\tconst action = this.Action('log', 'createTransport')\n\t\tconst results = await action.execute({\n\t\t\tnameReadable,\n\t\t\tnameCamel: namesUtil.toCamel(nameReadable),\n\t\t})\n\t\treturn results\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;
|
|
1
|
+
{"version":3,"file":"SettingLogTransportsInASkill.test.js","names":["SettingLogTransportsInASkillTest","test","action","Action","assert","isFunction","execute","createTransport","results","isFalsy","errors","nameReadable","nameCamel","namesUtil","toCamel","match","testUtil","assertFileByNameInGeneratedFiles","files","doesInclude","resolvePath","isTrue","diskUtil","doesFileExist","isTruthy","errorAssert","assertError","name","LintService","enableLinting","transportContents","createTransportWithContents","Service","build","boot","meta","kill","cwd","writeFile","AbstractSkillTest"],"sources":["../../../src/__tests__/behavioral/SettingLogTransportsInASkill.test.ts"],"sourcesContent":["import { diskUtil, namesUtil } from '@sprucelabs/spruce-skill-utils'\nimport { test, assert } from '@sprucelabs/test-utils'\nimport { errorAssert } from '@sprucelabs/test-utils'\nimport LintService from '../../services/LintService'\nimport AbstractSkillTest from '../../tests/AbstractSkillTest'\nimport testUtil from '../../tests/utilities/test.utility'\n\nexport default class SettingLogTransportsInASkillTest extends AbstractSkillTest {\n\tprotected static skillCacheKey = 'skills'\n\n\t@test()\n\tprotected static async hasCreateTransportCommand() {\n\t\tconst action = this.Action('log', 'createTransport')\n\t\tassert.isFunction(action.execute)\n\t}\n\n\t@test()\n\tprotected static async needsNameOfTransport() {\n\t\tconst results = await this.createTransport()\n\t\tassert.isFalsy(results.errors)\n\t}\n\n\t@test('can create transport 1', 'Sms')\n\t@test('can create transport 2', 'Email')\n\tprotected static async createsTransportFile(nameReadable: string) {\n\t\tconst results = await this.createTransport(nameReadable)\n\t\tconst nameCamel = namesUtil.toCamel(nameReadable)\n\t\tconst match = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t`${nameCamel}Transport.plugin.ts`,\n\t\t\tresults.files\n\t\t)\n\n\t\tassert.doesInclude(\n\t\t\tmatch,\n\t\t\tthis.resolvePath('src/logTransports', `${nameCamel}Transport.plugin.ts`)\n\t\t)\n\n\t\tassert.isTrue(diskUtil.doesFileExist(match))\n\t}\n\n\t@test()\n\tprotected static async cantCreateTransportThatAlreadyExists() {\n\t\tconst results = await this.createTransport('Slack')\n\t\tassert.isTruthy(results.errors)\n\t\terrorAssert.assertError(results.errors[0], 'TRANSPORT_ALREADY_EXISTS', {\n\t\t\tname: 'Slack',\n\t\t})\n\t}\n\n\t@test()\n\tprotected static async logsWriteToTransports() {\n\t\tLintService.enableLinting()\n\t\tconst transportContents = `\n\t\timport { diskUtil, Level, LogTransport } from '@sprucelabs/spruce-skill-utils'\n\t\t\n\t\texport default function (): {\n\t\t\tlevels: Level[]\n\t\t\ttransport: LogTransport\n\t\t} | null {\n\t\t\treturn {\n\t\t\t\tlevels: ['ERROR', 'INFO', 'WARN'],\n\t\t\t\ttransport: (...messageParts: string[]) => {\n\t\t\t\t\tconst message = messageParts.join(' ')\n\t\t\t\t\tdiskUtil.writeFile(\n\t\t\t\t\t\tdiskUtil.resolvePath(__dirname, '..', '..', 'log.txt'),\n\t\t\t\t\t\tmessage\n\t\t\t\t\t)\n\t\t\t\t},\n\t\t\t}\n\t\t}\n\t\t`\n\n\t\tawait this.createTransportWithContents(transportContents, 'File')\n\t\tawait this.Service('build').build()\n\n\t\tconst boot = await this.Action('skill', 'boot').execute({})\n\n\t\tawait boot.meta?.kill()\n\n\t\tassert.isTrue(\n\t\t\tdiskUtil.doesFileExist(diskUtil.resolvePath(this.cwd, 'log.txt'))\n\t\t)\n\t}\n\n\tprivate static async createTransportWithContents(\n\t\ttransportContents: string,\n\t\tnameReadable: string\n\t) {\n\t\tconst results = await this.createTransport(nameReadable)\n\t\tconst match = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t`${namesUtil.toCamel(nameReadable)}Transport.plugin.ts`,\n\t\t\tresults.files\n\t\t)\n\n\t\tdiskUtil.writeFile(match, transportContents)\n\t}\n\n\tprivate static async createTransport(nameReadable = 'Slack') {\n\t\tconst action = this.Action('log', 'createTransport')\n\t\tconst results = await action.execute({\n\t\t\tnameReadable,\n\t\t\tnameCamel: namesUtil.toCamel(nameReadable),\n\t\t})\n\t\treturn results\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;;;;;;;IAEqBA,gC,WAGnB,IAAAC,eAAA,G,UAMA,IAAAA,eAAA,G,UAMA,IAAAA,eAAA,EAAK,wBAAL,EAA+B,KAA/B,C,UACA,IAAAA,eAAA,EAAK,wBAAL,EAA+B,OAA/B,C,UAiBA,IAAAA,eAAA,G,UASA,IAAAA,eAAA,G;;;;;;;;;;;;;qHAvCD;QAAA;QAAA;UAAA;YAAA;cAAA;gBAEOC,MAFP,GAEgB,KAAKC,MAAL,CAAY,KAAZ,EAAmB,iBAAnB,CAFhB;;gBAGCC,iBAAA,CAAOC,UAAP,CAAkBH,MAAM,CAACI,OAAzB;;cAHD;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,C;;;;;;;;;;;gHAMA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA,OAEuB,KAAKC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AA;MAAA,C;;;;;;;;;;EA1F6D+B,8B,8DAC5B,Q"}
|
|
@@ -27,7 +27,7 @@ var _applyDecoratedDescriptor2 = _interopRequireDefault(require("@babel/runtime/
|
|
|
27
27
|
|
|
28
28
|
var _spruceEventUtils = require("@sprucelabs/spruce-event-utils");
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _testUtils = require("@sprucelabs/test-utils");
|
|
31
31
|
|
|
32
32
|
var _TerminalInterface = _interopRequireDefault(require("../../interfaces/TerminalInterface"));
|
|
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 SettingRemoteTest = (_dec = (0,
|
|
42
|
+
var SettingRemoteTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.test)("saves local as ".concat(_spruceEventUtils.REMOTE_LOCAL), "local", "".concat(_spruceEventUtils.REMOTE_LOCAL)), _dec3 = (0, _testUtils.test)("saves dev as ".concat(_spruceEventUtils.REMOTE_DEV), "developer", "".concat(_spruceEventUtils.REMOTE_DEV)), _dec4 = (0, _testUtils.test)("saves sandbox as ".concat(_spruceEventUtils.REMOTE_SANDBOX), "sandbox", "".concat(_spruceEventUtils.REMOTE_SANDBOX)), _dec5 = (0, _testUtils.test)("saves prod as ".concat(_spruceEventUtils.REMOTE_PROD), "production", "".concat(_spruceEventUtils.REMOTE_PROD)), _dec6 = (0, _testUtils.test)('create.event asks for remote on IS TTY', 'event', 'create'), _dec7 = (0, _testUtils.test)('sync.events asks for remote on IS TTY', 'event', 'sync'), _dec8 = (0, _testUtils.test)('login asks for remote on IS TTY', 'person', 'login'), _dec9 = (0, _testUtils.test)('login.skill asks for remote on IS TTY', 'skill', 'login'), _dec10 = (0, _testUtils.test)('create.event throws for remote on NOT TTY', 'create', false), _dec11 = (0, _testUtils.test)('sync.events throws for remote on NOT TTY', 'sync', false), _dec12 = (0, _testUtils.test)(), (_class = (_class2 = /*#__PURE__*/function (_AbstractSkillTest) {
|
|
43
43
|
(0, _inherits2["default"])(SettingRemoteTest, _AbstractSkillTest);
|
|
44
44
|
|
|
45
45
|
var _super = _createSuper(SettingRemoteTest);
|
|
@@ -57,7 +57,7 @@ var SettingRemoteTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)("save
|
|
|
57
57
|
while (1) {
|
|
58
58
|
switch (_context.prev = _context.next) {
|
|
59
59
|
case 0:
|
|
60
|
-
|
|
60
|
+
_testUtils.assert.isFunction(this.Action('event', 'setRemote').execute);
|
|
61
61
|
|
|
62
62
|
case 1:
|
|
63
63
|
case "end":
|
|
@@ -91,7 +91,7 @@ var SettingRemoteTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)("save
|
|
|
91
91
|
env = this.Service('env');
|
|
92
92
|
host = env.get('HOST');
|
|
93
93
|
|
|
94
|
-
|
|
94
|
+
_testUtils.assert.isEqual(host, expected);
|
|
95
95
|
|
|
96
96
|
case 5:
|
|
97
97
|
case "end":
|
|
@@ -129,7 +129,7 @@ var SettingRemoteTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)("save
|
|
|
129
129
|
case 6:
|
|
130
130
|
last = this.ui.getLastInvocation();
|
|
131
131
|
|
|
132
|
-
|
|
132
|
+
_testUtils.assert.doesInclude(last.options.label, 'remote');
|
|
133
133
|
|
|
134
134
|
this.ui.reset();
|
|
135
135
|
|
|
@@ -168,9 +168,9 @@ var SettingRemoteTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)("save
|
|
|
168
168
|
case 5:
|
|
169
169
|
results = _context4.sent;
|
|
170
170
|
|
|
171
|
-
|
|
171
|
+
_testUtils.assert.isTruthy(results.errors);
|
|
172
172
|
|
|
173
|
-
|
|
173
|
+
_testUtils.assert.doesInclude(results.errors[0].stack, 'env.HOST');
|
|
174
174
|
|
|
175
175
|
case 8:
|
|
176
176
|
case "end":
|
|
@@ -202,9 +202,9 @@ var SettingRemoteTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)("save
|
|
|
202
202
|
case 3:
|
|
203
203
|
results = _context5.sent;
|
|
204
204
|
|
|
205
|
-
|
|
205
|
+
_testUtils.assert.isTruthy(results.summaryLines);
|
|
206
206
|
|
|
207
|
-
|
|
207
|
+
_testUtils.assert.doesInclude(results.summaryLines, 'Remote: dev');
|
|
208
208
|
|
|
209
209
|
case 6:
|
|
210
210
|
case "end":
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingRemote.test.js","names":["SettingRemoteTest","test","REMOTE_LOCAL","REMOTE_DEV","REMOTE_SANDBOX","REMOTE_PROD","assert","isFunction","Action","execute","remote","expected","env","Service","host","get","isEqual","feature","action","TerminalInterface","setDoesSupportColor","unset","shouldAutoHandleDependencies","waitForInput","last","ui","getLastInvocation","doesInclude","options","label","reset","shouldThrowOnListenerError","results","isTruthy","errors","stack","set","summaryLines","AbstractSkillTest"],"sources":["../../../src/__tests__/behavioral/SettingRemote.test.ts"],"sourcesContent":["import {\n\tREMOTE_DEV,\n\tREMOTE_LOCAL,\n\tREMOTE_PROD,\n\tREMOTE_SANDBOX,\n} from '@sprucelabs/spruce-event-utils'\nimport { test, assert } from '@sprucelabs/test'\nimport { FeatureCode } from '../../features/features.types'\nimport TerminalInterface from '../../interfaces/TerminalInterface'\nimport AbstractSkillTest from '../../tests/AbstractSkillTest'\n\nexport default class SettingRemoteTest extends AbstractSkillTest {\n\tprotected static skillCacheKey = 'events'\n\n\t@test()\n\tprotected static async hasSetRemoteAction() {\n\t\tassert.isFunction(this.Action('event', 'setRemote').execute)\n\t}\n\n\t@test(`saves local as ${REMOTE_LOCAL}`, `local`, `${REMOTE_LOCAL}`)\n\t@test(`saves dev as ${REMOTE_DEV}`, `developer`, `${REMOTE_DEV}`)\n\t@test(`saves sandbox as ${REMOTE_SANDBOX}`, `sandbox`, `${REMOTE_SANDBOX}`)\n\t@test(`saves prod as ${REMOTE_PROD}`, `production`, `${REMOTE_PROD}`)\n\tprotected static async savesRemote(remote: string, expected: string) {\n\t\tawait this.Action('event', 'setRemote').execute({ remote })\n\n\t\tconst env = this.Service('env')\n\t\tconst host = env.get('HOST')\n\n\t\tassert.isEqual(host, expected)\n\t}\n\n\t@test('create.event asks for remote on IS TTY', 'event', 'create')\n\t@test('sync.events asks for remote on IS TTY', 'event', 'sync')\n\t@test('login asks for remote on IS TTY', 'person', 'login')\n\t@test('login.skill asks for remote on IS TTY', 'skill', 'login')\n\tprotected static async shouldAskForRemoteBeforeEventActionIsInvokedIfTerminalSupportsIt(\n\t\tfeature: FeatureCode,\n\t\taction: string\n\t) {\n\t\tTerminalInterface.setDoesSupportColor(true)\n\n\t\tconst env = this.Service('env')\n\t\tenv.unset('HOST')\n\n\t\tvoid this.Action(feature, action, {\n\t\t\tshouldAutoHandleDependencies: true,\n\t\t}).execute({})\n\n\t\tawait this.waitForInput()\n\n\t\tconst last = this.ui.getLastInvocation()\n\n\t\tassert.doesInclude(last.options.label, 'remote')\n\n\t\tthis.ui.reset()\n\t}\n\n\t@test('create.event throws for remote on NOT TTY', 'create', false)\n\t@test('sync.events throws for remote on NOT TTY', 'sync', false)\n\tprotected static async shouldThrowBeforeEventActionIsInvokedIfTerminalSupportsIt(\n\t\taction: string\n\t) {\n\t\tTerminalInterface.setDoesSupportColor(false)\n\t\tconst env = this.Service('env')\n\t\tenv.unset('HOST')\n\n\t\tconst results = await this.Action('event', action, {\n\t\t\tshouldThrowOnListenerError: false,\n\t\t}).execute({})\n\n\t\tassert.isTruthy(results.errors)\n\t\tassert.doesInclude(results.errors[0].stack, 'env.HOST')\n\t}\n\n\t@test()\n\tprotected static async resultsOfCommandHasRemoteMixedIntoSummary() {\n\t\tthis.Service('remote').set('developer')\n\t\tconst results = await this.Action('event', 'sync').execute({})\n\n\t\tassert.isTruthy(results.summaryLines)\n\t\tassert.doesInclude(results.summaryLines, 'Remote: dev')\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAMA;;AAEA;;AACA;;;;;;;;IAEqBA,iB,WAGnB,IAAAC,
|
|
1
|
+
{"version":3,"file":"SettingRemote.test.js","names":["SettingRemoteTest","test","REMOTE_LOCAL","REMOTE_DEV","REMOTE_SANDBOX","REMOTE_PROD","assert","isFunction","Action","execute","remote","expected","env","Service","host","get","isEqual","feature","action","TerminalInterface","setDoesSupportColor","unset","shouldAutoHandleDependencies","waitForInput","last","ui","getLastInvocation","doesInclude","options","label","reset","shouldThrowOnListenerError","results","isTruthy","errors","stack","set","summaryLines","AbstractSkillTest"],"sources":["../../../src/__tests__/behavioral/SettingRemote.test.ts"],"sourcesContent":["import {\n\tREMOTE_DEV,\n\tREMOTE_LOCAL,\n\tREMOTE_PROD,\n\tREMOTE_SANDBOX,\n} from '@sprucelabs/spruce-event-utils'\nimport { test, assert } from '@sprucelabs/test-utils'\nimport { FeatureCode } from '../../features/features.types'\nimport TerminalInterface from '../../interfaces/TerminalInterface'\nimport AbstractSkillTest from '../../tests/AbstractSkillTest'\n\nexport default class SettingRemoteTest extends AbstractSkillTest {\n\tprotected static skillCacheKey = 'events'\n\n\t@test()\n\tprotected static async hasSetRemoteAction() {\n\t\tassert.isFunction(this.Action('event', 'setRemote').execute)\n\t}\n\n\t@test(`saves local as ${REMOTE_LOCAL}`, `local`, `${REMOTE_LOCAL}`)\n\t@test(`saves dev as ${REMOTE_DEV}`, `developer`, `${REMOTE_DEV}`)\n\t@test(`saves sandbox as ${REMOTE_SANDBOX}`, `sandbox`, `${REMOTE_SANDBOX}`)\n\t@test(`saves prod as ${REMOTE_PROD}`, `production`, `${REMOTE_PROD}`)\n\tprotected static async savesRemote(remote: string, expected: string) {\n\t\tawait this.Action('event', 'setRemote').execute({ remote })\n\n\t\tconst env = this.Service('env')\n\t\tconst host = env.get('HOST')\n\n\t\tassert.isEqual(host, expected)\n\t}\n\n\t@test('create.event asks for remote on IS TTY', 'event', 'create')\n\t@test('sync.events asks for remote on IS TTY', 'event', 'sync')\n\t@test('login asks for remote on IS TTY', 'person', 'login')\n\t@test('login.skill asks for remote on IS TTY', 'skill', 'login')\n\tprotected static async shouldAskForRemoteBeforeEventActionIsInvokedIfTerminalSupportsIt(\n\t\tfeature: FeatureCode,\n\t\taction: string\n\t) {\n\t\tTerminalInterface.setDoesSupportColor(true)\n\n\t\tconst env = this.Service('env')\n\t\tenv.unset('HOST')\n\n\t\tvoid this.Action(feature, action, {\n\t\t\tshouldAutoHandleDependencies: true,\n\t\t}).execute({})\n\n\t\tawait this.waitForInput()\n\n\t\tconst last = this.ui.getLastInvocation()\n\n\t\tassert.doesInclude(last.options.label, 'remote')\n\n\t\tthis.ui.reset()\n\t}\n\n\t@test('create.event throws for remote on NOT TTY', 'create', false)\n\t@test('sync.events throws for remote on NOT TTY', 'sync', false)\n\tprotected static async shouldThrowBeforeEventActionIsInvokedIfTerminalSupportsIt(\n\t\taction: string\n\t) {\n\t\tTerminalInterface.setDoesSupportColor(false)\n\t\tconst env = this.Service('env')\n\t\tenv.unset('HOST')\n\n\t\tconst results = await this.Action('event', action, {\n\t\t\tshouldThrowOnListenerError: false,\n\t\t}).execute({})\n\n\t\tassert.isTruthy(results.errors)\n\t\tassert.doesInclude(results.errors[0].stack, 'env.HOST')\n\t}\n\n\t@test()\n\tprotected static async resultsOfCommandHasRemoteMixedIntoSummary() {\n\t\tthis.Service('remote').set('developer')\n\t\tconst results = await this.Action('event', 'sync').execute({})\n\n\t\tassert.isTruthy(results.summaryLines)\n\t\tassert.doesInclude(results.summaryLines, 'Remote: dev')\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAMA;;AAEA;;AACA;;;;;;;;IAEqBA,iB,WAGnB,IAAAC,eAAA,G,UAKA,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AAA;cAAA;gBAEC,KAAKtB,OAAL,CAAa,QAAb,EAAuBuB,GAAvB,CAA2B,WAA3B;gBAFD;gBAAA,OAGuB,KAAK5B,MAAL,CAAY,OAAZ,EAAqB,MAArB,EAA6BC,OAA7B,CAAqC,EAArC,CAHvB;;cAAA;gBAGOuB,OAHP;;gBAKC1B,iBAAA,CAAO2B,QAAP,CAAgBD,OAAO,CAACK,YAAxB;;gBACA/B,iBAAA,CAAOqB,WAAP,CAAmBK,OAAO,CAACK,YAA3B,EAAyC,aAAzC;;cAND;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,C;;;;;;;;;;EAhE8CC,8B,8DACb,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 SettingUpASkillForTestingTest = (_dec = (0,
|
|
40
|
+
var SettingUpASkillForTestingTest = (_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) {
|
|
41
41
|
(0, _inherits2["default"])(SettingUpASkillForTestingTest, _AbstractSkillTest);
|
|
42
42
|
|
|
43
43
|
var _super = _createSuper(SettingUpASkillForTestingTest);
|
|
@@ -55,7 +55,7 @@ var SettingUpASkillForTestingTest = (_dec = (0, _test.test)(), _dec2 = (0, _test
|
|
|
55
55
|
while (1) {
|
|
56
56
|
switch (_context.prev = _context.next) {
|
|
57
57
|
case 0:
|
|
58
|
-
|
|
58
|
+
_testUtils.assert.isFunction(this.Action('test', 'setup').execute);
|
|
59
59
|
|
|
60
60
|
case 1:
|
|
61
61
|
case "end":
|
|
@@ -89,12 +89,12 @@ var SettingUpASkillForTestingTest = (_dec = (0, _test.test)(), _dec2 = (0, _test
|
|
|
89
89
|
case 2:
|
|
90
90
|
results = _context2.sent;
|
|
91
91
|
|
|
92
|
-
|
|
92
|
+
_testUtils.assert.isFalsy(results.errors);
|
|
93
93
|
|
|
94
94
|
auth = this.Service('auth');
|
|
95
95
|
person = auth.getLoggedInPerson();
|
|
96
96
|
|
|
97
|
-
|
|
97
|
+
_testUtils.assert.isTruthy(person);
|
|
98
98
|
|
|
99
99
|
case 7:
|
|
100
100
|
case "end":
|
|
@@ -122,7 +122,7 @@ var SettingUpASkillForTestingTest = (_dec = (0, _test.test)(), _dec2 = (0, _test
|
|
|
122
122
|
auth = this.Service('auth');
|
|
123
123
|
skill = auth.getCurrentSkill();
|
|
124
124
|
|
|
125
|
-
|
|
125
|
+
_testUtils.assert.isTruthy(skill);
|
|
126
126
|
|
|
127
127
|
case 3:
|
|
128
128
|
case "end":
|
|
@@ -156,12 +156,12 @@ var SettingUpASkillForTestingTest = (_dec = (0, _test.test)(), _dec2 = (0, _test
|
|
|
156
156
|
case 2:
|
|
157
157
|
results = _context4.sent;
|
|
158
158
|
|
|
159
|
-
|
|
159
|
+
_testUtils.assert.isFalsy(results.errors);
|
|
160
160
|
|
|
161
161
|
auth = this.Service('auth');
|
|
162
162
|
skill = auth.getCurrentSkill();
|
|
163
163
|
|
|
164
|
-
|
|
164
|
+
_testUtils.assert.isEqual(skill === null || skill === void 0 ? void 0 : skill.slug, this.skillSlug);
|
|
165
165
|
|
|
166
166
|
case 7:
|
|
167
167
|
case "end":
|
|
@@ -200,11 +200,11 @@ var SettingUpASkillForTestingTest = (_dec = (0, _test.test)(), _dec2 = (0, _test
|
|
|
200
200
|
case 4:
|
|
201
201
|
results = _context5.sent;
|
|
202
202
|
|
|
203
|
-
|
|
203
|
+
_testUtils.assert.isFalsy(results.errors);
|
|
204
204
|
|
|
205
205
|
skill = auth.getCurrentSkill();
|
|
206
206
|
|
|
207
|
-
|
|
207
|
+
_testUtils.assert.isEqual(skill === null || skill === void 0 ? void 0 : skill.slug, this.skillSlug);
|
|
208
208
|
|
|
209
209
|
case 8:
|
|
210
210
|
case "end":
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingUpASkillForTesting.test.js","names":["SettingUpASkillForTestingTest","test","assert","isFunction","Action","execute","demoNumber","DEMO_NUMBER","skillSlug","results","isFalsy","errors","auth","Service","person","getLoggedInPerson","isTruthy","skill","getCurrentSkill","isEqual","slug","updateCurrentSkill","fail","AbstractSkillTest","Date","getTime"],"sources":["../../../src/__tests__/behavioral/SettingUpASkillForTesting.test.ts"],"sourcesContent":["import { test, assert } from '@sprucelabs/test'\nimport AbstractSkillTest from '../../tests/AbstractSkillTest'\nimport { DEMO_NUMBER } from '../../tests/constants'\n\nexport default class SettingUpASkillForTestingTest extends AbstractSkillTest {\n\tprotected static skillCacheKey = 'tests'\n\tprotected static skillSlug = `test-skill-${new Date().getTime()}`\n\n\t@test()\n\tprotected static async hasSetupAction() {\n\t\tassert.isFunction(this.Action('test', 'setup').execute)\n\t}\n\n\t@test()\n\tprotected static async logsInAsDemoPerson() {\n\t\tconst results = await this.Action('test', 'setup').execute({\n\t\t\tdemoNumber: DEMO_NUMBER,\n\t\t\tskillSlug: this.skillSlug,\n\t\t})\n\n\t\tassert.isFalsy(results.errors)\n\n\t\tconst auth = this.Service('auth')\n\t\tconst person = auth.getLoggedInPerson()\n\n\t\tassert.isTruthy(person)\n\t}\n\n\t@test()\n\tprotected static async registersCurrentSkill() {\n\t\tconst auth = this.Service('auth')\n\t\tconst skill = auth.getCurrentSkill()\n\n\t\tassert.isTruthy(skill)\n\t}\n\n\t@test()\n\tprotected static async canRunAgainWithoutError() {\n\t\tconst results = await this.Action('test', 'setup').execute({\n\t\t\tdemoNumber: DEMO_NUMBER,\n\t\t\tskillSlug: this.skillSlug,\n\t\t})\n\n\t\tassert.isFalsy(results.errors)\n\n\t\tconst auth = this.Service('auth')\n\t\tconst skill = auth.getCurrentSkill()\n\n\t\tassert.isEqual(skill?.slug, this.skillSlug)\n\t}\n\n\t@test()\n\tprotected static async canCorrectInvalidAuth() {\n\t\tconst auth = this.Service('auth')\n\t\t//@ts-ignore\n\t\tauth.updateCurrentSkill({ fail: true })\n\n\t\tconst results = await this.Action('test', 'setup').execute({\n\t\t\tdemoNumber: DEMO_NUMBER,\n\t\t\tskillSlug: this.skillSlug,\n\t\t})\n\n\t\tassert.isFalsy(results.errors)\n\n\t\tconst skill = auth.getCurrentSkill()\n\n\t\tassert.isEqual(skill?.slug, this.skillSlug)\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;;;;;;;IAEqBA,6B,WAInB,IAAAC,
|
|
1
|
+
{"version":3,"file":"SettingUpASkillForTesting.test.js","names":["SettingUpASkillForTestingTest","test","assert","isFunction","Action","execute","demoNumber","DEMO_NUMBER","skillSlug","results","isFalsy","errors","auth","Service","person","getLoggedInPerson","isTruthy","skill","getCurrentSkill","isEqual","slug","updateCurrentSkill","fail","AbstractSkillTest","Date","getTime"],"sources":["../../../src/__tests__/behavioral/SettingUpASkillForTesting.test.ts"],"sourcesContent":["import { test, assert } from '@sprucelabs/test-utils'\nimport AbstractSkillTest from '../../tests/AbstractSkillTest'\nimport { DEMO_NUMBER } from '../../tests/constants'\n\nexport default class SettingUpASkillForTestingTest extends AbstractSkillTest {\n\tprotected static skillCacheKey = 'tests'\n\tprotected static skillSlug = `test-skill-${new Date().getTime()}`\n\n\t@test()\n\tprotected static async hasSetupAction() {\n\t\tassert.isFunction(this.Action('test', 'setup').execute)\n\t}\n\n\t@test()\n\tprotected static async logsInAsDemoPerson() {\n\t\tconst results = await this.Action('test', 'setup').execute({\n\t\t\tdemoNumber: DEMO_NUMBER,\n\t\t\tskillSlug: this.skillSlug,\n\t\t})\n\n\t\tassert.isFalsy(results.errors)\n\n\t\tconst auth = this.Service('auth')\n\t\tconst person = auth.getLoggedInPerson()\n\n\t\tassert.isTruthy(person)\n\t}\n\n\t@test()\n\tprotected static async registersCurrentSkill() {\n\t\tconst auth = this.Service('auth')\n\t\tconst skill = auth.getCurrentSkill()\n\n\t\tassert.isTruthy(skill)\n\t}\n\n\t@test()\n\tprotected static async canRunAgainWithoutError() {\n\t\tconst results = await this.Action('test', 'setup').execute({\n\t\t\tdemoNumber: DEMO_NUMBER,\n\t\t\tskillSlug: this.skillSlug,\n\t\t})\n\n\t\tassert.isFalsy(results.errors)\n\n\t\tconst auth = this.Service('auth')\n\t\tconst skill = auth.getCurrentSkill()\n\n\t\tassert.isEqual(skill?.slug, this.skillSlug)\n\t}\n\n\t@test()\n\tprotected static async canCorrectInvalidAuth() {\n\t\tconst auth = this.Service('auth')\n\t\t//@ts-ignore\n\t\tauth.updateCurrentSkill({ fail: true })\n\n\t\tconst results = await this.Action('test', 'setup').execute({\n\t\t\tdemoNumber: DEMO_NUMBER,\n\t\t\tskillSlug: this.skillSlug,\n\t\t})\n\n\t\tassert.isFalsy(results.errors)\n\n\t\tconst skill = auth.getCurrentSkill()\n\n\t\tassert.isEqual(skill?.slug, this.skillSlug)\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;;;;;;;IAEqBA,6B,WAInB,IAAAC,eAAA,G,UAKA,IAAAA,eAAA,G,UAeA,IAAAA,eAAA,G,UAQA,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,MAAvB;;gBAEMC,IATP,GASc,KAAKC,OAAL,CAAa,MAAb,CATd;gBAUOI,KAVP,GAUeL,IAAI,CAACM,eAAL,EAVf;;gBAYChB,iBAAA,CAAOiB,OAAP,CAAeF,KAAf,aAAeA,KAAf,uBAAeA,KAAK,CAAEG,IAAtB,EAA4B,KAAKZ,SAAjC;;cAZD;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,C;;;;;;;;;;;iHAeA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAEOI,IAFP,GAEc,KAAKC,OAAL,CAAa,MAAb,CAFd,EAGC;;gBACAD,IAAI,CAACS,kBAAL,CAAwB;kBAAEC,IAAI,EAAE;gBAAR,CAAxB;gBAJD;gBAAA,OAMuB,KAAKlB,MAAL,CAAY,MAAZ,EAAoB,OAApB,EAA6BC,OAA7B,CAAqC;kBAC1DC,UAAU,EAAEC,sBAD8C;kBAE1DC,SAAS,EAAE,KAAKA;gBAF0C,CAArC,CANvB;;cAAA;gBAMOC,OANP;;gBAWCP,iBAAA,CAAOQ,OAAP,CAAeD,OAAO,CAACE,MAAvB;;gBAEMM,KAbP,GAaeL,IAAI,CAACM,eAAL,EAbf;;gBAeChB,iBAAA,CAAOiB,OAAP,CAAeF,KAAf,aAAeA,KAAf,uBAAeA,KAAK,CAAEG,IAAtB,EAA4B,KAAKZ,SAAjC;;cAfD;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,C;;;;;;;;;;EA/C0De,8B,8DACzB,O,+EACU,IAAIC,IAAJ,GAAWC,OAAX,E"}
|
|
@@ -27,15 +27,13 @@ var _applyDecoratedDescriptor2 = _interopRequireDefault(require("@babel/runtime/
|
|
|
27
27
|
|
|
28
28
|
var _spruceSkillUtils = require("@sprucelabs/spruce-skill-utils");
|
|
29
29
|
|
|
30
|
-
var _test = require("@sprucelabs/test");
|
|
31
|
-
|
|
32
30
|
var _testUtils = require("@sprucelabs/test-utils");
|
|
33
31
|
|
|
34
32
|
var _SchemaTemplateItemBuilder = _interopRequireDefault(require("../../templateItemBuilders/SchemaTemplateItemBuilder"));
|
|
35
33
|
|
|
36
34
|
var _AbstractSkillTest2 = _interopRequireDefault(require("../../tests/AbstractSkillTest"));
|
|
37
35
|
|
|
38
|
-
var
|
|
36
|
+
var _test = _interopRequireDefault(require("../../tests/utilities/test.utility"));
|
|
39
37
|
|
|
40
38
|
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _dec13, _dec14, _dec15, _class, _class2;
|
|
41
39
|
|
|
@@ -57,7 +55,7 @@ var LOCAL_NAMESPACE = 'TestingSchemas';
|
|
|
57
55
|
var REMOTE_NAMESPACE = 'RemoteSchemas';
|
|
58
56
|
var REMOTE_MODULE = '@sprucelabs/calendar-utils';
|
|
59
57
|
var REMOTE_MODULE2 = '@sprucelabs/spruce-templates';
|
|
60
|
-
var SettingUpSchemasForModuleDistributionTest = (_dec = (0,
|
|
58
|
+
var SettingUpSchemasForModuleDistributionTest = (_dec = (0, _testUtils.test)('can specify importFromModuleWhenRemote 1', 'CalendarEvent', REMOTE_MODULE, '1'), _dec2 = (0, _testUtils.test)('can specify importFromModuleWhenRemote 2', 'CalendarEvent2', REMOTE_MODULE2, '2'), _dec3 = (0, _testUtils.test)(), _dec4 = (0, _testUtils.test)(), _dec5 = (0, _testUtils.test)('should ask about missing module and cancel install', ['schema1'], [REMOTE_MODULE], false), _dec6 = (0, _testUtils.test)('should ask about missing module and do install', ['schema1'], [REMOTE_MODULE], true), _dec7 = (0, _testUtils.test)('should ask about missing module and do install', ['schema1', 'schema2'], [REMOTE_MODULE, REMOTE_MODULE2], true), _dec8 = (0, _testUtils.test)('does not return the same module twice', ['schema1', 'schema1b', 'schema2'], [REMOTE_MODULE, REMOTE_MODULE2], true), _dec9 = (0, _testUtils.test)('schemas are imported from one module', ['schema1']), _dec10 = (0, _testUtils.test)('schemas are imported from two modules', ['schema1', 'schema2']), _dec11 = (0, _testUtils.test)('can reference impored from another module', ["import * as HeartwoodTypesLocal from '@sprucelabs/heartwood-view-controllers'"]), _dec12 = (0, _testUtils.test)('can reference impored from another module with two importsWhenLocal', ["import * as HeartwoodTypesLocal from '@sprucelabs/heartwood-view-controllers'", "import * as HeartwoodTypesLocal2 from '@sprucelabs/heartwood-view-controllers'"]), _dec13 = (0, _testUtils.test)(), _dec14 = (0, _testUtils.test)(), _dec15 = (0, _testUtils.test)(), (_class = (_class2 = /*#__PURE__*/function (_AbstractSkillTest) {
|
|
61
59
|
(0, _inherits2["default"])(SettingUpSchemasForModuleDistributionTest, _AbstractSkillTest);
|
|
62
60
|
|
|
63
61
|
var _super = _createSuper(SettingUpSchemasForModuleDistributionTest);
|
|
@@ -103,27 +101,27 @@ var SettingUpSchemasForModuleDistributionTest = (_dec = (0, _test.test)('can spe
|
|
|
103
101
|
case 9:
|
|
104
102
|
results = _context.sent;
|
|
105
103
|
|
|
106
|
-
|
|
104
|
+
_testUtils.assert.isFalsy(results.errors);
|
|
107
105
|
|
|
108
|
-
builderFile =
|
|
106
|
+
builderFile = _test["default"].assertFileByNameInGeneratedFiles("".concat(nameCamel, ".builder.ts"), results.files);
|
|
109
107
|
_context.next = 14;
|
|
110
108
|
return this.Service('import').importDefault(builderFile);
|
|
111
109
|
|
|
112
110
|
case 14:
|
|
113
111
|
builder = _context.sent;
|
|
114
112
|
|
|
115
|
-
|
|
113
|
+
_testUtils.assert.isEqual(builder.moduleToImportFromWhenRemote, remoteModule); //@ts-ignore
|
|
116
114
|
|
|
117
115
|
|
|
118
116
|
this["builder".concat(count)] = builder;
|
|
119
|
-
schemaFile =
|
|
117
|
+
schemaFile = _test["default"].assertFileByNameInGeneratedFiles("".concat(nameCamel, ".schema.ts"), results.files);
|
|
120
118
|
_context.next = 20;
|
|
121
119
|
return this.Service('import').importDefault(schemaFile);
|
|
122
120
|
|
|
123
121
|
case 20:
|
|
124
122
|
schema = _context.sent;
|
|
125
123
|
|
|
126
|
-
|
|
124
|
+
_testUtils.assert.isEqual(schema.moduleToImportFromWhenRemote, remoteModule); //@ts-ignore
|
|
127
125
|
|
|
128
126
|
|
|
129
127
|
this["schema".concat(count)] = schema; //@ts-ignore
|
|
@@ -163,9 +161,9 @@ var SettingUpSchemasForModuleDistributionTest = (_dec = (0, _test.test)('can spe
|
|
|
163
161
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
164
162
|
templateItem = _step.value;
|
|
165
163
|
|
|
166
|
-
|
|
164
|
+
_testUtils.assert.isEqual(templateItem.schema.moduleToImportFromWhenRemote, REMOTE_MODULE);
|
|
167
165
|
|
|
168
|
-
|
|
166
|
+
_testUtils.assert.isEqual(templateItem.importFrom, REMOTE_MODULE);
|
|
169
167
|
}
|
|
170
168
|
} catch (err) {
|
|
171
169
|
_iterator.e(err);
|
|
@@ -204,9 +202,9 @@ var SettingUpSchemasForModuleDistributionTest = (_dec = (0, _test.test)('can spe
|
|
|
204
202
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
205
203
|
templateItem = _step2.value;
|
|
206
204
|
|
|
207
|
-
|
|
205
|
+
_testUtils.assert.isEqual(templateItem.schema.moduleToImportFromWhenRemote, REMOTE_MODULE);
|
|
208
206
|
|
|
209
|
-
|
|
207
|
+
_testUtils.assert.isFalse('importFrom' in templateItem);
|
|
210
208
|
}
|
|
211
209
|
} catch (err) {
|
|
212
210
|
_iterator2.e(err);
|
|
@@ -277,7 +275,7 @@ var SettingUpSchemasForModuleDistributionTest = (_dec = (0, _test.test)('can spe
|
|
|
277
275
|
case 10:
|
|
278
276
|
secondToLast = this.ui.invocations[this.ui.invocations.length - 2];
|
|
279
277
|
|
|
280
|
-
|
|
278
|
+
_testUtils.assert.isEqual(secondToLast.options.headline, "Missing ".concat(expectedModules.length, " module").concat(expectedModules.length === 1 ? '' : 's'));
|
|
281
279
|
|
|
282
280
|
_iterator3 = _createForOfIteratorHelper(expectedModules);
|
|
283
281
|
|
|
@@ -285,7 +283,7 @@ var SettingUpSchemasForModuleDistributionTest = (_dec = (0, _test.test)('can spe
|
|
|
285
283
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
286
284
|
_expected = _step3.value;
|
|
287
285
|
|
|
288
|
-
|
|
286
|
+
_testUtils.assert.doesInclude(secondToLast.options.lines, _expected);
|
|
289
287
|
}
|
|
290
288
|
} catch (err) {
|
|
291
289
|
_iterator3.e(err);
|
|
@@ -304,7 +302,7 @@ var SettingUpSchemasForModuleDistributionTest = (_dec = (0, _test.test)('can spe
|
|
|
304
302
|
results = _context5.sent;
|
|
305
303
|
|
|
306
304
|
if (shouldConfirmInstall) {
|
|
307
|
-
|
|
305
|
+
_testUtils.assert.isFalsy(results.errors);
|
|
308
306
|
|
|
309
307
|
pkg = this.Service('pkg');
|
|
310
308
|
_iterator4 = _createForOfIteratorHelper(expectedModules);
|
|
@@ -313,7 +311,7 @@ var SettingUpSchemasForModuleDistributionTest = (_dec = (0, _test.test)('can spe
|
|
|
313
311
|
for (_iterator4.s(); !(_step4 = _iterator4.n()).done;) {
|
|
314
312
|
expected = _step4.value;
|
|
315
313
|
|
|
316
|
-
|
|
314
|
+
_testUtils.assert.isTrue(pkg.isInstalled(expected));
|
|
317
315
|
}
|
|
318
316
|
} catch (err) {
|
|
319
317
|
_iterator4.e(err);
|
|
@@ -321,7 +319,7 @@ var SettingUpSchemasForModuleDistributionTest = (_dec = (0, _test.test)('can spe
|
|
|
321
319
|
_iterator4.f();
|
|
322
320
|
}
|
|
323
321
|
} else {
|
|
324
|
-
|
|
322
|
+
_testUtils.assert.isTruthy(results.errors);
|
|
325
323
|
|
|
326
324
|
_testUtils.errorAssert.assertError(results.errors[0], 'ACTION_CANCELLED');
|
|
327
325
|
}
|
|
@@ -402,8 +400,8 @@ var SettingUpSchemasForModuleDistributionTest = (_dec = (0, _test.test)('can spe
|
|
|
402
400
|
return this.assertCalendarEventSchemaIsImported(results);
|
|
403
401
|
|
|
404
402
|
case 14:
|
|
405
|
-
|
|
406
|
-
return
|
|
403
|
+
_testUtils.assert.doesThrow(function () {
|
|
404
|
+
return _test["default"].assertFileByNameInGeneratedFiles('schemas.types.ts', results.files);
|
|
407
405
|
});
|
|
408
406
|
|
|
409
407
|
case 15:
|
|
@@ -478,14 +476,14 @@ var SettingUpSchemasForModuleDistributionTest = (_dec = (0, _test.test)('can spe
|
|
|
478
476
|
|
|
479
477
|
case 9:
|
|
480
478
|
results = _context9.sent;
|
|
481
|
-
localSchemaFile =
|
|
479
|
+
localSchemaFile = _test["default"].assertFileByNameInGeneratedFiles('localSchema.schema.ts', results.files);
|
|
482
480
|
_context9.next = 13;
|
|
483
481
|
return this.Service('import').importDefault(localSchemaFile);
|
|
484
482
|
|
|
485
483
|
case 13:
|
|
486
484
|
localSchema = _context9.sent;
|
|
487
485
|
|
|
488
|
-
|
|
486
|
+
_testUtils.assert.isEqualDeep(localSchema.importsWhenRemote, importsWhenRemote);
|
|
489
487
|
|
|
490
488
|
_context9.next = 17;
|
|
491
489
|
return this.assertCalendarEventSchemaIsImported(results);
|
|
@@ -542,7 +540,7 @@ var SettingUpSchemasForModuleDistributionTest = (_dec = (0, _test.test)('can spe
|
|
|
542
540
|
case 9:
|
|
543
541
|
this.schema1 = _context10.sent;
|
|
544
542
|
|
|
545
|
-
|
|
543
|
+
_testUtils.assert.isEqual(this.schema1.moduleToImportFromWhenRemote, REMOTE_MODULE);
|
|
546
544
|
|
|
547
545
|
case 11:
|
|
548
546
|
case "end":
|
|
@@ -621,7 +619,7 @@ var SettingUpSchemasForModuleDistributionTest = (_dec = (0, _test.test)('can spe
|
|
|
621
619
|
TestSkill: [completedFormBuilder, builderForm]
|
|
622
620
|
});
|
|
623
621
|
|
|
624
|
-
|
|
622
|
+
_testUtils.assert.isFalsy((_results$find = results.find(function (r) {
|
|
625
623
|
return r.id === 'builtForm';
|
|
626
624
|
})) === null || _results$find === void 0 ? void 0 : (_results$find$schema$ = _results$find.schema.fields) === null || _results$find$schema$ === void 0 ? void 0 : (_results$find$schema$2 = _results$find$schema$.completedFormBuilder) === null || _results$find$schema$2 === void 0 ? void 0 : (_results$find$schema$3 = _results$find$schema$2.options) === null || _results$find$schema$3 === void 0 ? void 0 : (_results$find$schema$4 = _results$find$schema$3.schemaIds) === null || _results$find$schema$4 === void 0 ? void 0 : (_results$find$schema$5 = _results$find$schema$4[0]) === null || _results$find$schema$5 === void 0 ? void 0 : _results$find$schema$5.moduleToImportFromWhenRemote);
|
|
627
625
|
|
|
@@ -724,9 +722,9 @@ var SettingUpSchemasForModuleDistributionTest = (_dec = (0, _test.test)('can spe
|
|
|
724
722
|
case 8:
|
|
725
723
|
results = _context13.sent;
|
|
726
724
|
|
|
727
|
-
|
|
725
|
+
_testUtils.assert.isFalsy(results.errors);
|
|
728
726
|
|
|
729
|
-
schemaTypesFile =
|
|
727
|
+
schemaTypesFile = _test["default"].assertFileByNameInGeneratedFiles('schemas.types.ts', results.files);
|
|
730
728
|
_context13.next = 13;
|
|
731
729
|
return this.Service('typeChecker').check(schemaTypesFile);
|
|
732
730
|
|
|
@@ -762,7 +760,7 @@ var SettingUpSchemasForModuleDistributionTest = (_dec = (0, _test.test)('can spe
|
|
|
762
760
|
while (1) {
|
|
763
761
|
switch (_context14.prev = _context14.next) {
|
|
764
762
|
case 0:
|
|
765
|
-
schemaFile =
|
|
763
|
+
schemaFile = _test["default"].assertFileByNameInGeneratedFiles(fileName, results.files);
|
|
766
764
|
_context14.next = 3;
|
|
767
765
|
return this.Service('import').importDefault(schemaFile);
|
|
768
766
|
|
|
@@ -792,12 +790,12 @@ var SettingUpSchemasForModuleDistributionTest = (_dec = (0, _test.test)('can spe
|
|
|
792
790
|
while (1) {
|
|
793
791
|
switch (_context15.prev = _context15.next) {
|
|
794
792
|
case 0:
|
|
795
|
-
|
|
793
|
+
_testUtils.assert.isFalsy(results.errors);
|
|
796
794
|
|
|
797
|
-
imported =
|
|
795
|
+
imported = _test["default"].assertFileByNameInGeneratedFiles('calendarEvent.schema.ts', results.files);
|
|
798
796
|
calendarEventContents = _spruceSkillUtils.diskUtil.readFile(imported);
|
|
799
797
|
|
|
800
|
-
|
|
798
|
+
_testUtils.assert.isEqual(calendarEventContents.trim(), "export { calendarEventSchema as default } from '@sprucelabs/calendar-utils'");
|
|
801
799
|
|
|
802
800
|
case 4:
|
|
803
801
|
case "end":
|
|
@@ -845,7 +843,7 @@ var SettingUpSchemasForModuleDistributionTest = (_dec = (0, _test.test)('can spe
|
|
|
845
843
|
while (1) {
|
|
846
844
|
switch (_context16.prev = _context16.next) {
|
|
847
845
|
case 0:
|
|
848
|
-
schemaTypesFile =
|
|
846
|
+
schemaTypesFile = _test["default"].assertFileByNameInGeneratedFiles('schemas.types.ts', results.files);
|
|
849
847
|
typesContent = "import '".concat(REMOTE_MODULE, "'\n\n").concat(_spruceSkillUtils.diskUtil.readFile(schemaTypesFile));
|
|
850
848
|
|
|
851
849
|
_spruceSkillUtils.diskUtil.writeFile(schemaTypesFile, typesContent);
|