@sprucelabs/spruce-cli 19.0.0 → 19.1.1
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/.DS_Store +0 -0
- package/.env +25 -0
- package/.eslintcache +1 -0
- package/CHANGELOG.md +6 -0
- package/build/.spruce/errors/spruceCli/actionCancelled.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/bootError.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/buildFailed.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/cacheNotEnabled.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/commandAborted.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/commandBlocked.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/commandNotImplemented.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/createAutoloaderFailed.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/dependencyExists.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/deployFailed.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/directoryEmpty.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/directoryNotSkill.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/dockerNotStarted.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/executingCommandFailed.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/failedToImport.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/featureNotInstalled.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/fileExists.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/generic.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/invalidCommand.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/invalidEventContract.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/invalidFeatureCode.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/invalidTestDirectory.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/lintFailed.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/mercuryResponseError.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/missingDependencies.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/missingDependenciesDependency.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/noOrganizationsFound.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/noSkillsRegistered.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/notImplemented.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/notLoggedIn.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/schemaExists.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/schemaFailedToImport.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/schemaTemplateItemBuildingFailed.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/skillNotFound.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/skillNotRegistered.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/skillViewExists.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/storeExists.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/testFailed.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/themeExists.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/transportAlreadyExists.schema.js.map +1 -1
- package/build/.spruce/errors/spruceCli/vscodeNotInstalled.schema.js.map +1 -1
- package/build/.spruce/events/events.contract.js.map +1 -1
- package/build/.spruce/events/heartwood/didRegisterSkillViews.v2021_02_11.contract.js.map +1 -1
- package/build/.spruce/events/heartwood/generateUrl.v2021_02_11.contract.js.map +1 -1
- package/build/.spruce/events/heartwood/getActiveTheme.v2021_02_11.contract.js.map +1 -1
- package/build/.spruce/events/heartwood/getSkillViews.v2021_02_11.contract.js.map +1 -1
- package/build/.spruce/events/heartwood/listViews.v2021_02_11.contract.js.map +1 -1
- package/build/.spruce/events/heartwood/registerDashboardCards.v2021_02_11.contract.js.map +1 -1
- package/build/.spruce/events/heartwood/registerSkillViews.v2021_02_11.contract.js.map +1 -1
- package/build/.spruce/events/heartwood/upsertTheme.v2021_02_11.contract.js.map +1 -1
- package/build/.spruce/events/spruceCli/registerSkillViews.v2021_04_11.contract.js.map +1 -1
- package/build/.spruce/schemas/fields/fieldClassMap.js.map +1 -1
- package/build/.spruce/schemas/fields/fields.types.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/didRegisterSkillViewsEmitPayload.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/didRegisterSkillViewsEmitTarget.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/didRegisterSkillViewsEmitTargetAndPayload.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/generateUrlEmitPayload.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/generateUrlEmitTarget.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/generateUrlEmitTargetAndPayload.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/generateUrlResponsePayload.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/getActiveThemeEmitTarget.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/getActiveThemeEmitTargetAndPayload.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/getActiveThemeResponsePayload.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/getSkillViewsEmitTargetAndPayload.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/getSkillViewsResponsePayload.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/getViewControllersEmitTarget.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/listViewsResponsePayload.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/listViewsResult.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/registerDashboardCardsResponsePayload.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/registerSkillViewsEmitPayload.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/registerSkillViewsEmitTargetAndPayload.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/registerSkillViewsResponsePayload.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/theme.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/upsertThemeEmitPayload.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/upsertThemeEmitTarget.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/upsertThemeEmitTargetAndPayload.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwood/v2021_02_11/upsertThemeResponsePayload.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/theme.schema.js.map +1 -1
- package/build/.spruce/schemas/heartwoodViewControllers/v2021_02_11/themeProps.schema.js.map +1 -1
- package/build/.spruce/schemas/schemas.types.js.map +1 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/choice.schema.js.map +1 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/link.schema.js.map +1 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/location.schema.js.map +1 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/message.schema.js.map +1 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/messageSource.schema.js.map +1 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/messageTarget.schema.js.map +1 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/organization.schema.js.map +1 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/person.schema.js.map +1 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/personLocation.schema.js.map +1 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/personOrganization.schema.js.map +1 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/role.schema.js.map +1 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/sendMessage.schema.js.map +1 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/skill.schema.js.map +1 -1
- package/build/.spruce/schemas/spruce/v2020_07_22/skillCreator.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/actionResponse.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/bootSkillOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/createConversationTopicOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/createErrorOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/createOrganizationOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/createSchemaOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/createTestOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/generatedDir.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/generatedFile.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/installSkillAtOrganizationOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/listenEventOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/namedTemplateItem.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/nodeFeatureOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/npmPackage.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/onboardOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/onboarding.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/personWithToken.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/registerDashboardWidgetsEmitPayloadSchema.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/setupTestsOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/setupVscodeOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/skillFeature.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/syncErrorOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/syncEventOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/syncSchemaFieldsOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/syncSchemasOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/testOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/upgradeSkillOptions.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceCli/v2020_07_22/watcherDidDetectChangesEmitPayload.schema.js.map +1 -1
- package/build/.spruce/schemas/spruceEventUtils/v2021_09_13/eventSource.schema.js.map +1 -1
- package/build/.spruce/skill.types.js.map +1 -1
- package/build/GlobalEmitter.js.map +1 -1
- package/build/InFlightEntertainment.js.map +1 -1
- package/build/__tests__/behavioral/AddingADependency.test.js +130 -144
- package/build/__tests__/behavioral/AddingADependency.test.js.map +1 -1
- package/build/__tests__/behavioral/BlockingCommands.test.js +59 -63
- package/build/__tests__/behavioral/BlockingCommands.test.js.map +1 -1
- package/build/__tests__/behavioral/BootingTheCli.test.d.ts +2 -1
- package/build/__tests__/behavioral/BootingTheCli.test.js +60 -22
- package/build/__tests__/behavioral/BootingTheCli.test.js.map +1 -1
- package/build/__tests__/behavioral/BootingWithBadFiles.test.js +46 -52
- package/build/__tests__/behavioral/BootingWithBadFiles.test.js.map +1 -1
- package/build/__tests__/behavioral/CreatingAConversationTopic.test.js +50 -56
- package/build/__tests__/behavioral/CreatingAConversationTopic.test.js.map +1 -1
- package/build/__tests__/behavioral/DeployingASkill.test.js +512 -548
- package/build/__tests__/behavioral/DeployingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/DeployingToSandbox.test.js +321 -351
- package/build/__tests__/behavioral/DeployingToSandbox.test.js.map +1 -1
- package/build/__tests__/behavioral/EnablingAndDisablingCache.test.js +137 -153
- package/build/__tests__/behavioral/EnablingAndDisablingCache.test.js.map +1 -1
- package/build/__tests__/behavioral/GettingCliVersion.test.js +31 -37
- package/build/__tests__/behavioral/GettingCliVersion.test.js.map +1 -1
- package/build/__tests__/behavioral/ManagingDependencies.test.js +112 -122
- package/build/__tests__/behavioral/ManagingDependencies.test.js.map +1 -1
- package/build/__tests__/behavioral/OverridingCommandsInPackageJson.test.js +41 -45
- package/build/__tests__/behavioral/OverridingCommandsInPackageJson.test.js.map +1 -1
- package/build/__tests__/behavioral/RegisteringConversationsOnBoot.test.js +55 -59
- package/build/__tests__/behavioral/RegisteringConversationsOnBoot.test.js.map +1 -1
- package/build/__tests__/behavioral/RememberingUpgradeSelections.test.js +56 -64
- package/build/__tests__/behavioral/RememberingUpgradeSelections.test.js.map +1 -1
- package/build/__tests__/behavioral/SettingLogTransportsInASkill.test.js +90 -104
- package/build/__tests__/behavioral/SettingLogTransportsInASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/SettingRemote.test.js +64 -74
- package/build/__tests__/behavioral/SettingRemote.test.js.map +1 -1
- package/build/__tests__/behavioral/SettingUpVscode.test.js +52 -56
- package/build/__tests__/behavioral/SettingUpVscode.test.js.map +1 -1
- package/build/__tests__/behavioral/TestingAConversation.test.js +143 -157
- package/build/__tests__/behavioral/TestingAConversation.test.js.map +1 -1
- package/build/__tests__/behavioral/errors/CreatingANewErrorBuilder.test.js +90 -100
- package/build/__tests__/behavioral/errors/CreatingANewErrorBuilder.test.js.map +1 -1
- package/build/__tests__/behavioral/errors/KeepingErrorClassInSync.test.js +74 -78
- package/build/__tests__/behavioral/errors/KeepingErrorClassInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/errors/KeepingErrorsInSync.test.js +180 -190
- package/build/__tests__/behavioral/errors/KeepingErrorsInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/errors/SettingUpErrors.test.js +34 -38
- package/build/__tests__/behavioral/errors/SettingUpErrors.test.js.map +1 -1
- package/build/__tests__/behavioral/eventContract/PullingMercuryEventContract.test.js +179 -201
- package/build/__tests__/behavioral/eventContract/PullingMercuryEventContract.test.js.map +1 -1
- package/build/__tests__/behavioral/events/CreatingAListener.test.js +423 -459
- package/build/__tests__/behavioral/events/CreatingAListener.test.js.map +1 -1
- package/build/__tests__/behavioral/events/CreatingAnEvent.test.js +287 -315
- package/build/__tests__/behavioral/events/CreatingAnEvent.test.js.map +1 -1
- package/build/__tests__/behavioral/events/EventWriter.test.js +64 -66
- package/build/__tests__/behavioral/events/EventWriter.test.js.map +1 -1
- package/build/__tests__/behavioral/events/KeepingEventsInSync.test.js +286 -316
- package/build/__tests__/behavioral/events/KeepingEventsInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/events/KeepingEventsInSync2.test.js +398 -420
- package/build/__tests__/behavioral/events/KeepingEventsInSync2.test.js.map +1 -1
- package/build/__tests__/behavioral/events/KeepingListenersInSync.test.js +43 -49
- package/build/__tests__/behavioral/events/KeepingListenersInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/events/ListeningToAnEventYouCreate.test.js +55 -59
- package/build/__tests__/behavioral/events/ListeningToAnEventYouCreate.test.js.map +1 -1
- package/build/__tests__/behavioral/events/ListeningToCoreEvents.test.js +31 -35
- package/build/__tests__/behavioral/events/ListeningToCoreEvents.test.js.map +1 -1
- package/build/__tests__/behavioral/events/RegisteringEventsOnBoot.test.js +98 -104
- package/build/__tests__/behavioral/events/RegisteringEventsOnBoot.test.js.map +1 -1
- package/build/__tests__/behavioral/events/RegisteringGlobalEvents.test.js +123 -135
- package/build/__tests__/behavioral/events/RegisteringGlobalEvents.test.js.map +1 -1
- package/build/__tests__/behavioral/events/SettingUpEvents.test.js +15 -17
- package/build/__tests__/behavioral/events/SettingUpEvents.test.js.map +1 -1
- package/build/__tests__/behavioral/events/SkillEmitsBootEvents.test.js +66 -72
- package/build/__tests__/behavioral/events/SkillEmitsBootEvents.test.js.map +1 -1
- package/build/__tests__/behavioral/events/SyncingEventsOnlyFromDependencies.test.js +76 -82
- package/build/__tests__/behavioral/events/SyncingEventsOnlyFromDependencies.test.js.map +1 -1
- package/build/__tests__/behavioral/node/CreatingANodeModule.test.js +49 -55
- package/build/__tests__/behavioral/node/CreatingANodeModule.test.js.map +1 -1
- package/build/__tests__/behavioral/onboard/StartingOnboarding.test.js +79 -85
- package/build/__tests__/behavioral/onboard/StartingOnboarding.test.js.map +1 -1
- package/build/__tests__/behavioral/organization/CreatingAnOrg.test.js +45 -49
- package/build/__tests__/behavioral/organization/CreatingAnOrg.test.js.map +1 -1
- package/build/__tests__/behavioral/permissions/CreatingPermissions.test.js +40 -46
- package/build/__tests__/behavioral/permissions/CreatingPermissions.test.js.map +1 -1
- package/build/__tests__/behavioral/permissions/PermissionPlugin.test.js +15 -19
- package/build/__tests__/behavioral/permissions/PermissionPlugin.test.js.map +1 -1
- package/build/__tests__/behavioral/permissions/PermissionStore.test.js +174 -198
- package/build/__tests__/behavioral/permissions/PermissionStore.test.js.map +1 -1
- package/build/__tests__/behavioral/permissions/PermissionWriter.test.js +23 -27
- package/build/__tests__/behavioral/permissions/PermissionWriter.test.js.map +1 -1
- package/build/__tests__/behavioral/permissions/SyncingPermissions.test.d.ts +1 -0
- package/build/__tests__/behavioral/permissions/SyncingPermissions.test.js +209 -208
- package/build/__tests__/behavioral/permissions/SyncingPermissions.test.js.map +1 -1
- package/build/__tests__/behavioral/permissions/support/AbstractPermissionsTest.js +34 -40
- package/build/__tests__/behavioral/permissions/support/AbstractPermissionsTest.js.map +1 -1
- package/build/__tests__/behavioral/permissions/support/generateShortAlphaId.js.map +1 -1
- package/build/__tests__/behavioral/permissions/support/renderPermissionTestFile.js.map +1 -1
- package/build/__tests__/behavioral/permissions/support/sortPermissionContracts.js.map +1 -1
- package/build/__tests__/behavioral/person/LoggingInAsPerson.test.js +153 -171
- package/build/__tests__/behavioral/person/LoggingInAsPerson.test.js.map +1 -1
- package/build/__tests__/behavioral/person/SeeWhoIsLoggedIn.test.js +40 -46
- package/build/__tests__/behavioral/person/SeeWhoIsLoggedIn.test.js.map +1 -1
- package/build/__tests__/behavioral/polish/SettingUpPolish.test.js +102 -116
- package/build/__tests__/behavioral/polish/SettingUpPolish.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/CreatingANewSchemaBuilder.test.js +227 -247
- package/build/__tests__/behavioral/schemas/CreatingANewSchemaBuilder.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/CreatingSchemasWithGenerics.test.js +27 -29
- package/build/__tests__/behavioral/schemas/CreatingSchemasWithGenerics.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/GeneratingFieldTypesOnly.test.js +38 -42
- package/build/__tests__/behavioral/schemas/GeneratingFieldTypesOnly.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/GettingSchemasFromHealthCheck.test.js +65 -73
- package/build/__tests__/behavioral/schemas/GettingSchemasFromHealthCheck.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/HandlesRelatedSchemas.test.js +100 -110
- package/build/__tests__/behavioral/schemas/HandlesRelatedSchemas.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/ImportingSchemaImports.test.js +25 -27
- package/build/__tests__/behavioral/schemas/ImportingSchemaImports.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/KeepingSchemasInSync.test.js +425 -465
- package/build/__tests__/behavioral/schemas/KeepingSchemasInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/SettingUpSchemas.test.js +49 -55
- package/build/__tests__/behavioral/schemas/SettingUpSchemas.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/SettingUpSchemasForModuleDistribution.test.js +435 -467
- package/build/__tests__/behavioral/schemas/SettingUpSchemasForModuleDistribution.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/SyncingBadSchemasProvidesHelpfulErrorMessages.test.js +19 -21
- package/build/__tests__/behavioral/schemas/SyncingBadSchemasProvidesHelpfulErrorMessages.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/UsingSchemasInCli.test.js +9 -11
- package/build/__tests__/behavioral/schemas/UsingSchemasInCli.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/BootingASkill.test.js +61 -67
- package/build/__tests__/behavioral/skill/BootingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/CreatingASkill.test.js +37 -41
- package/build/__tests__/behavioral/skill/CreatingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/InstallingASkillAtAnOrg.test.js +183 -199
- package/build/__tests__/behavioral/skill/InstallingASkillAtAnOrg.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/LoggingInAsASkill.test.js +153 -171
- package/build/__tests__/behavioral/skill/LoggingInAsASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/RebuildingASkill.test.js +37 -43
- package/build/__tests__/behavioral/skill/RebuildingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/RegisteringASkill.test.js +96 -104
- package/build/__tests__/behavioral/skill/RegisteringASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/SettingUpASkill.test.js +168 -184
- package/build/__tests__/behavioral/skill/SettingUpASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/stores/CreatingADataStore.test.js +169 -191
- package/build/__tests__/behavioral/stores/CreatingADataStore.test.js.map +1 -1
- package/build/__tests__/behavioral/stores/KeepingDataStoresInSync.test.js +105 -125
- package/build/__tests__/behavioral/stores/KeepingDataStoresInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/CreatingATest.test.js +208 -232
- package/build/__tests__/behavioral/tests/CreatingATest.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/RunningTests.test.js +75 -79
- package/build/__tests__/behavioral/tests/RunningTests.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/SelectingAnAbstractTestClass.test.js +293 -355
- package/build/__tests__/behavioral/tests/SelectingAnAbstractTestClass.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/SettingUpASkillForTesting.test.js +65 -75
- package/build/__tests__/behavioral/tests/SettingUpASkillForTesting.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/SettingUpTests.test.js +29 -33
- package/build/__tests__/behavioral/tests/SettingUpTests.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/TestReporterSettingsRemembered.test.js +50 -54
- package/build/__tests__/behavioral/tests/TestReporterSettingsRemembered.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/TestingDataStores.test.js +87 -95
- package/build/__tests__/behavioral/tests/TestingDataStores.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpdatingDependencies.test.js +57 -65
- package/build/__tests__/behavioral/upgrading/UpdatingDependencies.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpdatingDependencies2.test.js +146 -156
- package/build/__tests__/behavioral/upgrading/UpdatingDependencies2.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingANodeModule.test.js +79 -87
- package/build/__tests__/behavioral/upgrading/UpgradingANodeModule.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingASkill.test.js +282 -302
- package/build/__tests__/behavioral/upgrading/UpgradingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingASkill2.test.js +183 -197
- package/build/__tests__/behavioral/upgrading/UpgradingASkill2.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingASkill3.test.js +214 -238
- package/build/__tests__/behavioral/upgrading/UpgradingASkill3.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingASkill4.test.js +118 -126
- package/build/__tests__/behavioral/upgrading/UpgradingASkill4.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingASkill5.test.js +138 -152
- package/build/__tests__/behavioral/upgrading/UpgradingASkill5.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingWithListeners.test.js +61 -69
- package/build/__tests__/behavioral/upgrading/UpgradingWithListeners.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingWithSandboxFeatureInstalled.test.js +90 -104
- package/build/__tests__/behavioral/upgrading/UpgradingWithSandboxFeatureInstalled.test.js.map +1 -1
- package/build/__tests__/behavioral/views/CreatingASkillView.test.js +194 -220
- package/build/__tests__/behavioral/views/CreatingASkillView.test.js.map +1 -1
- package/build/__tests__/behavioral/views/CreatingATheme.test.js +83 -97
- package/build/__tests__/behavioral/views/CreatingATheme.test.js.map +1 -1
- package/build/__tests__/behavioral/views/KeepingViewsInSync.test.js +64 -76
- package/build/__tests__/behavioral/views/KeepingViewsInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/views/RegisteringSkillViewOnBoot.test.js +102 -114
- package/build/__tests__/behavioral/views/RegisteringSkillViewOnBoot.test.js.map +1 -1
- package/build/__tests__/behavioral/views/SettingUpViews.test.js +33 -37
- package/build/__tests__/behavioral/views/SettingUpViews.test.js.map +1 -1
- package/build/__tests__/behavioral/views/TestingViewControllers.test.js +94 -106
- package/build/__tests__/behavioral/views/TestingViewControllers.test.js.map +1 -1
- package/build/__tests__/behavioral/views/WatchingSkillViews.test.js +32 -38
- package/build/__tests__/behavioral/views/WatchingSkillViews.test.js.map +1 -1
- package/build/__tests__/behavioral/watchers/WatchingForChanges.test.js +302 -336
- package/build/__tests__/behavioral/watchers/WatchingForChanges.test.js.map +1 -1
- package/build/__tests__/implementation/ActionExecuter.test.js +132 -136
- package/build/__tests__/implementation/ActionExecuter.test.js.map +1 -1
- package/build/__tests__/implementation/ActionExecuter2.test.js +270 -286
- package/build/__tests__/implementation/ActionExecuter2.test.js.map +1 -1
- package/build/__tests__/implementation/ActionExecuter3.test.js +64 -72
- package/build/__tests__/implementation/ActionExecuter3.test.js.map +1 -1
- package/build/__tests__/implementation/ActionExecuter4.test.js +41 -47
- package/build/__tests__/implementation/ActionExecuter4.test.js.map +1 -1
- package/build/__tests__/implementation/ArgParser.test.js +13 -17
- package/build/__tests__/implementation/ArgParser.test.js.map +1 -1
- package/build/__tests__/implementation/BuildService.test.js +25 -29
- package/build/__tests__/implementation/BuildService.test.js.map +1 -1
- package/build/__tests__/implementation/BulkImporting.test.js +116 -136
- package/build/__tests__/implementation/BulkImporting.test.js.map +1 -1
- package/build/__tests__/implementation/CachingImports.test.js +89 -99
- package/build/__tests__/implementation/CachingImports.test.js.map +1 -1
- package/build/__tests__/implementation/CommandOptionBuilder.test.js.map +1 -1
- package/build/__tests__/implementation/CommanderCommandResultMapper.test.js +72 -90
- package/build/__tests__/implementation/CommanderCommandResultMapper.test.js.map +1 -1
- package/build/__tests__/implementation/DataStoreStore.test.js +127 -147
- package/build/__tests__/implementation/DataStoreStore.test.js.map +1 -1
- package/build/__tests__/implementation/DeletingOrphanedSchemaDefinitions.test.js +46 -52
- package/build/__tests__/implementation/DeletingOrphanedSchemaDefinitions.test.js.map +1 -1
- package/build/__tests__/implementation/EventContractCleanerUtil.test.js +27 -35
- package/build/__tests__/implementation/EventContractCleanerUtil.test.js.map +1 -1
- package/build/__tests__/implementation/EventStore.test.js +371 -399
- package/build/__tests__/implementation/EventStore.test.js.map +1 -1
- package/build/__tests__/implementation/EventTemplateItemBuilder.test.js +21 -27
- package/build/__tests__/implementation/EventTemplateItemBuilder.test.js.map +1 -1
- package/build/__tests__/implementation/FeatureCommandAttacher.test.js +155 -173
- package/build/__tests__/implementation/FeatureCommandAttacher.test.js.map +1 -1
- package/build/__tests__/implementation/FeatureFixture.test.js +54 -62
- package/build/__tests__/implementation/FeatureFixture.test.js.map +1 -1
- package/build/__tests__/implementation/FeatureInstaller.test.js +69 -77
- package/build/__tests__/implementation/FeatureInstaller.test.js.map +1 -1
- package/build/__tests__/implementation/FeaturesUtil.test.js +7 -9
- package/build/__tests__/implementation/FeaturesUtil.test.js.map +1 -1
- package/build/__tests__/implementation/FieldTemplateItemBuilder.test.js +6 -8
- package/build/__tests__/implementation/FieldTemplateItemBuilder.test.js.map +1 -1
- package/build/__tests__/implementation/GlobalEmitter.test.js +29 -33
- package/build/__tests__/implementation/GlobalEmitter.test.js.map +1 -1
- package/build/__tests__/implementation/Introspection.test.js.map +1 -1
- package/build/__tests__/implementation/JestJsonParser.test.js +9 -11
- package/build/__tests__/implementation/JestJsonParser.test.js.map +1 -1
- package/build/__tests__/implementation/LintService.test.js +32 -36
- package/build/__tests__/implementation/LintService.test.js.map +1 -1
- package/build/__tests__/implementation/ListenerStore.test.js.map +1 -1
- package/build/__tests__/implementation/OnboardingScriptLoader.test.js +72 -80
- package/build/__tests__/implementation/OnboardingScriptLoader.test.js.map +1 -1
- package/build/__tests__/implementation/OnboardingScriptPlayer.test.js +217 -243
- package/build/__tests__/implementation/OnboardingScriptPlayer.test.js.map +1 -1
- package/build/__tests__/implementation/OnboardingStore.test.js +19 -23
- package/build/__tests__/implementation/OnboardingStore.test.js.map +1 -1
- package/build/__tests__/implementation/OrganizationStore.test.js +114 -124
- package/build/__tests__/implementation/OrganizationStore.test.js.map +1 -1
- package/build/__tests__/implementation/ParentTestFinder.test.js +38 -44
- package/build/__tests__/implementation/ParentTestFinder.test.js.map +1 -1
- package/build/__tests__/implementation/PkgService.test.js +63 -75
- package/build/__tests__/implementation/PkgService.test.js.map +1 -1
- package/build/__tests__/implementation/SchemaStore.test.js +314 -346
- package/build/__tests__/implementation/SchemaStore.test.js.map +1 -1
- package/build/__tests__/implementation/SchemaTemplateItemBuilder.test.js +9 -11
- package/build/__tests__/implementation/SchemaTemplateItemBuilder.test.js.map +1 -1
- package/build/__tests__/implementation/SchemaValueTypeWriter.test.js +128 -142
- package/build/__tests__/implementation/SchemaValueTypeWriter.test.js.map +1 -1
- package/build/__tests__/implementation/ServiceFactory.test.js +8 -10
- package/build/__tests__/implementation/ServiceFactory.test.js.map +1 -1
- package/build/__tests__/implementation/SettingUpANodeModule.test.js +59 -65
- package/build/__tests__/implementation/SettingUpANodeModule.test.js.map +1 -1
- package/build/__tests__/implementation/SkillStore.test.js +153 -169
- package/build/__tests__/implementation/SkillStore.test.js.map +1 -1
- package/build/__tests__/implementation/StoreFeature.test.js +49 -53
- package/build/__tests__/implementation/StoreFeature.test.js.map +1 -1
- package/build/__tests__/implementation/TestReporter.test.js +31 -39
- package/build/__tests__/implementation/TestReporter.test.js.map +1 -1
- package/build/__tests__/implementation/TestRunner.test.js +215 -233
- package/build/__tests__/implementation/TestRunner.test.js.map +1 -1
- package/build/__tests__/implementation/ValueTypeMapping.test.js +24 -28
- package/build/__tests__/implementation/ValueTypeMapping.test.js.map +1 -1
- package/build/__tests__/implementation/Widgets.test.js +34 -42
- package/build/__tests__/implementation/Widgets.test.js.map +1 -1
- package/build/__tests__/support/EventFaker.js +12 -14
- package/build/__tests__/support/EventFaker.js.map +1 -1
- package/build/__tests__/support/onTestFileResult.js.map +1 -1
- package/build/__tests__/support/scripts/first.script.js +7 -9
- package/build/__tests__/support/scripts/first.script.js.map +1 -1
- package/build/__tests__/support/scripts/second.script.js.map +1 -1
- package/build/__tests__/support/scripts/third.test.script.js.map +1 -1
- package/build/addons/filePrompt.addon.js.map +1 -1
- package/build/boot.d.ts +2 -0
- package/build/boot.js +162 -0
- package/build/boot.js.map +1 -0
- package/build/{cli.d.ts → cli/Cli.d.ts} +9 -33
- package/build/cli/Cli.js +528 -0
- package/build/cli/Cli.js.map +1 -0
- package/build/components/AbstractComponent.js.map +1 -1
- package/build/components/FormComponent.js +156 -160
- package/build/components/FormComponent.js.map +1 -1
- package/build/components/QuizComponent.js +124 -128
- package/build/components/QuizComponent.js.map +1 -1
- package/build/constants.js.map +1 -1
- package/build/errors/SpruceError.js +1 -1
- package/build/errors/SpruceError.js.map +1 -1
- package/build/errors/actionCancelled.builder.js.map +1 -1
- package/build/errors/bootError.builder.js.map +1 -1
- package/build/errors/buildFailed.builder.js.map +1 -1
- package/build/errors/cacheNotEnabled.builder.js.map +1 -1
- package/build/errors/commandAborted.builder.js.map +1 -1
- package/build/errors/commandBlocked.builder.js.map +1 -1
- package/build/errors/commandNotImplemented.builder.js.map +1 -1
- package/build/errors/createAutoloaderFailed.builder.js.map +1 -1
- package/build/errors/dependencyExists.builder.js.map +1 -1
- package/build/errors/deployFailed.builder.js.map +1 -1
- package/build/errors/directoryEmpty.builder.js.map +1 -1
- package/build/errors/directoryNotSkill.builder.js.map +1 -1
- package/build/errors/dockerNotStarted.builder.js.map +1 -1
- package/build/errors/executingCommandFailed.builder.js.map +1 -1
- package/build/errors/failedToImport.builder.js.map +1 -1
- package/build/errors/featureNotInstalled.builder.js.map +1 -1
- package/build/errors/fileExists.builder.js.map +1 -1
- package/build/errors/generic.builder.js.map +1 -1
- package/build/errors/invalidCommand.builder.js.map +1 -1
- package/build/errors/invalidEventContract.builder.js.map +1 -1
- package/build/errors/invalidFeatureCode.builder.js.map +1 -1
- package/build/errors/invalidTestDirectory.builder.js.map +1 -1
- package/build/errors/lintFailed.builder.js.map +1 -1
- package/build/errors/mercuryResponseError.builder.js.map +1 -1
- package/build/errors/missingDependencies.builder.js.map +1 -1
- package/build/errors/noOrganizationsFound.builder.js.map +1 -1
- package/build/errors/noSkillsRegistered.builder.js.map +1 -1
- package/build/errors/notImplemented.builder.js.map +1 -1
- package/build/errors/notLoggedIn.builder.js.map +1 -1
- package/build/errors/schemaExists.builder.js.map +1 -1
- package/build/errors/schemaFailedToImport.builder.js.map +1 -1
- package/build/errors/schemaTemplateItemBuildingFailed.builder.js.map +1 -1
- package/build/errors/skillNotFound.builder.js.map +1 -1
- package/build/errors/skillNotRegistered.builder.js.map +1 -1
- package/build/errors/skillViewExists.builder.js.map +1 -1
- package/build/errors/storeExists.builder.js.map +1 -1
- package/build/errors/testFailed.builder.js.map +1 -1
- package/build/errors/themeExists.builder.js.map +1 -1
- package/build/errors/transportAlreadyExists.builder.js.map +1 -1
- package/build/errors/vscodeNotInstalled.builder.js.map +1 -1
- package/build/features/AbstractAction.js +65 -71
- package/build/features/AbstractAction.js.map +1 -1
- package/build/features/AbstractFeature.js +54 -62
- package/build/features/AbstractFeature.js.map +1 -1
- package/build/features/ActionExecuter.js +206 -210
- package/build/features/ActionExecuter.js.map +1 -1
- package/build/features/ActionFactory.js.map +1 -1
- package/build/features/ActionQuestionAsker.js +304 -320
- package/build/features/ActionQuestionAsker.js.map +1 -1
- package/build/features/FeatureCommandAttacher.js +45 -49
- package/build/features/FeatureCommandAttacher.js.map +1 -1
- package/build/features/FeatureInstaller.js +353 -375
- package/build/features/FeatureInstaller.js.map +1 -1
- package/build/features/FeatureInstallerFactory.js.map +1 -1
- package/build/features/OverrideActionDecorator.js +13 -15
- package/build/features/OverrideActionDecorator.js.map +1 -1
- package/build/features/cache/CacheFeature.js +6 -8
- package/build/features/cache/CacheFeature.js.map +1 -1
- package/build/features/cache/actions/DisableAction.js +42 -44
- package/build/features/cache/actions/DisableAction.js.map +1 -1
- package/build/features/cache/actions/EnableAction.js +37 -39
- package/build/features/cache/actions/EnableAction.js.map +1 -1
- package/build/features/cache/constants.js.map +1 -1
- package/build/features/conversation/ConversationFeature.js +40 -46
- package/build/features/conversation/ConversationFeature.js.map +1 -1
- package/build/features/conversation/actions/CreateAction.js +16 -18
- package/build/features/conversation/actions/CreateAction.js.map +1 -1
- package/build/features/conversation/actions/TestAction.js +96 -102
- package/build/features/conversation/actions/TestAction.js.map +1 -1
- package/build/features/conversation/stores/ConversationStore.js +19 -21
- package/build/features/conversation/stores/ConversationStore.js.map +1 -1
- package/build/features/conversation/writers/ConversationWriter.js +22 -24
- package/build/features/conversation/writers/ConversationWriter.js.map +1 -1
- package/build/features/dependencies/DependencyFeature.js +6 -8
- package/build/features/dependencies/DependencyFeature.js.map +1 -1
- package/build/features/dependencies/actions/AddAction.js +64 -66
- package/build/features/dependencies/actions/AddAction.js.map +1 -1
- package/build/features/dependencies/actions/ManageAction.js +63 -65
- package/build/features/dependencies/actions/ManageAction.js.map +1 -1
- package/build/features/deploy/DeployFeature.js +12 -14
- package/build/features/deploy/DeployFeature.js.map +1 -1
- package/build/features/deploy/actions/HerokuAction.js +389 -409
- package/build/features/deploy/actions/HerokuAction.js.map +1 -1
- package/build/features/deploy/writers/DeployWriter.js.map +1 -1
- package/build/features/error/ErrorFeature.js +84 -92
- package/build/features/error/ErrorFeature.js.map +1 -1
- package/build/features/error/ParentTestFinder.js +22 -24
- package/build/features/error/ParentTestFinder.js.map +1 -1
- package/build/features/error/actions/CreateAction.js +24 -26
- package/build/features/error/actions/CreateAction.js.map +1 -1
- package/build/features/error/actions/SyncAction.js +85 -91
- package/build/features/error/actions/SyncAction.js.map +1 -1
- package/build/features/error/writers/ErrorWriter.js +130 -140
- package/build/features/error/writers/ErrorWriter.js.map +1 -1
- package/build/features/event/EventFeature.js +153 -167
- package/build/features/event/EventFeature.js.map +1 -1
- package/build/features/event/actions/CreateAction.js +59 -61
- package/build/features/event/actions/CreateAction.js.map +1 -1
- package/build/features/event/actions/ListenAction.js +205 -219
- package/build/features/event/actions/ListenAction.js.map +1 -1
- package/build/features/event/actions/SetRemoteAction.js +11 -13
- package/build/features/event/actions/SetRemoteAction.js.map +1 -1
- package/build/features/event/actions/SyncAction.js +25 -27
- package/build/features/event/actions/SyncAction.js.map +1 -1
- package/build/features/event/actions/SyncListenersAction.js +23 -25
- package/build/features/event/actions/SyncListenersAction.js.map +1 -1
- package/build/features/event/builders/EventContractBuilder.js +136 -144
- package/build/features/event/builders/EventContractBuilder.js.map +1 -1
- package/build/features/event/builders/ListenerTemplateItemBuilder.js +1 -1
- package/build/features/event/builders/ListenerTemplateItemBuilder.js.map +1 -1
- package/build/features/event/services/EventSettingsService.js.map +1 -1
- package/build/features/event/services/RemoteService.js.map +1 -1
- package/build/features/event/stores/EventStore.js +246 -258
- package/build/features/event/stores/EventStore.js.map +1 -1
- package/build/features/event/stores/ListenerStore.js +26 -28
- package/build/features/event/stores/ListenerStore.js.map +1 -1
- package/build/features/event/writers/EventWriter.js +171 -183
- package/build/features/event/writers/EventWriter.js.map +1 -1
- package/build/features/eventContract/EventContractFeature.js +6 -8
- package/build/features/eventContract/EventContractFeature.js.map +1 -1
- package/build/features/eventContract/actions/PullAction.js +58 -62
- package/build/features/eventContract/actions/PullAction.js.map +1 -1
- package/build/features/feature.utilities.js.map +1 -1
- package/build/features/log/LogFeature.js.map +1 -1
- package/build/features/log/actions/CreateTransportAction.js +16 -18
- package/build/features/log/actions/CreateTransportAction.js.map +1 -1
- package/build/features/log/writers/LogWriter.js +23 -25
- package/build/features/log/writers/LogWriter.js.map +1 -1
- package/build/features/node/NodeFeature.js +110 -122
- package/build/features/node/NodeFeature.js.map +1 -1
- package/build/features/node/actions/CreateAction.js +9 -11
- package/build/features/node/actions/CreateAction.js.map +1 -1
- package/build/features/node/actions/UpdateDependenciesAction.js +140 -113
- package/build/features/node/actions/UpdateDependenciesAction.js.map +1 -1
- package/build/features/node/actions/UpgradeAction.js +70 -76
- package/build/features/node/actions/UpgradeAction.js.map +1 -1
- package/build/features/node/writers/NodeWriter.js +29 -31
- package/build/features/node/writers/NodeWriter.js.map +1 -1
- package/build/features/onboard/OnboardFeature.js +77 -87
- package/build/features/onboard/OnboardFeature.js.map +1 -1
- package/build/features/onboard/ScriptLoader.js +31 -33
- package/build/features/onboard/ScriptLoader.js.map +1 -1
- package/build/features/onboard/ScriptPlayer.js +80 -86
- package/build/features/onboard/ScriptPlayer.js.map +1 -1
- package/build/features/onboard/actions/OnboardAction.js +36 -38
- package/build/features/onboard/actions/OnboardAction.js.map +1 -1
- package/build/features/onboard/scripts/onboarding.first.script.js +68 -80
- package/build/features/onboard/scripts/onboarding.first.script.js.map +1 -1
- package/build/features/onboard/scripts/onboarding.immersive.script.js +24 -28
- package/build/features/onboard/scripts/onboarding.immersive.script.js.map +1 -1
- package/build/features/onboard/scripts/onboarding.returning.script.js +42 -44
- package/build/features/onboard/scripts/onboarding.returning.script.js.map +1 -1
- package/build/features/onboard/scripts/onboarding.short.script.js +38 -48
- package/build/features/onboard/scripts/onboarding.short.script.js.map +1 -1
- package/build/features/onboard/scripts/todo/todo.create.skill.script.js +9 -11
- package/build/features/onboard/scripts/todo/todo.create.skill.script.js.map +1 -1
- package/build/features/onboard/scripts/todo/todo.test.script.js +7 -9
- package/build/features/onboard/scripts/todo/todo.test.script.js.map +1 -1
- package/build/features/onboard/scripts/wrongCommand.script.js +40 -42
- package/build/features/onboard/scripts/wrongCommand.script.js.map +1 -1
- package/build/features/onboard/stores/OnboardingStore.js.map +1 -1
- package/build/features/organization/OrganizationFeature.js.map +1 -1
- package/build/features/organization/actions/CreateAction.js +18 -20
- package/build/features/organization/actions/CreateAction.js.map +1 -1
- package/build/features/organization/actions/InstallAction.js +81 -83
- package/build/features/organization/actions/InstallAction.js.map +1 -1
- package/build/features/organization/stores/OrganizationStore.js +101 -111
- package/build/features/organization/stores/OrganizationStore.js.map +1 -1
- package/build/features/permission/PermissionFeature.js +73 -79
- package/build/features/permission/PermissionFeature.js.map +1 -1
- package/build/features/permission/actions/CreateAction.js +23 -25
- package/build/features/permission/actions/CreateAction.js.map +1 -1
- package/build/features/permission/actions/SyncAction.js +50 -54
- package/build/features/permission/actions/SyncAction.js.map +1 -1
- package/build/features/permission/stores/PermissionStore.js +100 -104
- package/build/features/permission/stores/PermissionStore.js.map +1 -1
- package/build/features/permission/writers/PermissionWriter.js +57 -63
- package/build/features/permission/writers/PermissionWriter.js.map +1 -1
- package/build/features/person/PersonFeature.js.map +1 -1
- package/build/features/person/actions/LoginAction.js +69 -71
- package/build/features/person/actions/LoginAction.js.map +1 -1
- package/build/features/person/actions/LogoutAction.js +21 -23
- package/build/features/person/actions/LogoutAction.js.map +1 -1
- package/build/features/person/actions/WhoamiAction.js +24 -26
- package/build/features/person/actions/WhoamiAction.js.map +1 -1
- package/build/features/polish/PolishFeature.js.map +1 -1
- package/build/features/polish/actions/SetupAction.js +23 -25
- package/build/features/polish/actions/SetupAction.js.map +1 -1
- package/build/features/polish/writers/PolishWriter.js +16 -18
- package/build/features/polish/writers/PolishWriter.js.map +1 -1
- package/build/features/sandbox/SandboxFeature.js +20 -22
- package/build/features/sandbox/SandboxFeature.js.map +1 -1
- package/build/features/sandbox/actions/SetupAction.js +42 -44
- package/build/features/sandbox/actions/SetupAction.js.map +1 -1
- package/build/features/sandbox/writers/SandboxWriter.js +9 -11
- package/build/features/sandbox/writers/SandboxWriter.js.map +1 -1
- package/build/features/schema/SchemaFeature.js +82 -90
- package/build/features/schema/SchemaFeature.js.map +1 -1
- package/build/features/schema/ValueTypeBuilder.js +26 -28
- package/build/features/schema/ValueTypeBuilder.js.map +1 -1
- package/build/features/schema/actions/CreateAction.js +48 -50
- package/build/features/schema/actions/CreateAction.js.map +1 -1
- package/build/features/schema/actions/SyncAction.js +260 -270
- package/build/features/schema/actions/SyncAction.js.map +1 -1
- package/build/features/schema/actions/SyncFieldsAction.js +42 -44
- package/build/features/schema/actions/SyncFieldsAction.js.map +1 -1
- package/build/features/schema/services/SchemaService.js +24 -26
- package/build/features/schema/services/SchemaService.js.map +1 -1
- package/build/features/schema/stores/SchemaStore.js +205 -219
- package/build/features/schema/stores/SchemaStore.js.map +1 -1
- package/build/features/schema/utilities/schema.utility.js.map +1 -1
- package/build/features/schema/utilities/schemaDisk.utility.js +15 -17
- package/build/features/schema/utilities/schemaDisk.utility.js.map +1 -1
- package/build/features/schema/utilities/schemaGenerator.utility.js +40 -42
- package/build/features/schema/utilities/schemaGenerator.utility.js.map +1 -1
- package/build/features/schema/writers/SchemaWriter.js +173 -185
- package/build/features/schema/writers/SchemaWriter.js.map +1 -1
- package/build/features/skill/SkillFeature.js +99 -112
- package/build/features/skill/SkillFeature.js.map +1 -1
- package/build/features/skill/actions/BootAction.js +92 -96
- package/build/features/skill/actions/BootAction.js.map +1 -1
- package/build/features/skill/actions/CreateAction.js +9 -11
- package/build/features/skill/actions/CreateAction.js.map +1 -1
- package/build/features/skill/actions/DashboardAction.js +8 -10
- package/build/features/skill/actions/DashboardAction.js.map +1 -1
- package/build/features/skill/actions/LoginAction.js +122 -124
- package/build/features/skill/actions/LoginAction.js.map +1 -1
- package/build/features/skill/actions/RebuildAction.js +33 -35
- package/build/features/skill/actions/RebuildAction.js.map +1 -1
- package/build/features/skill/actions/RegisterAction.js +38 -40
- package/build/features/skill/actions/RegisterAction.js.map +1 -1
- package/build/features/skill/stores/SkillStore.d.ts +2 -2
- package/build/features/skill/stores/SkillStore.js +198 -216
- package/build/features/skill/stores/SkillStore.js.map +1 -1
- package/build/features/skill/updaters/Updater.js +38 -40
- package/build/features/skill/updaters/Updater.js.map +1 -1
- package/build/features/skill/writers/SkillWriter.js +15 -17
- package/build/features/skill/writers/SkillWriter.js.map +1 -1
- package/build/features/store/StoreFeature.js +50 -56
- package/build/features/store/StoreFeature.js.map +1 -1
- package/build/features/store/actions/CreateAction.js +29 -31
- package/build/features/store/actions/CreateAction.js.map +1 -1
- package/build/features/store/actions/SyncAction.js +35 -37
- package/build/features/store/actions/SyncAction.js.map +1 -1
- package/build/features/store/stores/StoreStore.js +39 -41
- package/build/features/store/stores/StoreStore.js.map +1 -1
- package/build/features/store/templateItemBuilders/StoreTemplateItemBuilder.js +1 -1
- package/build/features/store/templateItemBuilders/StoreTemplateItemBuilder.js.map +1 -1
- package/build/features/store/writers/StoreWriter.js +65 -73
- package/build/features/store/writers/StoreWriter.js.map +1 -1
- package/build/features/test/TestFeature.js +98 -102
- package/build/features/test/TestFeature.js.map +1 -1
- package/build/features/test/TestLogItemGenerator.js.map +1 -1
- package/build/features/test/TestReporter.d.ts +19 -19
- package/build/features/test/TestReporter.js +74 -82
- package/build/features/test/TestReporter.js.map +1 -1
- package/build/features/test/TestRunner.js +82 -88
- package/build/features/test/TestRunner.js.map +1 -1
- package/build/features/test/actions/CreateAction.js +145 -153
- package/build/features/test/actions/CreateAction.js.map +1 -1
- package/build/features/test/actions/SetupAction.js +37 -39
- package/build/features/test/actions/SetupAction.js.map +1 -1
- package/build/features/test/actions/TestAction.js +203 -213
- package/build/features/test/actions/TestAction.js.map +1 -1
- package/build/features/test/test.types.d.ts +1 -1
- package/build/features/test/test.types.js.map +1 -1
- package/build/features/test/writers/TestWriter.js +17 -19
- package/build/features/test/writers/TestWriter.js.map +1 -1
- package/build/features/universalDevDependencies.js.map +1 -1
- package/build/features/universalFileDescriptions.js.map +1 -1
- package/build/features/universalScripts.js.map +1 -1
- package/build/features/validateAndNormalize.utility.js.map +1 -1
- package/build/features/view/ViewFeature.js +52 -58
- package/build/features/view/ViewFeature.js.map +1 -1
- package/build/features/view/actions/CreateAction.js +64 -66
- package/build/features/view/actions/CreateAction.js.map +1 -1
- package/build/features/view/actions/CreateThemeAction.js +35 -37
- package/build/features/view/actions/CreateThemeAction.js.map +1 -1
- package/build/features/view/actions/SyncAction.js +61 -63
- package/build/features/view/actions/SyncAction.js.map +1 -1
- package/build/features/view/actions/WatchAction.d.ts +1 -0
- package/build/features/view/actions/WatchAction.js +26 -27
- package/build/features/view/actions/WatchAction.js.map +1 -1
- package/build/features/view/stores/ViewStore.js +35 -37
- package/build/features/view/stores/ViewStore.js.map +1 -1
- package/build/features/view/writers/ViewWriter.js +47 -51
- package/build/features/view/writers/ViewWriter.js.map +1 -1
- package/build/features/vscode/VsCodeFeature.js +18 -20
- package/build/features/vscode/VsCodeFeature.js.map +1 -1
- package/build/features/vscode/actions/SetupAction.js +173 -183
- package/build/features/vscode/actions/SetupAction.js.map +1 -1
- package/build/features/vscode/services/VsCodeService.js +63 -69
- package/build/features/vscode/services/VsCodeService.js.map +1 -1
- package/build/features/vscode/writers/VsCodeWriter.js +12 -14
- package/build/features/vscode/writers/VsCodeWriter.js.map +1 -1
- package/build/features/watch/WatchFeature.js +77 -88
- package/build/features/watch/WatchFeature.js.map +1 -1
- package/build/index.js +2 -2
- package/build/index.js.map +1 -1
- package/build/interfaces/SpyInterface.d.ts +1 -0
- package/build/interfaces/SpyInterface.js +139 -148
- package/build/interfaces/SpyInterface.js.map +1 -1
- package/build/interfaces/TerminalInterface.d.ts +1 -0
- package/build/interfaces/TerminalInterface.js +196 -207
- package/build/interfaces/TerminalInterface.js.map +1 -1
- package/build/schemas/v2020_07_22/actionResponse.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/bootSkillOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/createConversationTopicOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/createErrorOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/createOrganizationOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/createSchemaOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/createTestOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/generatedFile.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/installSkillAtOrganizationOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/listenEventOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/namedTemplateItem.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/nodeFeatureOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/onboardOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/onboarding.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/personWithToken.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/registerDashboardWidgetsEmitPayloadSchema.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/setupTestsOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/setupVscodeOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/skillFeature.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/syncErrorOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/syncEventOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/syncSchemaFieldsOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/syncSchemasOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/testOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/upgradeSkillOptions.builder.js.map +1 -1
- package/build/schemas/v2020_07_22/watcherDidDetectChangesEmitPayload.builder.js.map +1 -1
- package/build/services/BuildService.js +16 -18
- package/build/services/BuildService.js.map +1 -1
- package/build/services/CommandService.js +107 -109
- package/build/services/CommandService.js.map +1 -1
- package/build/services/DependencyService.js.map +1 -1
- package/build/services/GameService.js +49 -51
- package/build/services/GameService.js.map +1 -1
- package/build/services/ImportService.js +186 -194
- package/build/services/ImportService.js.map +1 -1
- package/build/services/LintService.js +81 -83
- package/build/services/LintService.js.map +1 -1
- package/build/services/PkgService.js +85 -89
- package/build/services/PkgService.js.map +1 -1
- package/build/services/ServiceFactory.js.map +1 -1
- package/build/services/TypeCheckerService.js +7 -9
- package/build/services/TypeCheckerService.js.map +1 -1
- package/build/stores/AbstractLocalStore.js.map +1 -1
- package/build/stores/AbstractStore.js +6 -8
- package/build/stores/AbstractStore.js.map +1 -1
- package/build/stores/StoreFactory.js.map +1 -1
- package/build/templateItemBuilders/EventTemplateItemBuilder.js +1 -1
- package/build/templateItemBuilders/EventTemplateItemBuilder.js.map +1 -1
- package/build/templateItemBuilders/FieldTemplateItemBuilder.js +1 -1
- package/build/templateItemBuilders/FieldTemplateItemBuilder.js.map +1 -1
- package/build/templateItemBuilders/SchemaTemplateItemBuilder.js +1 -1
- package/build/templateItemBuilders/SchemaTemplateItemBuilder.js.map +1 -1
- package/build/tests/AbstractCliTest.d.ts +2 -3
- package/build/tests/AbstractCliTest.js +236 -266
- package/build/tests/AbstractCliTest.js.map +1 -1
- package/build/tests/AbstractErrorTest.d.ts +1 -1
- package/build/tests/AbstractErrorTest.js +19 -21
- package/build/tests/AbstractErrorTest.js.map +1 -1
- package/build/tests/AbstractEventTest.d.ts +3 -3
- package/build/tests/AbstractEventTest.js +89 -97
- package/build/tests/AbstractEventTest.js.map +1 -1
- package/build/tests/AbstractSchemaTest.d.ts +3 -3
- package/build/tests/AbstractSchemaTest.js +92 -98
- package/build/tests/AbstractSchemaTest.js.map +1 -1
- package/build/tests/AbstractSkillTest.d.ts +1 -1
- package/build/tests/AbstractSkillTest.js +40 -46
- package/build/tests/AbstractSkillTest.js.map +1 -1
- package/build/tests/AbstractTestTest.d.ts +1 -1
- package/build/tests/AbstractTestTest.js +14 -16
- package/build/tests/AbstractTestTest.js.map +1 -1
- package/build/tests/CommandFaker.js.map +1 -1
- package/build/tests/JestJsonParser.js +5 -2
- package/build/tests/JestJsonParser.js.map +1 -1
- package/build/tests/MockProgramFactory.js +11 -15
- package/build/tests/MockProgramFactory.js.map +1 -1
- package/build/tests/buildTestCache.js +223 -243
- package/build/tests/buildTestCache.js.map +1 -1
- package/build/tests/cleanTestCache.js.map +1 -1
- package/build/tests/cleanTestData.js +70 -72
- package/build/tests/cleanTestData.js.map +1 -1
- package/build/tests/constants.js.map +1 -1
- package/build/tests/fixtures/FeatureFixture.d.ts +15 -16
- package/build/tests/fixtures/FeatureFixture.js +142 -154
- package/build/tests/fixtures/FeatureFixture.js.map +1 -1
- package/build/tests/fixtures/MercuryFixture.js +9 -11
- package/build/tests/fixtures/MercuryFixture.js.map +1 -1
- package/build/tests/fixtures/OrganizationFixture.js +62 -68
- package/build/tests/fixtures/OrganizationFixture.js.map +1 -1
- package/build/tests/fixtures/PersonFixture.js +69 -73
- package/build/tests/fixtures/PersonFixture.js.map +1 -1
- package/build/tests/fixtures/SkillFixture.js +123 -137
- package/build/tests/fixtures/SkillFixture.js.map +1 -1
- package/build/tests/fixtures/ViewFixture.js +13 -15
- package/build/tests/fixtures/ViewFixture.js.map +1 -1
- package/build/tests/utilities/test.utility.js.map +1 -1
- package/build/tests/utilities/uiAssert.utility.js +31 -35
- package/build/tests/utilities/uiAssert.utility.js.map +1 -1
- package/build/types/cli.types.d.ts +26 -0
- package/build/types/cli.types.js.map +1 -1
- package/build/types/graphicsInterface.types.js.map +1 -1
- package/build/updaters/ScriptUpdater.js +78 -80
- package/build/updaters/ScriptUpdater.js.map +1 -1
- package/build/utilities/action.utility.js.map +1 -1
- package/build/utilities/apiClient.utility.js.map +1 -1
- package/build/utilities/argParser.utility.js +1 -1
- package/build/utilities/argParser.utility.js.map +1 -1
- package/build/utilities/commander.utility.js.map +1 -1
- package/build/utilities/duration.utility.js.map +1 -1
- package/build/utilities/eventContractCleaner.utility.js +1 -1
- package/build/utilities/eventContractCleaner.utility.js.map +1 -1
- package/build/utilities/form.utility.js.map +1 -1
- package/build/utilities/introspection.utility.js +3 -3
- package/build/utilities/introspection.utility.js.map +1 -1
- package/build/utilities/isCi.js.map +1 -1
- package/build/utilities/tsConfig.utility.js.map +1 -1
- package/build/utilities/ui.utility.js.map +1 -1
- package/build/widgets/Theme.js.map +1 -1
- package/build/widgets/WidgetFactory.js.map +1 -1
- package/build/widgets/keySelectChoices.js.map +1 -1
- package/build/widgets/terminalKit/TKButtonWidget.js.map +1 -1
- package/build/widgets/terminalKit/TkBaseWidget.js +8 -10
- package/build/widgets/terminalKit/TkBaseWidget.js.map +1 -1
- package/build/widgets/terminalKit/TkInputWidget.js +16 -20
- package/build/widgets/terminalKit/TkInputWidget.js.map +1 -1
- package/build/widgets/terminalKit/TkLayoutCellWidget.js.map +1 -1
- package/build/widgets/terminalKit/TkLayoutWidget.js +6 -8
- package/build/widgets/terminalKit/TkLayoutWidget.js.map +1 -1
- package/build/widgets/terminalKit/TkMenuBarWidget.js +1 -1
- package/build/widgets/terminalKit/TkMenuBarWidget.js.map +1 -1
- package/build/widgets/terminalKit/TkPopupWidget.js.map +1 -1
- package/build/widgets/terminalKit/TkProgressBarWidget.js.map +1 -1
- package/build/widgets/terminalKit/TkTextWidget.js +13 -15
- package/build/widgets/terminalKit/TkTextWidget.js.map +1 -1
- package/build/widgets/terminalKit/TkWindowWidget.js +39 -45
- package/build/widgets/terminalKit/TkWindowWidget.js.map +1 -1
- package/build/widgets/terminalKit/termKit.utility.js +1 -1
- package/build/widgets/terminalKit/termKit.utility.js.map +1 -1
- package/build/widgets/types/button.types.js.map +1 -1
- package/build/widgets/types/factory.types.js.map +1 -1
- package/build/widgets/types/input.types.js.map +1 -1
- package/build/widgets/types/menuBar.types.js.map +1 -1
- package/build/widgets/types/popup.types.js.map +1 -1
- package/build/widgets/types/text.types.js.map +1 -1
- package/build/widgets/types/window.types.js.map +1 -1
- package/build/widgets/widget.utilities.js.map +1 -1
- package/build/writers/AbstractWriter.js +160 -166
- package/build/writers/AbstractWriter.js.map +1 -1
- package/build/writers/WriterFactory.js.map +1 -1
- package/junit.xml +7 -0
- package/node_modules/@typescript-eslint/parser/package.json +5 -5
- package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/ScopeManager.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/ClassVisitor.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js +1 -3
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/PatternVisitor.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js +2 -2
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/package.json +5 -5
- package/node_modules/@typescript-eslint/types/_ts3.4/dist/generated/ast-spec.d.ts +62 -7
- package/node_modules/@typescript-eslint/types/_ts3.4/dist/parser-options.d.ts +6 -2
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts +62 -7
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js.map +1 -1
- package/node_modules/@typescript-eslint/types/dist/parser-options.d.ts +6 -2
- package/node_modules/@typescript-eslint/types/dist/parser-options.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/types/package.json +4 -4
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/clear-caches.d.ts +10 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/describeFilePath.d.ts +2 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/create-program/shared.d.ts +7 -1
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/index.d.ts +2 -2
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/ExpiringCache.d.ts +17 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/createParseSettings.d.ts +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/getProjectConfigFiles.d.ts +12 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/index.d.ts +6 -1
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parseSettings/resolveProjectList.d.ts +19 -0
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/parser-options.d.ts +22 -3
- package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts +10 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js +24 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/clear-caches.js.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert-comments.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert.js +38 -12
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js +5 -10
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/createProjectProgram.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts +2 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js +32 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/describeFilePath.js.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js +2 -15
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/getWatchProgramsForProjects.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts +7 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js +15 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/create-program/shared.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/getModifiers.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts +2 -2
- package/node_modules/@typescript-eslint/typescript-estree/dist/index.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/index.js +2 -4
- package/node_modules/@typescript-eslint/typescript-estree/dist/index.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts +17 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js +62 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/ExpiringCache.js.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js +22 -48
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/createParseSettings.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts +12 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js +70 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/getProjectConfigFiles.js.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts +6 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/index.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts +19 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.d.ts.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js +103 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/resolveProjectList.js.map +1 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts +22 -3
- package/node_modules/@typescript-eslint/typescript-estree/dist/parser-options.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/simple-traverse.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/package.json +4 -5
- package/node_modules/@typescript-eslint/visitor-keys/package.json +3 -3
- package/package.json +592 -597
- package/src/.DS_Store +0 -0
- package/src/__tests__/behavioral/BootingTheCli.test.ts +32 -2
- package/src/__tests__/behavioral/CreatingAConversationTopic.test.ts +1 -1
- package/src/__tests__/behavioral/eventContract/PullingMercuryEventContract.test.ts +1 -1
- package/src/__tests__/behavioral/events/CreatingAnEvent.test.ts +1 -2
- package/src/__tests__/behavioral/permissions/SyncingPermissions.test.ts +11 -0
- package/src/__tests__/behavioral/schemas/GeneratingFieldTypesOnly.test.ts +1 -1
- package/src/__tests__/behavioral/schemas/GettingSchemasFromHealthCheck.test.ts +1 -1
- package/src/__tests__/behavioral/upgrading/UpgradingASkill.test.ts +1 -2
- package/src/__tests__/implementation/TestRunner.test.ts +1 -1
- package/src/boot.ts +92 -0
- package/src/{cli.ts → cli/Cli.ts} +48 -150
- package/src/features/AbstractFeature.ts +1 -1
- package/src/features/FeatureInstaller.ts +3 -3
- package/src/features/error/ParentTestFinder.ts +1 -1
- package/src/features/event/builders/EventContractBuilder.ts +1 -1
- package/src/features/event/stores/EventStore.ts +4 -2
- package/src/features/event/stores/ListenerStore.ts +1 -1
- package/src/features/onboard/ScriptLoader.ts +1 -1
- package/src/features/permission/PermissionFeature.ts +3 -1
- package/src/features/permission/stores/PermissionStore.ts +1 -1
- package/src/features/schema/stores/SchemaStore.ts +1 -1
- package/src/features/schema/utilities/schemaGenerator.utility.ts +1 -1
- package/src/features/skill/SkillFeature.ts +1 -1
- package/src/features/store/stores/StoreStore.ts +1 -1
- package/src/features/test/TestReporter.ts +25 -25
- package/src/features/test/test.types.ts +8 -1
- package/src/features/view/actions/SyncAction.ts +1 -1
- package/src/features/view/actions/WatchAction.ts +8 -3
- package/src/index.ts +1 -1
- package/src/interfaces/SpyInterface.ts +2 -0
- package/src/interfaces/TerminalInterface.ts +5 -1
- package/src/tests/AbstractCliTest.ts +2 -3
- package/src/tests/AbstractSchemaTest.ts +1 -1
- package/src/tests/AbstractSkillTest.ts +1 -1
- package/src/tests/JestJsonParser.ts +4 -1
- package/src/tests/fixtures/FeatureFixture.ts +24 -20
- package/src/tests/fixtures/MercuryFixture.ts +1 -1
- package/src/types/cli.types.ts +30 -0
- package/yarn-error.log +12174 -0
- package/LICENSE +0 -21
- package/build/__tests__/behavioral/events/EverythingInstalledInstaller.d.ts +0 -17
- package/build/__tests__/behavioral/events/EverythingInstalledInstaller.js +0 -137
- package/build/__tests__/behavioral/events/EverythingInstalledInstaller.js.map +0 -1
- package/build/cli.js +0 -690
- package/build/cli.js.map +0 -1
- package/node_modules/@typescript-eslint/typescript-estree/node_modules/globby/gitignore.js +0 -120
- package/node_modules/@typescript-eslint/typescript-estree/node_modules/globby/index.d.ts +0 -186
- package/node_modules/@typescript-eslint/typescript-estree/node_modules/globby/index.js +0 -181
- package/node_modules/@typescript-eslint/typescript-estree/node_modules/globby/license +0 -9
- package/node_modules/@typescript-eslint/typescript-estree/node_modules/globby/package.json +0 -82
- package/node_modules/@typescript-eslint/typescript-estree/node_modules/globby/readme.md +0 -170
- package/node_modules/@typescript-eslint/typescript-estree/node_modules/globby/stream-utils.js +0 -46
- package/src/__tests__/behavioral/events/EverythingInstalledInstaller.ts +0 -46
|
@@ -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-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\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA;AACA;AACA;AAAyD;AAAA;AAAA;AAAA,IAEpCA,0BAA0B,WAmB7C,IAAAC,eAAI,GAAE,UAKN,IAAA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A;YAAA;cAAA;gBAAA;gBAAA,OAEO,IAAI,CAACb,MAAM,CAACS,UAAU,CAAC;kBAAA,0FAC5B,mBAAOT,MAAM;oBAAA;oBAAA;sBAAA;wBAAA;0BAAA;4BACNmB,IAAI,GAAGnB,MAAM,CAACG,eAAe,CAACiB,OAAO,EAAE;4BAC7Cb,iBAAM,CAACc,OAAO,CAACF,IAAI,EAAE,KAAK,CAAC;0BAAA;0BAAA;4BAAA;wBAAA;sBAAA;oBAAA;kBAAA,CAC3B;kBAAA;oBAAA;kBAAA;gBAAA,IACD,CAAC;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,CACF;MAAA;QAAA;MAAA;MAAA;IAAA;EAAA;IAAA;IAAA;MAAA,sGAED;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA,OAEO,IAAI,CAACnB,MAAM,CAACS,UAAU,CAAC;kBAAA,0FAC5B,mBAAOT,MAAM;oBAAA;sBAAA;wBAAA;0BAAA;4BAAA;4BAAA,OACNA,MAAM,CAACsB,cAAc,CAAC,cAAc,CAAC;0BAAA;0BAAA;4BAAA;wBAAA;sBAAA;oBAAA;kBAAA,CAC3C;kBAAA;oBAAA;kBAAA;gBAAA,IACD,CAAC;cAAA;gBAEFf,iBAAM,CAACgB,QAAQ,CAAC,IAAI,CAACxB,uBAAuB,EAAE,CAAC,CAAC;gBAChDQ,iBAAM,CAACc,OAAO,CAAC,IAAI,CAACtB,uBAAuB,CAAC,CAAC,CAAC,EAAE,cAAc,CAAC;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,CAC/D;MAAA;QAAA;MAAA;MAAA;IAAA;EAAA;EAAA;AAAA,EAxJsDyB,4BAAe,qIAEnB,EAAE;AAAA"}
|
|
1
|
+
{"version":3,"file":"OnboardingScriptPlayer.test.js","names":["_testUtils","require","_ScriptPlayer","_interopRequireDefault","_AbstractCliTest2","_dec","_dec2","_dec3","_dec4","_dec5","_dec6","_dec7","_dec8","_dec9","_class","_class2","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","OnboardingScriptPlayerTest","test","_AbstractCliTest","_inherits2","_super","_classCallCheck2","_createClass2","key","value","_beforeEach","_asyncToGenerator2","_regenerator","mark","_callee2","_this","store","wrap","_callee2$","_context2","prev","next","_get2","Store","commandExecuterCommands","player","ScriptPlayer","ui","onboardingStore","commandExecuter","_commandExecuter","_callee","command","_callee$","_context","push","stop","_x","beforeEach","canCreateScriptPlayer","assert","isTruthy","_canPlayTextScript","_callee3","_callee3$","_context3","playScript","doesInclude","invocations","options","message","canPlayTextScript","_canPlayCallback","_callee4","_callee4$","_context4","renderLine","canPlayCallback","_canPlayAsyncCallback","_callee6","_callee6$","_context6","_ref","_callee5","_callee5$","_context5","_x2","canPlayAsyncCallback","_throwsWithBadScriptKey","_callee7","_this2","_callee7$","_context7","doesThrowAsync","playScriptWithKey","throwsWithBadScriptKey","_canLoadScriptsByKey","_callee8","_callee8$","_context8","loadScript","canLoadScriptsByKey","_onScriptCanRedirectToAnother","_callee9","_callee9$","_context9","redirect","onScriptCanRedirectToAnother","_scriptsCanAccessOnboardingStore","_callee11","_callee11$","_context11","_ref2","_callee10","mode","_callee10$","_context10","getMode","isEqual","_x3","scriptsCanAccessOnboardingStore","_canInvokeCommand","_callee13","_callee13$","_context13","_ref3","_callee12","_callee12$","_context12","executeCommand","_x4","isLength","canInvokeCommand","AbstractCliTest","_defineProperty2","_applyDecoratedDescriptor2","Object","getOwnPropertyDescriptor","exports"],"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\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1I,MAAA,sCAAAF,KAAA,GAAA6I,MAAA,CAAAC,wBAAA,CAAA5I,MAAA,sCAAAA,MAAA,OAAA0I,0BAAA,aAAA1I,MAAA,uBAAAD,KAAA,GAAA4I,MAAA,CAAAC,wBAAA,CAAA5I,MAAA,uBAAAA,MAAA,IAAAA,MAAA;AAAA6I,OAAA,cAAArH,0BAAA"}
|
|
@@ -34,18 +34,16 @@ var OnboardingStoreTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils
|
|
|
34
34
|
var _beforeEach = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
35
35
|
var store;
|
|
36
36
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
37
|
-
while (1) {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
return _context.stop();
|
|
48
|
-
}
|
|
37
|
+
while (1) switch (_context.prev = _context.next) {
|
|
38
|
+
case 0:
|
|
39
|
+
_context.next = 2;
|
|
40
|
+
return (0, _get2["default"])((0, _getPrototypeOf2["default"])(OnboardingStoreTest), "beforeEach", this).call(this);
|
|
41
|
+
case 2:
|
|
42
|
+
store = this.OnboardingStore();
|
|
43
|
+
this.store = store;
|
|
44
|
+
case 4:
|
|
45
|
+
case "end":
|
|
46
|
+
return _context.stop();
|
|
49
47
|
}
|
|
50
48
|
}, _callee, this);
|
|
51
49
|
}));
|
|
@@ -96,17 +94,15 @@ var OnboardingStoreTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils
|
|
|
96
94
|
var _remembersStageBetweenBoots = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
97
95
|
var stage, newStore;
|
|
98
96
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
99
|
-
while (1) {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
return _context2.stop();
|
|
109
|
-
}
|
|
97
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
98
|
+
case 0:
|
|
99
|
+
stage = _feature["default"].generateCommand('test', 'test');
|
|
100
|
+
this.store.setStage(stage);
|
|
101
|
+
newStore = this.OnboardingStore();
|
|
102
|
+
_testUtils.assert.isEqual(newStore.getStage(), stage);
|
|
103
|
+
case 4:
|
|
104
|
+
case "end":
|
|
105
|
+
return _context2.stop();
|
|
110
106
|
}
|
|
111
107
|
}, _callee2, this);
|
|
112
108
|
}));
|
|
@@ -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-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;AAAyD;AAAA;AAAA;AAAA,
|
|
1
|
+
{"version":3,"file":"OnboardingStore.test.js","names":["_testUtils","require","_feature","_interopRequireDefault","_AbstractCliTest2","_dec","_dec2","_dec3","_dec4","_dec5","_dec6","_dec7","_dec8","_dec9","_dec10","_dec11","_class","_class2","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","OnboardingStoreTest","test","_AbstractCliTest","_inherits2","_super","_classCallCheck2","_createClass2","key","value","_beforeEach","_asyncToGenerator2","_regenerator","mark","_callee","store","wrap","_callee$","_context","prev","next","_get2","OnboardingStore","stop","beforeEach","Store","canGetStore","assert","isTruthy","startsAsOff","mode","getMode","isEqual","canSetToShortMode","setMode","canSetToImmersiveMode","remembersModeBetweenBoots","newStore","_remembersStageBetweenBoots","_callee2","stage","_callee2$","_context2","featuresUtil","generateCommand","setStage","getStage","remembersStageBetweenBoots","valuesSharedBetween2Instances","store1","store2","stageIsNotSetToStart","currentStage","isFalsy","stageCanBeSet","canBeReset","reset","cantSetBadStage","_this","doesThrow","AbstractCliTest","_defineProperty2","_applyDecoratedDescriptor2","Object","getOwnPropertyDescriptor","exports"],"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,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,iBAAA,GAAAD,sBAAA,CAAAF,OAAA;AAAyD,IAAAI,IAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,KAAA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0BAAA,aAAArF,MAAA,oBAAAH,KAAA,GAAAyF,MAAA,CAAAC,wBAAA,CAAAvF,MAAA,oBAAAA,MAAA,OAAAqF,0BAAA,aAAArF,MAAA,iBAAAF,MAAA,GAAAwF,MAAA,CAAAC,wBAAA,CAAAvF,MAAA,iBAAAA,MAAA,OAAAqF,0BAAA,aAAArF,MAAA,sBAAAD,MAAA,GAAAuF,MAAA,CAAAC,wBAAA,CAAAvF,MAAA,sBAAAA,MAAA,IAAAA,MAAA;AAAAwF,OAAA,cAAAhE,mBAAA"}
|
|
@@ -30,14 +30,12 @@ var OrganizationStoreTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUti
|
|
|
30
30
|
value: function () {
|
|
31
31
|
var _canCreateStore = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
32
32
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
33
|
-
while (1) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
return _context.stop();
|
|
40
|
-
}
|
|
33
|
+
while (1) switch (_context.prev = _context.next) {
|
|
34
|
+
case 0:
|
|
35
|
+
_testUtils.assert.isTruthy(this.Store('organization'));
|
|
36
|
+
case 1:
|
|
37
|
+
case "end":
|
|
38
|
+
return _context.stop();
|
|
41
39
|
}
|
|
42
40
|
}, _callee, this);
|
|
43
41
|
}));
|
|
@@ -52,33 +50,31 @@ var OrganizationStoreTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUti
|
|
|
52
50
|
var _skillIsNotInstalledByDefault = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
53
51
|
var org, skill, isInstalled;
|
|
54
52
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
55
|
-
while (1) {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
return _context2.stop();
|
|
81
|
-
}
|
|
53
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
54
|
+
case 0:
|
|
55
|
+
_context2.next = 2;
|
|
56
|
+
return this.FeatureFixture().installCachedFeatures('organizations');
|
|
57
|
+
case 2:
|
|
58
|
+
_context2.next = 4;
|
|
59
|
+
return this.getOrganizationFixture().seedDemoOrg({
|
|
60
|
+
name: 'A cool org'
|
|
61
|
+
});
|
|
62
|
+
case 4:
|
|
63
|
+
org = _context2.sent;
|
|
64
|
+
_context2.next = 7;
|
|
65
|
+
return this.getSkillFixture().registerCurrentSkill({
|
|
66
|
+
name: 'a new skill'
|
|
67
|
+
});
|
|
68
|
+
case 7:
|
|
69
|
+
skill = _context2.sent;
|
|
70
|
+
_context2.next = 10;
|
|
71
|
+
return this.Store('organization').isSkillInstalledAtOrg(skill.id, org.id);
|
|
72
|
+
case 10:
|
|
73
|
+
isInstalled = _context2.sent;
|
|
74
|
+
_testUtils.assert.isFalse(isInstalled);
|
|
75
|
+
case 12:
|
|
76
|
+
case "end":
|
|
77
|
+
return _context2.stop();
|
|
82
78
|
}
|
|
83
79
|
}, _callee2, this);
|
|
84
80
|
}));
|
|
@@ -93,35 +89,33 @@ var OrganizationStoreTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUti
|
|
|
93
89
|
var _canDeleteOrg = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3() {
|
|
94
90
|
var org, myOrgs, myOrgs2;
|
|
95
91
|
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
96
|
-
while (1) {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
return _context3.stop();
|
|
124
|
-
}
|
|
92
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
93
|
+
case 0:
|
|
94
|
+
_context3.next = 2;
|
|
95
|
+
return this.FeatureFixture().installCachedFeatures('organizations');
|
|
96
|
+
case 2:
|
|
97
|
+
_context3.next = 4;
|
|
98
|
+
return this.getOrganizationFixture().seedDemoOrg({
|
|
99
|
+
name: 'A cool org'
|
|
100
|
+
});
|
|
101
|
+
case 4:
|
|
102
|
+
org = _context3.sent;
|
|
103
|
+
_context3.next = 7;
|
|
104
|
+
return this.Store('organization').fetchMyOrganizations();
|
|
105
|
+
case 7:
|
|
106
|
+
myOrgs = _context3.sent;
|
|
107
|
+
_testUtils.assert.doesInclude(myOrgs, org);
|
|
108
|
+
_context3.next = 11;
|
|
109
|
+
return this.Store('organization').deleteOrganization(org.id);
|
|
110
|
+
case 11:
|
|
111
|
+
_context3.next = 13;
|
|
112
|
+
return this.Store('organization').fetchMyOrganizations();
|
|
113
|
+
case 13:
|
|
114
|
+
myOrgs2 = _context3.sent;
|
|
115
|
+
_testUtils.assert.doesNotInclude(myOrgs2, org);
|
|
116
|
+
case 15:
|
|
117
|
+
case "end":
|
|
118
|
+
return _context3.stop();
|
|
125
119
|
}
|
|
126
120
|
}, _callee3, this);
|
|
127
121
|
}));
|
|
@@ -136,36 +130,34 @@ var OrganizationStoreTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUti
|
|
|
136
130
|
var _installSkill = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4() {
|
|
137
131
|
var org, skill, isInstalled;
|
|
138
132
|
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
|
139
|
-
while (1) {
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
return _context4.stop();
|
|
168
|
-
}
|
|
133
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
134
|
+
case 0:
|
|
135
|
+
_context4.next = 2;
|
|
136
|
+
return this.FeatureFixture().installCachedFeatures('organizations');
|
|
137
|
+
case 2:
|
|
138
|
+
_context4.next = 4;
|
|
139
|
+
return this.getOrganizationFixture().seedDemoOrg({
|
|
140
|
+
name: 'A cool org'
|
|
141
|
+
});
|
|
142
|
+
case 4:
|
|
143
|
+
org = _context4.sent;
|
|
144
|
+
_context4.next = 7;
|
|
145
|
+
return this.getSkillFixture().registerCurrentSkill({
|
|
146
|
+
name: 'a new skill'
|
|
147
|
+
});
|
|
148
|
+
case 7:
|
|
149
|
+
skill = _context4.sent;
|
|
150
|
+
_context4.next = 10;
|
|
151
|
+
return this.Store('organization').installSkillAtOrganization(skill.id, org.id);
|
|
152
|
+
case 10:
|
|
153
|
+
_context4.next = 12;
|
|
154
|
+
return this.Store('organization').isSkillInstalledAtOrg(skill.id, org.id);
|
|
155
|
+
case 12:
|
|
156
|
+
isInstalled = _context4.sent;
|
|
157
|
+
_testUtils.assert.isTrue(isInstalled);
|
|
158
|
+
case 14:
|
|
159
|
+
case "end":
|
|
160
|
+
return _context4.stop();
|
|
169
161
|
}
|
|
170
162
|
}, _callee4, this);
|
|
171
163
|
}));
|
|
@@ -180,36 +172,34 @@ var OrganizationStoreTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUti
|
|
|
180
172
|
var _canGetMyOrgs = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5() {
|
|
181
173
|
var orgFixture, org1, org2, orgs;
|
|
182
174
|
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
|
183
|
-
while (1) {
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
return _context5.stop();
|
|
212
|
-
}
|
|
175
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
176
|
+
case 0:
|
|
177
|
+
_context5.next = 2;
|
|
178
|
+
return this.FeatureFixture().installCachedFeatures('organizations');
|
|
179
|
+
case 2:
|
|
180
|
+
orgFixture = this.getOrganizationFixture();
|
|
181
|
+
_context5.next = 5;
|
|
182
|
+
return orgFixture.seedDemoOrg({
|
|
183
|
+
name: 'A cool org'
|
|
184
|
+
});
|
|
185
|
+
case 5:
|
|
186
|
+
org1 = _context5.sent;
|
|
187
|
+
_context5.next = 8;
|
|
188
|
+
return orgFixture.seedDemoOrg({
|
|
189
|
+
name: 'A cool org'
|
|
190
|
+
});
|
|
191
|
+
case 8:
|
|
192
|
+
org2 = _context5.sent;
|
|
193
|
+
_context5.next = 11;
|
|
194
|
+
return this.Store('organization').fetchMyOrganizations();
|
|
195
|
+
case 11:
|
|
196
|
+
orgs = _context5.sent;
|
|
197
|
+
_testUtils.assert.isAbove(orgs.length, 1);
|
|
198
|
+
_testUtils.assert.doesInclude(orgs, org1);
|
|
199
|
+
_testUtils.assert.doesInclude(orgs, org2);
|
|
200
|
+
case 15:
|
|
201
|
+
case "end":
|
|
202
|
+
return _context5.stop();
|
|
213
203
|
}
|
|
214
204
|
}, _callee5, this);
|
|
215
205
|
}));
|
|
@@ -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-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;AAAyD;AAAA;AAAA;AAAA,IAEpCA,qBAAqB,WACxC,IAAAC,eAAI,GAAE,UAKN,IAAAA,eAAI,GAAE,UAoBN,IAAAA,eAAI,GAAE,UAmBN,IAAAA,eAAI,GAAE,UAwBN,IAAAA,eAAI,GAAE;EAAA;EAAA;EAAA;IAAA;IAAA;EAAA;EAAA;IAAA;IAAA;MAAA,oGApEP;QAAA;UAAA;Y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A;cAAA;gBAAA;gBAAA,OAEO,IAAI,CAACX,cAAc,EAAE,CAACC,qBAAqB,CAAC,eAAe,CAAC;cAAA;gBAC5DoB,UAAU,GAAG,IAAI,CAACnB,sBAAsB,EAAE;gBAAA;gBAAA,OAC7BmB,UAAU,CAAClB,WAAW,CAAC;kBACzCC,IAAI,EAAE;gBACP,CAAC,CAAC;cAAA;gBAFIkB,IAAI;gBAAA;gBAAA,OAGSD,UAAU,CAAClB,WAAW,CAAC;kBACzCC,IAAI,EAAE;gBACP,CAAC,CAAC;cAAA;gBAFImB,IAAI;gBAAA;gBAAA,OAIS,IAAI,CAACxB,KAAK,CAAC,cAAc,CAAC,CAACc,oBAAoB,EAAE;cAAA;gBAA9DW,IAAI;gBACV3B,iBAAM,CAAC4B,OAAO,CAACD,IAAI,CAACE,MAAM,EAAE,CAAC,CAAC;gBAC9B7B,iBAAM,CAACkB,WAAW,CAACS,IAAI,EAAEF,IAAI,CAAC;gBAC9BzB,iBAAM,CAACkB,WAAW,CAACS,IAAI,EAAED,IAAI,CAAC;cAAA;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,CAC9B;MAAA;QAAA;MAAA;MAAA;IAAA;EAAA;EAAA;AAAA,EApFiDI,4BAAe;AAAA"}
|
|
1
|
+
{"version":3,"file":"OrganizationStore.test.js","names":["_testUtils","require","_AbstractCliTest2","_interopRequireDefault","_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","OrganizationStoreTest","test","_AbstractCliTest","_inherits2","_super","_classCallCheck2","_createClass2","key","value","_canCreateStore","_asyncToGenerator2","_regenerator","mark","_callee","wrap","_callee$","_context","prev","next","assert","isTruthy","Store","stop","canCreateStore","_skillIsNotInstalledByDefault","_callee2","org","skill","isInstalled","_callee2$","_context2","FeatureFixture","installCachedFeatures","getOrganizationFixture","seedDemoOrg","name","sent","getSkillFixture","registerCurrentSkill","isSkillInstalledAtOrg","id","isFalse","skillIsNotInstalledByDefault","_canDeleteOrg","_callee3","myOrgs","myOrgs2","_callee3$","_context3","fetchMyOrganizations","doesInclude","deleteOrganization","doesNotInclude","canDeleteOrg","_installSkill","_callee4","_callee4$","_context4","installSkillAtOrganization","isTrue","installSkill","_canGetMyOrgs","_callee5","orgFixture","org1","org2","orgs","_callee5$","_context5","isAbove","length","canGetMyOrgs","AbstractCliTest","_applyDecoratedDescriptor2","Object","getOwnPropertyDescriptor","exports"],"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,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAC,sBAAA,CAAAF,OAAA;AAAyD,IAAAG,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,EA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,WAAW,CAACgB,IAAI,EAAED,IAAI,CAAC;YAAA;YAAA;cAAA,OAAAG,SAAA,CAAA9C,IAAA;UAAA;QAAA,GAAAwC,QAAA;MAAA,CAC9B;MAAA,SAAAS,aAAA;QAAA,OAAAV,aAAA,CAAAtE,KAAA,OAAAD,SAAA;MAAA;MAAA,OAAAiF,YAAA;IAAA;EAAA;EAAA,OAAAvE,qBAAA;AAAA,EApFiDwE,4BAAe,QAAAC,0BAAA,aAAAhG,MAAA,qBAAAL,IAAA,GAAAsG,MAAA,CAAAC,wBAAA,CAAAlG,MAAA,qBAAAA,MAAA,OAAAgG,0BAAA,aAAAhG,MAAA,mCAAAJ,KAAA,GAAAqG,MAAA,CAAAC,wBAAA,CAAAlG,MAAA,mCAAAA,MAAA,OAAAgG,0BAAA,aAAAhG,MAAA,mBAAAH,KAAA,GAAAoG,MAAA,CAAAC,wBAAA,CAAAlG,MAAA,mBAAAA,MAAA,OAAAgG,0BAAA,aAAAhG,MAAA,mBAAAF,KAAA,GAAAmG,MAAA,CAAAC,wBAAA,CAAAlG,MAAA,mBAAAA,MAAA,OAAAgG,0BAAA,aAAAhG,MAAA,mBAAAD,KAAA,GAAAkG,MAAA,CAAAC,wBAAA,CAAAlG,MAAA,mBAAAA,MAAA,IAAAA,MAAA;AAAAmG,OAAA,cAAA5E,qBAAA"}
|
|
@@ -33,15 +33,13 @@ var ParentTestFinderTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtil
|
|
|
33
33
|
var _canCreateFinder = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee() {
|
|
34
34
|
var finder;
|
|
35
35
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
36
|
-
while (1) {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
return _context.stop();
|
|
44
|
-
}
|
|
36
|
+
while (1) switch (_context.prev = _context.next) {
|
|
37
|
+
case 0:
|
|
38
|
+
finder = new _ParentTestFinder["default"](this.cwd);
|
|
39
|
+
_testUtils.assert.isTruthy(finder);
|
|
40
|
+
case 2:
|
|
41
|
+
case "end":
|
|
42
|
+
return _context.stop();
|
|
45
43
|
}
|
|
46
44
|
}, _callee, this);
|
|
47
45
|
}));
|
|
@@ -56,30 +54,28 @@ var ParentTestFinderTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtil
|
|
|
56
54
|
var _canFindAbstractTests = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2() {
|
|
57
55
|
var testFinder, matches;
|
|
58
56
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
59
|
-
while (1) {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
return _context2.stop();
|
|
82
|
-
}
|
|
57
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
58
|
+
case 0:
|
|
59
|
+
_context2.next = 2;
|
|
60
|
+
return this.copyTestFiles();
|
|
61
|
+
case 2:
|
|
62
|
+
testFinder = new _ParentTestFinder["default"](this.cwd);
|
|
63
|
+
_context2.next = 5;
|
|
64
|
+
return testFinder.findAbstractTests();
|
|
65
|
+
case 5:
|
|
66
|
+
matches = _context2.sent;
|
|
67
|
+
_testUtils.assert.isLength(matches, 3);
|
|
68
|
+
_testUtils.assert.doesInclude(matches, {
|
|
69
|
+
name: 'AbstractTest',
|
|
70
|
+
path: this.resolvePath('src', 'AbstractTest.ts')
|
|
71
|
+
});
|
|
72
|
+
_testUtils.assert.doesInclude(matches, {
|
|
73
|
+
name: 'AbstractBananaTestDifferentThanFileName',
|
|
74
|
+
path: this.resolvePath('src', 'deeper', 'AbstractBananaTest.ts')
|
|
75
|
+
});
|
|
76
|
+
case 9:
|
|
77
|
+
case "end":
|
|
78
|
+
return _context2.stop();
|
|
83
79
|
}
|
|
84
80
|
}, _callee2, this);
|
|
85
81
|
}));
|
|
@@ -94,17 +90,15 @@ var ParentTestFinderTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtil
|
|
|
94
90
|
var _copyTestFiles = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3() {
|
|
95
91
|
var source, destination;
|
|
96
92
|
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
97
|
-
while (1) {
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
return _context3.stop();
|
|
107
|
-
}
|
|
93
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
94
|
+
case 0:
|
|
95
|
+
source = this.resolveTestPath('abstract_tests');
|
|
96
|
+
destination = this.resolvePath('src');
|
|
97
|
+
_context3.next = 4;
|
|
98
|
+
return _spruceSkillUtils.diskUtil.copyDir(source, destination);
|
|
99
|
+
case 4:
|
|
100
|
+
case "end":
|
|
101
|
+
return _context3.stop();
|
|
108
102
|
}
|
|
109
103
|
}, _callee3, this);
|
|
110
104
|
}));
|