@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OnboardingScriptPlayer.test.js","names":["OnboardingScriptPlayerTest","test","store","Store","commandExecuterCommands","player","ScriptPlayer","ui","onboardingStore","commandExecuter","command","push","assert","isTruthy","playScript","doesInclude","invocations","options","message","renderLine","doesThrowAsync","playScriptWithKey","loadScript","redirect","mode","getMode","isEqual","executeCommand","isLength","AbstractCliTest"],"sources":["../../../src/__tests__/implementation/OnboardingScriptPlayer.test.ts"],"sourcesContent":["import { test, assert } from '@sprucelabs/test'\nimport ScriptPlayer from '../../features/onboard/ScriptPlayer'\nimport AbstractCliTest from '../../tests/AbstractCliTest'\n\nexport default class OnboardingScriptPlayerTest extends AbstractCliTest {\n\tprivate static player: ScriptPlayer\n\tprivate static commandExecuterCommands: string[] = []\n\n\tprotected static async beforeEach() {\n\t\tawait super.beforeEach()\n\n\t\tconst store = this.Store('onboarding')\n\n\t\tthis.commandExecuterCommands = []\n\t\tthis.player = new ScriptPlayer({\n\t\t\tui: this.ui,\n\t\t\tonboardingStore: store,\n\t\t\tcommandExecuter: async (command: string) => {\n\t\t\t\tthis.commandExecuterCommands.push(command)\n\t\t\t},\n\t\t})\n\t}\n\n\t@test()\n\tprotected static canCreateScriptPlayer() {\n\t\tassert.isTruthy(this.player)\n\t}\n\n\t@test()\n\tprotected static async canPlayTextScript() {\n\t\tawait this.player.playScript(['Hey there!'])\n\t\tassert.doesInclude(this.ui.invocations, {\n\t\t\tcommand: 'renderLine',\n\t\t\toptions: { message: 'Hey there!' },\n\t\t})\n\t}\n\n\t@test()\n\tprotected static async canPlayCallback() {\n\t\tawait this.player.playScript([\n\t\t\t(player) => {\n\t\t\t\tplayer.ui.renderLine('hello world')\n\t\t\t},\n\t\t])\n\n\t\tassert.doesInclude(this.ui.invocations, {\n\t\t\tcommand: 'renderLine',\n\t\t\toptions: { message: 'hello world' },\n\t\t})\n\t}\n\n\t@test()\n\tprotected static async canPlayAsyncCallback() {\n\t\tawait this.player.playScript([\n\t\t\tasync (player) => {\n\t\t\t\tplayer.ui.renderLine('hello async world')\n\t\t\t},\n\t\t])\n\n\t\tassert.doesInclude(this.ui.invocations, {\n\t\t\tcommand: 'renderLine',\n\t\t\toptions: { message: 'hello async world' },\n\t\t})\n\t}\n\n\t@test()\n\tprotected static async throwsWithBadScriptKey() {\n\t\tawait assert.doesThrowAsync(() =>\n\t\t\tthis.player.playScriptWithKey('not-found')\n\t\t)\n\t}\n\n\t@test()\n\tprotected static async canLoadScriptsByKey() {\n\t\tthis.player.loadScript('first', ['hey there', 'how are you'])\n\t\tthis.player.loadScript('second', ['hey there 2', 'how are you 2'])\n\n\t\tawait this.player.playScriptWithKey('first')\n\n\t\tassert.doesInclude(this.ui.invocations, {\n\t\t\tcommand: 'renderLine',\n\t\t\toptions: { message: 'hey there' },\n\t\t})\n\n\t\tassert.doesInclude(this.ui.invocations, {\n\t\t\tcommand: 'renderLine',\n\t\t\toptions: { message: 'how are you' },\n\t\t})\n\n\t\tawait this.player.playScriptWithKey('second')\n\n\t\tassert.doesInclude(this.ui.invocations, {\n\t\t\tcommand: 'renderLine',\n\t\t\toptions: { message: 'hey there 2' },\n\t\t})\n\n\t\tassert.doesInclude(this.ui.invocations, {\n\t\t\tcommand: 'renderLine',\n\t\t\toptions: { message: 'how are you 2' },\n\t\t})\n\t}\n\n\t@test()\n\tprotected static async onScriptCanRedirectToAnother() {\n\t\tthis.player.loadScript('first', [\n\t\t\t'hey there',\n\t\t\t'how are you',\n\t\t\tScriptPlayer.redirect('second'),\n\t\t])\n\n\t\tthis.player.loadScript('second', [\n\t\t\t'hey there 2',\n\t\t\t'how are you 2',\n\t\t\t(player) => player.redirect('third'),\n\t\t])\n\n\t\tthis.player.loadScript('third', ['hey there 3', 'how are you 3'])\n\n\t\tawait this.player.playScriptWithKey('first')\n\n\t\tassert.doesInclude(this.ui.invocations, {\n\t\t\tcommand: 'renderLine',\n\t\t\toptions: { message: 'hey there 2' },\n\t\t})\n\n\t\tassert.doesInclude(this.ui.invocations, {\n\t\t\tcommand: 'renderLine',\n\t\t\toptions: { message: 'how are you 2' },\n\t\t})\n\n\t\tassert.doesInclude(this.ui.invocations, {\n\t\t\tcommand: 'renderLine',\n\t\t\toptions: { message: 'how are you 3' },\n\t\t})\n\t}\n\n\t@test()\n\tprotected static async scriptsCanAccessOnboardingStore() {\n\t\tawait this.player.playScript([\n\t\t\tasync (player) => {\n\t\t\t\tconst mode = player.onboardingStore.getMode()\n\t\t\t\tassert.isEqual(mode, 'off')\n\t\t\t},\n\t\t])\n\t}\n\n\t@test()\n\tprotected static async canInvokeCommand() {\n\t\tawait this.player.playScript([\n\t\t\tasync (player) => {\n\t\t\t\tawait player.executeCommand('test.command')\n\t\t\t},\n\t\t])\n\n\t\tassert.isLength(this.commandExecuterCommands, 1)\n\t\tassert.isEqual(this.commandExecuterCommands[0], 'test.command')\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;;;;;;;IAEqBA,0B,WAmBnB,IAAAC,
|
|
1
|
+
{"version":3,"file":"OnboardingScriptPlayer.test.js","names":["OnboardingScriptPlayerTest","test","store","Store","commandExecuterCommands","player","ScriptPlayer","ui","onboardingStore","commandExecuter","command","push","assert","isTruthy","playScript","doesInclude","invocations","options","message","renderLine","doesThrowAsync","playScriptWithKey","loadScript","redirect","mode","getMode","isEqual","executeCommand","isLength","AbstractCliTest"],"sources":["../../../src/__tests__/implementation/OnboardingScriptPlayer.test.ts"],"sourcesContent":["import { test, assert } from '@sprucelabs/test-utils'\nimport ScriptPlayer from '../../features/onboard/ScriptPlayer'\nimport AbstractCliTest from '../../tests/AbstractCliTest'\n\nexport default class OnboardingScriptPlayerTest extends AbstractCliTest {\n\tprivate static player: ScriptPlayer\n\tprivate static commandExecuterCommands: string[] = []\n\n\tprotected static async beforeEach() {\n\t\tawait super.beforeEach()\n\n\t\tconst store = this.Store('onboarding')\n\n\t\tthis.commandExecuterCommands = []\n\t\tthis.player = new ScriptPlayer({\n\t\t\tui: this.ui,\n\t\t\tonboardingStore: store,\n\t\t\tcommandExecuter: async (command: string) => {\n\t\t\t\tthis.commandExecuterCommands.push(command)\n\t\t\t},\n\t\t})\n\t}\n\n\t@test()\n\tprotected static canCreateScriptPlayer() {\n\t\tassert.isTruthy(this.player)\n\t}\n\n\t@test()\n\tprotected static async canPlayTextScript() {\n\t\tawait this.player.playScript(['Hey there!'])\n\t\tassert.doesInclude(this.ui.invocations, {\n\t\t\tcommand: 'renderLine',\n\t\t\toptions: { message: 'Hey there!' },\n\t\t})\n\t}\n\n\t@test()\n\tprotected static async canPlayCallback() {\n\t\tawait this.player.playScript([\n\t\t\t(player) => {\n\t\t\t\tplayer.ui.renderLine('hello world')\n\t\t\t},\n\t\t])\n\n\t\tassert.doesInclude(this.ui.invocations, {\n\t\t\tcommand: 'renderLine',\n\t\t\toptions: { message: 'hello world' },\n\t\t})\n\t}\n\n\t@test()\n\tprotected static async canPlayAsyncCallback() {\n\t\tawait this.player.playScript([\n\t\t\tasync (player) => {\n\t\t\t\tplayer.ui.renderLine('hello async world')\n\t\t\t},\n\t\t])\n\n\t\tassert.doesInclude(this.ui.invocations, {\n\t\t\tcommand: 'renderLine',\n\t\t\toptions: { message: 'hello async world' },\n\t\t})\n\t}\n\n\t@test()\n\tprotected static async throwsWithBadScriptKey() {\n\t\tawait assert.doesThrowAsync(() =>\n\t\t\tthis.player.playScriptWithKey('not-found')\n\t\t)\n\t}\n\n\t@test()\n\tprotected static async canLoadScriptsByKey() {\n\t\tthis.player.loadScript('first', ['hey there', 'how are you'])\n\t\tthis.player.loadScript('second', ['hey there 2', 'how are you 2'])\n\n\t\tawait this.player.playScriptWithKey('first')\n\n\t\tassert.doesInclude(this.ui.invocations, {\n\t\t\tcommand: 'renderLine',\n\t\t\toptions: { message: 'hey there' },\n\t\t})\n\n\t\tassert.doesInclude(this.ui.invocations, {\n\t\t\tcommand: 'renderLine',\n\t\t\toptions: { message: 'how are you' },\n\t\t})\n\n\t\tawait this.player.playScriptWithKey('second')\n\n\t\tassert.doesInclude(this.ui.invocations, {\n\t\t\tcommand: 'renderLine',\n\t\t\toptions: { message: 'hey there 2' },\n\t\t})\n\n\t\tassert.doesInclude(this.ui.invocations, {\n\t\t\tcommand: 'renderLine',\n\t\t\toptions: { message: 'how are you 2' },\n\t\t})\n\t}\n\n\t@test()\n\tprotected static async onScriptCanRedirectToAnother() {\n\t\tthis.player.loadScript('first', [\n\t\t\t'hey there',\n\t\t\t'how are you',\n\t\t\tScriptPlayer.redirect('second'),\n\t\t])\n\n\t\tthis.player.loadScript('second', [\n\t\t\t'hey there 2',\n\t\t\t'how are you 2',\n\t\t\t(player) => player.redirect('third'),\n\t\t])\n\n\t\tthis.player.loadScript('third', ['hey there 3', 'how are you 3'])\n\n\t\tawait this.player.playScriptWithKey('first')\n\n\t\tassert.doesInclude(this.ui.invocations, {\n\t\t\tcommand: 'renderLine',\n\t\t\toptions: { message: 'hey there 2' },\n\t\t})\n\n\t\tassert.doesInclude(this.ui.invocations, {\n\t\t\tcommand: 'renderLine',\n\t\t\toptions: { message: 'how are you 2' },\n\t\t})\n\n\t\tassert.doesInclude(this.ui.invocations, {\n\t\t\tcommand: 'renderLine',\n\t\t\toptions: { message: 'how are you 3' },\n\t\t})\n\t}\n\n\t@test()\n\tprotected static async scriptsCanAccessOnboardingStore() {\n\t\tawait this.player.playScript([\n\t\t\tasync (player) => {\n\t\t\t\tconst mode = player.onboardingStore.getMode()\n\t\t\t\tassert.isEqual(mode, 'off')\n\t\t\t},\n\t\t])\n\t}\n\n\t@test()\n\tprotected static async canInvokeCommand() {\n\t\tawait this.player.playScript([\n\t\t\tasync (player) => {\n\t\t\t\tawait player.executeCommand('test.command')\n\t\t\t},\n\t\t])\n\n\t\tassert.isLength(this.commandExecuterCommands, 1)\n\t\tassert.isEqual(this.commandExecuterCommands[0], 'test.command')\n\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;0BAAA;4BAAA;wBAAA;sBAAA;oBAAA;kBAAA,CAD4B;;kBAAA;oBAAA;kBAAA;gBAAA,IAAvB,CAFP;;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,C;;;;;;;;;;;4GAUA;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA,OAEO,KAAKnB,MAAL,CAAYS,UAAZ,CAAuB;kBAAA,0FAC5B,mBAAOT,MAAP;oBAAA;sBAAA;wBAAA;0BAAA;4BAAA;4BAAA,OACOA,MAAM,CAACsB,cAAP,CAAsB,cAAtB,CADP;;0BAAA;0BAAA;4BAAA;wBAAA;sBAAA;oBAAA;kBAAA,CAD4B;;kBAAA;oBAAA;kBAAA;gBAAA,IAAvB,CAFP;;cAAA;gBAQCf,iBAAA,CAAOgB,QAAP,CAAgB,KAAKxB,uBAArB,EAA8C,CAA9C;;gBACAQ,iBAAA,CAAOc,OAAP,CAAe,KAAKtB,uBAAL,CAA6B,CAA7B,CAAf,EAAgD,cAAhD;;cATD;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,C;;;;;;;;;;EA9IuDyB,4B,qIAEJ,E"}
|
|
@@ -27,7 +27,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
27
27
|
|
|
28
28
|
var _applyDecoratedDescriptor2 = _interopRequireDefault(require("@babel/runtime/helpers/applyDecoratedDescriptor"));
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _testUtils = require("@sprucelabs/test-utils");
|
|
31
31
|
|
|
32
32
|
var _feature = _interopRequireDefault(require("../../features/feature.utilities"));
|
|
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 OnboardingStoreTest = (_dec = (0,
|
|
42
|
+
var OnboardingStoreTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.test)(), _dec3 = (0, _testUtils.test)(), _dec4 = (0, _testUtils.test)(), _dec5 = (0, _testUtils.test)(), _dec6 = (0, _testUtils.test)(), _dec7 = (0, _testUtils.test)(), _dec8 = (0, _testUtils.test)(), _dec9 = (0, _testUtils.test)(), _dec10 = (0, _testUtils.test)(), _dec11 = (0, _testUtils.test)(), (_class = (_class2 = /*#__PURE__*/function (_AbstractCliTest) {
|
|
43
43
|
(0, _inherits2["default"])(OnboardingStoreTest, _AbstractCliTest);
|
|
44
44
|
|
|
45
45
|
var _super = _createSuper(OnboardingStoreTest);
|
|
@@ -88,28 +88,28 @@ var OnboardingStoreTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(),
|
|
|
88
88
|
}, {
|
|
89
89
|
key: "canGetStore",
|
|
90
90
|
value: function canGetStore() {
|
|
91
|
-
|
|
91
|
+
_testUtils.assert.isTruthy(this.store);
|
|
92
92
|
}
|
|
93
93
|
}, {
|
|
94
94
|
key: "startsAsOff",
|
|
95
95
|
value: function startsAsOff() {
|
|
96
96
|
var mode = this.store.getMode();
|
|
97
97
|
|
|
98
|
-
|
|
98
|
+
_testUtils.assert.isEqual(mode, 'off');
|
|
99
99
|
}
|
|
100
100
|
}, {
|
|
101
101
|
key: "canSetToShortMode",
|
|
102
102
|
value: function canSetToShortMode() {
|
|
103
103
|
this.store.setMode('short');
|
|
104
104
|
|
|
105
|
-
|
|
105
|
+
_testUtils.assert.isEqual(this.store.getMode(), 'short');
|
|
106
106
|
}
|
|
107
107
|
}, {
|
|
108
108
|
key: "canSetToImmersiveMode",
|
|
109
109
|
value: function canSetToImmersiveMode() {
|
|
110
110
|
this.store.setMode('immersive');
|
|
111
111
|
|
|
112
|
-
|
|
112
|
+
_testUtils.assert.isEqual(this.store.getMode(), 'immersive');
|
|
113
113
|
}
|
|
114
114
|
}, {
|
|
115
115
|
key: "remembersModeBetweenBoots",
|
|
@@ -117,7 +117,7 @@ var OnboardingStoreTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(),
|
|
|
117
117
|
this.store.setMode('immersive');
|
|
118
118
|
var newStore = this.OnboardingStore();
|
|
119
119
|
|
|
120
|
-
|
|
120
|
+
_testUtils.assert.isEqual(newStore.getMode(), 'immersive');
|
|
121
121
|
}
|
|
122
122
|
}, {
|
|
123
123
|
key: "remembersStageBetweenBoots",
|
|
@@ -132,7 +132,7 @@ var OnboardingStoreTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(),
|
|
|
132
132
|
this.store.setStage(stage);
|
|
133
133
|
newStore = this.OnboardingStore();
|
|
134
134
|
|
|
135
|
-
|
|
135
|
+
_testUtils.assert.isEqual(newStore.getStage(), stage);
|
|
136
136
|
|
|
137
137
|
case 4:
|
|
138
138
|
case "end":
|
|
@@ -155,14 +155,14 @@ var OnboardingStoreTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(),
|
|
|
155
155
|
var store2 = this.OnboardingStore();
|
|
156
156
|
store1.setMode('immersive');
|
|
157
157
|
|
|
158
|
-
|
|
158
|
+
_testUtils.assert.isEqual(store2.getMode(), store1.getMode());
|
|
159
159
|
}
|
|
160
160
|
}, {
|
|
161
161
|
key: "stageIsNotSetToStart",
|
|
162
162
|
value: function stageIsNotSetToStart() {
|
|
163
163
|
var currentStage = this.store.getStage();
|
|
164
164
|
|
|
165
|
-
|
|
165
|
+
_testUtils.assert.isFalsy(currentStage);
|
|
166
166
|
}
|
|
167
167
|
}, {
|
|
168
168
|
key: "stageCanBeSet",
|
|
@@ -170,7 +170,7 @@ var OnboardingStoreTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(),
|
|
|
170
170
|
this.store.setStage('test');
|
|
171
171
|
var stage = this.store.getStage();
|
|
172
172
|
|
|
173
|
-
|
|
173
|
+
_testUtils.assert.isEqual(stage, 'test');
|
|
174
174
|
}
|
|
175
175
|
}, {
|
|
176
176
|
key: "canBeReset",
|
|
@@ -179,9 +179,9 @@ var OnboardingStoreTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(),
|
|
|
179
179
|
this.store.reset();
|
|
180
180
|
var stage = this.store.getStage();
|
|
181
181
|
|
|
182
|
-
|
|
182
|
+
_testUtils.assert.isFalsy(stage);
|
|
183
183
|
|
|
184
|
-
|
|
184
|
+
_testUtils.assert.isEqual(this.store.getMode(), 'off');
|
|
185
185
|
}
|
|
186
186
|
}, {
|
|
187
187
|
key: "cantSetBadStage",
|
|
@@ -189,7 +189,7 @@ var OnboardingStoreTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(),
|
|
|
189
189
|
var _this = this;
|
|
190
190
|
|
|
191
191
|
//@ts-ignore
|
|
192
|
-
|
|
192
|
+
_testUtils.assert.doesThrow(function () {
|
|
193
193
|
return _this.store.setStage('taco');
|
|
194
194
|
});
|
|
195
195
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OnboardingStore.test.js","names":["OnboardingStoreTest","test","store","OnboardingStore","Store","assert","isTruthy","mode","getMode","isEqual","setMode","newStore","stage","featuresUtil","generateCommand","setStage","getStage","store1","store2","currentStage","isFalsy","reset","doesThrow","AbstractCliTest"],"sources":["../../../src/__tests__/implementation/OnboardingStore.test.ts"],"sourcesContent":["import { test, assert } from '@sprucelabs/test'\nimport featuresUtil from '../../features/feature.utilities'\nimport OnboardingStore from '../../features/onboard/stores/OnboardingStore'\nimport AbstractCliTest from '../../tests/AbstractCliTest'\n\nexport default class OnboardingStoreTest extends AbstractCliTest {\n\tprivate static store: OnboardingStore\n\n\tprotected static async beforeEach() {\n\t\tawait super.beforeEach()\n\n\t\tconst store = this.OnboardingStore()\n\t\tthis.store = store\n\t}\n\n\tprivate static OnboardingStore() {\n\t\tconst store = this.Store('onboarding')\n\t\treturn store\n\t}\n\n\t@test()\n\tprotected static canGetStore() {\n\t\tassert.isTruthy(this.store)\n\t}\n\n\t@test()\n\tprotected static startsAsOff() {\n\t\tconst mode = this.store.getMode()\n\t\tassert.isEqual(mode, 'off')\n\t}\n\n\t@test()\n\tprotected static canSetToShortMode() {\n\t\tthis.store.setMode('short')\n\t\tassert.isEqual(this.store.getMode(), 'short')\n\t}\n\n\t@test()\n\tprotected static canSetToImmersiveMode() {\n\t\tthis.store.setMode('immersive')\n\t\tassert.isEqual(this.store.getMode(), 'immersive')\n\t}\n\n\t@test()\n\tprotected static remembersModeBetweenBoots() {\n\t\tthis.store.setMode('immersive')\n\n\t\tconst newStore = this.OnboardingStore()\n\t\tassert.isEqual(newStore.getMode(), 'immersive')\n\t}\n\n\t@test()\n\tprotected static async remembersStageBetweenBoots() {\n\t\tconst stage = featuresUtil.generateCommand('test', 'test') as 'test'\n\n\t\tthis.store.setStage(stage)\n\n\t\tconst newStore = this.OnboardingStore()\n\t\tassert.isEqual(newStore.getStage(), stage)\n\t}\n\n\t@test()\n\tprotected static valuesSharedBetween2Instances() {\n\t\tconst store1 = this.OnboardingStore()\n\t\tconst store2 = this.OnboardingStore()\n\n\t\tstore1.setMode('immersive')\n\t\tassert.isEqual(store2.getMode(), store1.getMode())\n\t}\n\n\t@test()\n\tprotected static stageIsNotSetToStart() {\n\t\tconst currentStage = this.store.getStage()\n\t\tassert.isFalsy(currentStage)\n\t}\n\n\t@test()\n\tprotected static stageCanBeSet() {\n\t\tthis.store.setStage('test')\n\t\tconst stage = this.store.getStage()\n\t\tassert.isEqual(stage, 'test')\n\t}\n\n\t@test()\n\tprotected static canBeReset() {\n\t\tthis.store.setStage('test')\n\t\tthis.store.reset()\n\n\t\tconst stage = this.store.getStage()\n\n\t\tassert.isFalsy(stage)\n\t\tassert.isEqual(this.store.getMode(), 'off')\n\t}\n\n\t@test()\n\tprotected static cantSetBadStage() {\n\t\t//@ts-ignore\n\t\tassert.doesThrow(() => this.store.setStage('taco'))\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AAEA;;;;;;;;IAEqBA,mB,WAenB,IAAAC,
|
|
1
|
+
{"version":3,"file":"OnboardingStore.test.js","names":["OnboardingStoreTest","test","store","OnboardingStore","Store","assert","isTruthy","mode","getMode","isEqual","setMode","newStore","stage","featuresUtil","generateCommand","setStage","getStage","store1","store2","currentStage","isFalsy","reset","doesThrow","AbstractCliTest"],"sources":["../../../src/__tests__/implementation/OnboardingStore.test.ts"],"sourcesContent":["import { test, assert } from '@sprucelabs/test-utils'\nimport featuresUtil from '../../features/feature.utilities'\nimport OnboardingStore from '../../features/onboard/stores/OnboardingStore'\nimport AbstractCliTest from '../../tests/AbstractCliTest'\n\nexport default class OnboardingStoreTest extends AbstractCliTest {\n\tprivate static store: OnboardingStore\n\n\tprotected static async beforeEach() {\n\t\tawait super.beforeEach()\n\n\t\tconst store = this.OnboardingStore()\n\t\tthis.store = store\n\t}\n\n\tprivate static OnboardingStore() {\n\t\tconst store = this.Store('onboarding')\n\t\treturn store\n\t}\n\n\t@test()\n\tprotected static canGetStore() {\n\t\tassert.isTruthy(this.store)\n\t}\n\n\t@test()\n\tprotected static startsAsOff() {\n\t\tconst mode = this.store.getMode()\n\t\tassert.isEqual(mode, 'off')\n\t}\n\n\t@test()\n\tprotected static canSetToShortMode() {\n\t\tthis.store.setMode('short')\n\t\tassert.isEqual(this.store.getMode(), 'short')\n\t}\n\n\t@test()\n\tprotected static canSetToImmersiveMode() {\n\t\tthis.store.setMode('immersive')\n\t\tassert.isEqual(this.store.getMode(), 'immersive')\n\t}\n\n\t@test()\n\tprotected static remembersModeBetweenBoots() {\n\t\tthis.store.setMode('immersive')\n\n\t\tconst newStore = this.OnboardingStore()\n\t\tassert.isEqual(newStore.getMode(), 'immersive')\n\t}\n\n\t@test()\n\tprotected static async remembersStageBetweenBoots() {\n\t\tconst stage = featuresUtil.generateCommand('test', 'test') as 'test'\n\n\t\tthis.store.setStage(stage)\n\n\t\tconst newStore = this.OnboardingStore()\n\t\tassert.isEqual(newStore.getStage(), stage)\n\t}\n\n\t@test()\n\tprotected static valuesSharedBetween2Instances() {\n\t\tconst store1 = this.OnboardingStore()\n\t\tconst store2 = this.OnboardingStore()\n\n\t\tstore1.setMode('immersive')\n\t\tassert.isEqual(store2.getMode(), store1.getMode())\n\t}\n\n\t@test()\n\tprotected static stageIsNotSetToStart() {\n\t\tconst currentStage = this.store.getStage()\n\t\tassert.isFalsy(currentStage)\n\t}\n\n\t@test()\n\tprotected static stageCanBeSet() {\n\t\tthis.store.setStage('test')\n\t\tconst stage = this.store.getStage()\n\t\tassert.isEqual(stage, 'test')\n\t}\n\n\t@test()\n\tprotected static canBeReset() {\n\t\tthis.store.setStage('test')\n\t\tthis.store.reset()\n\n\t\tconst stage = this.store.getStage()\n\n\t\tassert.isFalsy(stage)\n\t\tassert.isEqual(this.store.getMode(), 'off')\n\t}\n\n\t@test()\n\tprotected static cantSetBadStage() {\n\t\t//@ts-ignore\n\t\tassert.doesThrow(() => this.store.setStage('taco'))\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AAEA;;;;;;;;IAEqBA,mB,WAenB,IAAAC,eAAA,G,UAKA,IAAAA,eAAA,G,UAMA,IAAAA,eAAA,G,UAMA,IAAAA,eAAA,G,UAMA,IAAAA,eAAA,G,UAQA,IAAAA,eAAA,G,UAUA,IAAAA,eAAA,G,UASA,IAAAA,eAAA,G,UAMA,IAAAA,eAAA,G,WAOA,IAAAA,eAAA,G,WAWA,IAAAA,eAAA,G;;;;;;;;;;;;;sGAtFD;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA;;cAAA;gBAGOC,KAHP,GAGe,KAAKC,eAAL,EAHf;gBAIC,KAAKD,KAAL,GAAaA,KAAb;;cAJD;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,C;;;;;;;;;;WAOA,2BAAiC;MAChC,IAAMA,KAAK,GAAG,KAAKE,KAAL,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AAP,CAAeS,MAAM,CAACV,OAAP,EAAf,EAAiCS,MAAM,CAACT,OAAP,EAAjC;IACA;;;WAED,gCACwC;MACvC,IAAMW,YAAY,GAAG,KAAKjB,KAAL,CAAWc,QAAX,EAArB;;MACAX,iBAAA,CAAOe,OAAP,CAAeD,YAAf;IACA;;;WAED,yBACiC;MAChC,KAAKjB,KAAL,CAAWa,QAAX,CAAoB,MAApB;MACA,IAAMH,KAAK,GAAG,KAAKV,KAAL,CAAWc,QAAX,EAAd;;MACAX,iBAAA,CAAOI,OAAP,CAAeG,KAAf,EAAsB,MAAtB;IACA;;;WAED,sBAC8B;MAC7B,KAAKV,KAAL,CAAWa,QAAX,CAAoB,MAApB;MACA,KAAKb,KAAL,CAAWmB,KAAX;MAEA,IAAMT,KAAK,GAAG,KAAKV,KAAL,CAAWc,QAAX,EAAd;;MAEAX,iBAAA,CAAOe,OAAP,CAAeR,KAAf;;MACAP,iBAAA,CAAOI,OAAP,CAAe,KAAKP,KAAL,CAAWM,OAAX,EAAf,EAAqC,KAArC;IACA;;;WAED,2BACmC;MAAA;;MAClC;MACAH,iBAAA,CAAOiB,SAAP,CAAiB;QAAA,OAAM,KAAI,CAACpB,KAAL,CAAWa,QAAX,CAAoB,MAApB,CAAN;MAAA,CAAjB;IACA;;;EA7F+CQ,4B"}
|
|
@@ -23,7 +23,7 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
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 _AbstractCliTest2 = _interopRequireDefault(require("../../tests/AbstractCliTest"));
|
|
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 OrganizationStoreTest = (_dec = (0,
|
|
36
|
+
var OrganizationStoreTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.test)(), _dec3 = (0, _testUtils.test)(), _dec4 = (0, _testUtils.test)(), _dec5 = (0, _testUtils.test)(), (_class = /*#__PURE__*/function (_AbstractCliTest) {
|
|
37
37
|
(0, _inherits2["default"])(OrganizationStoreTest, _AbstractCliTest);
|
|
38
38
|
|
|
39
39
|
var _super = _createSuper(OrganizationStoreTest);
|
|
@@ -51,7 +51,7 @@ var OrganizationStoreTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)()
|
|
|
51
51
|
while (1) {
|
|
52
52
|
switch (_context.prev = _context.next) {
|
|
53
53
|
case 0:
|
|
54
|
-
|
|
54
|
+
_testUtils.assert.isTruthy(this.Store('organization'));
|
|
55
55
|
|
|
56
56
|
case 1:
|
|
57
57
|
case "end":
|
|
@@ -100,7 +100,7 @@ var OrganizationStoreTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)()
|
|
|
100
100
|
case 10:
|
|
101
101
|
isInstalled = _context2.sent;
|
|
102
102
|
|
|
103
|
-
|
|
103
|
+
_testUtils.assert.isFalse(isInstalled);
|
|
104
104
|
|
|
105
105
|
case 12:
|
|
106
106
|
case "end":
|
|
@@ -142,7 +142,7 @@ var OrganizationStoreTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)()
|
|
|
142
142
|
case 7:
|
|
143
143
|
myOrgs = _context3.sent;
|
|
144
144
|
|
|
145
|
-
|
|
145
|
+
_testUtils.assert.doesInclude(myOrgs, org);
|
|
146
146
|
|
|
147
147
|
_context3.next = 11;
|
|
148
148
|
return this.Store('organization').deleteOrganization(org.id);
|
|
@@ -154,7 +154,7 @@ var OrganizationStoreTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)()
|
|
|
154
154
|
case 13:
|
|
155
155
|
myOrgs2 = _context3.sent;
|
|
156
156
|
|
|
157
|
-
|
|
157
|
+
_testUtils.assert.doesNotInclude(myOrgs2, org);
|
|
158
158
|
|
|
159
159
|
case 15:
|
|
160
160
|
case "end":
|
|
@@ -207,7 +207,7 @@ var OrganizationStoreTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)()
|
|
|
207
207
|
case 12:
|
|
208
208
|
isInstalled = _context4.sent;
|
|
209
209
|
|
|
210
|
-
|
|
210
|
+
_testUtils.assert.isTrue(isInstalled);
|
|
211
211
|
|
|
212
212
|
case 14:
|
|
213
213
|
case "end":
|
|
@@ -257,11 +257,11 @@ var OrganizationStoreTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)()
|
|
|
257
257
|
case 11:
|
|
258
258
|
orgs = _context5.sent;
|
|
259
259
|
|
|
260
|
-
|
|
260
|
+
_testUtils.assert.isAbove(orgs.length, 1);
|
|
261
261
|
|
|
262
|
-
|
|
262
|
+
_testUtils.assert.doesInclude(orgs, org1);
|
|
263
263
|
|
|
264
|
-
|
|
264
|
+
_testUtils.assert.doesInclude(orgs, org2);
|
|
265
265
|
|
|
266
266
|
case 15:
|
|
267
267
|
case "end":
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OrganizationStore.test.js","names":["OrganizationStoreTest","test","assert","isTruthy","Store","FeatureFixture","installCachedFeatures","getOrganizationFixture","seedDemoOrg","name","org","getSkillFixture","registerCurrentSkill","skill","isSkillInstalledAtOrg","id","isInstalled","isFalse","fetchMyOrganizations","myOrgs","doesInclude","deleteOrganization","myOrgs2","doesNotInclude","installSkillAtOrganization","isTrue","orgFixture","org1","org2","orgs","isAbove","length","AbstractCliTest"],"sources":["../../../src/__tests__/implementation/OrganizationStore.test.ts"],"sourcesContent":["import { test, assert } from '@sprucelabs/test'\nimport AbstractCliTest from '../../tests/AbstractCliTest'\n\nexport default class OrganizationStoreTest extends AbstractCliTest {\n\t@test()\n\tprotected static async canCreateStore() {\n\t\tassert.isTruthy(this.Store('organization'))\n\t}\n\n\t@test()\n\tprotected static async skillIsNotInstalledByDefault() {\n\t\tawait this.FeatureFixture().installCachedFeatures('organizations')\n\n\t\tconst org = await this.getOrganizationFixture().seedDemoOrg({\n\t\t\tname: 'A cool org',\n\t\t})\n\n\t\tconst skill = await this.getSkillFixture().registerCurrentSkill({\n\t\t\tname: 'a new skill',\n\t\t})\n\n\t\tconst isInstalled = await this.Store('organization').isSkillInstalledAtOrg(\n\t\t\tskill.id,\n\t\t\torg.id\n\t\t)\n\n\t\tassert.isFalse(isInstalled)\n\t}\n\n\t@test()\n\tprotected static async canDeleteOrg() {\n\t\tawait this.FeatureFixture().installCachedFeatures('organizations')\n\n\t\tconst org = await this.getOrganizationFixture().seedDemoOrg({\n\t\t\tname: 'A cool org',\n\t\t})\n\n\t\tconst myOrgs = await this.Store('organization').fetchMyOrganizations()\n\n\t\tassert.doesInclude(myOrgs, org)\n\n\t\tawait this.Store('organization').deleteOrganization(org.id)\n\n\t\tconst myOrgs2 = await this.Store('organization').fetchMyOrganizations()\n\n\t\tassert.doesNotInclude(myOrgs2, org)\n\t}\n\n\t@test()\n\tprotected static async installSkill() {\n\t\tawait this.FeatureFixture().installCachedFeatures('organizations')\n\n\t\tconst org = await this.getOrganizationFixture().seedDemoOrg({\n\t\t\tname: 'A cool org',\n\t\t})\n\n\t\tconst skill = await this.getSkillFixture().registerCurrentSkill({\n\t\t\tname: 'a new skill',\n\t\t})\n\n\t\tawait this.Store('organization').installSkillAtOrganization(\n\t\t\tskill.id,\n\t\t\torg.id\n\t\t)\n\n\t\tconst isInstalled = await this.Store('organization').isSkillInstalledAtOrg(\n\t\t\tskill.id,\n\t\t\torg.id\n\t\t)\n\t\tassert.isTrue(isInstalled)\n\t}\n\n\t@test()\n\tprotected static async canGetMyOrgs() {\n\t\tawait this.FeatureFixture().installCachedFeatures('organizations')\n\t\tconst orgFixture = this.getOrganizationFixture()\n\t\tconst org1 = await orgFixture.seedDemoOrg({\n\t\t\tname: 'A cool org',\n\t\t})\n\t\tconst org2 = await orgFixture.seedDemoOrg({\n\t\t\tname: 'A cool org',\n\t\t})\n\n\t\tconst orgs = await this.Store('organization').fetchMyOrganizations()\n\t\tassert.isAbove(orgs.length, 1)\n\t\tassert.doesInclude(orgs, org1)\n\t\tassert.doesInclude(orgs, org2)\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;;;;;;;IAEqBA,qB,WACnB,IAAAC,
|
|
1
|
+
{"version":3,"file":"OrganizationStore.test.js","names":["OrganizationStoreTest","test","assert","isTruthy","Store","FeatureFixture","installCachedFeatures","getOrganizationFixture","seedDemoOrg","name","org","getSkillFixture","registerCurrentSkill","skill","isSkillInstalledAtOrg","id","isInstalled","isFalse","fetchMyOrganizations","myOrgs","doesInclude","deleteOrganization","myOrgs2","doesNotInclude","installSkillAtOrganization","isTrue","orgFixture","org1","org2","orgs","isAbove","length","AbstractCliTest"],"sources":["../../../src/__tests__/implementation/OrganizationStore.test.ts"],"sourcesContent":["import { test, assert } from '@sprucelabs/test-utils'\nimport AbstractCliTest from '../../tests/AbstractCliTest'\n\nexport default class OrganizationStoreTest extends AbstractCliTest {\n\t@test()\n\tprotected static async canCreateStore() {\n\t\tassert.isTruthy(this.Store('organization'))\n\t}\n\n\t@test()\n\tprotected static async skillIsNotInstalledByDefault() {\n\t\tawait this.FeatureFixture().installCachedFeatures('organizations')\n\n\t\tconst org = await this.getOrganizationFixture().seedDemoOrg({\n\t\t\tname: 'A cool org',\n\t\t})\n\n\t\tconst skill = await this.getSkillFixture().registerCurrentSkill({\n\t\t\tname: 'a new skill',\n\t\t})\n\n\t\tconst isInstalled = await this.Store('organization').isSkillInstalledAtOrg(\n\t\t\tskill.id,\n\t\t\torg.id\n\t\t)\n\n\t\tassert.isFalse(isInstalled)\n\t}\n\n\t@test()\n\tprotected static async canDeleteOrg() {\n\t\tawait this.FeatureFixture().installCachedFeatures('organizations')\n\n\t\tconst org = await this.getOrganizationFixture().seedDemoOrg({\n\t\t\tname: 'A cool org',\n\t\t})\n\n\t\tconst myOrgs = await this.Store('organization').fetchMyOrganizations()\n\n\t\tassert.doesInclude(myOrgs, org)\n\n\t\tawait this.Store('organization').deleteOrganization(org.id)\n\n\t\tconst myOrgs2 = await this.Store('organization').fetchMyOrganizations()\n\n\t\tassert.doesNotInclude(myOrgs2, org)\n\t}\n\n\t@test()\n\tprotected static async installSkill() {\n\t\tawait this.FeatureFixture().installCachedFeatures('organizations')\n\n\t\tconst org = await this.getOrganizationFixture().seedDemoOrg({\n\t\t\tname: 'A cool org',\n\t\t})\n\n\t\tconst skill = await this.getSkillFixture().registerCurrentSkill({\n\t\t\tname: 'a new skill',\n\t\t})\n\n\t\tawait this.Store('organization').installSkillAtOrganization(\n\t\t\tskill.id,\n\t\t\torg.id\n\t\t)\n\n\t\tconst isInstalled = await this.Store('organization').isSkillInstalledAtOrg(\n\t\t\tskill.id,\n\t\t\torg.id\n\t\t)\n\t\tassert.isTrue(isInstalled)\n\t}\n\n\t@test()\n\tprotected static async canGetMyOrgs() {\n\t\tawait this.FeatureFixture().installCachedFeatures('organizations')\n\t\tconst orgFixture = this.getOrganizationFixture()\n\t\tconst org1 = await orgFixture.seedDemoOrg({\n\t\t\tname: 'A cool org',\n\t\t})\n\t\tconst org2 = await orgFixture.seedDemoOrg({\n\t\t\tname: 'A cool org',\n\t\t})\n\n\t\tconst orgs = await this.Store('organization').fetchMyOrganizations()\n\t\tassert.isAbove(orgs.length, 1)\n\t\tassert.doesInclude(orgs, org1)\n\t\tassert.doesInclude(orgs, org2)\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;;;;;;;IAEqBA,qB,WACnB,IAAAC,eAAA,G,UAKA,IAAAA,eAAA,G,UAoBA,IAAAA,eAAA,G,U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OAIoBmB,UAAU,CAAClB,WAAX,CAAuB;kBACzCC,IAAI,EAAE;gBADmC,CAAvB,CAJpB;;cAAA;gBAIOkB,IAJP;gBAAA;gBAAA,OAOoBD,UAAU,CAAClB,WAAX,CAAuB;kBACzCC,IAAI,EAAE;gBADmC,CAAvB,CAPpB;;cAAA;gBAOOmB,IAPP;gBAAA;gBAAA,OAWoB,KAAKxB,KAAL,CAAW,cAAX,EAA2Bc,oBAA3B,EAXpB;;cAAA;gBAWOW,IAXP;;gBAYC3B,iBAAA,CAAO4B,OAAP,CAAeD,IAAI,CAACE,MAApB,EAA4B,CAA5B;;gBACA7B,iBAAA,CAAOkB,WAAP,CAAmBS,IAAnB,EAAyBF,IAAzB;;gBACAzB,iBAAA,CAAOkB,WAAP,CAAmBS,IAAnB,EAAyBD,IAAzB;;cAdD;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,C;;;;;;;;;;EArEkDI,4B"}
|
|
@@ -25,7 +25,7 @@ var _applyDecoratedDescriptor2 = _interopRequireDefault(require("@babel/runtime/
|
|
|
25
25
|
|
|
26
26
|
var _spruceSkillUtils = require("@sprucelabs/spruce-skill-utils");
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _testUtils = require("@sprucelabs/test-utils");
|
|
29
29
|
|
|
30
30
|
var _ParentTestFinder = _interopRequireDefault(require("../../features/error/ParentTestFinder"));
|
|
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 ParentTestFinderTest = (_dec = (0,
|
|
40
|
+
var ParentTestFinderTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.test)(), (_class = /*#__PURE__*/function (_AbstractCliTest) {
|
|
41
41
|
(0, _inherits2["default"])(ParentTestFinderTest, _AbstractCliTest);
|
|
42
42
|
|
|
43
43
|
var _super = _createSuper(ParentTestFinderTest);
|
|
@@ -58,7 +58,7 @@ var ParentTestFinderTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(),
|
|
|
58
58
|
case 0:
|
|
59
59
|
finder = new _ParentTestFinder["default"](this.cwd);
|
|
60
60
|
|
|
61
|
-
|
|
61
|
+
_testUtils.assert.isTruthy(finder);
|
|
62
62
|
|
|
63
63
|
case 2:
|
|
64
64
|
case "end":
|
|
@@ -94,14 +94,14 @@ var ParentTestFinderTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(),
|
|
|
94
94
|
case 5:
|
|
95
95
|
matches = _context2.sent;
|
|
96
96
|
|
|
97
|
-
|
|
97
|
+
_testUtils.assert.isLength(matches, 3);
|
|
98
98
|
|
|
99
|
-
|
|
99
|
+
_testUtils.assert.doesInclude(matches, {
|
|
100
100
|
name: 'AbstractTest',
|
|
101
101
|
path: this.resolvePath('src', 'AbstractTest.ts')
|
|
102
102
|
});
|
|
103
103
|
|
|
104
|
-
|
|
104
|
+
_testUtils.assert.doesInclude(matches, {
|
|
105
105
|
name: 'AbstractBananaTestDifferentThanFileName',
|
|
106
106
|
path: this.resolvePath('src', 'deeper', 'AbstractBananaTest.ts')
|
|
107
107
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParentTestFinder.test.js","names":["ParentTestFinderTest","test","finder","ParentTestFinder","cwd","assert","isTruthy","copyTestFiles","testFinder","findAbstractTests","matches","isLength","doesInclude","name","path","resolvePath","source","resolveTestPath","destination","diskUtil","copyDir","AbstractCliTest"],"sources":["../../../src/__tests__/implementation/ParentTestFinder.test.ts"],"sourcesContent":["import { diskUtil } from '@sprucelabs/spruce-skill-utils'\nimport { test, assert } from '@sprucelabs/test'\nimport ParentTestFinder from '../../features/error/ParentTestFinder'\nimport AbstractCliTest from '../../tests/AbstractCliTest'\n\nexport default class ParentTestFinderTest extends AbstractCliTest {\n\t@test()\n\tprotected static async canCreateFinder() {\n\t\tconst finder = new ParentTestFinder(this.cwd)\n\t\tassert.isTruthy(finder)\n\t}\n\n\t@test()\n\tprotected static async canFindAbstractTests() {\n\t\tawait this.copyTestFiles()\n\n\t\tconst testFinder = new ParentTestFinder(this.cwd)\n\t\tconst matches = await testFinder.findAbstractTests()\n\n\t\tassert.isLength(matches, 3)\n\t\tassert.doesInclude(matches, {\n\t\t\tname: 'AbstractTest',\n\t\t\tpath: this.resolvePath('src', 'AbstractTest.ts'),\n\t\t})\n\n\t\tassert.doesInclude(matches, {\n\t\t\tname: 'AbstractBananaTestDifferentThanFileName',\n\t\t\tpath: this.resolvePath('src', 'deeper', 'AbstractBananaTest.ts'),\n\t\t})\n\t}\n\n\tprivate static async copyTestFiles() {\n\t\tconst source = this.resolveTestPath('abstract_tests')\n\t\tconst destination = this.resolvePath('src')\n\n\t\tawait diskUtil.copyDir(source, destination)\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;;;IAEqBA,oB,WACnB,IAAAC,
|
|
1
|
+
{"version":3,"file":"ParentTestFinder.test.js","names":["ParentTestFinderTest","test","finder","ParentTestFinder","cwd","assert","isTruthy","copyTestFiles","testFinder","findAbstractTests","matches","isLength","doesInclude","name","path","resolvePath","source","resolveTestPath","destination","diskUtil","copyDir","AbstractCliTest"],"sources":["../../../src/__tests__/implementation/ParentTestFinder.test.ts"],"sourcesContent":["import { diskUtil } from '@sprucelabs/spruce-skill-utils'\nimport { test, assert } from '@sprucelabs/test-utils'\nimport ParentTestFinder from '../../features/error/ParentTestFinder'\nimport AbstractCliTest from '../../tests/AbstractCliTest'\n\nexport default class ParentTestFinderTest extends AbstractCliTest {\n\t@test()\n\tprotected static async canCreateFinder() {\n\t\tconst finder = new ParentTestFinder(this.cwd)\n\t\tassert.isTruthy(finder)\n\t}\n\n\t@test()\n\tprotected static async canFindAbstractTests() {\n\t\tawait this.copyTestFiles()\n\n\t\tconst testFinder = new ParentTestFinder(this.cwd)\n\t\tconst matches = await testFinder.findAbstractTests()\n\n\t\tassert.isLength(matches, 3)\n\t\tassert.doesInclude(matches, {\n\t\t\tname: 'AbstractTest',\n\t\t\tpath: this.resolvePath('src', 'AbstractTest.ts'),\n\t\t})\n\n\t\tassert.doesInclude(matches, {\n\t\t\tname: 'AbstractBananaTestDifferentThanFileName',\n\t\t\tpath: this.resolvePath('src', 'deeper', 'AbstractBananaTest.ts'),\n\t\t})\n\t}\n\n\tprivate static async copyTestFiles() {\n\t\tconst source = this.resolveTestPath('abstract_tests')\n\t\tconst destination = this.resolvePath('src')\n\n\t\tawait diskUtil.copyDir(source, destination)\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AACA;;;;;;;;IAEqBA,oB,WACnB,IAAAC,eAAA,G,UAMA,IAAAA,eAAA,G;;;;;;;;;;;;;2GAND;QAAA;QAAA;UAAA;YAAA;cAAA;gBAEOC,MAFP,GAEgB,IAAIC,4BAAJ,CAAqB,KAAKC,GAA1B,CAFhB;;gBAGCC,iBAAA,CAAOC,QAAP,CAAgBJ,MAAhB;;cAHD;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,C;;;;;;;;;;;gHAMA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA,OAEO,KAAKK,aAAL,EAFP;;cAAA;gBAIOC,UAJP,GAIoB,IAAIL,4BAAJ,CAAqB,KAAKC,GAA1B,CAJpB;gBAAA;gBAAA,OAKuBI,UAAU,CAACC,iBAAX,EALvB;;cAAA;gBAKOC,OALP;;gBAOCL,iBAAA,CAAOM,QAAP,CAAgBD,OAAhB,EAAyB,CAAzB;;gBACAL,iBAAA,CAAOO,WAAP,CAAmBF,OAAnB,EAA4B;kBAC3BG,IAAI,EAAE,cADqB;kBAE3BC,IAAI,EAAE,KAAKC,WAAL,CAAiB,KAAjB,EAAwB,iBAAxB;gBAFqB,CAA5B;;gBAKAV,iBAAA,CAAOO,WAAP,CAAmBF,OAAnB,EAA4B;kBAC3BG,IAAI,EAAE,yCADqB;kBAE3BC,IAAI,EAAE,KAAKC,WAAL,CAAiB,KAAjB,EAAwB,QAAxB,EAAkC,uBAAlC;gBAFqB,CAA5B;;cAbD;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,C;;;;;;;;;;;yGAmBA;QAAA;QAAA;UAAA;YAAA;cAAA;gBACOC,MADP,GACgB,KAAKC,eAAL,CAAqB,gBAArB,CADhB;gBAEOC,WAFP,GAEqB,KAAKH,WAAL,CAAiB,KAAjB,CAFrB;gBAAA;gBAAA,OAIOI,0BAAA,CAASC,OAAT,CAAiBJ,MAAjB,EAAyBE,WAAzB,CAJP;;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,C;;;;;;;;;;EA1BiDG,4B"}
|
|
@@ -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 _CommandService = _interopRequireDefault(require("../../services/CommandService"));
|
|
35
35
|
|
|
@@ -41,7 +41,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
41
41
|
|
|
42
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; } }
|
|
43
43
|
|
|
44
|
-
var PkgServiceTest = (_dec = (0,
|
|
44
|
+
var PkgServiceTest = (_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) {
|
|
45
45
|
(0, _inherits2["default"])(PkgServiceTest, _AbstractSkillTest);
|
|
46
46
|
|
|
47
47
|
var _super = _createSuper(PkgServiceTest);
|
|
@@ -87,7 +87,7 @@ var PkgServiceTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(), _dec3
|
|
|
87
87
|
while (1) {
|
|
88
88
|
switch (_context2.prev = _context2.next) {
|
|
89
89
|
case 0:
|
|
90
|
-
|
|
90
|
+
_testUtils.assert.isTruthy(this.pkg);
|
|
91
91
|
|
|
92
92
|
case 1:
|
|
93
93
|
case "end":
|
|
@@ -114,7 +114,7 @@ var PkgServiceTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(), _dec3
|
|
|
114
114
|
case 0:
|
|
115
115
|
version = this.pkg.get('dependencies.dotenv');
|
|
116
116
|
|
|
117
|
-
|
|
117
|
+
_testUtils.assert.isNotEqual(version, 'latest');
|
|
118
118
|
|
|
119
119
|
case 2:
|
|
120
120
|
case "end":
|
|
@@ -183,11 +183,11 @@ var PkgServiceTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(), _dec3
|
|
|
183
183
|
_yield$this$pkg$insta = _context5.sent;
|
|
184
184
|
totalInstalled = _yield$this$pkg$insta.totalInstalled;
|
|
185
185
|
|
|
186
|
-
|
|
186
|
+
_testUtils.assert.isEqual(totalInstalled, 1);
|
|
187
187
|
|
|
188
188
|
expectedPath = this.resolvePath('node_modules', '@sprucelabs', 'jest-json-reporter');
|
|
189
189
|
|
|
190
|
-
|
|
190
|
+
_testUtils.assert.isTrue(_spruceSkillUtils.diskUtil.doesFileExist(expectedPath), "No module installed at ".concat(expectedPath, "."));
|
|
191
191
|
|
|
192
192
|
case 8:
|
|
193
193
|
case "end":
|
|
@@ -220,11 +220,11 @@ var PkgServiceTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(), _dec3
|
|
|
220
220
|
_yield$this$pkg$insta2 = _context6.sent;
|
|
221
221
|
totalInstalled = _yield$this$pkg$insta2.totalInstalled;
|
|
222
222
|
|
|
223
|
-
|
|
223
|
+
_testUtils.assert.isEqual(totalInstalled, 2);
|
|
224
224
|
|
|
225
225
|
expectedPath = this.resolvePath('node_modules', '@sprucelabs', 'calendar-utils');
|
|
226
226
|
|
|
227
|
-
|
|
227
|
+
_testUtils.assert.isTrue(_spruceSkillUtils.diskUtil.doesFileExist(expectedPath), "No module installed at ".concat(expectedPath, "."));
|
|
228
228
|
|
|
229
229
|
case 7:
|
|
230
230
|
case "end":
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PkgService.test.js","names":["PkgServiceTest","test","pkg","Service","assert","isTruthy","version","get","isNotEqual","CommandService","fakeCommand","RegExp","code","install","isInstalled","totalInstalled","isEqual","expectedPath","resolvePath","isTrue","diskUtil","doesFileExist","AbstractSkillTest"],"sources":["../../../src/__tests__/implementation/PkgService.test.ts"],"sourcesContent":["import { diskUtil } from '@sprucelabs/spruce-skill-utils'\nimport { test, assert } from '@sprucelabs/test'\nimport CommandService from '../../services/CommandService'\nimport PkgService from '../../services/PkgService'\nimport AbstractSkillTest from '../../tests/AbstractSkillTest'\n\nexport default class PkgServiceTest extends AbstractSkillTest {\n\tprotected static skillCacheKey = 'skills'\n\tprivate static pkg: PkgService\n\n\tprotected static async beforeEach() {\n\t\tawait super.beforeEach()\n\t\tthis.pkg = this.Service('pkg')\n\t}\n\n\t@test()\n\tprotected static async canCreatePkgService() {\n\t\tassert.isTruthy(this.pkg)\n\t}\n\n\t@test()\n\tprotected static async installANonSpruceLabsModuleMakesItsVersionAnActualVersion() {\n\t\tconst version = this.pkg.get('dependencies.dotenv')\n\t\tassert.isNotEqual(version, 'latest')\n\t}\n\n\t@test()\n\tprotected static async handlesAtLatestInName() {\n\t\tCommandService.fakeCommand(new RegExp(/yarn/gis), {\n\t\t\tcode: 0,\n\t\t})\n\n\t\tawait this.pkg.install('@sprucelabs/heartwood-view-controllers@latest')\n\n\t\tthis.pkg.isInstalled('@sprucelabs/heartwood-view-controllers')\n\t}\n\n\t@test()\n\tprotected static async ifInstallingOnlySpruceModulesShouldNotRunNPMAdd() {\n\t\tCommandService.fakeCommand(new RegExp(/npm.*?install.*?--no-progress/gis), {\n\t\t\tcode: 1,\n\t\t})\n\n\t\tconst { totalInstalled } = await this.pkg.install(\n\t\t\t'@sprucelabs/jest-json-reporter'\n\t\t)\n\n\t\tassert.isEqual(totalInstalled, 1)\n\n\t\tconst expectedPath = this.resolvePath(\n\t\t\t'node_modules',\n\t\t\t'@sprucelabs',\n\t\t\t'jest-json-reporter'\n\t\t)\n\n\t\tassert.isTrue(\n\t\t\tdiskUtil.doesFileExist(expectedPath),\n\t\t\t`No module installed at ${expectedPath}.`\n\t\t)\n\t}\n\n\t@test()\n\tprotected static async installingSpruceAndOtherModulesDoesntRemoveSpruceModule() {\n\t\tconst { totalInstalled } = await this.pkg.install([\n\t\t\t'moment',\n\t\t\t'@sprucelabs/calendar-utils',\n\t\t])\n\n\t\tassert.isEqual(totalInstalled, 2)\n\n\t\tconst expectedPath = this.resolvePath(\n\t\t\t'node_modules',\n\t\t\t'@sprucelabs',\n\t\t\t'calendar-utils'\n\t\t)\n\n\t\tassert.isTrue(\n\t\t\tdiskUtil.doesFileExist(expectedPath),\n\t\t\t`No module installed at ${expectedPath}.`\n\t\t)\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;;;;;;;IAEqBA,c,WASnB,IAAAC,
|
|
1
|
+
{"version":3,"file":"PkgService.test.js","names":["PkgServiceTest","test","pkg","Service","assert","isTruthy","version","get","isNotEqual","CommandService","fakeCommand","RegExp","code","install","isInstalled","totalInstalled","isEqual","expectedPath","resolvePath","isTrue","diskUtil","doesFileExist","AbstractSkillTest"],"sources":["../../../src/__tests__/implementation/PkgService.test.ts"],"sourcesContent":["import { diskUtil } from '@sprucelabs/spruce-skill-utils'\nimport { test, assert } from '@sprucelabs/test-utils'\nimport CommandService from '../../services/CommandService'\nimport PkgService from '../../services/PkgService'\nimport AbstractSkillTest from '../../tests/AbstractSkillTest'\n\nexport default class PkgServiceTest extends AbstractSkillTest {\n\tprotected static skillCacheKey = 'skills'\n\tprivate static pkg: PkgService\n\n\tprotected static async beforeEach() {\n\t\tawait super.beforeEach()\n\t\tthis.pkg = this.Service('pkg')\n\t}\n\n\t@test()\n\tprotected static async canCreatePkgService() {\n\t\tassert.isTruthy(this.pkg)\n\t}\n\n\t@test()\n\tprotected static async installANonSpruceLabsModuleMakesItsVersionAnActualVersion() {\n\t\tconst version = this.pkg.get('dependencies.dotenv')\n\t\tassert.isNotEqual(version, 'latest')\n\t}\n\n\t@test()\n\tprotected static async handlesAtLatestInName() {\n\t\tCommandService.fakeCommand(new RegExp(/yarn/gis), {\n\t\t\tcode: 0,\n\t\t})\n\n\t\tawait this.pkg.install('@sprucelabs/heartwood-view-controllers@latest')\n\n\t\tthis.pkg.isInstalled('@sprucelabs/heartwood-view-controllers')\n\t}\n\n\t@test()\n\tprotected static async ifInstallingOnlySpruceModulesShouldNotRunNPMAdd() {\n\t\tCommandService.fakeCommand(new RegExp(/npm.*?install.*?--no-progress/gis), {\n\t\t\tcode: 1,\n\t\t})\n\n\t\tconst { totalInstalled } = await this.pkg.install(\n\t\t\t'@sprucelabs/jest-json-reporter'\n\t\t)\n\n\t\tassert.isEqual(totalInstalled, 1)\n\n\t\tconst expectedPath = this.resolvePath(\n\t\t\t'node_modules',\n\t\t\t'@sprucelabs',\n\t\t\t'jest-json-reporter'\n\t\t)\n\n\t\tassert.isTrue(\n\t\t\tdiskUtil.doesFileExist(expectedPath),\n\t\t\t`No module installed at ${expectedPath}.`\n\t\t)\n\t}\n\n\t@test()\n\tprotected static async installingSpruceAndOtherModulesDoesntRemoveSpruceModule() {\n\t\tconst { totalInstalled } = await this.pkg.install([\n\t\t\t'moment',\n\t\t\t'@sprucelabs/calendar-utils',\n\t\t])\n\n\t\tassert.isEqual(totalInstalled, 2)\n\n\t\tconst expectedPath = this.resolvePath(\n\t\t\t'node_modules',\n\t\t\t'@sprucelabs',\n\t\t\t'calendar-utils'\n\t\t)\n\n\t\tassert.isTrue(\n\t\t\tdiskUtil.doesFileExist(expectedPath),\n\t\t\t`No module installed at ${expectedPath}.`\n\t\t)\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;;;;;;;IAEqBA,c,WASnB,IAAAC,eAAA,G,UAKA,IAAAA,eAAA,G,UAMA,IAAAA,eAAA,G,UAWA,IAAAA,eAAA,G,UAwBA,IAAAA,eAAA,G;;;;;;;;;;;;;sGAnDD;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA;;cAAA;gBAEC,KAAKC,GAAL,GAAW,KAAKC,OAAL,CAAa,KAAb,CAAX;;cAFD;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,C;;;;;;;;;;;+GAKA;QAAA;UAAA;YAAA;cAAA;gBAECC,iBAAA,CAAOC,QAAP,CAAgB,KAAKH,GAArB;;cAFD;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,C;;;;;;;;;;;qJAKA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAEOI,OAFP,GAEiB,KAAKJ,GAAL,CAASK,GAAT,CAAa,qBAAb,CAFjB;;gBAGCH,iBAAA,CAAOI,UAAP,CAAkBF,OAAlB,EAA2B,QAA3B;;cAHD;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,C;;;;;;;;;;;iHAMA;QAAA;UAAA;YAAA;cAAA;gBAECG,0BAAA,CAAeC,WAAf,CAA2B,IAAIC,MAAJ,CAAW,QAAX,CAA3B,EAAkD;kBACjDC,IAAI,EAAE;gBAD2C,CAAlD;;gBAFD;gBAAA,OAMO,KAAKV,GAAL,CAASW,OAAT,CAAiB,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