@sprucelabs/spruce-cli 19.1.24 → 19.1.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/build/__tests__/behavioral/AddingADependency.test.js +29 -57
- package/build/__tests__/behavioral/AddingADependency.test.js.map +1 -1
- package/build/__tests__/behavioral/BlockingCommands.test.js +9 -17
- package/build/__tests__/behavioral/BlockingCommands.test.js.map +1 -1
- package/build/__tests__/behavioral/BootingTheCli.test.js +9 -17
- package/build/__tests__/behavioral/BootingTheCli.test.js.map +1 -1
- package/build/__tests__/behavioral/BootingWithBadFiles.test.js +13 -25
- package/build/__tests__/behavioral/BootingWithBadFiles.test.js.map +1 -1
- package/build/__tests__/behavioral/CreatingAConversationTopic.test.js +13 -25
- package/build/__tests__/behavioral/CreatingAConversationTopic.test.js.map +1 -1
- package/build/__tests__/behavioral/DeployingASkill.test.js +73 -145
- package/build/__tests__/behavioral/DeployingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/DeployingToSandbox.test.js +61 -121
- package/build/__tests__/behavioral/DeployingToSandbox.test.js.map +1 -1
- package/build/__tests__/behavioral/EnablingAndDisablingCache.test.js +33 -65
- package/build/__tests__/behavioral/EnablingAndDisablingCache.test.js.map +1 -1
- package/build/__tests__/behavioral/GettingCliVersion.test.js +13 -25
- package/build/__tests__/behavioral/GettingCliVersion.test.js.map +1 -1
- package/build/__tests__/behavioral/ManagingDependencies.test.js +21 -41
- package/build/__tests__/behavioral/ManagingDependencies.test.js.map +1 -1
- package/build/__tests__/behavioral/OverridingCommandsInPackageJson.test.js +9 -17
- package/build/__tests__/behavioral/OverridingCommandsInPackageJson.test.js.map +1 -1
- package/build/__tests__/behavioral/RegisteringConversationsOnBoot.test.js +10 -18
- package/build/__tests__/behavioral/RegisteringConversationsOnBoot.test.js.map +1 -1
- package/build/__tests__/behavioral/RememberingUpgradeSelections.test.js +17 -33
- package/build/__tests__/behavioral/RememberingUpgradeSelections.test.js.map +1 -1
- package/build/__tests__/behavioral/SettingLogTransportsInASkill.test.js +29 -57
- package/build/__tests__/behavioral/SettingLogTransportsInASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/SettingRemote.test.js +21 -41
- package/build/__tests__/behavioral/SettingRemote.test.js.map +1 -1
- package/build/__tests__/behavioral/SettingUpVscode.test.js +9 -17
- package/build/__tests__/behavioral/SettingUpVscode.test.js.map +1 -1
- package/build/__tests__/behavioral/TestingAConversation.test.js +25 -49
- package/build/__tests__/behavioral/TestingAConversation.test.js.map +1 -1
- package/build/__tests__/behavioral/errors/CreatingANewErrorBuilder.test.js +21 -41
- package/build/__tests__/behavioral/errors/CreatingANewErrorBuilder.test.js.map +1 -1
- package/build/__tests__/behavioral/errors/KeepingErrorClassInSync.test.js +9 -17
- package/build/__tests__/behavioral/errors/KeepingErrorClassInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/errors/KeepingErrorsInSync.test.js +21 -41
- package/build/__tests__/behavioral/errors/KeepingErrorsInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/errors/SettingUpErrors.test.js +9 -17
- package/build/__tests__/behavioral/errors/SettingUpErrors.test.js.map +1 -1
- package/build/__tests__/behavioral/eventContract/PullingMercuryEventContract.test.js +45 -89
- package/build/__tests__/behavioral/eventContract/PullingMercuryEventContract.test.js.map +1 -1
- package/build/__tests__/behavioral/events/CreatingAListener.test.js +73 -145
- package/build/__tests__/behavioral/events/CreatingAListener.test.js.map +1 -1
- package/build/__tests__/behavioral/events/CreatingAnEvent.test.js +53 -105
- package/build/__tests__/behavioral/events/CreatingAnEvent.test.js.map +1 -1
- package/build/__tests__/behavioral/events/EventWriter.test.js +5 -9
- package/build/__tests__/behavioral/events/EventWriter.test.js.map +1 -1
- package/build/__tests__/behavioral/events/KeepingEventsInSync.test.js +61 -121
- package/build/__tests__/behavioral/events/KeepingEventsInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/events/KeepingEventsInSync2.test.js +41 -81
- package/build/__tests__/behavioral/events/KeepingEventsInSync2.test.js.map +1 -1
- package/build/__tests__/behavioral/events/KeepingListenersInSync.test.js +13 -25
- package/build/__tests__/behavioral/events/KeepingListenersInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/events/ListeningToAnEventYouCreate.test.js +9 -17
- package/build/__tests__/behavioral/events/ListeningToAnEventYouCreate.test.js.map +1 -1
- package/build/__tests__/behavioral/events/ListeningToCoreEvents.test.js +9 -17
- package/build/__tests__/behavioral/events/ListeningToCoreEvents.test.js.map +1 -1
- package/build/__tests__/behavioral/events/RegisteringEventsOnBoot.test.js +14 -26
- package/build/__tests__/behavioral/events/RegisteringEventsOnBoot.test.js.map +1 -1
- package/build/__tests__/behavioral/events/RegisteringGlobalEvents.test.js +26 -50
- package/build/__tests__/behavioral/events/RegisteringGlobalEvents.test.js.map +1 -1
- package/build/__tests__/behavioral/events/SettingUpEvents.test.js +5 -9
- package/build/__tests__/behavioral/events/SettingUpEvents.test.js.map +1 -1
- package/build/__tests__/behavioral/events/SkillEmitsBootEvents.test.js +13 -25
- package/build/__tests__/behavioral/events/SkillEmitsBootEvents.test.js.map +1 -1
- package/build/__tests__/behavioral/events/SyncingEventsOnlyFromDependencies.test.js +13 -25
- package/build/__tests__/behavioral/events/SyncingEventsOnlyFromDependencies.test.js.map +1 -1
- package/build/__tests__/behavioral/node/CreatingANodeModule.test.js +13 -25
- package/build/__tests__/behavioral/node/CreatingANodeModule.test.js.map +1 -1
- package/build/__tests__/behavioral/onboard/StartingOnboarding.test.js +13 -25
- package/build/__tests__/behavioral/onboard/StartingOnboarding.test.js.map +1 -1
- package/build/__tests__/behavioral/organization/CreatingAnOrg.test.js +9 -17
- package/build/__tests__/behavioral/organization/CreatingAnOrg.test.js.map +1 -1
- package/build/__tests__/behavioral/permissions/CreatingPermissions.test.js +13 -25
- package/build/__tests__/behavioral/permissions/CreatingPermissions.test.js.map +1 -1
- package/build/__tests__/behavioral/permissions/PermissionPlugin.test.js +9 -17
- package/build/__tests__/behavioral/permissions/PermissionPlugin.test.js.map +1 -1
- package/build/__tests__/behavioral/permissions/PermissionStore.test.js +49 -97
- package/build/__tests__/behavioral/permissions/PermissionStore.test.js.map +1 -1
- package/build/__tests__/behavioral/permissions/PermissionWriter.test.js +9 -17
- package/build/__tests__/behavioral/permissions/PermissionWriter.test.js.map +1 -1
- package/build/__tests__/behavioral/permissions/SyncingPermissions.test.js +59 -113
- package/build/__tests__/behavioral/permissions/SyncingPermissions.test.js.map +1 -1
- package/build/__tests__/behavioral/permissions/support/AbstractPermissionsTest.js +13 -25
- package/build/__tests__/behavioral/permissions/support/AbstractPermissionsTest.js.map +1 -1
- package/build/__tests__/behavioral/person/LoggingInAsPerson.test.js +37 -73
- package/build/__tests__/behavioral/person/LoggingInAsPerson.test.js.map +1 -1
- package/build/__tests__/behavioral/person/SeeWhoIsLoggedIn.test.js +13 -25
- package/build/__tests__/behavioral/person/SeeWhoIsLoggedIn.test.js.map +1 -1
- package/build/__tests__/behavioral/polish/SettingUpPolish.test.js +29 -57
- package/build/__tests__/behavioral/polish/SettingUpPolish.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/CreatingANewSchemaBuilder.test.js +41 -81
- package/build/__tests__/behavioral/schemas/CreatingANewSchemaBuilder.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/CreatingSchemasWithGenerics.test.js +5 -9
- package/build/__tests__/behavioral/schemas/CreatingSchemasWithGenerics.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/GeneratingFieldTypesOnly.test.js +9 -17
- package/build/__tests__/behavioral/schemas/GeneratingFieldTypesOnly.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/GettingSchemasFromHealthCheck.test.js +17 -33
- package/build/__tests__/behavioral/schemas/GettingSchemasFromHealthCheck.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/HandlesRelatedSchemas.test.js +21 -41
- package/build/__tests__/behavioral/schemas/HandlesRelatedSchemas.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/ImportingSchemaImports.test.js +5 -9
- package/build/__tests__/behavioral/schemas/ImportingSchemaImports.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/KeepingSchemasInSync.test.js +81 -161
- package/build/__tests__/behavioral/schemas/KeepingSchemasInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/SettingUpSchemas.test.js +13 -25
- package/build/__tests__/behavioral/schemas/SettingUpSchemas.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/SettingUpSchemasForModuleDistribution.test.js +49 -97
- package/build/__tests__/behavioral/schemas/SettingUpSchemasForModuleDistribution.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/SyncingBadSchemasProvidesHelpfulErrorMessages.test.js +5 -9
- package/build/__tests__/behavioral/schemas/SyncingBadSchemasProvidesHelpfulErrorMessages.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/UsingSchemasInCli.test.js +5 -9
- package/build/__tests__/behavioral/schemas/UsingSchemasInCli.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/BootingASkill.test.js +13 -25
- package/build/__tests__/behavioral/skill/BootingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/CreatingASkill.test.js +9 -17
- package/build/__tests__/behavioral/skill/CreatingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/InstallingASkillAtAnOrg.test.js +33 -65
- package/build/__tests__/behavioral/skill/InstallingASkillAtAnOrg.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/LoggingInAsASkill.test.js +37 -73
- package/build/__tests__/behavioral/skill/LoggingInAsASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/RebuildingASkill.test.js +13 -25
- package/build/__tests__/behavioral/skill/RebuildingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/RegisteringASkill.test.js +17 -33
- package/build/__tests__/behavioral/skill/RegisteringASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/SettingUpASkill.test.js +29 -57
- package/build/__tests__/behavioral/skill/SettingUpASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/stores/CreatingADataStore.test.js +45 -89
- package/build/__tests__/behavioral/stores/CreatingADataStore.test.js.map +1 -1
- package/build/__tests__/behavioral/stores/KeepingDataStoresInSync.test.js +41 -81
- package/build/__tests__/behavioral/stores/KeepingDataStoresInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/CreatingATest.test.js +41 -81
- package/build/__tests__/behavioral/tests/CreatingATest.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/RunningTests.test.js +17 -33
- package/build/__tests__/behavioral/tests/RunningTests.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/SelectingAnAbstractTestClass.test.js +45 -89
- package/build/__tests__/behavioral/tests/SelectingAnAbstractTestClass.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/SettingUpASkillForTesting.test.js +21 -41
- package/build/__tests__/behavioral/tests/SettingUpASkillForTesting.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/SettingUpTests.test.js +9 -17
- package/build/__tests__/behavioral/tests/SettingUpTests.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/TestReporterSettingsRemembered.test.js +9 -17
- package/build/__tests__/behavioral/tests/TestReporterSettingsRemembered.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/TestingDataStores.test.js +9 -17
- package/build/__tests__/behavioral/tests/TestingDataStores.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpdatingDependencies.test.js +17 -33
- package/build/__tests__/behavioral/upgrading/UpdatingDependencies.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpdatingDependencies2.test.js +21 -41
- package/build/__tests__/behavioral/upgrading/UpdatingDependencies2.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingANodeModule.test.js +17 -33
- package/build/__tests__/behavioral/upgrading/UpgradingANodeModule.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingASkill.test.js +41 -81
- package/build/__tests__/behavioral/upgrading/UpgradingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingASkill2.test.js +29 -57
- package/build/__tests__/behavioral/upgrading/UpgradingASkill2.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingASkill3.test.js +41 -81
- package/build/__tests__/behavioral/upgrading/UpgradingASkill3.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingASkill4.test.js +17 -33
- package/build/__tests__/behavioral/upgrading/UpgradingASkill4.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingASkill5.test.js +29 -57
- package/build/__tests__/behavioral/upgrading/UpgradingASkill5.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingWithListeners.test.js +18 -32
- package/build/__tests__/behavioral/upgrading/UpgradingWithListeners.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingWithSandboxFeatureInstalled.test.js +29 -57
- package/build/__tests__/behavioral/upgrading/UpgradingWithSandboxFeatureInstalled.test.js.map +1 -1
- package/build/__tests__/behavioral/views/CreatingASkillView.test.js +53 -105
- package/build/__tests__/behavioral/views/CreatingASkillView.test.js.map +1 -1
- package/build/__tests__/behavioral/views/CreatingATheme.test.js +30 -56
- package/build/__tests__/behavioral/views/CreatingATheme.test.js.map +1 -1
- package/build/__tests__/behavioral/views/KeepingViewsInSync.test.js +25 -49
- package/build/__tests__/behavioral/views/KeepingViewsInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/views/RegisteringSkillViewOnBoot.test.js +25 -49
- package/build/__tests__/behavioral/views/RegisteringSkillViewOnBoot.test.js.map +1 -1
- package/build/__tests__/behavioral/views/SettingUpViews.test.js +9 -17
- package/build/__tests__/behavioral/views/SettingUpViews.test.js.map +1 -1
- package/build/__tests__/behavioral/views/TestingViewControllers.test.js +21 -41
- package/build/__tests__/behavioral/views/TestingViewControllers.test.js.map +1 -1
- package/build/__tests__/behavioral/views/WatchingSkillViews.test.js +13 -25
- package/build/__tests__/behavioral/views/WatchingSkillViews.test.js.map +1 -1
- package/build/__tests__/behavioral/watchers/WatchingForChanges.test.js +53 -105
- package/build/__tests__/behavioral/watchers/WatchingForChanges.test.js.map +1 -1
- package/build/__tests__/implementation/ActionExecuter.test.js +9 -17
- package/build/__tests__/implementation/ActionExecuter.test.js.map +1 -1
- package/build/__tests__/implementation/ActionExecuter2.test.js +33 -65
- package/build/__tests__/implementation/ActionExecuter2.test.js.map +1 -1
- package/build/__tests__/implementation/ActionExecuter3.test.js +17 -33
- package/build/__tests__/implementation/ActionExecuter3.test.js.map +1 -1
- package/build/__tests__/implementation/ActionExecuter4.test.js +13 -25
- package/build/__tests__/implementation/ActionExecuter4.test.js.map +1 -1
- package/build/__tests__/implementation/ArgParser.test.js +9 -17
- package/build/__tests__/implementation/ArgParser.test.js.map +1 -1
- package/build/__tests__/implementation/BuildService.test.js +9 -17
- package/build/__tests__/implementation/BuildService.test.js.map +1 -1
- package/build/__tests__/implementation/BulkImporting.test.js +41 -81
- package/build/__tests__/implementation/BulkImporting.test.js.map +1 -1
- package/build/__tests__/implementation/CachingImports.test.js +21 -41
- package/build/__tests__/implementation/CachingImports.test.js.map +1 -1
- package/build/__tests__/implementation/CommanderCommandResultMapper.test.js +37 -73
- package/build/__tests__/implementation/CommanderCommandResultMapper.test.js.map +1 -1
- package/build/__tests__/implementation/DataStoreStore.test.js +41 -81
- package/build/__tests__/implementation/DataStoreStore.test.js.map +1 -1
- package/build/__tests__/implementation/DeletingOrphanedSchemaDefinitions.test.js +13 -25
- package/build/__tests__/implementation/DeletingOrphanedSchemaDefinitions.test.js.map +1 -1
- package/build/__tests__/implementation/EventContractCleanerUtil.test.js +17 -33
- package/build/__tests__/implementation/EventContractCleanerUtil.test.js.map +1 -1
- package/build/__tests__/implementation/EventStore.test.js +58 -113
- package/build/__tests__/implementation/EventStore.test.js.map +1 -1
- package/build/__tests__/implementation/EventTemplateItemBuilder.test.js +13 -25
- package/build/__tests__/implementation/EventTemplateItemBuilder.test.js.map +1 -1
- package/build/__tests__/implementation/FeatureCommandAttacher.test.js +37 -73
- package/build/__tests__/implementation/FeatureCommandAttacher.test.js.map +1 -1
- package/build/__tests__/implementation/FeatureFixture.test.js +17 -33
- package/build/__tests__/implementation/FeatureFixture.test.js.map +1 -1
- package/build/__tests__/implementation/FeatureInstaller.test.js +17 -33
- package/build/__tests__/implementation/FeatureInstaller.test.js.map +1 -1
- package/build/__tests__/implementation/FeaturesUtil.test.js +5 -9
- package/build/__tests__/implementation/FeaturesUtil.test.js.map +1 -1
- package/build/__tests__/implementation/FieldTemplateItemBuilder.test.js +5 -9
- package/build/__tests__/implementation/FieldTemplateItemBuilder.test.js.map +1 -1
- package/build/__tests__/implementation/GlobalEmitter.test.js +9 -17
- package/build/__tests__/implementation/GlobalEmitter.test.js.map +1 -1
- package/build/__tests__/implementation/JestJsonParser.test.js +5 -9
- package/build/__tests__/implementation/JestJsonParser.test.js.map +1 -1
- package/build/__tests__/implementation/LintService.test.js +9 -17
- package/build/__tests__/implementation/LintService.test.js.map +1 -1
- package/build/__tests__/implementation/OnboardingScriptLoader.test.js +19 -34
- package/build/__tests__/implementation/OnboardingScriptLoader.test.js.map +1 -1
- package/build/__tests__/implementation/OnboardingScriptPlayer.test.js +58 -103
- package/build/__tests__/implementation/OnboardingScriptPlayer.test.js.map +1 -1
- package/build/__tests__/implementation/OnboardingStore.test.js +9 -17
- package/build/__tests__/implementation/OnboardingStore.test.js.map +1 -1
- package/build/__tests__/implementation/OrganizationStore.test.js +21 -41
- package/build/__tests__/implementation/OrganizationStore.test.js.map +1 -1
- package/build/__tests__/implementation/ParentTestFinder.test.js +13 -25
- package/build/__tests__/implementation/ParentTestFinder.test.js.map +1 -1
- package/build/__tests__/implementation/PkgService.test.js +25 -49
- package/build/__tests__/implementation/PkgService.test.js.map +1 -1
- package/build/__tests__/implementation/SchemaStore.test.js +65 -129
- package/build/__tests__/implementation/SchemaStore.test.js.map +1 -1
- package/build/__tests__/implementation/SchemaTemplateItemBuilder.test.js +5 -9
- package/build/__tests__/implementation/SchemaTemplateItemBuilder.test.js.map +1 -1
- package/build/__tests__/implementation/SchemaValueTypeWriter.test.js +29 -57
- package/build/__tests__/implementation/SchemaValueTypeWriter.test.js.map +1 -1
- package/build/__tests__/implementation/ServiceFactory.test.js +5 -9
- package/build/__tests__/implementation/ServiceFactory.test.js.map +1 -1
- package/build/__tests__/implementation/SettingUpANodeModule.test.js +13 -25
- package/build/__tests__/implementation/SettingUpANodeModule.test.js.map +1 -1
- package/build/__tests__/implementation/SkillStore.test.js +33 -65
- package/build/__tests__/implementation/SkillStore.test.js.map +1 -1
- package/build/__tests__/implementation/StoreFeature.test.js +10 -16
- package/build/__tests__/implementation/StoreFeature.test.js.map +1 -1
- package/build/__tests__/implementation/TestReporter.test.js +17 -33
- package/build/__tests__/implementation/TestReporter.test.js.map +1 -1
- package/build/__tests__/implementation/TestRunner.test.js +37 -73
- package/build/__tests__/implementation/TestRunner.test.js.map +1 -1
- package/build/__tests__/implementation/ValueTypeMapping.test.js +9 -17
- package/build/__tests__/implementation/ValueTypeMapping.test.js.map +1 -1
- package/build/__tests__/implementation/Widgets.test.js +17 -33
- package/build/__tests__/implementation/Widgets.test.js.map +1 -1
- package/build/__tests__/support/EventFaker.js +5 -9
- package/build/__tests__/support/EventFaker.js.map +1 -1
- package/build/__tests__/support/scripts/first.script.js +5 -7
- package/build/__tests__/support/scripts/first.script.js.map +1 -1
- package/build/boot.js +5 -12
- package/build/boot.js.map +1 -1
- package/build/cli/Cli.js +42 -80
- package/build/cli/Cli.js.map +1 -1
- package/build/components/FormComponent.js +9 -17
- package/build/components/FormComponent.js.map +1 -1
- package/build/components/QuizComponent.js +9 -17
- package/build/components/QuizComponent.js.map +1 -1
- package/build/features/AbstractAction.js +13 -25
- package/build/features/AbstractAction.js.map +1 -1
- package/build/features/AbstractFeature.js +17 -33
- package/build/features/AbstractFeature.js.map +1 -1
- package/build/features/ActionExecuter.js +11 -17
- package/build/features/ActionExecuter.js.map +1 -1
- package/build/features/ActionQuestionAsker.js +35 -65
- package/build/features/ActionQuestionAsker.js.map +1 -1
- package/build/features/FeatureCommandAttacher.js +5 -9
- package/build/features/FeatureCommandAttacher.js.map +1 -1
- package/build/features/FeatureInstaller.js +43 -81
- package/build/features/FeatureInstaller.js.map +1 -1
- package/build/features/OverrideActionDecorator.js +6 -8
- package/build/features/OverrideActionDecorator.js.map +1 -1
- package/build/features/cache/CacheFeature.js +5 -9
- package/build/features/cache/CacheFeature.js.map +1 -1
- package/build/features/cache/actions/DisableAction.js +5 -9
- package/build/features/cache/actions/DisableAction.js.map +1 -1
- package/build/features/cache/actions/EnableAction.js +5 -9
- package/build/features/cache/actions/EnableAction.js.map +1 -1
- package/build/features/conversation/ConversationFeature.js +13 -25
- package/build/features/conversation/ConversationFeature.js.map +1 -1
- package/build/features/conversation/actions/CreateAction.js +5 -9
- package/build/features/conversation/actions/CreateAction.js.map +1 -1
- package/build/features/conversation/actions/TestAction.js +14 -24
- package/build/features/conversation/actions/TestAction.js.map +1 -1
- package/build/features/conversation/stores/ConversationStore.js +5 -9
- package/build/features/conversation/stores/ConversationStore.js.map +1 -1
- package/build/features/conversation/writers/ConversationWriter.js +5 -9
- package/build/features/conversation/writers/ConversationWriter.js.map +1 -1
- package/build/features/dependencies/DependencyFeature.js +5 -9
- package/build/features/dependencies/DependencyFeature.js.map +1 -1
- package/build/features/dependencies/actions/AddAction.js +5 -9
- package/build/features/dependencies/actions/AddAction.js.map +1 -1
- package/build/features/dependencies/actions/ManageAction.js +5 -9
- package/build/features/dependencies/actions/ManageAction.js.map +1 -1
- package/build/features/deploy/DeployFeature.js +5 -9
- package/build/features/deploy/DeployFeature.js.map +1 -1
- package/build/features/deploy/actions/HerokuAction.js +41 -81
- package/build/features/deploy/actions/HerokuAction.js.map +1 -1
- package/build/features/error/ErrorFeature.js +13 -25
- package/build/features/error/ErrorFeature.js.map +1 -1
- package/build/features/error/ParentTestFinder.js +5 -9
- package/build/features/error/ParentTestFinder.js.map +1 -1
- package/build/features/error/actions/CreateAction.js +5 -9
- package/build/features/error/actions/CreateAction.js.map +1 -1
- package/build/features/error/actions/SyncAction.js +13 -25
- package/build/features/error/actions/SyncAction.js.map +1 -1
- package/build/features/error/writers/ErrorWriter.js +21 -41
- package/build/features/error/writers/ErrorWriter.js.map +1 -1
- package/build/features/event/EventFeature.js +29 -57
- package/build/features/event/EventFeature.js.map +1 -1
- package/build/features/event/actions/CreateAction.js +5 -9
- package/build/features/event/actions/CreateAction.js.map +1 -1
- package/build/features/event/actions/ListenAction.js +29 -57
- package/build/features/event/actions/ListenAction.js.map +1 -1
- package/build/features/event/actions/SetRemoteAction.js +5 -9
- package/build/features/event/actions/SetRemoteAction.js.map +1 -1
- package/build/features/event/actions/SyncAction.js +5 -9
- package/build/features/event/actions/SyncAction.js.map +1 -1
- package/build/features/event/actions/SyncListenersAction.js +5 -9
- package/build/features/event/actions/SyncListenersAction.js.map +1 -1
- package/build/features/event/builders/EventContractBuilder.js +17 -33
- package/build/features/event/builders/EventContractBuilder.js.map +1 -1
- package/build/features/event/stores/EventStore.js +26 -48
- package/build/features/event/stores/EventStore.js.map +1 -1
- package/build/features/event/stores/ListenerStore.js +5 -9
- package/build/features/event/stores/ListenerStore.js.map +1 -1
- package/build/features/event/writers/EventWriter.js +25 -49
- package/build/features/event/writers/EventWriter.js.map +1 -1
- package/build/features/eventContract/actions/PullAction.js +9 -17
- package/build/features/eventContract/actions/PullAction.js.map +1 -1
- package/build/features/log/actions/CreateTransportAction.js +5 -9
- package/build/features/log/actions/CreateTransportAction.js.map +1 -1
- package/build/features/log/writers/LogWriter.js +5 -9
- package/build/features/log/writers/LogWriter.js.map +1 -1
- package/build/features/node/NodeFeature.js +22 -40
- package/build/features/node/NodeFeature.js.map +1 -1
- package/build/features/node/actions/CreateAction.js +5 -9
- package/build/features/node/actions/CreateAction.js.map +1 -1
- package/build/features/node/actions/UpdateDependenciesAction.js +9 -17
- package/build/features/node/actions/UpdateDependenciesAction.js.map +1 -1
- package/build/features/node/actions/UpgradeAction.js +13 -25
- package/build/features/node/actions/UpgradeAction.js.map +1 -1
- package/build/features/node/writers/NodeWriter.js +5 -9
- package/build/features/node/writers/NodeWriter.js.map +1 -1
- package/build/features/onboard/OnboardFeature.js +18 -33
- package/build/features/onboard/OnboardFeature.js.map +1 -1
- package/build/features/onboard/ScriptLoader.js +5 -9
- package/build/features/onboard/ScriptLoader.js.map +1 -1
- package/build/features/onboard/ScriptPlayer.js +13 -25
- package/build/features/onboard/ScriptPlayer.js.map +1 -1
- package/build/features/onboard/actions/OnboardAction.js +5 -9
- package/build/features/onboard/actions/OnboardAction.js.map +1 -1
- package/build/features/onboard/scripts/onboarding.first.script.js +18 -37
- package/build/features/onboard/scripts/onboarding.first.script.js.map +1 -1
- package/build/features/onboard/scripts/onboarding.immersive.script.js +8 -13
- package/build/features/onboard/scripts/onboarding.immersive.script.js.map +1 -1
- package/build/features/onboard/scripts/onboarding.returning.script.js +5 -7
- package/build/features/onboard/scripts/onboarding.returning.script.js.map +1 -1
- package/build/features/onboard/scripts/onboarding.short.script.js +17 -31
- package/build/features/onboard/scripts/onboarding.short.script.js.map +1 -1
- package/build/features/onboard/scripts/todo/todo.create.skill.script.js +5 -7
- package/build/features/onboard/scripts/todo/todo.create.skill.script.js.map +1 -1
- package/build/features/onboard/scripts/todo/todo.test.script.js +5 -7
- package/build/features/onboard/scripts/todo/todo.test.script.js.map +1 -1
- package/build/features/onboard/scripts/wrongCommand.script.js +5 -7
- package/build/features/onboard/scripts/wrongCommand.script.js.map +1 -1
- package/build/features/organization/actions/CreateAction.js +5 -9
- package/build/features/organization/actions/CreateAction.js.map +1 -1
- package/build/features/organization/actions/InstallAction.js +5 -9
- package/build/features/organization/actions/InstallAction.js.map +1 -1
- package/build/features/organization/stores/OrganizationStore.js +21 -41
- package/build/features/organization/stores/OrganizationStore.js.map +1 -1
- package/build/features/permission/PermissionFeature.js +17 -33
- package/build/features/permission/PermissionFeature.js.map +1 -1
- package/build/features/permission/actions/CreateAction.js +5 -9
- package/build/features/permission/actions/CreateAction.js.map +1 -1
- package/build/features/permission/actions/SyncAction.js +8 -15
- package/build/features/permission/actions/SyncAction.js.map +1 -1
- package/build/features/permission/stores/PermissionStore.js +9 -17
- package/build/features/permission/stores/PermissionStore.js.map +1 -1
- package/build/features/permission/writers/PermissionWriter.js +13 -25
- package/build/features/permission/writers/PermissionWriter.js.map +1 -1
- package/build/features/person/actions/LoginAction.js +5 -9
- package/build/features/person/actions/LoginAction.js.map +1 -1
- package/build/features/person/actions/LogoutAction.js +5 -9
- package/build/features/person/actions/LogoutAction.js.map +1 -1
- package/build/features/person/actions/WhoamiAction.js +5 -9
- package/build/features/person/actions/WhoamiAction.js.map +1 -1
- package/build/features/polish/actions/SetupAction.js +5 -9
- package/build/features/polish/actions/SetupAction.js.map +1 -1
- package/build/features/polish/writers/PolishWriter.js +5 -9
- package/build/features/polish/writers/PolishWriter.js.map +1 -1
- package/build/features/sandbox/SandboxFeature.js +5 -7
- package/build/features/sandbox/SandboxFeature.js.map +1 -1
- package/build/features/sandbox/actions/SetupAction.js +5 -9
- package/build/features/sandbox/actions/SetupAction.js.map +1 -1
- package/build/features/sandbox/writers/SandboxWriter.js +5 -9
- package/build/features/sandbox/writers/SandboxWriter.js.map +1 -1
- package/build/features/schema/SchemaFeature.js +17 -33
- package/build/features/schema/SchemaFeature.js.map +1 -1
- package/build/features/schema/ValueTypeBuilder.js +5 -9
- package/build/features/schema/ValueTypeBuilder.js.map +1 -1
- package/build/features/schema/actions/CreateAction.js +5 -9
- package/build/features/schema/actions/CreateAction.js.map +1 -1
- package/build/features/schema/actions/SyncAction.js +21 -41
- package/build/features/schema/actions/SyncAction.js.map +1 -1
- package/build/features/schema/actions/SyncFieldsAction.js +5 -9
- package/build/features/schema/actions/SyncFieldsAction.js.map +1 -1
- package/build/features/schema/services/SchemaService.js +5 -9
- package/build/features/schema/services/SchemaService.js.map +1 -1
- package/build/features/schema/stores/SchemaStore.js +31 -57
- package/build/features/schema/stores/SchemaStore.js.map +1 -1
- package/build/features/schema/writers/SchemaWriter.js +25 -49
- package/build/features/schema/writers/SchemaWriter.js.map +1 -1
- package/build/features/skill/SkillFeature.js +25 -49
- package/build/features/skill/SkillFeature.js.map +1 -1
- package/build/features/skill/actions/BootAction.js +9 -17
- package/build/features/skill/actions/BootAction.js.map +1 -1
- package/build/features/skill/actions/CreateAction.js +5 -9
- package/build/features/skill/actions/CreateAction.js.map +1 -1
- package/build/features/skill/actions/DashboardAction.js +5 -9
- package/build/features/skill/actions/DashboardAction.js.map +1 -1
- package/build/features/skill/actions/LoginAction.js +5 -9
- package/build/features/skill/actions/LoginAction.js.map +1 -1
- package/build/features/skill/actions/RebuildAction.js +5 -9
- package/build/features/skill/actions/RebuildAction.js.map +1 -1
- package/build/features/skill/actions/RegisterAction.js +5 -9
- package/build/features/skill/actions/RegisterAction.js.map +1 -1
- package/build/features/skill/stores/SkillStore.js +37 -73
- package/build/features/skill/stores/SkillStore.js.map +1 -1
- package/build/features/skill/updaters/Updater.js +5 -9
- package/build/features/skill/updaters/Updater.js.map +1 -1
- package/build/features/skill/writers/SkillWriter.js +5 -9
- package/build/features/skill/writers/SkillWriter.js.map +1 -1
- package/build/features/store/StoreFeature.js +13 -25
- package/build/features/store/StoreFeature.js.map +1 -1
- package/build/features/store/actions/CreateAction.js +5 -9
- package/build/features/store/actions/CreateAction.js.map +1 -1
- package/build/features/store/actions/SyncAction.js +5 -9
- package/build/features/store/actions/SyncAction.js.map +1 -1
- package/build/features/store/stores/StoreStore.js +5 -9
- package/build/features/store/stores/StoreStore.js.map +1 -1
- package/build/features/store/writers/StoreWriter.js +17 -33
- package/build/features/store/writers/StoreWriter.js.map +1 -1
- package/build/features/test/TestFeature.js +9 -17
- package/build/features/test/TestFeature.js.map +1 -1
- package/build/features/test/TestReporter.js +17 -33
- package/build/features/test/TestReporter.js.map +1 -1
- package/build/features/test/TestRunner.js +14 -26
- package/build/features/test/TestRunner.js.map +1 -1
- package/build/features/test/actions/CreateAction.js +17 -33
- package/build/features/test/actions/CreateAction.js.map +1 -1
- package/build/features/test/actions/SetupAction.js +5 -9
- package/build/features/test/actions/SetupAction.js.map +1 -1
- package/build/features/test/actions/TestAction.js +21 -41
- package/build/features/test/actions/TestAction.js.map +1 -1
- package/build/features/test/writers/TestWriter.js +5 -9
- package/build/features/test/writers/TestWriter.js.map +1 -1
- package/build/features/view/ViewFeature.js +10 -16
- package/build/features/view/ViewFeature.js.map +1 -1
- package/build/features/view/actions/CreateAction.js +5 -9
- package/build/features/view/actions/CreateAction.js.map +1 -1
- package/build/features/view/actions/CreateThemeAction.js +5 -9
- package/build/features/view/actions/CreateThemeAction.js.map +1 -1
- package/build/features/view/actions/SyncAction.js +5 -9
- package/build/features/view/actions/SyncAction.js.map +1 -1
- package/build/features/view/actions/WatchAction.js +5 -9
- package/build/features/view/actions/WatchAction.js.map +1 -1
- package/build/features/view/stores/ViewStore.js +5 -9
- package/build/features/view/stores/ViewStore.js.map +1 -1
- package/build/features/view/writers/ViewWriter.js +9 -17
- package/build/features/view/writers/ViewWriter.js.map +1 -1
- package/build/features/vscode/actions/SetupAction.js +21 -41
- package/build/features/vscode/actions/SetupAction.js.map +1 -1
- package/build/features/vscode/services/VsCodeService.js +13 -25
- package/build/features/vscode/services/VsCodeService.js.map +1 -1
- package/build/features/vscode/writers/VsCodeWriter.js +5 -9
- package/build/features/vscode/writers/VsCodeWriter.js.map +1 -1
- package/build/features/watch/WatchFeature.js +23 -41
- package/build/features/watch/WatchFeature.js.map +1 -1
- package/build/interfaces/SpyInterface.js +25 -49
- package/build/interfaces/SpyInterface.js.map +1 -1
- package/build/interfaces/TerminalInterface.js +33 -65
- package/build/interfaces/TerminalInterface.js.map +1 -1
- package/build/services/BuildService.js +5 -9
- package/build/services/BuildService.js.map +1 -1
- package/build/services/CommandService.js +5 -9
- package/build/services/CommandService.js.map +1 -1
- package/build/services/GameService.js +5 -9
- package/build/services/GameService.js.map +1 -1
- package/build/services/ImportService.js +21 -31
- package/build/services/ImportService.js.map +1 -1
- package/build/services/LintService.js +6 -8
- package/build/services/LintService.js.map +1 -1
- package/build/services/PkgService.js +9 -17
- package/build/services/PkgService.js.map +1 -1
- package/build/services/TypeCheckerService.js +6 -8
- package/build/services/TypeCheckerService.js.map +1 -1
- package/build/stores/AbstractStore.js +5 -9
- package/build/stores/AbstractStore.js.map +1 -1
- package/build/tests/AbstractCliTest.js +61 -121
- package/build/tests/AbstractCliTest.js.map +1 -1
- package/build/tests/AbstractErrorTest.js +5 -9
- package/build/tests/AbstractErrorTest.js.map +1 -1
- package/build/tests/AbstractEventTest.js +17 -33
- package/build/tests/AbstractEventTest.js.map +1 -1
- package/build/tests/AbstractSchemaTest.js +13 -25
- package/build/tests/AbstractSchemaTest.js.map +1 -1
- package/build/tests/AbstractSkillTest.js +13 -25
- package/build/tests/AbstractSkillTest.js.map +1 -1
- package/build/tests/AbstractTestTest.js +5 -9
- package/build/tests/AbstractTestTest.js.map +1 -1
- package/build/tests/MockProgramFactory.js +10 -15
- package/build/tests/MockProgramFactory.js.map +1 -1
- package/build/tests/buildTestCache.js +32 -49
- package/build/tests/buildTestCache.js.map +1 -1
- package/build/tests/cleanTestData.js +27 -45
- package/build/tests/cleanTestData.js.map +1 -1
- package/build/tests/fixtures/FeatureFixture.js +25 -49
- package/build/tests/fixtures/FeatureFixture.js.map +1 -1
- package/build/tests/fixtures/MercuryFixture.js +5 -9
- package/build/tests/fixtures/MercuryFixture.js.map +1 -1
- package/build/tests/fixtures/OrganizationFixture.js +13 -25
- package/build/tests/fixtures/OrganizationFixture.js.map +1 -1
- package/build/tests/fixtures/PersonFixture.js +9 -17
- package/build/tests/fixtures/PersonFixture.js.map +1 -1
- package/build/tests/fixtures/SkillFixture.js +31 -57
- package/build/tests/fixtures/SkillFixture.js.map +1 -1
- package/build/tests/fixtures/ViewFixture.js +5 -9
- package/build/tests/fixtures/ViewFixture.js.map +1 -1
- package/build/updaters/ScriptUpdater.js +5 -9
- package/build/updaters/ScriptUpdater.js.map +1 -1
- package/build/widgets/terminalKit/TkBaseWidget.js +5 -9
- package/build/widgets/terminalKit/TkBaseWidget.js.map +1 -1
- package/build/widgets/terminalKit/TkInputWidget.js +9 -17
- package/build/widgets/terminalKit/TkInputWidget.js.map +1 -1
- package/build/widgets/terminalKit/TkLayoutWidget.js +5 -9
- package/build/widgets/terminalKit/TkLayoutWidget.js.map +1 -1
- package/build/widgets/terminalKit/TkTextWidget.js +5 -9
- package/build/widgets/terminalKit/TkTextWidget.js.map +1 -1
- package/build/widgets/terminalKit/TkWindowWidget.js +9 -17
- package/build/widgets/terminalKit/TkWindowWidget.js.map +1 -1
- package/build/writers/AbstractWriter.js +13 -25
- package/build/writers/AbstractWriter.js.map +1 -1
- package/package.json +29 -29
|
@@ -21,7 +21,7 @@ var _test = _interopRequireDefault(require("../../../tests/utilities/test.utilit
|
|
|
21
21
|
var _dec, _dec2, _dec3, _dec4, _dec5, _class;
|
|
22
22
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
|
23
23
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
24
|
-
var KeepingErrorsInSyncTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.test)(), _dec3 = (0, _testUtils.test)(), _dec4 = (0, _testUtils.test)(), _dec5 = (0, _testUtils.test)(), (_class = /*#__PURE__*/function (_AbstractErrorTest) {
|
|
24
|
+
var KeepingErrorsInSyncTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.test)(), _dec3 = (0, _testUtils.test)(), _dec4 = (0, _testUtils.test)(), _dec5 = (0, _testUtils.test)(), (_class = /*#__PURE__*/function (_AbstractErrorTest, _hasSyncErrorAction, _returnsHelpfulErrorWhenTsNodeIsRemoved, _errorsStayInSyncWhenSchemasAreDeleted, _canHandleNestedSchemasWithoutAddingThemToOptions, _canCreateAndSyncErrorsWithNoCoreSchemasAndNoFields) {
|
|
25
25
|
(0, _inherits2["default"])(KeepingErrorsInSyncTest, _AbstractErrorTest);
|
|
26
26
|
var _super = _createSuper(KeepingErrorsInSyncTest);
|
|
27
27
|
function KeepingErrorsInSyncTest() {
|
|
@@ -30,8 +30,8 @@ var KeepingErrorsInSyncTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testU
|
|
|
30
30
|
}
|
|
31
31
|
(0, _createClass2["default"])(KeepingErrorsInSyncTest, null, [{
|
|
32
32
|
key: "hasSyncErrorAction",
|
|
33
|
-
value: function () {
|
|
34
|
-
|
|
33
|
+
value: function hasSyncErrorAction() {
|
|
34
|
+
return (_hasSyncErrorAction = _hasSyncErrorAction || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
35
35
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
36
36
|
while (1) switch (_context.prev = _context.next) {
|
|
37
37
|
case 0:
|
|
@@ -44,16 +44,12 @@ var KeepingErrorsInSyncTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testU
|
|
|
44
44
|
return _context.stop();
|
|
45
45
|
}
|
|
46
46
|
}, _callee, this);
|
|
47
|
-
}));
|
|
48
|
-
|
|
49
|
-
return _hasSyncErrorAction.apply(this, arguments);
|
|
50
|
-
}
|
|
51
|
-
return hasSyncErrorAction;
|
|
52
|
-
}()
|
|
47
|
+
}))).apply(this, arguments);
|
|
48
|
+
}
|
|
53
49
|
}, {
|
|
54
50
|
key: "returnsHelpfulErrorWhenTsNodeIsRemoved",
|
|
55
|
-
value: function () {
|
|
56
|
-
|
|
51
|
+
value: function returnsHelpfulErrorWhenTsNodeIsRemoved() {
|
|
52
|
+
return (_returnsHelpfulErrorWhenTsNodeIsRemoved = _returnsHelpfulErrorWhenTsNodeIsRemoved || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
57
53
|
var createAction, pkg, results;
|
|
58
54
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
59
55
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -84,16 +80,12 @@ var KeepingErrorsInSyncTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testU
|
|
|
84
80
|
return _context2.stop();
|
|
85
81
|
}
|
|
86
82
|
}, _callee2, this);
|
|
87
|
-
}));
|
|
88
|
-
|
|
89
|
-
return _returnsHelpfulErrorWhenTsNodeIsRemoved.apply(this, arguments);
|
|
90
|
-
}
|
|
91
|
-
return returnsHelpfulErrorWhenTsNodeIsRemoved;
|
|
92
|
-
}()
|
|
83
|
+
}))).apply(this, arguments);
|
|
84
|
+
}
|
|
93
85
|
}, {
|
|
94
86
|
key: "errorsStayInSyncWhenSchemasAreDeleted",
|
|
95
|
-
value: function () {
|
|
96
|
-
|
|
87
|
+
value: function errorsStayInSyncWhenSchemasAreDeleted() {
|
|
88
|
+
return (_errorsStayInSyncWhenSchemasAreDeleted = _errorsStayInSyncWhenSchemasAreDeleted || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3() {
|
|
97
89
|
var createAction, results, optionsMatch, typesMatch, optionsContent, typesContent, builderMatch, testError1, testError1SchemaMatch, testError1BuilderMatch;
|
|
98
90
|
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
99
91
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -176,16 +168,12 @@ var KeepingErrorsInSyncTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testU
|
|
|
176
168
|
return _context3.stop();
|
|
177
169
|
}
|
|
178
170
|
}, _callee3, this);
|
|
179
|
-
}));
|
|
180
|
-
|
|
181
|
-
return _errorsStayInSyncWhenSchemasAreDeleted.apply(this, arguments);
|
|
182
|
-
}
|
|
183
|
-
return errorsStayInSyncWhenSchemasAreDeleted;
|
|
184
|
-
}()
|
|
171
|
+
}))).apply(this, arguments);
|
|
172
|
+
}
|
|
185
173
|
}, {
|
|
186
174
|
key: "canHandleNestedSchemasWithoutAddingThemToOptions",
|
|
187
|
-
value: function () {
|
|
188
|
-
|
|
175
|
+
value: function canHandleNestedSchemasWithoutAddingThemToOptions() {
|
|
176
|
+
return (_canHandleNestedSchemasWithoutAddingThemToOptions = _canHandleNestedSchemasWithoutAddingThemToOptions || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4() {
|
|
189
177
|
var source, destination, results, errorTypesFile, typeChecker, errorOptionsFile, contents, errorClassFile, classContents, createAction, syncResults, parentSchema, parentSchemaContents;
|
|
190
178
|
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
|
191
179
|
while (1) switch (_context4.prev = _context4.next) {
|
|
@@ -237,16 +225,12 @@ var KeepingErrorsInSyncTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testU
|
|
|
237
225
|
return _context4.stop();
|
|
238
226
|
}
|
|
239
227
|
}, _callee4, this);
|
|
240
|
-
}));
|
|
241
|
-
|
|
242
|
-
return _canHandleNestedSchemasWithoutAddingThemToOptions.apply(this, arguments);
|
|
243
|
-
}
|
|
244
|
-
return canHandleNestedSchemasWithoutAddingThemToOptions;
|
|
245
|
-
}()
|
|
228
|
+
}))).apply(this, arguments);
|
|
229
|
+
}
|
|
246
230
|
}, {
|
|
247
231
|
key: "canCreateAndSyncErrorsWithNoCoreSchemasAndNoFields",
|
|
248
|
-
value: function () {
|
|
249
|
-
|
|
232
|
+
value: function canCreateAndSyncErrorsWithNoCoreSchemasAndNoFields() {
|
|
233
|
+
return (_canCreateAndSyncErrorsWithNoCoreSchemasAndNoFields = _canCreateAndSyncErrorsWithNoCoreSchemasAndNoFields || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5() {
|
|
250
234
|
var createAction, results, syncAction, syncResults;
|
|
251
235
|
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
|
252
236
|
while (1) switch (_context5.prev = _context5.next) {
|
|
@@ -279,12 +263,8 @@ var KeepingErrorsInSyncTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testU
|
|
|
279
263
|
return _context5.stop();
|
|
280
264
|
}
|
|
281
265
|
}, _callee5, this);
|
|
282
|
-
}));
|
|
283
|
-
|
|
284
|
-
return _canCreateAndSyncErrorsWithNoCoreSchemasAndNoFields.apply(this, arguments);
|
|
285
|
-
}
|
|
286
|
-
return canCreateAndSyncErrorsWithNoCoreSchemasAndNoFields;
|
|
287
|
-
}()
|
|
266
|
+
}))).apply(this, arguments);
|
|
267
|
+
}
|
|
288
268
|
}]);
|
|
289
269
|
return KeepingErrorsInSyncTest;
|
|
290
270
|
}(_AbstractErrorTest2["default"]), ((0, _applyDecoratedDescriptor2["default"])(_class, "hasSyncErrorAction", [_dec], Object.getOwnPropertyDescriptor(_class, "hasSyncErrorAction"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "returnsHelpfulErrorWhenTsNodeIsRemoved", [_dec2], Object.getOwnPropertyDescriptor(_class, "returnsHelpfulErrorWhenTsNodeIsRemoved"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "errorsStayInSyncWhenSchemasAreDeleted", [_dec3], Object.getOwnPropertyDescriptor(_class, "errorsStayInSyncWhenSchemasAreDeleted"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "canHandleNestedSchemasWithoutAddingThemToOptions", [_dec4], Object.getOwnPropertyDescriptor(_class, "canHandleNestedSchemasWithoutAddingThemToOptions"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "canCreateAndSyncErrorsWithNoCoreSchemasAndNoFields", [_dec5], Object.getOwnPropertyDescriptor(_class, "canCreateAndSyncErrorsWithNoCoreSchemasAndNoFields"), _class)), _class));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KeepingErrorsInSync.test.js","names":["_spruceSkillUtils","require","_testUtils","_ImportService","_interopRequireDefault","_AbstractErrorTest2","_test","_dec","_dec2","_dec3","_dec4","_dec5","_class","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","KeepingErrorsInSyncTest","test","_AbstractErrorTest","_inherits2","_super","_classCallCheck2","_createClass2","key","value","_hasSyncErrorAction","_asyncToGenerator2","_regenerator","mark","_callee","wrap","_callee$","_context","prev","next","Cli","assert","isFunction","Action","execute","stop","hasSyncErrorAction","_returnsHelpfulErrorWhenTsNodeIsRemoved","_callee2","createAction","pkg","results","_callee2$","_context2","installErrorFeature","nameReadable","nameCamel","Service","uninstall","ImportService","clearCache","sent","isTruthy","errors","isLength","returnsHelpfulErrorWhenTsNodeIsRemoved","_errorsStayInSyncWhenSchemasAreDeleted","_callee3","optionsMatch","typesMatch","optionsContent","typesContent","builderMatch","testError1","testError1SchemaMatch","testError1BuilderMatch","_callee3$","_context3","testUtil","assertFileByNameInGeneratedFiles","files","check","diskUtil","readFile","doesInclude","deleteFile","isFalse","doesFileExist","resolveHashSprucePath","isTrue","errorTypesFile","doesNotInclude","errorsStayInSyncWhenSchemasAreDeleted","_canHandleNestedSchemasWithoutAddingThemToOptions","_callee4","source","destination","typeChecker","errorOptionsFile","contents","errorClassFile","classContents","syncResults","parentSchema","parentSchemaContents","_callee4$","_context4","resolveTestPath","resolvePath","copyDir","assertValidActionResponseFiles","cwd","canHandleNestedSchemasWithoutAddingThemToOptions","_canCreateAndSyncErrorsWithNoCoreSchemasAndNoFields","_callee5","syncAction","_callee5$","_context5","shouldFetchCoreSchemas","isFalsy","writeFile","path","canCreateAndSyncErrorsWithNoCoreSchemasAndNoFields","AbstractErrorTest","_applyDecoratedDescriptor2","Object","getOwnPropertyDescriptor","exports"],"sources":["../../../../src/__tests__/behavioral/errors/KeepingErrorsInSync.test.ts"],"sourcesContent":["import { diskUtil } from '@sprucelabs/spruce-skill-utils'\nimport { assert, test } from '@sprucelabs/test-utils'\nimport ImportService from '../../../services/ImportService'\nimport AbstractErrorTest from '../../../tests/AbstractErrorTest'\nimport testUtil from '../../../tests/utilities/test.utility'\n\nexport default class KeepingErrorsInSyncTest extends AbstractErrorTest {\n\t@test()\n\tprotected static async hasSyncErrorAction() {\n\t\tawait this.Cli()\n\t\tassert.isFunction(this.Action('error', 'sync').execute)\n\t}\n\n\t@test()\n\tprotected static async returnsHelpfulErrorWhenTsNodeIsRemoved() {\n\t\tawait this.installErrorFeature('errors')\n\n\t\tconst createAction = this.Action('error', 'create')\n\n\t\tawait createAction.execute({\n\t\t\tnameReadable: 'Test error',\n\t\t\tnameCamel: 'testError',\n\t\t})\n\n\t\tconst pkg = this.Service('pkg')\n\t\tawait pkg.uninstall('ts-node')\n\n\t\tImportService.clearCache()\n\n\t\tconst results = await this.Action('error', 'sync').execute({})\n\n\t\tassert.isTruthy(results.errors)\n\t\tassert.isLength(results.errors, 1)\n\t}\n\n\t@test()\n\tprotected static async errorsStayInSyncWhenSchemasAreDeleted() {\n\t\tawait this.installErrorFeature('errors')\n\n\t\tconst createAction = this.Action('error', 'create')\n\n\t\tconst results = await createAction.execute({\n\t\t\tnameReadable: 'Test error',\n\t\t\tnameCamel: 'testError',\n\t\t})\n\n\t\tconst optionsMatch = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t/^options\\.types/,\n\t\t\tresults.files\n\t\t)\n\n\t\tawait this.Service('typeChecker').check(optionsMatch)\n\n\t\tconst typesMatch = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t/^errors\\.types/,\n\t\t\tresults.files\n\t\t)\n\n\t\t// should contain our test error\n\t\tlet optionsContent = diskUtil.readFile(optionsMatch)\n\t\tassert.doesInclude(optionsContent, /SpruceErrors\\.TestingErrors\\.TestError/)\n\n\t\tlet typesContent = diskUtil.readFile(typesMatch)\n\t\tassert.doesInclude(\n\t\t\ttypesContent,\n\t\t\t/SpruceErrors\\.TestingErrors.*?TestError/gis\n\t\t)\n\n\t\t// delete our testError\n\t\tconst builderMatch = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t/testError\\.builder/,\n\t\t\tresults.files\n\t\t)\n\n\t\tdiskUtil.deleteFile(builderMatch)\n\n\t\t// resync\n\t\tawait this.Action('error', 'sync').execute({})\n\n\t\t// #spruce/errors should not exist\n\t\tassert.isFalse(diskUtil.doesFileExist(this.resolveHashSprucePath('errors')))\n\n\t\t// build 2 errors\n\t\tconst testError1 = await createAction.execute({\n\t\t\tnameCamel: 'testError1',\n\t\t\tnameReadable: 'Test error 1',\n\t\t})\n\n\t\tconst testError1SchemaMatch = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t'testError1.schema',\n\t\t\ttestError1.files\n\t\t)\n\n\t\tconst testError1BuilderMatch = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t'testError1.builder',\n\t\t\ttestError1.files\n\t\t)\n\n\t\tawait createAction.execute({\n\t\t\tnameCamel: 'testError2',\n\t\t\tnameReadable: 'Test error 2',\n\t\t})\n\n\t\t// #spruce/errors should exist\n\t\tassert.isTrue(diskUtil.doesFileExist(this.resolveHashSprucePath('errors')))\n\n\t\ttypesContent = diskUtil.readFile(this.errorTypesFile)\n\n\t\t// types should include both\n\t\tassert.doesInclude(\n\t\t\ttypesContent,\n\t\t\t/SpruceErrors\\.TestingErrors.*?TestError1/gis\n\t\t)\n\t\tassert.doesInclude(\n\t\t\ttypesContent,\n\t\t\t/SpruceErrors\\.TestingErrors.*?TestError2/gis\n\t\t)\n\n\t\t// definition file for testError1\n\t\tassert.isTrue(diskUtil.doesFileExist(testError1SchemaMatch))\n\n\t\t// delete builder 1\n\t\tdiskUtil.deleteFile(testError1BuilderMatch)\n\t\tassert.isFalse(diskUtil.doesFileExist(testError1BuilderMatch))\n\n\t\t// sync\n\t\tawait this.Action('error', 'sync').execute({})\n\n\t\t// types should no longer include test error 1\n\t\ttypesContent = diskUtil.readFile(this.errorTypesFile)\n\t\tassert.doesNotInclude(\n\t\t\ttypesContent,\n\t\t\t/SpruceErrors\\.TestingErrors.*?TestError1/\n\t\t)\n\n\t\t// the definition file should be gone now\n\t\tassert.isFalse(diskUtil.doesFileExist(testError1SchemaMatch))\n\t}\n\n\t@test()\n\tprotected static async canHandleNestedSchemasWithoutAddingThemToOptions() {\n\t\tawait this.installErrorFeature('errors')\n\t\tconst source = this.resolveTestPath('nested_error_schemas')\n\t\tconst destination = this.resolvePath('src/errors')\n\n\t\tawait diskUtil.copyDir(source, destination)\n\n\t\tconst results = await this.Action('error', 'sync').execute({})\n\t\tconst errorTypesFile = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t/errors\\.types/,\n\t\t\tresults.files\n\t\t)\n\n\t\tconst typeChecker = this.Service('typeChecker')\n\t\tawait typeChecker.check(errorTypesFile)\n\n\t\tconst errorOptionsFile = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t/options\\.types/,\n\t\t\tresults.files\n\t\t)\n\n\t\tconst contents = diskUtil.readFile(errorOptionsFile)\n\t\tassert.doesNotInclude(contents, 'INestedSchema')\n\n\t\tconst errorClassFile = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t'SpruceError.ts',\n\t\t\tresults.files\n\t\t)\n\t\tlet classContents = diskUtil.readFile(errorClassFile)\n\t\tassert.doesNotInclude(classContents, /NESTED_SCHEMA/)\n\n\t\tconst createAction = this.Action('error', 'create')\n\t\tawait createAction.execute({\n\t\t\tnameCamel: 'testError2',\n\t\t\tnameReadable: 'Test error 2',\n\t\t})\n\n\t\tconst syncResults = await this.Action('error', 'sync').execute({})\n\n\t\tclassContents = diskUtil.readFile(errorClassFile)\n\t\tassert.doesNotInclude(classContents, /NESTED_SCHEMA/)\n\n\t\tawait this.assertValidActionResponseFiles(syncResults)\n\n\t\tconst parentSchema = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t'good.schema.ts',\n\t\t\tsyncResults.files\n\t\t)\n\n\t\tconst parentSchemaContents = diskUtil.readFile(parentSchema)\n\n\t\tassert.doesNotInclude(parentSchemaContents, this.cwd)\n\t}\n\n\t@test()\n\tprotected static async canCreateAndSyncErrorsWithNoCoreSchemasAndNoFields() {\n\t\tawait this.installErrorFeature('errors')\n\n\t\tconst createAction = this.Action('error', 'create')\n\n\t\tconst results = await createAction.execute({\n\t\t\tnameReadable: 'Test error',\n\t\t\tnameCamel: 'testError',\n\t\t\tshouldFetchCoreSchemas: false,\n\t\t})\n\n\t\tassert.isFalsy(results.errors)\n\t\tassert.isTruthy(results.files)\n\t\tdiskUtil.writeFile(\n\t\t\tresults.files[0].path,\n\t\t\t`import { buildErrorSchema } from '@sprucelabs/schema'\n\n\n\t\texport default buildErrorSchema({\n\t\t\tid: 'testError',\n\t\t\tname: 'Test error',\n\t\t\tdescription: '',\n\t\t\tfields: {\n\t\t\t}\n\t\t})`\n\t\t)\n\n\t\tconst syncAction = this.Action('error', 'sync')\n\t\tconst syncResults = await syncAction.execute({\n\t\t\tshouldFetchCoreSchemas: false,\n\t\t})\n\t\tassert.isFalsy(syncResults.errors)\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAD,sBAAA,CAAAH,OAAA;AACA,IAAAK,KAAA,GAAAF,sBAAA,CAAAH,OAAA;AAA4D,IAAAM,IAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,MAAA;AAAA,SAAAC,aAAAC,OAAA,QAAAC,yBAAA,GAAAC,yBAAA,oBAAAC,qBAAA,QAAAC,KAAA,OAAAC,gBAAA,aA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jBpB,iBAAM,CAAC8E,OAAO,CAACjB,WAAW,CAACvC,MAAM,CAAC;YAAA;YAAA;cAAA,OAAAsD,SAAA,CAAAxE,IAAA;UAAA;QAAA,GAAAqE,QAAA;MAAA,CAClC;MAAA,SAAAQ,mDAAA;QAAA,OAAAT,mDAAA,CAAArG,KAAA,OAAAD,SAAA;MAAA;MAAA,OAAA+G,kDAAA;IAAA;EAAA;EAAA,OAAArG,uBAAA;AAAA,EA7NmDsG,8BAAiB,QAAAC,0BAAA,aAAA9H,MAAA,yBAAAL,IAAA,GAAAoI,MAAA,CAAAC,wBAAA,CAAAhI,MAAA,yBAAAA,MAAA,OAAA8H,0BAAA,aAAA9H,MAAA,6CAAAJ,KAAA,GAAAmI,MAAA,CAAAC,wBAAA,CAAAhI,MAAA,6CAAAA,MAAA,OAAA8H,0BAAA,aAAA9H,MAAA,4CAAAH,KAAA,GAAAkI,MAAA,CAAAC,wBAAA,CAAAhI,MAAA,4CAAAA,MAAA,OAAA8H,0BAAA,aAAA9H,MAAA,uDAAAF,KAAA,GAAAiI,MAAA,CAAAC,wBAAA,CAAAhI,MAAA,uDAAAA,MAAA,OAAA8H,0BAAA,aAAA9H,MAAA,yDAAAD,KAAA,GAAAgI,MAAA,CAAAC,wBAAA,CAAAhI,MAAA,yDAAAA,MAAA,IAAAA,MAAA;AAAAiI,OAAA,cAAA1G,uBAAA"}
|
|
1
|
+
{"version":3,"file":"KeepingErrorsInSync.test.js","names":["_spruceSkillUtils","require","_testUtils","_ImportService","_interopRequireDefault","_AbstractErrorTest2","_test","_dec","_dec2","_dec3","_dec4","_dec5","_class","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","KeepingErrorsInSyncTest","test","_AbstractErrorTest","_hasSyncErrorAction","_returnsHelpfulErrorWhenTsNodeIsRemoved","_errorsStayInSyncWhenSchemasAreDeleted","_canHandleNestedSchemasWithoutAddingThemToOptions","_canCreateAndSyncErrorsWithNoCoreSchemasAndNoFields","_inherits2","_super","_classCallCheck2","_createClass2","key","value","hasSyncErrorAction","_asyncToGenerator2","_regenerator","mark","_callee","wrap","_callee$","_context","prev","next","Cli","assert","isFunction","Action","execute","stop","returnsHelpfulErrorWhenTsNodeIsRemoved","_callee2","createAction","pkg","results","_callee2$","_context2","installErrorFeature","nameReadable","nameCamel","Service","uninstall","ImportService","clearCache","sent","isTruthy","errors","isLength","errorsStayInSyncWhenSchemasAreDeleted","_callee3","optionsMatch","typesMatch","optionsContent","typesContent","builderMatch","testError1","testError1SchemaMatch","testError1BuilderMatch","_callee3$","_context3","testUtil","assertFileByNameInGeneratedFiles","files","check","diskUtil","readFile","doesInclude","deleteFile","isFalse","doesFileExist","resolveHashSprucePath","isTrue","errorTypesFile","doesNotInclude","canHandleNestedSchemasWithoutAddingThemToOptions","_callee4","source","destination","typeChecker","errorOptionsFile","contents","errorClassFile","classContents","syncResults","parentSchema","parentSchemaContents","_callee4$","_context4","resolveTestPath","resolvePath","copyDir","assertValidActionResponseFiles","cwd","canCreateAndSyncErrorsWithNoCoreSchemasAndNoFields","_callee5","syncAction","_callee5$","_context5","shouldFetchCoreSchemas","isFalsy","writeFile","path","AbstractErrorTest","_applyDecoratedDescriptor2","Object","getOwnPropertyDescriptor","exports"],"sources":["../../../../src/__tests__/behavioral/errors/KeepingErrorsInSync.test.ts"],"sourcesContent":["import { diskUtil } from '@sprucelabs/spruce-skill-utils'\nimport { assert, test } from '@sprucelabs/test-utils'\nimport ImportService from '../../../services/ImportService'\nimport AbstractErrorTest from '../../../tests/AbstractErrorTest'\nimport testUtil from '../../../tests/utilities/test.utility'\n\nexport default class KeepingErrorsInSyncTest extends AbstractErrorTest {\n\t@test()\n\tprotected static async hasSyncErrorAction() {\n\t\tawait this.Cli()\n\t\tassert.isFunction(this.Action('error', 'sync').execute)\n\t}\n\n\t@test()\n\tprotected static async returnsHelpfulErrorWhenTsNodeIsRemoved() {\n\t\tawait this.installErrorFeature('errors')\n\n\t\tconst createAction = this.Action('error', 'create')\n\n\t\tawait createAction.execute({\n\t\t\tnameReadable: 'Test error',\n\t\t\tnameCamel: 'testError',\n\t\t})\n\n\t\tconst pkg = this.Service('pkg')\n\t\tawait pkg.uninstall('ts-node')\n\n\t\tImportService.clearCache()\n\n\t\tconst results = await this.Action('error', 'sync').execute({})\n\n\t\tassert.isTruthy(results.errors)\n\t\tassert.isLength(results.errors, 1)\n\t}\n\n\t@test()\n\tprotected static async errorsStayInSyncWhenSchemasAreDeleted() {\n\t\tawait this.installErrorFeature('errors')\n\n\t\tconst createAction = this.Action('error', 'create')\n\n\t\tconst results = await createAction.execute({\n\t\t\tnameReadable: 'Test error',\n\t\t\tnameCamel: 'testError',\n\t\t})\n\n\t\tconst optionsMatch = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t/^options\\.types/,\n\t\t\tresults.files\n\t\t)\n\n\t\tawait this.Service('typeChecker').check(optionsMatch)\n\n\t\tconst typesMatch = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t/^errors\\.types/,\n\t\t\tresults.files\n\t\t)\n\n\t\t// should contain our test error\n\t\tlet optionsContent = diskUtil.readFile(optionsMatch)\n\t\tassert.doesInclude(optionsContent, /SpruceErrors\\.TestingErrors\\.TestError/)\n\n\t\tlet typesContent = diskUtil.readFile(typesMatch)\n\t\tassert.doesInclude(\n\t\t\ttypesContent,\n\t\t\t/SpruceErrors\\.TestingErrors.*?TestError/gis\n\t\t)\n\n\t\t// delete our testError\n\t\tconst builderMatch = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t/testError\\.builder/,\n\t\t\tresults.files\n\t\t)\n\n\t\tdiskUtil.deleteFile(builderMatch)\n\n\t\t// resync\n\t\tawait this.Action('error', 'sync').execute({})\n\n\t\t// #spruce/errors should not exist\n\t\tassert.isFalse(diskUtil.doesFileExist(this.resolveHashSprucePath('errors')))\n\n\t\t// build 2 errors\n\t\tconst testError1 = await createAction.execute({\n\t\t\tnameCamel: 'testError1',\n\t\t\tnameReadable: 'Test error 1',\n\t\t})\n\n\t\tconst testError1SchemaMatch = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t'testError1.schema',\n\t\t\ttestError1.files\n\t\t)\n\n\t\tconst testError1BuilderMatch = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t'testError1.builder',\n\t\t\ttestError1.files\n\t\t)\n\n\t\tawait createAction.execute({\n\t\t\tnameCamel: 'testError2',\n\t\t\tnameReadable: 'Test error 2',\n\t\t})\n\n\t\t// #spruce/errors should exist\n\t\tassert.isTrue(diskUtil.doesFileExist(this.resolveHashSprucePath('errors')))\n\n\t\ttypesContent = diskUtil.readFile(this.errorTypesFile)\n\n\t\t// types should include both\n\t\tassert.doesInclude(\n\t\t\ttypesContent,\n\t\t\t/SpruceErrors\\.TestingErrors.*?TestError1/gis\n\t\t)\n\t\tassert.doesInclude(\n\t\t\ttypesContent,\n\t\t\t/SpruceErrors\\.TestingErrors.*?TestError2/gis\n\t\t)\n\n\t\t// definition file for testError1\n\t\tassert.isTrue(diskUtil.doesFileExist(testError1SchemaMatch))\n\n\t\t// delete builder 1\n\t\tdiskUtil.deleteFile(testError1BuilderMatch)\n\t\tassert.isFalse(diskUtil.doesFileExist(testError1BuilderMatch))\n\n\t\t// sync\n\t\tawait this.Action('error', 'sync').execute({})\n\n\t\t// types should no longer include test error 1\n\t\ttypesContent = diskUtil.readFile(this.errorTypesFile)\n\t\tassert.doesNotInclude(\n\t\t\ttypesContent,\n\t\t\t/SpruceErrors\\.TestingErrors.*?TestError1/\n\t\t)\n\n\t\t// the definition file should be gone now\n\t\tassert.isFalse(diskUtil.doesFileExist(testError1SchemaMatch))\n\t}\n\n\t@test()\n\tprotected static async canHandleNestedSchemasWithoutAddingThemToOptions() {\n\t\tawait this.installErrorFeature('errors')\n\t\tconst source = this.resolveTestPath('nested_error_schemas')\n\t\tconst destination = this.resolvePath('src/errors')\n\n\t\tawait diskUtil.copyDir(source, destination)\n\n\t\tconst results = await this.Action('error', 'sync').execute({})\n\t\tconst errorTypesFile = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t/errors\\.types/,\n\t\t\tresults.files\n\t\t)\n\n\t\tconst typeChecker = this.Service('typeChecker')\n\t\tawait typeChecker.check(errorTypesFile)\n\n\t\tconst errorOptionsFile = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t/options\\.types/,\n\t\t\tresults.files\n\t\t)\n\n\t\tconst contents = diskUtil.readFile(errorOptionsFile)\n\t\tassert.doesNotInclude(contents, 'INestedSchema')\n\n\t\tconst errorClassFile = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t'SpruceError.ts',\n\t\t\tresults.files\n\t\t)\n\t\tlet classContents = diskUtil.readFile(errorClassFile)\n\t\tassert.doesNotInclude(classContents, /NESTED_SCHEMA/)\n\n\t\tconst createAction = this.Action('error', 'create')\n\t\tawait createAction.execute({\n\t\t\tnameCamel: 'testError2',\n\t\t\tnameReadable: 'Test error 2',\n\t\t})\n\n\t\tconst syncResults = await this.Action('error', 'sync').execute({})\n\n\t\tclassContents = diskUtil.readFile(errorClassFile)\n\t\tassert.doesNotInclude(classContents, /NESTED_SCHEMA/)\n\n\t\tawait this.assertValidActionResponseFiles(syncResults)\n\n\t\tconst parentSchema = testUtil.assertFileByNameInGeneratedFiles(\n\t\t\t'good.schema.ts',\n\t\t\tsyncResults.files\n\t\t)\n\n\t\tconst parentSchemaContents = diskUtil.readFile(parentSchema)\n\n\t\tassert.doesNotInclude(parentSchemaContents, this.cwd)\n\t}\n\n\t@test()\n\tprotected static async canCreateAndSyncErrorsWithNoCoreSchemasAndNoFields() {\n\t\tawait this.installErrorFeature('errors')\n\n\t\tconst createAction = this.Action('error', 'create')\n\n\t\tconst results = await createAction.execute({\n\t\t\tnameReadable: 'Test error',\n\t\t\tnameCamel: 'testError',\n\t\t\tshouldFetchCoreSchemas: false,\n\t\t})\n\n\t\tassert.isFalsy(results.errors)\n\t\tassert.isTruthy(results.files)\n\t\tdiskUtil.writeFile(\n\t\t\tresults.files[0].path,\n\t\t\t`import { buildErrorSchema } from '@sprucelabs/schema'\n\n\n\t\texport default buildErrorSchema({\n\t\t\tid: 'testError',\n\t\t\tname: 'Test error',\n\t\t\tdescription: '',\n\t\t\tfields: {\n\t\t\t}\n\t\t})`\n\t\t)\n\n\t\tconst syncAction = this.Action('error', 'sync')\n\t\tconst syncResults = await syncAction.execute({\n\t\t\tshouldFetchCoreSchemas: false,\n\t\t})\n\t\tassert.isFalsy(syncResults.errors)\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAD,sBAAA,CAAAH,OAAA;AACA,IAAAK,KAAA,GAAAF,sBAAA,CAAAH,OAAA;AAA4D,IAAAM,IAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,MAAA;AAAA,SAAAC,aAAAC,OAAA,QAAAC,yBAAA,GAAAC,yBAAA,oBAAAC,qBAAA,QAAAC,KAAA,OAAAC,gBAAA,aAAAL,OAAA,GAAAM,MAAA,MAAAL,yBAAA,QAAAM,SAAA,OAAAF,gBAAA,mBAAAG,WAAA,EAAAF,MAAA,GAAAG,OAAA,CAAAC,SAAA,CAAAN,KAAA,EAAAO,SAAA,EAAAJ,SAAA,YAAAD,MAAA,GAAAF,KAAA,CAAAQ,KAAA,OAAAD,SAAA,gBAAAE,2BAAA,mBAAAP,MAAA;AAAA,SAAAJ,0BAAA,eAAAO,OAAA,qBAAAA,OAAA,CAAAC,SAAA,oBAAAD,OAAA,CAAAC,SAAA,CAAAI,IAAA,2BAAAC,KAAA,oCAAAC,OAAA,CAAAC,SAAA,CAAAC,OAAA,CAAAC,IAAA,CAAAV,OAA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AA,CAAAhI,MAAA,4CAAAA,MAAA,OAAA8H,0BAAA,aAAA9H,MAAA,uDAAAF,KAAA,GAAAiI,MAAA,CAAAC,wBAAA,CAAAhI,MAAA,uDAAAA,MAAA,OAAA8H,0BAAA,aAAA9H,MAAA,yDAAAD,KAAA,GAAAgI,MAAA,CAAAC,wBAAA,CAAAhI,MAAA,yDAAAA,MAAA,IAAAA,MAAA;AAAAiI,OAAA,cAAA1G,uBAAA"}
|
|
@@ -18,7 +18,7 @@ var _AbstractErrorTest2 = _interopRequireDefault(require("../../../tests/Abstrac
|
|
|
18
18
|
var _dec, _dec2, _class;
|
|
19
19
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
|
20
20
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
21
|
-
var SettingUpErrorTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.test)(), (_class = /*#__PURE__*/function (_AbstractErrorTest) {
|
|
21
|
+
var SettingUpErrorTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.test)(), (_class = /*#__PURE__*/function (_AbstractErrorTest, _failsIfSkillIsNotInstalled, _installsSchemasIfNotInstalled) {
|
|
22
22
|
(0, _inherits2["default"])(SettingUpErrorTest, _AbstractErrorTest);
|
|
23
23
|
var _super = _createSuper(SettingUpErrorTest);
|
|
24
24
|
function SettingUpErrorTest() {
|
|
@@ -27,8 +27,8 @@ var SettingUpErrorTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.
|
|
|
27
27
|
}
|
|
28
28
|
(0, _createClass2["default"])(SettingUpErrorTest, null, [{
|
|
29
29
|
key: "failsIfSkillIsNotInstalled",
|
|
30
|
-
value: function () {
|
|
31
|
-
|
|
30
|
+
value: function failsIfSkillIsNotInstalled() {
|
|
31
|
+
return (_failsIfSkillIsNotInstalled = _failsIfSkillIsNotInstalled || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
32
32
|
var fixture, err;
|
|
33
33
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
34
34
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -48,16 +48,12 @@ var SettingUpErrorTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.
|
|
|
48
48
|
return _context.stop();
|
|
49
49
|
}
|
|
50
50
|
}, _callee, this);
|
|
51
|
-
}));
|
|
52
|
-
|
|
53
|
-
return _failsIfSkillIsNotInstalled.apply(this, arguments);
|
|
54
|
-
}
|
|
55
|
-
return failsIfSkillIsNotInstalled;
|
|
56
|
-
}()
|
|
51
|
+
}))).apply(this, arguments);
|
|
52
|
+
}
|
|
57
53
|
}, {
|
|
58
54
|
key: "installsSchemasIfNotInstalled",
|
|
59
|
-
value: function () {
|
|
60
|
-
|
|
55
|
+
value: function installsSchemasIfNotInstalled() {
|
|
56
|
+
return (_installsSchemasIfNotInstalled = _installsSchemasIfNotInstalled || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
61
57
|
var installer, isSchemaInstalled, isErrorInstalled;
|
|
62
58
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
63
59
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -81,12 +77,8 @@ var SettingUpErrorTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.
|
|
|
81
77
|
return _context2.stop();
|
|
82
78
|
}
|
|
83
79
|
}, _callee2, this);
|
|
84
|
-
}));
|
|
85
|
-
|
|
86
|
-
return _installsSchemasIfNotInstalled.apply(this, arguments);
|
|
87
|
-
}
|
|
88
|
-
return installsSchemasIfNotInstalled;
|
|
89
|
-
}()
|
|
80
|
+
}))).apply(this, arguments);
|
|
81
|
+
}
|
|
90
82
|
}]);
|
|
91
83
|
return SettingUpErrorTest;
|
|
92
84
|
}(_AbstractErrorTest2["default"]), ((0, _applyDecoratedDescriptor2["default"])(_class, "failsIfSkillIsNotInstalled", [_dec], Object.getOwnPropertyDescriptor(_class, "failsIfSkillIsNotInstalled"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "installsSchemasIfNotInstalled", [_dec2], Object.getOwnPropertyDescriptor(_class, "installsSchemasIfNotInstalled"), _class)), _class));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SettingUpErrors.test.js","names":["_testUtils","require","_AbstractErrorTest2","_interopRequireDefault","_dec","_dec2","_class","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","SettingUpErrorTest","test","_AbstractErrorTest","_inherits2","_super","_classCallCheck2","_createClass2","key","value","
|
|
1
|
+
{"version":3,"file":"SettingUpErrors.test.js","names":["_testUtils","require","_AbstractErrorTest2","_interopRequireDefault","_dec","_dec2","_class","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","SettingUpErrorTest","test","_AbstractErrorTest","_failsIfSkillIsNotInstalled","_installsSchemasIfNotInstalled","_inherits2","_super","_classCallCheck2","_createClass2","key","value","failsIfSkillIsNotInstalled","_asyncToGenerator2","_regenerator","mark","_callee","fixture","err","wrap","_callee$","_context","prev","next","FeatureFixture","assert","doesThrowAsync","installFeatures","code","sent","errorAssert","assertError","stop","installsSchemasIfNotInstalled","_callee2","installer","isSchemaInstalled","isErrorInstalled","_callee2$","_context2","installErrorFeature","featureInstaller","isInstalled","isTrue","AbstractErrorTest","_applyDecoratedDescriptor2","Object","getOwnPropertyDescriptor","exports"],"sources":["../../../../src/__tests__/behavioral/errors/SettingUpErrors.test.ts"],"sourcesContent":["import { test, assert } from '@sprucelabs/test-utils'\nimport { errorAssert } from '@sprucelabs/test-utils'\nimport AbstractErrorTest from '../../../tests/AbstractErrorTest'\n\nexport default class SettingUpErrorTest extends AbstractErrorTest {\n\t@test()\n\tprotected static async failsIfSkillIsNotInstalled() {\n\t\tconst fixture = this.FeatureFixture()\n\t\tconst err = await assert.doesThrowAsync(() =>\n\t\t\tfixture.installFeatures([\n\t\t\t\t{\n\t\t\t\t\tcode: 'error',\n\t\t\t\t},\n\t\t\t])\n\t\t)\n\n\t\terrorAssert.assertError(err, 'VALIDATION_FAILED')\n\t}\n\n\t@test()\n\tprotected static async installsSchemasIfNotInstalled() {\n\t\tawait this.installErrorFeature('errors')\n\n\t\tconst installer = this.featureInstaller\n\n\t\tconst isSchemaInstalled = await installer.isInstalled('schema')\n\t\tassert.isTrue(isSchemaInstalled)\n\n\t\tconst isErrorInstalled = await installer.isInstalled('error')\n\t\tassert.isTrue(isErrorInstalled)\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAAC,mBAAA,GAAAC,sBAAA,CAAAF,OAAA;AAAgE,IAAAG,IAAA,EAAAC,KAAA,EAAAC,MAAA;AAAA,SAAAC,aAAAC,OAAA,QAAAC,yBAAA,GAAAC,yBAAA,oBAAAC,qBAAA,QAAAC,KAAA,OAAAC,gBAAA,aAAAL,OAAA,GAAAM,MAAA,MAAAL,yBAAA,QAAAM,SAAA,OAAAF,gBAAA,mBAAAG,WAAA,EAAAF,MAAA,GAAAG,OAAA,CAAAC,SAAA,CAAAN,KAAA,E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A,aAAAnE,MAAA,iCAAAF,IAAA,GAAAsE,MAAA,CAAAC,wBAAA,CAAArE,MAAA,iCAAAA,MAAA,OAAAmE,0BAAA,aAAAnE,MAAA,oCAAAD,KAAA,GAAAqE,MAAA,CAAAC,wBAAA,CAAArE,MAAA,oCAAAA,MAAA,IAAAA,MAAA;AAAAsE,OAAA,cAAA/C,kBAAA"}
|
|
@@ -22,7 +22,7 @@ var _test = _interopRequireDefault(require("../../../tests/utilities/test.utilit
|
|
|
22
22
|
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _class, _class2;
|
|
23
23
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
|
24
24
|
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; } }
|
|
25
|
-
var GeneratingMercuryEventContractTest = (_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)(), (_class = (_class2 = /*#__PURE__*/function (_AbstractCliTest) {
|
|
25
|
+
var GeneratingMercuryEventContractTest = (_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)(), (_class = (_class2 = /*#__PURE__*/function (_AbstractCliTest, _beforeEach, _hasEventContractFeature, _hasPullFeature, _generatesContractAtCwd, _generatesAtDestination, _savesContractLocallyAndImportsAsDefault, _doesNotPullGlobalContracts, _contractHasTypes, _generatingASecondTimeReportsAnUpdate, _installSkillAndPullContracts, _pullContracts) {
|
|
26
26
|
(0, _inherits2["default"])(GeneratingMercuryEventContractTest, _AbstractCliTest);
|
|
27
27
|
var _super = _createSuper(GeneratingMercuryEventContractTest);
|
|
28
28
|
function GeneratingMercuryEventContractTest() {
|
|
@@ -31,8 +31,8 @@ var GeneratingMercuryEventContractTest = (_dec = (0, _testUtils.test)(), _dec2 =
|
|
|
31
31
|
}
|
|
32
32
|
(0, _createClass2["default"])(GeneratingMercuryEventContractTest, null, [{
|
|
33
33
|
key: "beforeEach",
|
|
34
|
-
value: function () {
|
|
35
|
-
|
|
34
|
+
value: function beforeEach() {
|
|
35
|
+
return (_beforeEach = _beforeEach || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
36
36
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
37
37
|
while (1) switch (_context.prev = _context.next) {
|
|
38
38
|
case 0:
|
|
@@ -49,16 +49,12 @@ var GeneratingMercuryEventContractTest = (_dec = (0, _testUtils.test)(), _dec2 =
|
|
|
49
49
|
return _context.stop();
|
|
50
50
|
}
|
|
51
51
|
}, _callee, this);
|
|
52
|
-
}));
|
|
53
|
-
|
|
54
|
-
return _beforeEach.apply(this, arguments);
|
|
55
|
-
}
|
|
56
|
-
return beforeEach;
|
|
57
|
-
}()
|
|
52
|
+
}))).apply(this, arguments);
|
|
53
|
+
}
|
|
58
54
|
}, {
|
|
59
55
|
key: "hasEventContractFeature",
|
|
60
|
-
value: function () {
|
|
61
|
-
|
|
56
|
+
value: function hasEventContractFeature() {
|
|
57
|
+
return (_hasEventContractFeature = _hasEventContractFeature || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
62
58
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
63
59
|
while (1) switch (_context2.prev = _context2.next) {
|
|
64
60
|
case 0:
|
|
@@ -68,16 +64,12 @@ var GeneratingMercuryEventContractTest = (_dec = (0, _testUtils.test)(), _dec2 =
|
|
|
68
64
|
return _context2.stop();
|
|
69
65
|
}
|
|
70
66
|
}, _callee2, this);
|
|
71
|
-
}));
|
|
72
|
-
|
|
73
|
-
return _hasEventContractFeature.apply(this, arguments);
|
|
74
|
-
}
|
|
75
|
-
return hasEventContractFeature;
|
|
76
|
-
}()
|
|
67
|
+
}))).apply(this, arguments);
|
|
68
|
+
}
|
|
77
69
|
}, {
|
|
78
70
|
key: "hasPullFeature",
|
|
79
|
-
value: function () {
|
|
80
|
-
|
|
71
|
+
value: function hasPullFeature() {
|
|
72
|
+
return (_hasPullFeature = _hasPullFeature || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3() {
|
|
81
73
|
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
82
74
|
while (1) switch (_context3.prev = _context3.next) {
|
|
83
75
|
case 0:
|
|
@@ -87,16 +79,12 @@ var GeneratingMercuryEventContractTest = (_dec = (0, _testUtils.test)(), _dec2 =
|
|
|
87
79
|
return _context3.stop();
|
|
88
80
|
}
|
|
89
81
|
}, _callee3, this);
|
|
90
|
-
}));
|
|
91
|
-
|
|
92
|
-
return _hasPullFeature.apply(this, arguments);
|
|
93
|
-
}
|
|
94
|
-
return hasPullFeature;
|
|
95
|
-
}()
|
|
82
|
+
}))).apply(this, arguments);
|
|
83
|
+
}
|
|
96
84
|
}, {
|
|
97
85
|
key: "generatesContractAtCwd",
|
|
98
|
-
value: function () {
|
|
99
|
-
|
|
86
|
+
value: function generatesContractAtCwd() {
|
|
87
|
+
return (_generatesContractAtCwd = _generatesContractAtCwd || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4() {
|
|
100
88
|
var _results$files;
|
|
101
89
|
var results, match, contents;
|
|
102
90
|
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
|
@@ -123,16 +111,12 @@ var GeneratingMercuryEventContractTest = (_dec = (0, _testUtils.test)(), _dec2 =
|
|
|
123
111
|
return _context4.stop();
|
|
124
112
|
}
|
|
125
113
|
}, _callee4, this);
|
|
126
|
-
}));
|
|
127
|
-
|
|
128
|
-
return _generatesContractAtCwd.apply(this, arguments);
|
|
129
|
-
}
|
|
130
|
-
return generatesContractAtCwd;
|
|
131
|
-
}()
|
|
114
|
+
}))).apply(this, arguments);
|
|
115
|
+
}
|
|
132
116
|
}, {
|
|
133
117
|
key: "generatesAtDestination",
|
|
134
|
-
value: function () {
|
|
135
|
-
|
|
118
|
+
value: function generatesAtDestination() {
|
|
119
|
+
return (_generatesAtDestination = _generatesAtDestination || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5() {
|
|
136
120
|
var results, match, expected;
|
|
137
121
|
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
|
138
122
|
while (1) switch (_context5.prev = _context5.next) {
|
|
@@ -154,16 +138,12 @@ var GeneratingMercuryEventContractTest = (_dec = (0, _testUtils.test)(), _dec2 =
|
|
|
154
138
|
return _context5.stop();
|
|
155
139
|
}
|
|
156
140
|
}, _callee5, this);
|
|
157
|
-
}));
|
|
158
|
-
|
|
159
|
-
return _generatesAtDestination.apply(this, arguments);
|
|
160
|
-
}
|
|
161
|
-
return generatesAtDestination;
|
|
162
|
-
}()
|
|
141
|
+
}))).apply(this, arguments);
|
|
142
|
+
}
|
|
163
143
|
}, {
|
|
164
144
|
key: "savesContractLocallyAndImportsAsDefault",
|
|
165
|
-
value: function () {
|
|
166
|
-
|
|
145
|
+
value: function savesContractLocallyAndImportsAsDefault() {
|
|
146
|
+
return (_savesContractLocallyAndImportsAsDefault = _savesContractLocallyAndImportsAsDefault || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee6() {
|
|
167
147
|
var contracts;
|
|
168
148
|
return _regenerator["default"].wrap(function _callee6$(_context6) {
|
|
169
149
|
while (1) switch (_context6.prev = _context6.next) {
|
|
@@ -180,16 +160,12 @@ var GeneratingMercuryEventContractTest = (_dec = (0, _testUtils.test)(), _dec2 =
|
|
|
180
160
|
return _context6.stop();
|
|
181
161
|
}
|
|
182
162
|
}, _callee6, this);
|
|
183
|
-
}));
|
|
184
|
-
|
|
185
|
-
return _savesContractLocallyAndImportsAsDefault.apply(this, arguments);
|
|
186
|
-
}
|
|
187
|
-
return savesContractLocallyAndImportsAsDefault;
|
|
188
|
-
}()
|
|
163
|
+
}))).apply(this, arguments);
|
|
164
|
+
}
|
|
189
165
|
}, {
|
|
190
166
|
key: "doesNotPullGlobalContracts",
|
|
191
|
-
value: function () {
|
|
192
|
-
|
|
167
|
+
value: function doesNotPullGlobalContracts() {
|
|
168
|
+
return (_doesNotPullGlobalContracts = _doesNotPullGlobalContracts || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee7() {
|
|
193
169
|
var events, contracts;
|
|
194
170
|
return _regenerator["default"].wrap(function _callee7$(_context7) {
|
|
195
171
|
while (1) switch (_context7.prev = _context7.next) {
|
|
@@ -230,16 +206,12 @@ var GeneratingMercuryEventContractTest = (_dec = (0, _testUtils.test)(), _dec2 =
|
|
|
230
206
|
return _context7.stop();
|
|
231
207
|
}
|
|
232
208
|
}, _callee7, this);
|
|
233
|
-
}));
|
|
234
|
-
|
|
235
|
-
return _doesNotPullGlobalContracts.apply(this, arguments);
|
|
236
|
-
}
|
|
237
|
-
return doesNotPullGlobalContracts;
|
|
238
|
-
}()
|
|
209
|
+
}))).apply(this, arguments);
|
|
210
|
+
}
|
|
239
211
|
}, {
|
|
240
212
|
key: "contractHasTypes",
|
|
241
|
-
value: function () {
|
|
242
|
-
|
|
213
|
+
value: function contractHasTypes() {
|
|
214
|
+
return (_contractHasTypes = _contractHasTypes || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee8() {
|
|
243
215
|
var promise, results, match, contents;
|
|
244
216
|
return _regenerator["default"].wrap(function _callee8$(_context8) {
|
|
245
217
|
while (1) switch (_context8.prev = _context8.next) {
|
|
@@ -265,16 +237,12 @@ var GeneratingMercuryEventContractTest = (_dec = (0, _testUtils.test)(), _dec2 =
|
|
|
265
237
|
return _context8.stop();
|
|
266
238
|
}
|
|
267
239
|
}, _callee8, this);
|
|
268
|
-
}));
|
|
269
|
-
|
|
270
|
-
return _contractHasTypes.apply(this, arguments);
|
|
271
|
-
}
|
|
272
|
-
return contractHasTypes;
|
|
273
|
-
}()
|
|
240
|
+
}))).apply(this, arguments);
|
|
241
|
+
}
|
|
274
242
|
}, {
|
|
275
243
|
key: "generatingASecondTimeReportsAnUpdate",
|
|
276
|
-
value: function () {
|
|
277
|
-
|
|
244
|
+
value: function generatingASecondTimeReportsAnUpdate() {
|
|
245
|
+
return (_generatingASecondTimeReportsAnUpdate = _generatingASecondTimeReportsAnUpdate || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee9() {
|
|
278
246
|
var _results$files2;
|
|
279
247
|
var results;
|
|
280
248
|
return _regenerator["default"].wrap(function _callee9$(_context9) {
|
|
@@ -301,16 +269,12 @@ var GeneratingMercuryEventContractTest = (_dec = (0, _testUtils.test)(), _dec2 =
|
|
|
301
269
|
return _context9.stop();
|
|
302
270
|
}
|
|
303
271
|
}, _callee9, this);
|
|
304
|
-
}));
|
|
305
|
-
|
|
306
|
-
return _generatingASecondTimeReportsAnUpdate.apply(this, arguments);
|
|
307
|
-
}
|
|
308
|
-
return generatingASecondTimeReportsAnUpdate;
|
|
309
|
-
}()
|
|
272
|
+
}))).apply(this, arguments);
|
|
273
|
+
}
|
|
310
274
|
}, {
|
|
311
275
|
key: "installSkillAndPullContracts",
|
|
312
|
-
value: function () {
|
|
313
|
-
|
|
276
|
+
value: function installSkillAndPullContracts() {
|
|
277
|
+
return (_installSkillAndPullContracts = _installSkillAndPullContracts || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee10() {
|
|
314
278
|
return _regenerator["default"].wrap(function _callee10$(_context10) {
|
|
315
279
|
while (1) switch (_context10.prev = _context10.next) {
|
|
316
280
|
case 0:
|
|
@@ -327,16 +291,12 @@ var GeneratingMercuryEventContractTest = (_dec = (0, _testUtils.test)(), _dec2 =
|
|
|
327
291
|
return _context10.stop();
|
|
328
292
|
}
|
|
329
293
|
}, _callee10, this);
|
|
330
|
-
}));
|
|
331
|
-
|
|
332
|
-
return _installSkillAndPullContracts.apply(this, arguments);
|
|
333
|
-
}
|
|
334
|
-
return installSkillAndPullContracts;
|
|
335
|
-
}()
|
|
294
|
+
}))).apply(this, arguments);
|
|
295
|
+
}
|
|
336
296
|
}, {
|
|
337
297
|
key: "pullContracts",
|
|
338
|
-
value: function () {
|
|
339
|
-
|
|
298
|
+
value: function pullContracts() {
|
|
299
|
+
return (_pullContracts = _pullContracts || (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee11() {
|
|
340
300
|
var results, match, contracts;
|
|
341
301
|
return _regenerator["default"].wrap(function _callee11$(_context11) {
|
|
342
302
|
while (1) switch (_context11.prev = _context11.next) {
|
|
@@ -356,12 +316,8 @@ var GeneratingMercuryEventContractTest = (_dec = (0, _testUtils.test)(), _dec2 =
|
|
|
356
316
|
return _context11.stop();
|
|
357
317
|
}
|
|
358
318
|
}, _callee11, this);
|
|
359
|
-
}));
|
|
360
|
-
|
|
361
|
-
return _pullContracts.apply(this, arguments);
|
|
362
|
-
}
|
|
363
|
-
return pullContracts;
|
|
364
|
-
}()
|
|
319
|
+
}))).apply(this, arguments);
|
|
320
|
+
}
|
|
365
321
|
}]);
|
|
366
322
|
return GeneratingMercuryEventContractTest;
|
|
367
323
|
}(_AbstractCliTest2["default"]), (0, _defineProperty2["default"])(_class2, "cli", void 0), _class2), ((0, _applyDecoratedDescriptor2["default"])(_class, "hasEventContractFeature", [_dec], Object.getOwnPropertyDescriptor(_class, "hasEventContractFeature"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "hasPullFeature", [_dec2], Object.getOwnPropertyDescriptor(_class, "hasPullFeature"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "generatesContractAtCwd", [_dec3], Object.getOwnPropertyDescriptor(_class, "generatesContractAtCwd"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "generatesAtDestination", [_dec4], Object.getOwnPropertyDescriptor(_class, "generatesAtDestination"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "savesContractLocallyAndImportsAsDefault", [_dec5], Object.getOwnPropertyDescriptor(_class, "savesContractLocallyAndImportsAsDefault"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "doesNotPullGlobalContracts", [_dec6], Object.getOwnPropertyDescriptor(_class, "doesNotPullGlobalContracts"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "contractHasTypes", [_dec7], Object.getOwnPropertyDescriptor(_class, "contractHasTypes"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "generatingASecondTimeReportsAnUpdate", [_dec8], Object.getOwnPropertyDescriptor(_class, "generatingASecondTimeReportsAnUpdate"), _class)), _class));
|