@sprucelabs/spruce-cli 17.1.39 → 17.1.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/build/__tests__/behavioral/AddingADependency.test.js +10 -12
- package/build/__tests__/behavioral/AddingADependency.test.js.map +1 -1
- package/build/__tests__/behavioral/BlockingCommands.test.js +3 -5
- package/build/__tests__/behavioral/BlockingCommands.test.js.map +1 -1
- package/build/__tests__/behavioral/BootingTheCli.test.js +3 -3
- package/build/__tests__/behavioral/BootingTheCli.test.js.map +1 -1
- package/build/__tests__/behavioral/BootingWithBadFiles.test.js +7 -7
- package/build/__tests__/behavioral/BootingWithBadFiles.test.js.map +1 -1
- package/build/__tests__/behavioral/CreatingAConversationTopic.test.js +13 -13
- package/build/__tests__/behavioral/CreatingAConversationTopic.test.js.map +1 -1
- package/build/__tests__/behavioral/CreatingSchemasWithGenerics.test.js +10 -10
- package/build/__tests__/behavioral/CreatingSchemasWithGenerics.test.js.map +1 -1
- package/build/__tests__/behavioral/DeployingASkill.test.js +32 -34
- package/build/__tests__/behavioral/DeployingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/DeployingToSandbox.test.js +15 -17
- package/build/__tests__/behavioral/DeployingToSandbox.test.js.map +1 -1
- package/build/__tests__/behavioral/EnablingAndDisablingCache.test.js +11 -13
- package/build/__tests__/behavioral/EnablingAndDisablingCache.test.js.map +1 -1
- package/build/__tests__/behavioral/GettingCliVersion.test.js +4 -4
- package/build/__tests__/behavioral/GettingCliVersion.test.js.map +1 -1
- package/build/__tests__/behavioral/InstallingASkillAtAnOrg.test.js +11 -13
- package/build/__tests__/behavioral/InstallingASkillAtAnOrg.test.js.map +1 -1
- package/build/__tests__/behavioral/ListeningToCoreEvents.test.js +4 -4
- package/build/__tests__/behavioral/ListeningToCoreEvents.test.js.map +1 -1
- package/build/__tests__/behavioral/LoggingInAsASkill.test.js +14 -16
- package/build/__tests__/behavioral/LoggingInAsASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/ManagingDependencies.test.js +9 -9
- package/build/__tests__/behavioral/ManagingDependencies.test.js.map +1 -1
- package/build/__tests__/behavioral/OverridingCommandsInPackageJson.test.js +3 -3
- package/build/__tests__/behavioral/OverridingCommandsInPackageJson.test.js.map +1 -1
- package/build/__tests__/behavioral/RebuildingASkill.test.js +4 -6
- package/build/__tests__/behavioral/RebuildingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/RegisteringConversationsOnBoot.test.js +4 -4
- package/build/__tests__/behavioral/RegisteringConversationsOnBoot.test.js.map +1 -1
- package/build/__tests__/behavioral/RegisteringEventsOnBoot.test.js +7 -7
- package/build/__tests__/behavioral/RegisteringEventsOnBoot.test.js.map +1 -1
- package/build/__tests__/behavioral/RegisteringGlobalEvents.test.js +11 -11
- package/build/__tests__/behavioral/RegisteringGlobalEvents.test.js.map +1 -1
- package/build/__tests__/behavioral/RegisteringSkillViewOnBoot.test.js +6 -6
- package/build/__tests__/behavioral/RegisteringSkillViewOnBoot.test.js.map +1 -1
- package/build/__tests__/behavioral/RememberingUpgradeSelections.test.js +5 -5
- package/build/__tests__/behavioral/RememberingUpgradeSelections.test.js.map +1 -1
- package/build/__tests__/behavioral/SettingLogTransportsInASkill.test.js +10 -12
- package/build/__tests__/behavioral/SettingLogTransportsInASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/SettingRemote.test.js +9 -9
- package/build/__tests__/behavioral/SettingRemote.test.js.map +1 -1
- package/build/__tests__/behavioral/SettingUpASkillForTesting.test.js +10 -10
- package/build/__tests__/behavioral/SettingUpASkillForTesting.test.js.map +1 -1
- package/build/__tests__/behavioral/SettingUpSchemasForModuleDistribution.test.js +29 -31
- package/build/__tests__/behavioral/SettingUpSchemasForModuleDistribution.test.js.map +1 -1
- package/build/__tests__/behavioral/SettingUpVscode.test.js +10 -10
- package/build/__tests__/behavioral/SettingUpVscode.test.js.map +1 -1
- package/build/__tests__/behavioral/SyncingEventsOnlyFromDependencies.test.js +13 -13
- package/build/__tests__/behavioral/SyncingEventsOnlyFromDependencies.test.js.map +1 -1
- package/build/__tests__/behavioral/TestReporterSettingsRemembered.test.js +6 -6
- package/build/__tests__/behavioral/TestReporterSettingsRemembered.test.js.map +1 -1
- package/build/__tests__/behavioral/TestingAConversation.test.js +17 -17
- package/build/__tests__/behavioral/TestingAConversation.test.js.map +1 -1
- package/build/__tests__/behavioral/TestingDataStores.test.js +13 -13
- package/build/__tests__/behavioral/TestingDataStores.test.js.map +1 -1
- package/build/__tests__/behavioral/WatchingSkillViews.test.js +15 -15
- package/build/__tests__/behavioral/WatchingSkillViews.test.js.map +1 -1
- package/build/__tests__/behavioral/errors/CreatingANewErrorBuilder.test.js +15 -15
- package/build/__tests__/behavioral/errors/CreatingANewErrorBuilder.test.js.map +1 -1
- package/build/__tests__/behavioral/errors/KeepingErrorClassInSync.test.js +8 -8
- package/build/__tests__/behavioral/errors/KeepingErrorClassInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/errors/KeepingErrorsInSync.test.js +32 -32
- package/build/__tests__/behavioral/errors/KeepingErrorsInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/errors/SettingUpErrors.test.js +4 -6
- package/build/__tests__/behavioral/errors/SettingUpErrors.test.js.map +1 -1
- package/build/__tests__/behavioral/eventContract/PullingMercuryEventContract.test.js +25 -25
- package/build/__tests__/behavioral/eventContract/PullingMercuryEventContract.test.js.map +1 -1
- package/build/__tests__/behavioral/events/CreatingAListener.test.js +29 -31
- package/build/__tests__/behavioral/events/CreatingAListener.test.js.map +1 -1
- package/build/__tests__/behavioral/events/CreatingAnEvent.test.js +26 -28
- package/build/__tests__/behavioral/events/CreatingAnEvent.test.js.map +1 -1
- package/build/__tests__/behavioral/events/KeepingEventsInSync.test.js +22 -22
- package/build/__tests__/behavioral/events/KeepingEventsInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/events/KeepingEventsInSync2.test.js +38 -38
- package/build/__tests__/behavioral/events/KeepingEventsInSync2.test.js.map +1 -1
- package/build/__tests__/behavioral/events/KeepingListenersInSync.test.js +7 -7
- package/build/__tests__/behavioral/events/KeepingListenersInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/events/ListeningToAnEventYouCreate.test.js +6 -6
- package/build/__tests__/behavioral/events/ListeningToAnEventYouCreate.test.js.map +1 -1
- package/build/__tests__/behavioral/events/SettingUpEvents.test.js +4 -4
- package/build/__tests__/behavioral/events/SettingUpEvents.test.js.map +1 -1
- package/build/__tests__/behavioral/events/SkillEmitsBootEvents.test.js +3 -5
- package/build/__tests__/behavioral/events/SkillEmitsBootEvents.test.js.map +1 -1
- package/build/__tests__/behavioral/node/CreatingANodeModule.test.js +6 -6
- package/build/__tests__/behavioral/node/CreatingANodeModule.test.js.map +1 -1
- package/build/__tests__/behavioral/onboard/StartingOnboarding.test.js +6 -6
- package/build/__tests__/behavioral/onboard/StartingOnboarding.test.js.map +1 -1
- package/build/__tests__/behavioral/organization/CreatingAnOrg.test.js +6 -6
- package/build/__tests__/behavioral/organization/CreatingAnOrg.test.js.map +1 -1
- package/build/__tests__/behavioral/permissions/CreatingPermissions.test.js +3 -3
- package/build/__tests__/behavioral/permissions/CreatingPermissions.test.js.map +1 -1
- package/build/__tests__/behavioral/person/LoggingInAsPerson.test.js +14 -16
- package/build/__tests__/behavioral/person/LoggingInAsPerson.test.js.map +1 -1
- package/build/__tests__/behavioral/person/SeeWhoIsLoggedIn.test.js +7 -7
- package/build/__tests__/behavioral/person/SeeWhoIsLoggedIn.test.js.map +1 -1
- package/build/__tests__/behavioral/polish/SettingUpPolish.test.js +8 -8
- package/build/__tests__/behavioral/polish/SettingUpPolish.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/CreatingANewSchemaBuilder.test.js +23 -25
- package/build/__tests__/behavioral/schemas/CreatingANewSchemaBuilder.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/GeneratingFieldTypesOnly.test.js +7 -7
- package/build/__tests__/behavioral/schemas/GeneratingFieldTypesOnly.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/GettingSchemasFromHealthCheck.test.js +6 -6
- package/build/__tests__/behavioral/schemas/GettingSchemasFromHealthCheck.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/HandlesRelatedSchemas.test.js +18 -18
- package/build/__tests__/behavioral/schemas/HandlesRelatedSchemas.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/ImportingSchemaImports.test.js +7 -7
- package/build/__tests__/behavioral/schemas/ImportingSchemaImports.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/KeepingSchemasInSync.test.js +62 -64
- package/build/__tests__/behavioral/schemas/KeepingSchemasInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/SettingUpSchemas.test.js +6 -8
- package/build/__tests__/behavioral/schemas/SettingUpSchemas.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/SyncingBadSchemasProvidesHelpfulErrorMessages.test.js +4 -6
- package/build/__tests__/behavioral/schemas/SyncingBadSchemasProvidesHelpfulErrorMessages.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/UsingSchemasInCli.test.d.ts +1 -1
- package/build/__tests__/behavioral/schemas/UsingSchemasInCli.test.js +4 -4
- package/build/__tests__/behavioral/schemas/UsingSchemasInCli.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/BootingASkill.test.js +12 -12
- package/build/__tests__/behavioral/skill/BootingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/CreatingASkill.test.js +5 -5
- package/build/__tests__/behavioral/skill/CreatingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/RegisteringASkill.test.js +12 -14
- package/build/__tests__/behavioral/skill/RegisteringASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/skill/SettingUpASkill.test.js +29 -29
- package/build/__tests__/behavioral/skill/SettingUpASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/stores/CreatingADataStore.test.js +26 -28
- package/build/__tests__/behavioral/stores/CreatingADataStore.test.js.map +1 -1
- package/build/__tests__/behavioral/stores/KeepingDataStoresInSync.test.js +8 -10
- package/build/__tests__/behavioral/stores/KeepingDataStoresInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/CreatingATest.test.js +10 -10
- package/build/__tests__/behavioral/tests/CreatingATest.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/RunningTests.test.js +8 -10
- package/build/__tests__/behavioral/tests/RunningTests.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/SelectingAnAbstractTestClass.test.js +17 -17
- package/build/__tests__/behavioral/tests/SelectingAnAbstractTestClass.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/SettingUpTests.test.js +3 -5
- package/build/__tests__/behavioral/tests/SettingUpTests.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpdatingDependencies.test.js +8 -8
- package/build/__tests__/behavioral/upgrading/UpdatingDependencies.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpdatingDependencies2.test.js +7 -7
- package/build/__tests__/behavioral/upgrading/UpdatingDependencies2.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingANodeModule.test.js +6 -6
- package/build/__tests__/behavioral/upgrading/UpgradingANodeModule.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingASkill.test.js +15 -15
- package/build/__tests__/behavioral/upgrading/UpgradingASkill.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingASkill2.test.js +24 -24
- package/build/__tests__/behavioral/upgrading/UpgradingASkill2.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingASkill3.test.js +22 -22
- package/build/__tests__/behavioral/upgrading/UpgradingASkill3.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingASkill4.test.js +10 -10
- package/build/__tests__/behavioral/upgrading/UpgradingASkill4.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingASkill5.test.js +9 -9
- package/build/__tests__/behavioral/upgrading/UpgradingASkill5.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingWithListeners.test.js +4 -4
- package/build/__tests__/behavioral/upgrading/UpgradingWithListeners.test.js.map +1 -1
- package/build/__tests__/behavioral/upgrading/UpgradingWithSandboxFeatureInstalled.test.js +9 -9
- package/build/__tests__/behavioral/upgrading/UpgradingWithSandboxFeatureInstalled.test.js.map +1 -1
- package/build/__tests__/behavioral/views/CreatingASkillView.test.js +28 -30
- package/build/__tests__/behavioral/views/CreatingASkillView.test.js.map +1 -1
- package/build/__tests__/behavioral/views/CreatingATheme.test.js +9 -11
- package/build/__tests__/behavioral/views/CreatingATheme.test.js.map +1 -1
- package/build/__tests__/behavioral/views/KeepingViewsInSync.test.js +8 -8
- package/build/__tests__/behavioral/views/KeepingViewsInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/views/SettingUpViews.test.js +5 -5
- package/build/__tests__/behavioral/views/SettingUpViews.test.js.map +1 -1
- package/build/__tests__/behavioral/views/TestingViewControllers.test.js +12 -12
- package/build/__tests__/behavioral/views/TestingViewControllers.test.js.map +1 -1
- package/build/__tests__/behavioral/watchers/WatchingForChanges.test.js +10 -10
- package/build/__tests__/behavioral/watchers/WatchingForChanges.test.js.map +1 -1
- package/build/__tests__/implementation/ActionExecuter.test.js +5 -5
- package/build/__tests__/implementation/ActionExecuter.test.js.map +1 -1
- package/build/__tests__/implementation/ActionExecuter2.test.js +30 -30
- package/build/__tests__/implementation/ActionExecuter2.test.js.map +1 -1
- package/build/__tests__/implementation/ActionExecuter3.test.js +3 -5
- package/build/__tests__/implementation/ActionExecuter3.test.js.map +1 -1
- package/build/__tests__/implementation/ActionExecuter4.test.js +2 -4
- package/build/__tests__/implementation/ActionExecuter4.test.js.map +1 -1
- package/build/__tests__/implementation/ArgParser.test.d.ts +1 -1
- package/build/__tests__/implementation/ArgParser.test.js +7 -7
- package/build/__tests__/implementation/ArgParser.test.js.map +1 -1
- package/build/__tests__/implementation/BuildService.test.js +4 -4
- package/build/__tests__/implementation/BuildService.test.js.map +1 -1
- package/build/__tests__/implementation/BulkImporting.test.d.ts +1 -1
- package/build/__tests__/implementation/BulkImporting.test.js +20 -22
- package/build/__tests__/implementation/BulkImporting.test.js.map +1 -1
- package/build/__tests__/implementation/CachingImports.test.js +3 -3
- package/build/__tests__/implementation/CachingImports.test.js.map +1 -1
- package/build/__tests__/implementation/CommandOptionBuilder.test.js +12 -12
- package/build/__tests__/implementation/CommandOptionBuilder.test.js.map +1 -1
- package/build/__tests__/implementation/CommanderCommandResultMapper.test.d.ts +1 -1
- package/build/__tests__/implementation/CommanderCommandResultMapper.test.js +13 -13
- package/build/__tests__/implementation/CommanderCommandResultMapper.test.js.map +1 -1
- package/build/__tests__/implementation/DataStoreStore.test.js +16 -18
- package/build/__tests__/implementation/DataStoreStore.test.js.map +1 -1
- package/build/__tests__/implementation/DeletingOrphanedSchemaDefinitions.test.js +6 -6
- package/build/__tests__/implementation/DeletingOrphanedSchemaDefinitions.test.js.map +1 -1
- package/build/__tests__/implementation/EventContractCleanerUtil.test.d.ts +1 -1
- package/build/__tests__/implementation/EventContractCleanerUtil.test.js +7 -7
- package/build/__tests__/implementation/EventContractCleanerUtil.test.js.map +1 -1
- package/build/__tests__/implementation/EventStore.test.js +27 -29
- package/build/__tests__/implementation/EventStore.test.js.map +1 -1
- package/build/__tests__/implementation/EventTemplateItemBuilder.test.js +12 -12
- package/build/__tests__/implementation/EventTemplateItemBuilder.test.js.map +1 -1
- package/build/__tests__/implementation/FeatureCommandAttacher.test.js +23 -23
- package/build/__tests__/implementation/FeatureCommandAttacher.test.js.map +1 -1
- package/build/__tests__/implementation/FeatureFixture.test.js +7 -7
- package/build/__tests__/implementation/FeatureFixture.test.js.map +1 -1
- package/build/__tests__/implementation/FeatureInstaller.test.js +8 -8
- package/build/__tests__/implementation/FeatureInstaller.test.js.map +1 -1
- package/build/__tests__/implementation/FeaturesUtil.test.d.ts +1 -1
- package/build/__tests__/implementation/FeaturesUtil.test.js +4 -4
- package/build/__tests__/implementation/FeaturesUtil.test.js.map +1 -1
- package/build/__tests__/implementation/FieldTemplateItemBuilder.test.js +11 -11
- package/build/__tests__/implementation/FieldTemplateItemBuilder.test.js.map +1 -1
- package/build/__tests__/implementation/GlobalEmitter.js +3 -3
- package/build/__tests__/implementation/GlobalEmitter.js.map +1 -1
- package/build/__tests__/implementation/Introspection.test.js +4 -4
- package/build/__tests__/implementation/Introspection.test.js.map +1 -1
- package/build/__tests__/implementation/JestJsonParser.test.d.ts +1 -1
- package/build/__tests__/implementation/JestJsonParser.test.js +31 -31
- package/build/__tests__/implementation/JestJsonParser.test.js.map +1 -1
- package/build/__tests__/implementation/LintService.test.js +3 -3
- package/build/__tests__/implementation/LintService.test.js.map +1 -1
- package/build/__tests__/implementation/ListenerStore.test.js +3 -3
- package/build/__tests__/implementation/ListenerStore.test.js.map +1 -1
- package/build/__tests__/implementation/OnboardingScriptLoader.test.js +9 -9
- package/build/__tests__/implementation/OnboardingScriptLoader.test.js.map +1 -1
- package/build/__tests__/implementation/OnboardingScriptPlayer.test.js +17 -17
- package/build/__tests__/implementation/OnboardingScriptPlayer.test.js.map +1 -1
- package/build/__tests__/implementation/OnboardingStore.test.js +14 -14
- package/build/__tests__/implementation/OnboardingStore.test.js.map +1 -1
- package/build/__tests__/implementation/OrganizationStore.test.js +10 -10
- package/build/__tests__/implementation/OrganizationStore.test.js.map +1 -1
- package/build/__tests__/implementation/ParentTestFinder.test.js +6 -6
- package/build/__tests__/implementation/ParentTestFinder.test.js.map +1 -1
- package/build/__tests__/implementation/PkgService.test.js +8 -8
- package/build/__tests__/implementation/PkgService.test.js.map +1 -1
- package/build/__tests__/implementation/SchemaStore.test.js +30 -32
- package/build/__tests__/implementation/SchemaStore.test.js.map +1 -1
- package/build/__tests__/implementation/SchemaTemplateItemBuilder.test.js +10 -10
- package/build/__tests__/implementation/SchemaTemplateItemBuilder.test.js.map +1 -1
- package/build/__tests__/implementation/SchemaValueTypeWriter.test.js +13 -13
- package/build/__tests__/implementation/SchemaValueTypeWriter.test.js.map +1 -1
- package/build/__tests__/implementation/ServiceFactory.test.js +3 -3
- package/build/__tests__/implementation/ServiceFactory.test.js.map +1 -1
- package/build/__tests__/implementation/SettingUpANodeModule.test.js +4 -6
- package/build/__tests__/implementation/SettingUpANodeModule.test.js.map +1 -1
- package/build/__tests__/implementation/SkillStore.test.js +25 -27
- package/build/__tests__/implementation/SkillStore.test.js.map +1 -1
- package/build/__tests__/implementation/StoreFeature.test.js +4 -4
- package/build/__tests__/implementation/StoreFeature.test.js.map +1 -1
- package/build/__tests__/implementation/TestReporter.test.js +5 -5
- package/build/__tests__/implementation/TestReporter.test.js.map +1 -1
- package/build/__tests__/implementation/TestRunner.test.js +23 -25
- package/build/__tests__/implementation/TestRunner.test.js.map +1 -1
- package/build/__tests__/implementation/ValueTypeMapping.test.js +4 -4
- package/build/__tests__/implementation/ValueTypeMapping.test.js.map +1 -1
- package/build/__tests__/implementation/Widgets.test.js +10 -10
- package/build/__tests__/implementation/Widgets.test.js.map +1 -1
- package/build/__tests__/testDirsAndFiles/abstract_tests/AbstractTest.d.ts +1 -1
- package/build/__tests__/testDirsAndFiles/abstract_tests/AbstractTest.ts +1 -1
- package/build/__tests__/testDirsAndFiles/abstract_tests/AbstractTest2.d.ts +1 -1
- package/build/__tests__/testDirsAndFiles/abstract_tests/AbstractTest2.ts +1 -1
- package/build/__tests__/testDirsAndFiles/abstract_tests/deeper/AbstractBananaTest.d.ts +1 -1
- package/build/__tests__/testDirsAndFiles/abstract_tests/deeper/AbstractBananaTest.ts +1 -1
- package/build/features/onboard/templates/ManagingTodos.test.ts.hbs +1 -1
- package/build/features/test/TestLogItemGenerator.js +2 -2
- package/build/features/test/TestLogItemGenerator.js.map +1 -1
- package/build/interfaces/SpyInterface.js +5 -5
- package/build/interfaces/SpyInterface.js.map +1 -1
- package/build/tests/AbstractCliTest.d.ts +1 -1
- package/build/tests/AbstractCliTest.js +11 -11
- package/build/tests/AbstractCliTest.js.map +1 -1
- package/build/tests/AbstractSchemaTest.js +4 -4
- package/build/tests/AbstractSchemaTest.js.map +1 -1
- package/build/tests/utilities/test.utility.js +6 -6
- package/build/tests/utilities/test.utility.js.map +1 -1
- package/build/tests/utilities/uiAssert.utility.js +6 -6
- package/build/tests/utilities/uiAssert.utility.js.map +1 -1
- package/node_modules/@typescript-eslint/parser/package.json +5 -5
- package/node_modules/@typescript-eslint/scope-manager/package.json +5 -5
- package/node_modules/@typescript-eslint/types/package.json +2 -2
- package/node_modules/@typescript-eslint/typescript-estree/package.json +5 -5
- package/node_modules/@typescript-eslint/visitor-keys/package.json +3 -3
- package/package.json +15 -23
- package/src/__tests__/behavioral/AddingADependency.test.ts +1 -1
- package/src/__tests__/behavioral/BlockingCommands.test.ts +1 -1
- package/src/__tests__/behavioral/BootingTheCli.test.ts +1 -1
- package/src/__tests__/behavioral/BootingWithBadFiles.test.ts +1 -1
- package/src/__tests__/behavioral/CreatingAConversationTopic.test.ts +1 -1
- package/src/__tests__/behavioral/CreatingSchemasWithGenerics.test.ts +1 -1
- package/src/__tests__/behavioral/DeployingASkill.test.ts +1 -1
- package/src/__tests__/behavioral/DeployingToSandbox.test.ts +1 -1
- package/src/__tests__/behavioral/EnablingAndDisablingCache.test.ts +1 -1
- package/src/__tests__/behavioral/GettingCliVersion.test.ts +1 -1
- package/src/__tests__/behavioral/InstallingASkillAtAnOrg.test.ts +1 -1
- package/src/__tests__/behavioral/ListeningToCoreEvents.test.ts +1 -1
- package/src/__tests__/behavioral/LoggingInAsASkill.test.ts +1 -1
- package/src/__tests__/behavioral/ManagingDependencies.test.ts +1 -1
- package/src/__tests__/behavioral/OverridingCommandsInPackageJson.test.ts +1 -1
- package/src/__tests__/behavioral/RebuildingASkill.test.ts +1 -1
- package/src/__tests__/behavioral/RegisteringConversationsOnBoot.test.ts +1 -1
- package/src/__tests__/behavioral/RegisteringEventsOnBoot.test.ts +1 -1
- package/src/__tests__/behavioral/RegisteringGlobalEvents.test.ts +1 -1
- package/src/__tests__/behavioral/RegisteringSkillViewOnBoot.test.ts +1 -1
- package/src/__tests__/behavioral/RememberingUpgradeSelections.test.ts +1 -1
- package/src/__tests__/behavioral/SettingLogTransportsInASkill.test.ts +1 -1
- package/src/__tests__/behavioral/SettingRemote.test.ts +1 -1
- package/src/__tests__/behavioral/SettingUpASkillForTesting.test.ts +1 -1
- package/src/__tests__/behavioral/SettingUpSchemasForModuleDistribution.test.ts +1 -1
- package/src/__tests__/behavioral/SettingUpVscode.test.ts +1 -1
- package/src/__tests__/behavioral/SyncingEventsOnlyFromDependencies.test.ts +1 -1
- package/src/__tests__/behavioral/TestReporterSettingsRemembered.test.ts +1 -1
- package/src/__tests__/behavioral/TestingAConversation.test.ts +1 -1
- package/src/__tests__/behavioral/TestingDataStores.test.ts +1 -1
- package/src/__tests__/behavioral/WatchingSkillViews.test.ts +1 -1
- package/src/__tests__/behavioral/errors/CreatingANewErrorBuilder.test.ts +1 -1
- package/src/__tests__/behavioral/errors/KeepingErrorClassInSync.test.ts +1 -1
- package/src/__tests__/behavioral/errors/KeepingErrorsInSync.test.ts +1 -1
- package/src/__tests__/behavioral/errors/SettingUpErrors.test.ts +1 -1
- package/src/__tests__/behavioral/eventContract/PullingMercuryEventContract.test.ts +1 -1
- package/src/__tests__/behavioral/events/CreatingAListener.test.ts +1 -1
- package/src/__tests__/behavioral/events/CreatingAnEvent.test.ts +1 -1
- package/src/__tests__/behavioral/events/KeepingEventsInSync.test.ts +1 -1
- package/src/__tests__/behavioral/events/KeepingEventsInSync2.test.ts +1 -1
- package/src/__tests__/behavioral/events/KeepingListenersInSync.test.ts +1 -1
- package/src/__tests__/behavioral/events/ListeningToAnEventYouCreate.test.ts +1 -1
- package/src/__tests__/behavioral/events/SettingUpEvents.test.ts +1 -1
- package/src/__tests__/behavioral/events/SkillEmitsBootEvents.test.ts +1 -1
- package/src/__tests__/behavioral/node/CreatingANodeModule.test.ts +1 -1
- package/src/__tests__/behavioral/onboard/StartingOnboarding.test.ts +1 -1
- package/src/__tests__/behavioral/organization/CreatingAnOrg.test.ts +1 -1
- package/src/__tests__/behavioral/permissions/CreatingPermissions.test.ts +1 -1
- package/src/__tests__/behavioral/person/LoggingInAsPerson.test.ts +1 -1
- package/src/__tests__/behavioral/person/SeeWhoIsLoggedIn.test.ts +1 -1
- package/src/__tests__/behavioral/polish/SettingUpPolish.test.ts +1 -1
- package/src/__tests__/behavioral/schemas/CreatingANewSchemaBuilder.test.ts +1 -1
- package/src/__tests__/behavioral/schemas/GeneratingFieldTypesOnly.test.ts +1 -1
- package/src/__tests__/behavioral/schemas/GettingSchemasFromHealthCheck.test.ts +1 -1
- package/src/__tests__/behavioral/schemas/HandlesRelatedSchemas.test.ts +1 -1
- package/src/__tests__/behavioral/schemas/ImportingSchemaImports.test.ts +1 -1
- package/src/__tests__/behavioral/schemas/KeepingSchemasInSync.test.ts +1 -1
- package/src/__tests__/behavioral/schemas/SettingUpSchemas.test.ts +1 -1
- package/src/__tests__/behavioral/schemas/SyncingBadSchemasProvidesHelpfulErrorMessages.test.ts +1 -1
- package/src/__tests__/behavioral/schemas/UsingSchemasInCli.test.ts +1 -1
- package/src/__tests__/behavioral/skill/BootingASkill.test.ts +1 -1
- package/src/__tests__/behavioral/skill/CreatingASkill.test.ts +1 -1
- package/src/__tests__/behavioral/skill/RegisteringASkill.test.ts +1 -1
- package/src/__tests__/behavioral/skill/SettingUpASkill.test.ts +1 -1
- package/src/__tests__/behavioral/stores/CreatingADataStore.test.ts +1 -1
- package/src/__tests__/behavioral/stores/KeepingDataStoresInSync.test.ts +1 -1
- package/src/__tests__/behavioral/tests/CreatingATest.test.ts +1 -1
- package/src/__tests__/behavioral/tests/RunningTests.test.ts +1 -1
- package/src/__tests__/behavioral/tests/SelectingAnAbstractTestClass.test.ts +1 -1
- package/src/__tests__/behavioral/tests/SettingUpTests.test.ts +1 -1
- package/src/__tests__/behavioral/upgrading/UpdatingDependencies.test.ts +1 -1
- package/src/__tests__/behavioral/upgrading/UpdatingDependencies2.test.ts +1 -1
- package/src/__tests__/behavioral/upgrading/UpgradingANodeModule.test.ts +1 -1
- package/src/__tests__/behavioral/upgrading/UpgradingASkill.test.ts +1 -1
- package/src/__tests__/behavioral/upgrading/UpgradingASkill2.test.ts +1 -1
- package/src/__tests__/behavioral/upgrading/UpgradingASkill3.test.ts +1 -1
- package/src/__tests__/behavioral/upgrading/UpgradingASkill4.test.ts +1 -1
- package/src/__tests__/behavioral/upgrading/UpgradingASkill5.test.ts +1 -1
- package/src/__tests__/behavioral/upgrading/UpgradingWithListeners.test.ts +1 -1
- package/src/__tests__/behavioral/upgrading/UpgradingWithSandboxFeatureInstalled.test.ts +1 -1
- package/src/__tests__/behavioral/views/CreatingASkillView.test.ts +1 -1
- package/src/__tests__/behavioral/views/CreatingATheme.test.ts +1 -1
- package/src/__tests__/behavioral/views/KeepingViewsInSync.test.ts +1 -1
- package/src/__tests__/behavioral/views/SettingUpViews.test.ts +1 -1
- package/src/__tests__/behavioral/views/TestingViewControllers.test.ts +1 -1
- package/src/__tests__/behavioral/watchers/WatchingForChanges.test.ts +1 -1
- package/src/__tests__/implementation/ActionExecuter.test.ts +1 -1
- package/src/__tests__/implementation/ActionExecuter2.test.ts +1 -1
- package/src/__tests__/implementation/ActionExecuter3.test.ts +1 -1
- package/src/__tests__/implementation/ActionExecuter4.test.ts +1 -1
- package/src/__tests__/implementation/ArgParser.test.ts +1 -1
- package/src/__tests__/implementation/BuildService.test.ts +1 -1
- package/src/__tests__/implementation/BulkImporting.test.ts +1 -1
- package/src/__tests__/implementation/CachingImports.test.ts +1 -1
- package/src/__tests__/implementation/CommandOptionBuilder.test.ts +1 -1
- package/src/__tests__/implementation/CommanderCommandResultMapper.test.ts +1 -1
- package/src/__tests__/implementation/DataStoreStore.test.ts +1 -1
- package/src/__tests__/implementation/DeletingOrphanedSchemaDefinitions.test.ts +1 -1
- package/src/__tests__/implementation/EventContractCleanerUtil.test.ts +1 -1
- package/src/__tests__/implementation/EventStore.test.ts +1 -1
- package/src/__tests__/implementation/EventTemplateItemBuilder.test.ts +1 -1
- package/src/__tests__/implementation/FeatureCommandAttacher.test.ts +1 -1
- package/src/__tests__/implementation/FeatureFixture.test.ts +1 -1
- package/src/__tests__/implementation/FeatureInstaller.test.ts +1 -1
- package/src/__tests__/implementation/FeaturesUtil.test.ts +1 -1
- package/src/__tests__/implementation/FieldTemplateItemBuilder.test.ts +1 -1
- package/src/__tests__/implementation/GlobalEmitter.ts +1 -1
- package/src/__tests__/implementation/Introspection.test.ts +1 -1
- package/src/__tests__/implementation/JestJsonParser.test.ts +1 -1
- package/src/__tests__/implementation/LintService.test.ts +1 -1
- package/src/__tests__/implementation/ListenerStore.test.ts +1 -1
- package/src/__tests__/implementation/OnboardingScriptLoader.test.ts +1 -1
- package/src/__tests__/implementation/OnboardingScriptPlayer.test.ts +1 -1
- package/src/__tests__/implementation/OnboardingStore.test.ts +1 -1
- package/src/__tests__/implementation/OrganizationStore.test.ts +1 -1
- package/src/__tests__/implementation/ParentTestFinder.test.ts +1 -1
- package/src/__tests__/implementation/PkgService.test.ts +1 -1
- package/src/__tests__/implementation/SchemaStore.test.ts +1 -1
- package/src/__tests__/implementation/SchemaTemplateItemBuilder.test.ts +1 -1
- package/src/__tests__/implementation/SchemaValueTypeWriter.test.ts +1 -1
- package/src/__tests__/implementation/ServiceFactory.test.ts +1 -1
- package/src/__tests__/implementation/SettingUpANodeModule.test.ts +1 -1
- package/src/__tests__/implementation/SkillStore.test.ts +1 -1
- package/src/__tests__/implementation/StoreFeature.test.ts +1 -1
- package/src/__tests__/implementation/TestReporter.test.ts +1 -1
- package/src/__tests__/implementation/TestRunner.test.ts +1 -1
- package/src/__tests__/implementation/ValueTypeMapping.test.ts +1 -1
- package/src/__tests__/implementation/Widgets.test.ts +1 -1
- package/src/__tests__/testDirsAndFiles/abstract_tests/AbstractTest.ts +1 -1
- package/src/__tests__/testDirsAndFiles/abstract_tests/AbstractTest2.ts +1 -1
- package/src/__tests__/testDirsAndFiles/abstract_tests/deeper/AbstractBananaTest.ts +1 -1
- package/src/features/onboard/templates/ManagingTodos.test.ts.hbs +1 -1
- package/src/features/test/TestLogItemGenerator.ts +1 -1
- package/src/interfaces/SpyInterface.ts +1 -1
- package/src/tests/AbstractCliTest.ts +1 -1
- package/src/tests/AbstractSchemaTest.ts +1 -1
- package/src/tests/utilities/test.utility.ts +1 -1
- package/src/tests/utilities/uiAssert.utility.ts +1 -1
|
@@ -27,7 +27,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
27
27
|
|
|
28
28
|
var _applyDecoratedDescriptor2 = _interopRequireDefault(require("@babel/runtime/helpers/applyDecoratedDescriptor"));
|
|
29
29
|
|
|
30
|
-
var
|
|
30
|
+
var _testUtils = require("@sprucelabs/test-utils");
|
|
31
31
|
|
|
32
32
|
var _AbstractCliTest2 = _interopRequireDefault(require("../../tests/AbstractCliTest"));
|
|
33
33
|
|
|
@@ -37,7 +37,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
37
37
|
|
|
38
38
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
39
39
|
|
|
40
|
-
var FeatureInstallerTest = (_dec = (0,
|
|
40
|
+
var FeatureInstallerTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.test)(), _dec3 = (0, _testUtils.test)(), (_class = (_class2 = /*#__PURE__*/function (_AbstractCliTest) {
|
|
41
41
|
(0, _inherits2["default"])(FeatureInstallerTest, _AbstractCliTest);
|
|
42
42
|
|
|
43
43
|
var _super = _createSuper(FeatureInstallerTest);
|
|
@@ -86,12 +86,12 @@ var FeatureInstallerTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(),
|
|
|
86
86
|
case 0:
|
|
87
87
|
dependencies = this.installer.getFeatureDependencies('schema');
|
|
88
88
|
|
|
89
|
-
|
|
89
|
+
_testUtils.assert.doesInclude(dependencies, {
|
|
90
90
|
code: 'skill',
|
|
91
91
|
isRequired: false
|
|
92
92
|
});
|
|
93
93
|
|
|
94
|
-
|
|
94
|
+
_testUtils.assert.doesInclude(dependencies, {
|
|
95
95
|
code: 'node',
|
|
96
96
|
isRequired: true
|
|
97
97
|
});
|
|
@@ -121,17 +121,17 @@ var FeatureInstallerTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(),
|
|
|
121
121
|
case 0:
|
|
122
122
|
dependencies = this.installer.getFeatureDependencies('error');
|
|
123
123
|
|
|
124
|
-
|
|
124
|
+
_testUtils.assert.doesInclude(dependencies, {
|
|
125
125
|
code: 'skill',
|
|
126
126
|
isRequired: false
|
|
127
127
|
});
|
|
128
128
|
|
|
129
|
-
|
|
129
|
+
_testUtils.assert.doesInclude(dependencies, {
|
|
130
130
|
code: 'schema',
|
|
131
131
|
isRequired: true
|
|
132
132
|
});
|
|
133
133
|
|
|
134
|
-
|
|
134
|
+
_testUtils.assert.doesInclude(dependencies, {
|
|
135
135
|
code: 'node',
|
|
136
136
|
isRequired: true
|
|
137
137
|
});
|
|
@@ -181,7 +181,7 @@ var FeatureInstallerTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(),
|
|
|
181
181
|
});
|
|
182
182
|
|
|
183
183
|
case 4:
|
|
184
|
-
|
|
184
|
+
_testUtils.assert.isEqual(hitCount, 1);
|
|
185
185
|
|
|
186
186
|
case 5:
|
|
187
187
|
case "end":
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeatureInstaller.test.js","names":["FeatureInstallerTest","test","installer","getFeatureInstaller","dependencies","getFeatureDependencies","assert","doesInclude","code","isRequired","hitCount","featureMap","schema","afterPackageInstall","install","features","options","name","description","isEqual","AbstractCliTest"],"sources":["../../../src/__tests__/implementation/FeatureInstaller.test.ts"],"sourcesContent":["import { test, assert } from '@sprucelabs/test'\nimport FeatureInstaller from '../../features/FeatureInstaller'\nimport AbstractCliTest from '../../tests/AbstractCliTest'\n\nexport default class FeatureInstallerTest extends AbstractCliTest {\n\tprotected static installer: FeatureInstaller\n\n\tprotected static async beforeEach() {\n\t\tawait super.beforeEach()\n\t\tthis.installer = this.getFeatureInstaller()\n\t}\n\n\t@test()\n\tprotected static async canGetFeatureDependencies() {\n\t\tconst dependencies = this.installer.getFeatureDependencies('schema')\n\t\tassert.doesInclude(dependencies, { code: 'skill', isRequired: false })\n\t\tassert.doesInclude(dependencies, { code: 'node', isRequired: true })\n\t}\n\n\t@test()\n\tprotected static async canGetFeatureDependenciesWithOptional() {\n\t\tconst dependencies = this.installer.getFeatureDependencies('error')\n\t\tassert.doesInclude(dependencies, { code: 'skill', isRequired: false })\n\t\tassert.doesInclude(dependencies, { code: 'schema', isRequired: true })\n\t\tassert.doesInclude(dependencies, { code: 'node', isRequired: true })\n\t}\n\n\t@test()\n\tprotected static async afterPackageInstallIsCalledOncePerFeature() {\n\t\tlet hitCount = 0\n\t\t//@ts-ignore\n\t\tthis.installer.featureMap.schema.afterPackageInstall = () => {\n\t\t\thitCount++\n\t\t}\n\t\tawait this.installer.install({\n\t\t\tfeatures: [\n\t\t\t\t{\n\t\t\t\t\tcode: 'skill',\n\t\t\t\t\toptions: {\n\t\t\t\t\t\tname: 'testing events',\n\t\t\t\t\t\tdescription: 'this too, is a great test!',\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tcode: 'schema',\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tcode: 'event',\n\t\t\t\t},\n\t\t\t],\n\t\t})\n\n\t\tassert.isEqual(hitCount, 1)\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAEA;;;;;;;;IAEqBA,oB,WAQnB,IAAAC,
|
|
1
|
+
{"version":3,"file":"FeatureInstaller.test.js","names":["FeatureInstallerTest","test","installer","getFeatureInstaller","dependencies","getFeatureDependencies","assert","doesInclude","code","isRequired","hitCount","featureMap","schema","afterPackageInstall","install","features","options","name","description","isEqual","AbstractCliTest"],"sources":["../../../src/__tests__/implementation/FeatureInstaller.test.ts"],"sourcesContent":["import { test, assert } from '@sprucelabs/test-utils'\nimport FeatureInstaller from '../../features/FeatureInstaller'\nimport AbstractCliTest from '../../tests/AbstractCliTest'\n\nexport default class FeatureInstallerTest extends AbstractCliTest {\n\tprotected static installer: FeatureInstaller\n\n\tprotected static async beforeEach() {\n\t\tawait super.beforeEach()\n\t\tthis.installer = this.getFeatureInstaller()\n\t}\n\n\t@test()\n\tprotected static async canGetFeatureDependencies() {\n\t\tconst dependencies = this.installer.getFeatureDependencies('schema')\n\t\tassert.doesInclude(dependencies, { code: 'skill', isRequired: false })\n\t\tassert.doesInclude(dependencies, { code: 'node', isRequired: true })\n\t}\n\n\t@test()\n\tprotected static async canGetFeatureDependenciesWithOptional() {\n\t\tconst dependencies = this.installer.getFeatureDependencies('error')\n\t\tassert.doesInclude(dependencies, { code: 'skill', isRequired: false })\n\t\tassert.doesInclude(dependencies, { code: 'schema', isRequired: true })\n\t\tassert.doesInclude(dependencies, { code: 'node', isRequired: true })\n\t}\n\n\t@test()\n\tprotected static async afterPackageInstallIsCalledOncePerFeature() {\n\t\tlet hitCount = 0\n\t\t//@ts-ignore\n\t\tthis.installer.featureMap.schema.afterPackageInstall = () => {\n\t\t\thitCount++\n\t\t}\n\t\tawait this.installer.install({\n\t\t\tfeatures: [\n\t\t\t\t{\n\t\t\t\t\tcode: 'skill',\n\t\t\t\t\toptions: {\n\t\t\t\t\t\tname: 'testing events',\n\t\t\t\t\t\tdescription: 'this too, is a great test!',\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tcode: 'schema',\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tcode: 'event',\n\t\t\t\t},\n\t\t\t],\n\t\t})\n\n\t\tassert.isEqual(hitCount, 1)\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AAEA;;;;;;;;IAEqBA,oB,WAQnB,IAAAC,eAAA,G,UAOA,IAAAA,eAAA,G,UAQA,IAAAA,eAAA,G;;;;;;;;;;;;;sGApBD;QAAA;UAAA;YAAA;cAAA;gBAAA;gBAAA;;cAAA;gBAEC,KAAKC,SAAL,GAAiB,KAAKC,mBAAL,EAAjB;;cAFD;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,C;;;;;;;;;;;qHAKA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAEOC,YAFP,GAEsB,KAAKF,SAAL,CAAeG,sBAAf,CAAsC,QAAtC,CAFtB;;gBAGCC,iBAAA,CAAOC,WAAP,CAAmBH,YAAnB,EAAiC;kBAAEI,IAAI,EAAE,OAAR;kBAAiBC,UAAU,EAAE;gBAA7B,CAAjC;;gBACAH,iBAAA,CAAOC,WAAP,CAAmBH,YAAnB,EAAiC;kBAAEI,IAAI,EAAE,MAAR;kBAAgBC,UAAU,EAAE;gBAA5B,CAAjC;;cAJD;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,C;;;;;;;;;;;iIAOA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAEOL,YAFP,GAEsB,KAAKF,SAAL,CAAeG,sBAAf,CAAsC,OAAtC,CAFtB;;gBAGCC,iBAAA,CAAOC,WAAP,CAAmBH,YAAnB,EAAiC;kBAAEI,IAAI,EAAE,OAAR;kBAAiBC,UAAU,EAAE;gBAA7B,CAAjC;;gBACAH,iBAAA,CAAOC,WAAP,CAAmBH,YAAnB,EAAiC;kBAAEI,IAAI,EAAE,QAAR;kBAAkBC,UAAU,EAAE;gBAA9B,CAAjC;;gBACAH,iBAAA,CAAOC,WAAP,CAAmBH,YAAnB,EAAiC;kBAAEI,IAAI,EAAE,MAAR;kBAAgBC,UAAU,EAAE;gBAA5B,CAAjC;;cALD;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,C;;;;;;;;;;;qIAQA;QAAA;QAAA;UAAA;YAAA;cAAA;gBAEKC,QAFL,GAEgB,CAFhB,EAGC;;gBACA,KAAKR,SAAL,CAAeS,UAAf,CAA0BC,MAA1B,CAAiCC,mBAAjC,GAAuD,YAAM;kBAC5DH,QAAQ;gBACR,CAFD;;gBAJD;gBAAA,OAOO,KAAKR,SAAL,CAAeY,OAAf,CAAuB;kBAC5BC,QAAQ,EAAE,CACT;oBACCP,IAAI,EAAE,OADP;oBAECQ,OAAO,EAAE;sBACRC,IAAI,EAAE,gBADE;sBAERC,WAAW,EAAE;oBAFL;kBAFV,CADS,EAQT;oBACCV,IAAI,EAAE;kBADP,CARS,EAWT;oBACCA,IAAI,EAAE;kBADP,CAXS;gBADkB,CAAvB,CAPP;;cAAA;gBAyBCF,iBAAA,CAAOa,OAAP,CAAeT,QAAf,EAAyB,CAAzB;;cAzBD;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,C;;;;;;;;;;EAvBiDU,4B"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import AbstractSpruceTest from '@sprucelabs/test';
|
|
1
|
+
import AbstractSpruceTest from '@sprucelabs/test-utils';
|
|
2
2
|
export default class FeaturesUtilTest extends AbstractSpruceTest {
|
|
3
3
|
protected static generatesActionFromFile(path: string, expected: string): Promise<void>;
|
|
4
4
|
}
|
|
@@ -25,7 +25,7 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
25
25
|
|
|
26
26
|
var _applyDecoratedDescriptor2 = _interopRequireDefault(require("@babel/runtime/helpers/applyDecoratedDescriptor"));
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _testUtils = _interopRequireWildcard(require("@sprucelabs/test-utils"));
|
|
29
29
|
|
|
30
30
|
var _feature = _interopRequireDefault(require("../../features/feature.utilities"));
|
|
31
31
|
|
|
@@ -39,7 +39,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
39
39
|
|
|
40
40
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
41
41
|
|
|
42
|
-
var FeaturesUtilTest = (_dec = (0,
|
|
42
|
+
var FeaturesUtilTest = (_dec = (0, _testUtils.test)('SyncAction.ts to sync', '/wahtever/SyncAction.ts', 'sync'), _dec2 = (0, _testUtils.test)('SetRemoteAction.ts to setRemote', '/wahtever/setRemoteAction.ts', 'setRemote'), (_class = /*#__PURE__*/function (_AbstractSpruceTest) {
|
|
43
43
|
(0, _inherits2["default"])(FeaturesUtilTest, _AbstractSpruceTest);
|
|
44
44
|
|
|
45
45
|
var _super = _createSuper(FeaturesUtilTest);
|
|
@@ -60,7 +60,7 @@ var FeaturesUtilTest = (_dec = (0, _test.test)('SyncAction.ts to sync', '/wahtev
|
|
|
60
60
|
case 0:
|
|
61
61
|
actual = _feature["default"].filePathToActionCode(path);
|
|
62
62
|
|
|
63
|
-
|
|
63
|
+
_testUtils.assert.isEqual(actual, expected);
|
|
64
64
|
|
|
65
65
|
case 2:
|
|
66
66
|
case "end":
|
|
@@ -78,6 +78,6 @@ var FeaturesUtilTest = (_dec = (0, _test.test)('SyncAction.ts to sync', '/wahtev
|
|
|
78
78
|
}()
|
|
79
79
|
}]);
|
|
80
80
|
return FeaturesUtilTest;
|
|
81
|
-
}(
|
|
81
|
+
}(_testUtils["default"]), ((0, _applyDecoratedDescriptor2["default"])(_class, "generatesActionFromFile", [_dec, _dec2], Object.getOwnPropertyDescriptor(_class, "generatesActionFromFile"), _class)), _class));
|
|
82
82
|
exports["default"] = FeaturesUtilTest;
|
|
83
83
|
//# sourceMappingURL=FeaturesUtil.test.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeaturesUtil.test.js","names":["FeaturesUtilTest","test","path","expected","actual","featuresUtil","filePathToActionCode","assert","isEqual","AbstractSpruceTest"],"sources":["../../../src/__tests__/implementation/FeaturesUtil.test.ts"],"sourcesContent":["import AbstractSpruceTest, { test, assert } from '@sprucelabs/test'\nimport featuresUtil from '../../features/feature.utilities'\n\nexport default class FeaturesUtilTest extends AbstractSpruceTest {\n\t@test('SyncAction.ts to sync', '/wahtever/SyncAction.ts', 'sync')\n\t@test(\n\t\t'SetRemoteAction.ts to setRemote',\n\t\t'/wahtever/setRemoteAction.ts',\n\t\t'setRemote'\n\t)\n\tprotected static async generatesActionFromFile(\n\t\tpath: string,\n\t\texpected: string\n\t) {\n\t\tconst actual = featuresUtil.filePathToActionCode(path)\n\t\tassert.isEqual(actual, expected)\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;;;;;;;;;;;IAEqBA,gB,WACnB,IAAAC,
|
|
1
|
+
{"version":3,"file":"FeaturesUtil.test.js","names":["FeaturesUtilTest","test","path","expected","actual","featuresUtil","filePathToActionCode","assert","isEqual","AbstractSpruceTest"],"sources":["../../../src/__tests__/implementation/FeaturesUtil.test.ts"],"sourcesContent":["import AbstractSpruceTest, { test, assert } from '@sprucelabs/test-utils'\nimport featuresUtil from '../../features/feature.utilities'\n\nexport default class FeaturesUtilTest extends AbstractSpruceTest {\n\t@test('SyncAction.ts to sync', '/wahtever/SyncAction.ts', 'sync')\n\t@test(\n\t\t'SetRemoteAction.ts to setRemote',\n\t\t'/wahtever/setRemoteAction.ts',\n\t\t'setRemote'\n\t)\n\tprotected static async generatesActionFromFile(\n\t\tpath: string,\n\t\texpected: string\n\t) {\n\t\tconst actual = featuresUtil.filePathToActionCode(path)\n\t\tassert.isEqual(actual, expected)\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;;;;;;;;;;;IAEqBA,gB,WACnB,IAAAC,eAAA,EAAK,uBAAL,EAA8B,yBAA9B,EAAyD,MAAzD,C,UACA,IAAAA,eAAA,EACA,iCADA,EAEA,8BAFA,EAGA,WAHA,C;;;;;;;;;;;;;mHADD,iBAOCC,IAPD,EAQCC,QARD;QAAA;QAAA;UAAA;YAAA;cAAA;gBAUOC,MAVP,GAUgBC,mBAAA,CAAaC,oBAAb,CAAkCJ,IAAlC,CAVhB;;gBAWCK,iBAAA,CAAOC,OAAP,CAAeJ,MAAf,EAAuBD,QAAvB;;cAXD;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,C;;;;;;;;;;EAD6CM,qB"}
|
|
@@ -25,7 +25,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/de
|
|
|
25
25
|
|
|
26
26
|
var _applyDecoratedDescriptor2 = _interopRequireDefault(require("@babel/runtime/helpers/applyDecoratedDescriptor"));
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _testUtils = require("@sprucelabs/test-utils");
|
|
29
29
|
|
|
30
30
|
var _FieldTemplateItemBuilder = _interopRequireDefault(require("../../templateItemBuilders/FieldTemplateItemBuilder"));
|
|
31
31
|
|
|
@@ -86,7 +86,7 @@ var remoteSchemaFieldTemplateItem = {
|
|
|
86
86
|
description: 'A way to map relationships.',
|
|
87
87
|
valueTypeMapper: 'SchemaFieldValueTypeMapper<F extends SchemaFieldFieldDefinition? F : SchemaFieldFieldDefinition, CreateEntityInstances>'
|
|
88
88
|
};
|
|
89
|
-
var FieldTemplateItemBuilderTest = (_dec = (0,
|
|
89
|
+
var FieldTemplateItemBuilderTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.test)(), _dec3 = (0, _testUtils.test)(), _dec4 = (0, _testUtils.test)(), _dec5 = (0, _testUtils.test)(), (_class = (_class2 = /*#__PURE__*/function (_AbstractCliTest) {
|
|
90
90
|
(0, _inherits2["default"])(FieldTemplateItemBuilderTest, _AbstractCliTest);
|
|
91
91
|
|
|
92
92
|
var _super = _createSuper(FieldTemplateItemBuilderTest);
|
|
@@ -104,7 +104,7 @@ var FieldTemplateItemBuilderTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.
|
|
|
104
104
|
while (1) {
|
|
105
105
|
switch (_context.prev = _context.next) {
|
|
106
106
|
case 0:
|
|
107
|
-
|
|
107
|
+
_testUtils.assert.isTruthy(this.itemBuilder);
|
|
108
108
|
|
|
109
109
|
case 1:
|
|
110
110
|
case "end":
|
|
@@ -123,36 +123,36 @@ var FieldTemplateItemBuilderTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.
|
|
|
123
123
|
}, {
|
|
124
124
|
key: "hasGenerateFunction",
|
|
125
125
|
value: function hasGenerateFunction() {
|
|
126
|
-
|
|
126
|
+
_testUtils.assert.isFunction(this.itemBuilder.generateTemplateItems);
|
|
127
127
|
}
|
|
128
128
|
}, {
|
|
129
129
|
key: "turnsSingleLocalFieldIntoTemplateItem",
|
|
130
130
|
value: function turnsSingleLocalFieldIntoTemplateItem() {
|
|
131
131
|
var templateItems = this.itemBuilder.generateTemplateItems([localAddressField]);
|
|
132
132
|
|
|
133
|
-
|
|
133
|
+
_testUtils.assert.isLength(templateItems, 1);
|
|
134
134
|
|
|
135
|
-
|
|
135
|
+
_testUtils.assert.isEqualDeep(templateItems[0], localAddressFieldTemplateItem);
|
|
136
136
|
}
|
|
137
137
|
}, {
|
|
138
138
|
key: "turnsRemoteFieldIntoTemplateItem",
|
|
139
139
|
value: function turnsRemoteFieldIntoTemplateItem() {
|
|
140
140
|
var templateItems = this.itemBuilder.generateTemplateItems([remoteSchemaField]);
|
|
141
141
|
|
|
142
|
-
|
|
142
|
+
_testUtils.assert.isLength(templateItems, 1);
|
|
143
143
|
|
|
144
|
-
|
|
144
|
+
_testUtils.assert.isEqualDeep(templateItems[0], remoteSchemaFieldTemplateItem);
|
|
145
145
|
}
|
|
146
146
|
}, {
|
|
147
147
|
key: "doesItAll",
|
|
148
148
|
value: function doesItAll() {
|
|
149
149
|
var templateItems = this.itemBuilder.generateTemplateItems([localAddressField, remoteSchemaField]);
|
|
150
150
|
|
|
151
|
-
|
|
151
|
+
_testUtils.assert.isLength(templateItems, 2);
|
|
152
152
|
|
|
153
|
-
|
|
153
|
+
_testUtils.assert.isEqualDeep(templateItems[0], localAddressFieldTemplateItem);
|
|
154
154
|
|
|
155
|
-
|
|
155
|
+
_testUtils.assert.isEqualDeep(templateItems[1], remoteSchemaFieldTemplateItem);
|
|
156
156
|
}
|
|
157
157
|
}]);
|
|
158
158
|
return FieldTemplateItemBuilderTest;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FieldTemplateItemBuilder.test.js","names":["localAddressField","path","registration","className","type","importAs","description","isLocal","localAddressFieldTemplateItem","namePascal","nameCamel","nameReadable","pascalType","camelType","valueTypeMapper","undefined","remoteSchemaField","remoteSchemaFieldTemplateItem","FieldTemplateItemBuilderTest","test","assert","isTruthy","itemBuilder","isFunction","generateTemplateItems","templateItems","isLength","isEqualDeep","AbstractCliTest","FieldTemplateItemBuilder"],"sources":["../../../src/__tests__/implementation/FieldTemplateItemBuilder.test.ts"],"sourcesContent":["import { FieldTemplateItem } from '@sprucelabs/schema'\nimport { test, assert } from '@sprucelabs/test'\nimport FieldTemplateItemBuilder from '../../templateItemBuilders/FieldTemplateItemBuilder'\nimport AbstractCliTest from '../../tests/AbstractCliTest'\n\nconst localAddressField = {\n\tpath: '/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli/node_modules/@sprucelabs/schema/build/addons/addressField.addon.js',\n\tregistration: {\n\t\tpackage: '@sprucelabs/schema',\n\t\tclassName: 'AddressField',\n\t\ttype: 'Address',\n\t\timportAs: 'SpruceSchema',\n\t\tdescription: 'An address with geocoding ability *coming soon*',\n\t},\n\tisLocal: true,\n}\n\nconst localAddressFieldTemplateItem: FieldTemplateItem = {\n\tnamePascal: 'AddressField',\n\tnameCamel: 'addressField',\n\tpackage: '#spruce/../fields/AddressField',\n\tclassName: 'AddressField',\n\timportAs: 'generated_import_0',\n\tnameReadable: 'AddressField',\n\tpascalType: 'Address',\n\tcamelType: 'address',\n\tisLocal: true,\n\tdescription: 'An address with geocoding ability *coming soon*',\n\tvalueTypeMapper: undefined,\n}\n\nconst remoteSchemaField = {\n\tpath: '/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli/node_modules/@sprucelabs/schema/build/addons/schemaField.addon.js',\n\tregistration: {\n\t\tpackage: '@sprucelabs/schema',\n\t\tclassName: 'SchemaField',\n\t\ttype: 'Schema',\n\t\timportAs: 'SpruceSchema',\n\t\tdescription: 'A way to map relationships.',\n\t\tvalueTypeMapper:\n\t\t\t'SchemaFieldValueTypeMapper<F extends SchemaFieldFieldDefinition? F : SchemaFieldFieldDefinition, CreateEntityInstances>',\n\t},\n\tisLocal: false,\n}\n\nconst remoteSchemaFieldTemplateItem = {\n\tnamePascal: 'SchemaField',\n\tnameCamel: 'schemaField',\n\tpackage: '@sprucelabs/schema',\n\tclassName: 'SchemaField',\n\timportAs: 'SpruceSchema',\n\tnameReadable: 'SchemaField',\n\tpascalType: 'Schema',\n\tcamelType: 'schema',\n\tisLocal: false,\n\tdescription: 'A way to map relationships.',\n\tvalueTypeMapper:\n\t\t'SchemaFieldValueTypeMapper<F extends SchemaFieldFieldDefinition? F : SchemaFieldFieldDefinition, CreateEntityInstances>',\n}\n\nexport default class FieldTemplateItemBuilderTest extends AbstractCliTest {\n\tprivate static readonly itemBuilder = new FieldTemplateItemBuilder()\n\n\t@test()\n\tprotected static async canCreate() {\n\t\tassert.isTruthy(this.itemBuilder)\n\t}\n\n\t@test()\n\tprotected static hasGenerateFunction() {\n\t\tassert.isFunction(this.itemBuilder.generateTemplateItems)\n\t}\n\n\t@test()\n\tprotected static turnsSingleLocalFieldIntoTemplateItem() {\n\t\tconst templateItems = this.itemBuilder.generateTemplateItems([\n\t\t\tlocalAddressField,\n\t\t])\n\t\tassert.isLength(templateItems, 1)\n\t\tassert.isEqualDeep(templateItems[0], localAddressFieldTemplateItem)\n\t}\n\n\t@test()\n\tprotected static turnsRemoteFieldIntoTemplateItem() {\n\t\tconst templateItems = this.itemBuilder.generateTemplateItems([\n\t\t\tremoteSchemaField,\n\t\t])\n\t\tassert.isLength(templateItems, 1)\n\t\tassert.isEqualDeep(templateItems[0], remoteSchemaFieldTemplateItem)\n\t}\n\n\t@test()\n\tprotected static doesItAll() {\n\t\tconst templateItems = this.itemBuilder.generateTemplateItems([\n\t\t\tlocalAddressField,\n\t\t\tremoteSchemaField,\n\t\t])\n\t\tassert.isLength(templateItems, 2)\n\t\tassert.isEqualDeep(templateItems[0], localAddressFieldTemplateItem)\n\t\tassert.isEqualDeep(templateItems[1], remoteSchemaFieldTemplateItem)\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AACA;;AACA;;AACA;;;;;;;;AAEA,IAAMA,iBAAiB,GAAG;EACzBC,IAAI,EAAE,wJADmB;EAEzBC,YAAY,EAAE;IACb,WAAS,oBADI;IAEbC,SAAS,EAAE,cAFE;IAGbC,IAAI,EAAE,SAHO;IAIbC,QAAQ,EAAE,cAJG;IAKbC,WAAW,EAAE;EALA,CAFW;EASzBC,OAAO,EAAE;AATgB,CAA1B;AAYA,IAAMC,6BAAgD,GAAG;EACxDC,UAAU,EAAE,cAD4C;EAExDC,SAAS,EAAE,cAF6C;EAGxD,WAAS,gCAH+C;EAIxDP,SAAS,EAAE,cAJ6C;EAKxDE,QAAQ,EAAE,oBAL8C;EAMxDM,YAAY,EAAE,cAN0C;EAOxDC,UAAU,EAAE,SAP4C;EAQxDC,SAAS,EAAE,SAR6C;EASxDN,OAAO,EAAE,IAT+C;EAUxDD,WAAW,EAAE,iDAV2C;EAWxDQ,eAAe,EAAEC;AAXuC,CAAzD;AAcA,IAAMC,iBAAiB,GAAG;EACzBf,IAAI,EAAE,uJADmB;EAEzBC,YAAY,EAAE;IACb,WAAS,oBADI;IAEbC,SAAS,EAAE,aAFE;IAGbC,IAAI,EAAE,QAHO;IAIbC,QAAQ,EAAE,cAJG;IAKbC,WAAW,EAAE,6BALA;IAMbQ,eAAe,EACd;EAPY,CAFW;EAWzBP,OAAO,EAAE;AAXgB,CAA1B;AAcA,IAAMU,6BAA6B,GAAG;EACrCR,UAAU,EAAE,aADyB;EAErCC,SAAS,EAAE,aAF0B;EAGrC,WAAS,oBAH4B;EAIrCP,SAAS,EAAE,aAJ0B;EAKrCE,QAAQ,EAAE,cAL2B;EAMrCM,YAAY,EAAE,aANuB;EAOrCC,UAAU,EAAE,QAPyB;EAQrCC,SAAS,EAAE,QAR0B;EASrCN,OAAO,EAAE,KAT4B;EAUrCD,WAAW,EAAE,6BAVwB;EAWrCQ,eAAe,EACd;AAZoC,CAAtC;IAeqBI,4B,WAGnB,IAAAC,
|
|
1
|
+
{"version":3,"file":"FieldTemplateItemBuilder.test.js","names":["localAddressField","path","registration","className","type","importAs","description","isLocal","localAddressFieldTemplateItem","namePascal","nameCamel","nameReadable","pascalType","camelType","valueTypeMapper","undefined","remoteSchemaField","remoteSchemaFieldTemplateItem","FieldTemplateItemBuilderTest","test","assert","isTruthy","itemBuilder","isFunction","generateTemplateItems","templateItems","isLength","isEqualDeep","AbstractCliTest","FieldTemplateItemBuilder"],"sources":["../../../src/__tests__/implementation/FieldTemplateItemBuilder.test.ts"],"sourcesContent":["import { FieldTemplateItem } from '@sprucelabs/schema'\nimport { test, assert } from '@sprucelabs/test-utils'\nimport FieldTemplateItemBuilder from '../../templateItemBuilders/FieldTemplateItemBuilder'\nimport AbstractCliTest from '../../tests/AbstractCliTest'\n\nconst localAddressField = {\n\tpath: '/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli/node_modules/@sprucelabs/schema/build/addons/addressField.addon.js',\n\tregistration: {\n\t\tpackage: '@sprucelabs/schema',\n\t\tclassName: 'AddressField',\n\t\ttype: 'Address',\n\t\timportAs: 'SpruceSchema',\n\t\tdescription: 'An address with geocoding ability *coming soon*',\n\t},\n\tisLocal: true,\n}\n\nconst localAddressFieldTemplateItem: FieldTemplateItem = {\n\tnamePascal: 'AddressField',\n\tnameCamel: 'addressField',\n\tpackage: '#spruce/../fields/AddressField',\n\tclassName: 'AddressField',\n\timportAs: 'generated_import_0',\n\tnameReadable: 'AddressField',\n\tpascalType: 'Address',\n\tcamelType: 'address',\n\tisLocal: true,\n\tdescription: 'An address with geocoding ability *coming soon*',\n\tvalueTypeMapper: undefined,\n}\n\nconst remoteSchemaField = {\n\tpath: '/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli/node_modules/@sprucelabs/schema/build/addons/schemaField.addon.js',\n\tregistration: {\n\t\tpackage: '@sprucelabs/schema',\n\t\tclassName: 'SchemaField',\n\t\ttype: 'Schema',\n\t\timportAs: 'SpruceSchema',\n\t\tdescription: 'A way to map relationships.',\n\t\tvalueTypeMapper:\n\t\t\t'SchemaFieldValueTypeMapper<F extends SchemaFieldFieldDefinition? F : SchemaFieldFieldDefinition, CreateEntityInstances>',\n\t},\n\tisLocal: false,\n}\n\nconst remoteSchemaFieldTemplateItem = {\n\tnamePascal: 'SchemaField',\n\tnameCamel: 'schemaField',\n\tpackage: '@sprucelabs/schema',\n\tclassName: 'SchemaField',\n\timportAs: 'SpruceSchema',\n\tnameReadable: 'SchemaField',\n\tpascalType: 'Schema',\n\tcamelType: 'schema',\n\tisLocal: false,\n\tdescription: 'A way to map relationships.',\n\tvalueTypeMapper:\n\t\t'SchemaFieldValueTypeMapper<F extends SchemaFieldFieldDefinition? F : SchemaFieldFieldDefinition, CreateEntityInstances>',\n}\n\nexport default class FieldTemplateItemBuilderTest extends AbstractCliTest {\n\tprivate static readonly itemBuilder = new FieldTemplateItemBuilder()\n\n\t@test()\n\tprotected static async canCreate() {\n\t\tassert.isTruthy(this.itemBuilder)\n\t}\n\n\t@test()\n\tprotected static hasGenerateFunction() {\n\t\tassert.isFunction(this.itemBuilder.generateTemplateItems)\n\t}\n\n\t@test()\n\tprotected static turnsSingleLocalFieldIntoTemplateItem() {\n\t\tconst templateItems = this.itemBuilder.generateTemplateItems([\n\t\t\tlocalAddressField,\n\t\t])\n\t\tassert.isLength(templateItems, 1)\n\t\tassert.isEqualDeep(templateItems[0], localAddressFieldTemplateItem)\n\t}\n\n\t@test()\n\tprotected static turnsRemoteFieldIntoTemplateItem() {\n\t\tconst templateItems = this.itemBuilder.generateTemplateItems([\n\t\t\tremoteSchemaField,\n\t\t])\n\t\tassert.isLength(templateItems, 1)\n\t\tassert.isEqualDeep(templateItems[0], remoteSchemaFieldTemplateItem)\n\t}\n\n\t@test()\n\tprotected static doesItAll() {\n\t\tconst templateItems = this.itemBuilder.generateTemplateItems([\n\t\t\tlocalAddressField,\n\t\t\tremoteSchemaField,\n\t\t])\n\t\tassert.isLength(templateItems, 2)\n\t\tassert.isEqualDeep(templateItems[0], localAddressFieldTemplateItem)\n\t\tassert.isEqualDeep(templateItems[1], remoteSchemaFieldTemplateItem)\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AACA;;AACA;;AACA;;;;;;;;AAEA,IAAMA,iBAAiB,GAAG;EACzBC,IAAI,EAAE,wJADmB;EAEzBC,YAAY,EAAE;IACb,WAAS,oBADI;IAEbC,SAAS,EAAE,cAFE;IAGbC,IAAI,EAAE,SAHO;IAIbC,QAAQ,EAAE,cAJG;IAKbC,WAAW,EAAE;EALA,CAFW;EASzBC,OAAO,EAAE;AATgB,CAA1B;AAYA,IAAMC,6BAAgD,GAAG;EACxDC,UAAU,EAAE,cAD4C;EAExDC,SAAS,EAAE,cAF6C;EAGxD,WAAS,gCAH+C;EAIxDP,SAAS,EAAE,cAJ6C;EAKxDE,QAAQ,EAAE,oBAL8C;EAMxDM,YAAY,EAAE,cAN0C;EAOxDC,UAAU,EAAE,SAP4C;EAQxDC,SAAS,EAAE,SAR6C;EASxDN,OAAO,EAAE,IAT+C;EAUxDD,WAAW,EAAE,iDAV2C;EAWxDQ,eAAe,EAAEC;AAXuC,CAAzD;AAcA,IAAMC,iBAAiB,GAAG;EACzBf,IAAI,EAAE,uJADmB;EAEzBC,YAAY,EAAE;IACb,WAAS,oBADI;IAEbC,SAAS,EAAE,aAFE;IAGbC,IAAI,EAAE,QAHO;IAIbC,QAAQ,EAAE,cAJG;IAKbC,WAAW,EAAE,6BALA;IAMbQ,eAAe,EACd;EAPY,CAFW;EAWzBP,OAAO,EAAE;AAXgB,CAA1B;AAcA,IAAMU,6BAA6B,GAAG;EACrCR,UAAU,EAAE,aADyB;EAErCC,SAAS,EAAE,aAF0B;EAGrC,WAAS,oBAH4B;EAIrCP,SAAS,EAAE,aAJ0B;EAKrCE,QAAQ,EAAE,cAL2B;EAMrCM,YAAY,EAAE,aANuB;EAOrCC,UAAU,EAAE,QAPyB;EAQrCC,SAAS,EAAE,QAR0B;EASrCN,OAAO,EAAE,KAT4B;EAUrCD,WAAW,EAAE,6BAVwB;EAWrCQ,eAAe,EACd;AAZoC,CAAtC;IAeqBI,4B,WAGnB,IAAAC,eAAA,G,UAKA,IAAAA,eAAA,G,UAKA,IAAAA,eAAA,G,UASA,IAAAA,eAAA,G,UASA,IAAAA,eAAA,G;;;;;;;;;;;;;qGA5BD;QAAA;UAAA;YAAA;cAAA;gBAECC,iBAAA,CAAOC,QAAP,CAAgB,KAAKC,WAArB;;cAFD;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,C;;;;;;;;;;WAKA,+BACuC;MACtCF,iBAAA,CAAOG,UAAP,CAAkB,KAAKD,WAAL,CAAiBE,qBAAnC;IACA;;;WAED,iDACyD;MACxD,IAAMC,aAAa,GAAG,KAAKH,WAAL,CAAiBE,qBAAjB,CAAuC,CAC5DxB,iBAD4D,CAAvC,CAAtB;;MAGAoB,iBAAA,CAAOM,QAAP,CAAgBD,aAAhB,EAA+B,CAA/B;;MACAL,iBAAA,CAAOO,WAAP,CAAmBF,aAAa,CAAC,CAAD,CAAhC,EAAqCjB,6BAArC;IACA;;;WAED,4CACoD;MACnD,IAAMiB,aAAa,GAAG,KAAKH,WAAL,CAAiBE,qBAAjB,CAAuC,CAC5DR,iBAD4D,CAAvC,CAAtB;;MAGAI,iBAAA,CAAOM,QAAP,CAAgBD,aAAhB,EAA+B,CAA/B;;MACAL,iBAAA,CAAOO,WAAP,CAAmBF,aAAa,CAAC,CAAD,CAAhC,EAAqCR,6BAArC;IACA;;;WAED,qBAC6B;MAC5B,IAAMQ,aAAa,GAAG,KAAKH,WAAL,CAAiBE,qBAAjB,CAAuC,CAC5DxB,iBAD4D,EAE5DgB,iBAF4D,CAAvC,CAAtB;;MAIAI,iBAAA,CAAOM,QAAP,CAAgBD,aAAhB,EAA+B,CAA/B;;MACAL,iBAAA,CAAOO,WAAP,CAAmBF,aAAa,CAAC,CAAD,CAAhC,EAAqCjB,6BAArC;;MACAY,iBAAA,CAAOO,WAAP,CAAmBF,aAAa,CAAC,CAAD,CAAhC,EAAqCR,6BAArC;IACA;;;EAxCwDW,4B,4DACnB,IAAIC,oCAAJ,E"}
|
|
@@ -23,7 +23,7 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
23
23
|
|
|
24
24
|
var _applyDecoratedDescriptor2 = _interopRequireDefault(require("@babel/runtime/helpers/applyDecoratedDescriptor"));
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _testUtils = require("@sprucelabs/test-utils");
|
|
27
27
|
|
|
28
28
|
var _AbstractCliTest2 = _interopRequireDefault(require("../../tests/AbstractCliTest"));
|
|
29
29
|
|
|
@@ -33,7 +33,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
33
33
|
|
|
34
34
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
35
35
|
|
|
36
|
-
var GlobalEmitterTest = (_dec = (0,
|
|
36
|
+
var GlobalEmitterTest = (_dec = (0, _testUtils.test)(), (_class = /*#__PURE__*/function (_AbstractCliTest) {
|
|
37
37
|
(0, _inherits2["default"])(GlobalEmitterTest, _AbstractCliTest);
|
|
38
38
|
|
|
39
39
|
var _super = _createSuper(GlobalEmitterTest);
|
|
@@ -54,7 +54,7 @@ var GlobalEmitterTest = (_dec = (0, _test.test)(), (_class = /*#__PURE__*/functi
|
|
|
54
54
|
case 0:
|
|
55
55
|
emitter = this.getEmitter(); //@ts-ignore
|
|
56
56
|
|
|
57
|
-
|
|
57
|
+
_testUtils.assert.isTrue(emitter.shouldEmitSequentally);
|
|
58
58
|
|
|
59
59
|
case 2:
|
|
60
60
|
case "end":
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GlobalEmitter.js","names":["GlobalEmitterTest","test","emitter","getEmitter","assert","isTrue","shouldEmitSequentally","AbstractCliTest"],"sources":["../../../src/__tests__/implementation/GlobalEmitter.ts"],"sourcesContent":["import { test, assert } from '@sprucelabs/test'\nimport AbstractCliTest from '../../tests/AbstractCliTest'\n\nexport default class GlobalEmitterTest extends AbstractCliTest {\n\t@test()\n\tprotected static async globalEmitterEmitsSEquentally() {\n\t\tconst emitter = this.getEmitter()\n\n\t\t//@ts-ignore\n\t\tassert.isTrue(emitter.shouldEmitSequentally)\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;;;;;;;IAEqBA,iB,WACnB,IAAAC,
|
|
1
|
+
{"version":3,"file":"GlobalEmitter.js","names":["GlobalEmitterTest","test","emitter","getEmitter","assert","isTrue","shouldEmitSequentally","AbstractCliTest"],"sources":["../../../src/__tests__/implementation/GlobalEmitter.ts"],"sourcesContent":["import { test, assert } from '@sprucelabs/test-utils'\nimport AbstractCliTest from '../../tests/AbstractCliTest'\n\nexport default class GlobalEmitterTest extends AbstractCliTest {\n\t@test()\n\tprotected static async globalEmitterEmitsSEquentally() {\n\t\tconst emitter = this.getEmitter()\n\n\t\t//@ts-ignore\n\t\tassert.isTrue(emitter.shouldEmitSequentally)\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;;;;;;;IAEqBA,iB,WACnB,IAAAC,eAAA,G;;;;;;;;;;;;;yHAAD;QAAA;QAAA;UAAA;YAAA;cAAA;gBAEOC,OAFP,GAEiB,KAAKC,UAAL,EAFjB,EAIC;;gBACAC,iBAAA,CAAOC,MAAP,CAAcH,OAAO,CAACI,qBAAtB;;cALD;cAAA;gBAAA;YAAA;UAAA;QAAA;MAAA,C;;;;;;;;;;EAD8CC,4B"}
|
|
@@ -19,7 +19,7 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/ge
|
|
|
19
19
|
|
|
20
20
|
var _applyDecoratedDescriptor2 = _interopRequireDefault(require("@babel/runtime/helpers/applyDecoratedDescriptor"));
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _testUtils = require("@sprucelabs/test-utils");
|
|
23
23
|
|
|
24
24
|
var _AbstractCliTest2 = _interopRequireDefault(require("../../tests/AbstractCliTest"));
|
|
25
25
|
|
|
@@ -31,7 +31,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
31
31
|
|
|
32
32
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
33
33
|
|
|
34
|
-
var IntrospectionTest = (_dec = (0,
|
|
34
|
+
var IntrospectionTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.test)(), (_class = /*#__PURE__*/function (_AbstractCliTest) {
|
|
35
35
|
(0, _inherits2["default"])(IntrospectionTest, _AbstractCliTest);
|
|
36
36
|
|
|
37
37
|
var _super = _createSuper(IntrospectionTest);
|
|
@@ -48,7 +48,7 @@ var IntrospectionTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(), (_
|
|
|
48
48
|
|
|
49
49
|
var results = _introspection["default"].introspect([path]);
|
|
50
50
|
|
|
51
|
-
|
|
51
|
+
_testUtils.assert.isEqualDeep(results, [{
|
|
52
52
|
classes: [],
|
|
53
53
|
interfaces: []
|
|
54
54
|
}]);
|
|
@@ -62,7 +62,7 @@ var IntrospectionTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(), (_
|
|
|
62
62
|
|
|
63
63
|
var classPath = this.resolveTestPath('introspection/ImplementsInterface.ts');
|
|
64
64
|
|
|
65
|
-
|
|
65
|
+
_testUtils.assert.isEqualDeep(results, [{
|
|
66
66
|
classes: [{
|
|
67
67
|
classPath: classPath,
|
|
68
68
|
className: 'ImplementsInterface',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Introspection.test.js","names":["IntrospectionTest","test","path","resolveTestPath","results","introspectionUtil","introspect","assert","isEqualDeep","classes","interfaces","classPath","className","isAbstract","optionsInterfaceName","undefined","parentClassName","parentClassPath","staticProperties","name","interfaceName","AbstractCliTest"],"sources":["../../../src/__tests__/implementation/Introspection.test.ts"],"sourcesContent":["import { test, assert } from '@sprucelabs/test'\nimport AbstractCliTest from '../../tests/AbstractCliTest'\nimport introspectionUtil from '../../utilities/introspection.utility'\n\nexport default class IntrospectionTest extends AbstractCliTest {\n\t@test()\n\tprotected static doesntCrashWithBadFiles() {\n\t\tconst path = this.resolveTestPath('introspection/BadDefinition.ts')\n\t\tconst results = introspectionUtil.introspect([path])\n\t\tassert.isEqualDeep(results, [{ classes: [], interfaces: [] }])\n\t}\n\n\t@test()\n\tprotected static canIntrospectClassThatHasNoParentButImplementsInterface() {\n\t\tconst path = this.resolveTestPath('introspection/ImplementsInterface.ts')\n\t\tconst results = introspectionUtil.introspect([path])\n\n\t\tconst classPath = this.resolveTestPath(\n\t\t\t'introspection/ImplementsInterface.ts'\n\t\t)\n\t\tassert.isEqualDeep(results, [\n\t\t\t{\n\t\t\t\tclasses: [\n\t\t\t\t\t{\n\t\t\t\t\t\tclassPath,\n\t\t\t\t\t\tclassName: 'ImplementsInterface',\n\t\t\t\t\t\tisAbstract: false,\n\t\t\t\t\t\toptionsInterfaceName: undefined,\n\t\t\t\t\t\tparentClassName: undefined,\n\t\t\t\t\t\tparentClassPath: undefined,\n\t\t\t\t\t\tstaticProperties: {\n\t\t\t\t\t\t\tname: 'test',\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\tinterfaces: [{ interfaceName: 'TestInterface' }],\n\t\t\t},\n\t\t])\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;;;;;;;IAEqBA,iB,WACnB,IAAAC,
|
|
1
|
+
{"version":3,"file":"Introspection.test.js","names":["IntrospectionTest","test","path","resolveTestPath","results","introspectionUtil","introspect","assert","isEqualDeep","classes","interfaces","classPath","className","isAbstract","optionsInterfaceName","undefined","parentClassName","parentClassPath","staticProperties","name","interfaceName","AbstractCliTest"],"sources":["../../../src/__tests__/implementation/Introspection.test.ts"],"sourcesContent":["import { test, assert } from '@sprucelabs/test-utils'\nimport AbstractCliTest from '../../tests/AbstractCliTest'\nimport introspectionUtil from '../../utilities/introspection.utility'\n\nexport default class IntrospectionTest extends AbstractCliTest {\n\t@test()\n\tprotected static doesntCrashWithBadFiles() {\n\t\tconst path = this.resolveTestPath('introspection/BadDefinition.ts')\n\t\tconst results = introspectionUtil.introspect([path])\n\t\tassert.isEqualDeep(results, [{ classes: [], interfaces: [] }])\n\t}\n\n\t@test()\n\tprotected static canIntrospectClassThatHasNoParentButImplementsInterface() {\n\t\tconst path = this.resolveTestPath('introspection/ImplementsInterface.ts')\n\t\tconst results = introspectionUtil.introspect([path])\n\n\t\tconst classPath = this.resolveTestPath(\n\t\t\t'introspection/ImplementsInterface.ts'\n\t\t)\n\t\tassert.isEqualDeep(results, [\n\t\t\t{\n\t\t\t\tclasses: [\n\t\t\t\t\t{\n\t\t\t\t\t\tclassPath,\n\t\t\t\t\t\tclassName: 'ImplementsInterface',\n\t\t\t\t\t\tisAbstract: false,\n\t\t\t\t\t\toptionsInterfaceName: undefined,\n\t\t\t\t\t\tparentClassName: undefined,\n\t\t\t\t\t\tparentClassPath: undefined,\n\t\t\t\t\t\tstaticProperties: {\n\t\t\t\t\t\t\tname: 'test',\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t],\n\t\t\t\tinterfaces: [{ interfaceName: 'TestInterface' }],\n\t\t\t},\n\t\t])\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA;;AACA;;AACA;;;;;;;;IAEqBA,iB,WACnB,IAAAC,eAAA,G,UAOA,IAAAA,eAAA,G;;;;;;;;;;;;WAPD,mCAC2C;MAC1C,IAAMC,IAAI,GAAG,KAAKC,eAAL,CAAqB,gCAArB,CAAb;;MACA,IAAMC,OAAO,GAAGC,yBAAA,CAAkBC,UAAlB,CAA6B,CAACJ,IAAD,CAA7B,CAAhB;;MACAK,iBAAA,CAAOC,WAAP,CAAmBJ,OAAnB,EAA4B,CAAC;QAAEK,OAAO,EAAE,EAAX;QAAeC,UAAU,EAAE;MAA3B,CAAD,CAA5B;IACA;;;WAED,mEAC2E;MAC1E,IAAMR,IAAI,GAAG,KAAKC,eAAL,CAAqB,sCAArB,CAAb;;MACA,IAAMC,OAAO,GAAGC,yBAAA,CAAkBC,UAAlB,CAA6B,CAACJ,IAAD,CAA7B,CAAhB;;MAEA,IAAMS,SAAS,GAAG,KAAKR,eAAL,CACjB,sCADiB,CAAlB;;MAGAI,iBAAA,CAAOC,WAAP,CAAmBJ,OAAnB,EAA4B,CAC3B;QACCK,OAAO,EAAE,CACR;UACCE,SAAS,EAATA,SADD;UAECC,SAAS,EAAE,qBAFZ;UAGCC,UAAU,EAAE,KAHb;UAICC,oBAAoB,EAAEC,SAJvB;UAKCC,eAAe,EAAED,SALlB;UAMCE,eAAe,EAAEF,SANlB;UAOCG,gBAAgB,EAAE;YACjBC,IAAI,EAAE;UADW;QAPnB,CADQ,CADV;QAcCT,UAAU,EAAE,CAAC;UAAEU,aAAa,EAAE;QAAjB,CAAD;MAdb,CAD2B,CAA5B;IAkBA;;;EAlC6CC,4B"}
|
|
@@ -31,7 +31,7 @@ var _applyDecoratedDescriptor2 = _interopRequireDefault(require("@babel/runtime/
|
|
|
31
31
|
|
|
32
32
|
var _jestJsonReporter = require("@sprucelabs/jest-json-reporter");
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _testUtils = _interopRequireWildcard(require("@sprucelabs/test-utils"));
|
|
35
35
|
|
|
36
36
|
var _JestJsonParser = _interopRequireDefault(require("../../tests/JestJsonParser"));
|
|
37
37
|
|
|
@@ -47,7 +47,7 @@ function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflec
|
|
|
47
47
|
|
|
48
48
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
49
49
|
|
|
50
|
-
var JestJsonParserTest = (_dec = (0,
|
|
50
|
+
var JestJsonParserTest = (_dec = (0, _testUtils.test)(), _dec2 = (0, _testUtils.test)(), _dec3 = (0, _testUtils.test)(), _dec4 = (0, _testUtils.test)(), _dec5 = (0, _testUtils.test)(), _dec6 = (0, _testUtils.test)(), _dec7 = (0, _testUtils.test)(), _dec8 = (0, _testUtils.test)(), _dec9 = (0, _testUtils.test)(), _dec10 = (0, _testUtils.test)(), _dec11 = (0, _testUtils.test)(), _dec12 = (0, _testUtils.test)(), (_class = (_class2 = /*#__PURE__*/function (_AbstractSpruceTest) {
|
|
51
51
|
(0, _inherits2["default"])(JestJsonParserTest, _AbstractSpruceTest);
|
|
52
52
|
|
|
53
53
|
var _super = _createSuper(JestJsonParserTest);
|
|
@@ -88,7 +88,7 @@ var JestJsonParserTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(), _
|
|
|
88
88
|
}, {
|
|
89
89
|
key: "canCreateJjp",
|
|
90
90
|
value: function canCreateJjp() {
|
|
91
|
-
|
|
91
|
+
_testUtils.assert.isTruthy(this.parser.write);
|
|
92
92
|
}
|
|
93
93
|
}, {
|
|
94
94
|
key: "generatesEmptyResults",
|
|
@@ -97,7 +97,7 @@ var JestJsonParserTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(), _
|
|
|
97
97
|
this.parser.write(startRun);
|
|
98
98
|
var testResults = this.parser.getResults();
|
|
99
99
|
|
|
100
|
-
|
|
100
|
+
_testUtils.assert.isEqualDeep(testResults, {
|
|
101
101
|
totalTestFiles: 43
|
|
102
102
|
});
|
|
103
103
|
}
|
|
@@ -109,11 +109,11 @@ var JestJsonParserTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(), _
|
|
|
109
109
|
this.parser.write(data);
|
|
110
110
|
var testResults = this.parser.getResults();
|
|
111
111
|
|
|
112
|
-
|
|
112
|
+
_testUtils.assert.isTruthy(testResults.testFiles);
|
|
113
113
|
|
|
114
|
-
|
|
114
|
+
_testUtils.assert.isLength(testResults.testFiles, 1);
|
|
115
115
|
|
|
116
|
-
|
|
116
|
+
_testUtils.assert.isEqualDeep(testResults.testFiles[0], {
|
|
117
117
|
path: "behavioral/errors/CreatingANewErrorBuilder.test.ts",
|
|
118
118
|
status: 'running'
|
|
119
119
|
});
|
|
@@ -142,11 +142,11 @@ var JestJsonParserTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(), _
|
|
|
142
142
|
this.parser.write(data);
|
|
143
143
|
var testResults = this.parser.getResults();
|
|
144
144
|
|
|
145
|
-
|
|
145
|
+
_testUtils.assert.isTruthy(testResults.testFiles);
|
|
146
146
|
|
|
147
|
-
|
|
147
|
+
_testUtils.assert.isLength(testResults.testFiles, 2);
|
|
148
148
|
|
|
149
|
-
|
|
149
|
+
_testUtils.assert.isEqualDeep(testResults.testFiles, [{
|
|
150
150
|
path: "behavioral/errors/CreatingANewErrorBuilder.test.ts",
|
|
151
151
|
status: 'running'
|
|
152
152
|
}, {
|
|
@@ -161,11 +161,11 @@ var JestJsonParserTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(), _
|
|
|
161
161
|
this.parser.write(this.generateTestResults('onTestFileStart', "behavioral/tests/RunningTests.test.js"));
|
|
162
162
|
var testResults = this.parser.getResults();
|
|
163
163
|
|
|
164
|
-
|
|
164
|
+
_testUtils.assert.isTruthy(testResults.testFiles);
|
|
165
165
|
|
|
166
|
-
|
|
166
|
+
_testUtils.assert.isLength(testResults.testFiles, 2);
|
|
167
167
|
|
|
168
|
-
|
|
168
|
+
_testUtils.assert.isEqualDeep(testResults.testFiles, [{
|
|
169
169
|
path: "behavioral/errors/CreatingANewErrorBuilder.test.ts",
|
|
170
170
|
status: 'running'
|
|
171
171
|
}, {
|
|
@@ -180,7 +180,7 @@ var JestJsonParserTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(), _
|
|
|
180
180
|
this.parser.write(data);
|
|
181
181
|
var testResults = this.parser.getResults();
|
|
182
182
|
|
|
183
|
-
|
|
183
|
+
_testUtils.assert.isFalsy(testResults.testFiles);
|
|
184
184
|
}
|
|
185
185
|
}, {
|
|
186
186
|
key: "canPartialWriteAcrossTwoWrites",
|
|
@@ -192,11 +192,11 @@ var JestJsonParserTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(), _
|
|
|
192
192
|
this.parser.write(secondPart);
|
|
193
193
|
var testResults = this.parser.getResults();
|
|
194
194
|
|
|
195
|
-
|
|
195
|
+
_testUtils.assert.isTruthy(testResults.testFiles);
|
|
196
196
|
|
|
197
|
-
|
|
197
|
+
_testUtils.assert.isLength(testResults.testFiles, 1);
|
|
198
198
|
|
|
199
|
-
|
|
199
|
+
_testUtils.assert.isEqualDeep(testResults.testFiles[0], {
|
|
200
200
|
path: "behavioral/errors/KeepingErrorsInSync.test.ts",
|
|
201
201
|
status: 'running'
|
|
202
202
|
});
|
|
@@ -213,7 +213,7 @@ var JestJsonParserTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(), _
|
|
|
213
213
|
this.parser.write(this.generateTestResults('onTestFileStart', 'behavioral/tests/CreatingANewErrorBuilder.test.js'));
|
|
214
214
|
var testResults = this.parser.getResults();
|
|
215
215
|
|
|
216
|
-
|
|
216
|
+
_testUtils.assert.isEqualDeep(testResults, {
|
|
217
217
|
totalTestFiles: 43,
|
|
218
218
|
testFiles: [{
|
|
219
219
|
path: 'behavioral/errors/KeepingErrorsInSync.test.ts',
|
|
@@ -236,16 +236,16 @@ var JestJsonParserTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(), _
|
|
|
236
236
|
this.parser.write(secondPart);
|
|
237
237
|
var testResults = this.parser.getResults();
|
|
238
238
|
|
|
239
|
-
|
|
239
|
+
_testUtils.assert.isTruthy(testResults.testFiles);
|
|
240
240
|
|
|
241
|
-
|
|
241
|
+
_testUtils.assert.isLength(testResults.testFiles, 2);
|
|
242
242
|
|
|
243
|
-
|
|
243
|
+
_testUtils.assert.isEqualDeep(testResults.testFiles[0], {
|
|
244
244
|
path: "behavioral/errors/KeepingErrorsInSync.test.ts",
|
|
245
245
|
status: 'running'
|
|
246
246
|
});
|
|
247
247
|
|
|
248
|
-
|
|
248
|
+
_testUtils.assert.isEqualDeep(testResults.testFiles[1], {
|
|
249
249
|
path: 'behavioral/tests/CreatingANewErrorBuilder.test.ts',
|
|
250
250
|
status: 'running'
|
|
251
251
|
});
|
|
@@ -257,11 +257,11 @@ var JestJsonParserTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(), _
|
|
|
257
257
|
this.parser.write(data);
|
|
258
258
|
var testResults = this.parser.getResults();
|
|
259
259
|
|
|
260
|
-
|
|
260
|
+
_testUtils.assert.isTruthy(testResults.testFiles);
|
|
261
261
|
|
|
262
|
-
|
|
262
|
+
_testUtils.assert.isLength(testResults.testFiles, 1);
|
|
263
263
|
|
|
264
|
-
|
|
264
|
+
_testUtils.assert.isEqualDeep(testResults.testFiles[0], {
|
|
265
265
|
path: "behavioral/errors/CreatingANewErrorBuilder.test.ts",
|
|
266
266
|
status: 'running'
|
|
267
267
|
});
|
|
@@ -276,9 +276,9 @@ var JestJsonParserTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(), _
|
|
|
276
276
|
this.parser.write("***************************END_JSON_DIVIDER***************************\n\t\t\t***************************START_JSON_DIVIDER***************************\n\t\t\t{\"status\":\"onTestFileStart\",\"test\":{\"context\":{\"config\":{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/private/tmp/jest_dx\",\"clearMocks\":false,\"coveragePathIgnorePatterns\":[\"/node_modules/\"],\"cwd\":\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extraGlobals\":[],\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{\"computeSha1\":false,\"throwOnModuleCollision\":false},\"injectGlobals\":true,\"moduleDirectories\":[\"node_modules\"],\"moduleFileExtensions\":[\"js\",\"json\",\"jsx\",\"ts\",\"tsx\",\"node\"],\"moduleNameMapper\":[[\"^#spruce/schemas/fields/(.*)\",\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli/node_modules/@sprucelabs/schema/build/.spruce/schemas/fields/$1\"],[\"^#spruce/(.*)$\",\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli/build/.spruce/$1\"]],\"modulePathIgnorePatterns\":[],\"name\":\"44406c6bd09f4805a9dd2ad1a17b150c\",\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli\",\"roots\":[\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli\"],\"runner\":\"jest-runner\",\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"slowTestThreshold\":5,\"snapshotSerializers\":[],\"testEnvironment\":\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/node_modules/jest-environment-node/build/index.js\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[\"**/__tests__/**/*.test.js?(x)\"],\"testPathIgnorePatterns\":[\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli/tmp/\",\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli/src/\",\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli/node_modules/\",\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli/build/__tests__/testDirsAndFiles/\"],\"testRegex\":[],\"testRunner\":\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/node_modules/jest-jasmine2/build/index.js\",\"testURL\":\"http://localhost\",\"timers\":\"real\",\"transform\":[[\".[jt]sx?$\",\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/node_modules/babel-jest/build/index.js\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\",\".pnp.[^/]+$\"],\"watchPathIgnorePatterns\":[\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli/src/\"]},\"hasteFS\":{\"_rootDir\":\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli\",\"_files\":{}},\"moduleMap\":{\"duplicates\":[],\"map\":[[\"@sprucelabs/spruce-cli\",{\"g\":[\"package.json\",1]}]],\"mocks\":[],\"rootDir\":\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli\"},\"resolver\":{\"_options\":{\"extensions\":[\".js\",\".json\",\".jsx\",\".ts\",\".tsx\",\".node\"],\"hasCoreModules\":true,\"moduleDirectories\":[\"node_modules\"],\"moduleNameMapper\":[{\"moduleName\":\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli/node_modules/@sprucelabs/schema/build/.spruce/schemas/fields/$1\",\"regex\":{}},{\"moduleName\":\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli/build/.spruce/$1\",\"regex\":{}}],\"rootDir\":\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli\"},\"_moduleMap\":{\"duplicates\":[],\"map\":[[\"@sprucelabs/spruce-cli\",{\"g\":[\"package.json\",1]}]],\"mocks\":[],\"rootDir\":\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli\"},\"_moduleIDCache\":{},\"_moduleNameCache\":{},\"_modulePathCache\":{},\"_supportsNativePlatform\":false}},\"duration\":48733,\"path\":\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli/build/__tests__/behavioral/errors/CreatingANewErrorBuilder.test.js\"}}\n\t\t\t***************************END_JSON_DIVIDER***************************\n\t\t\t***************************START_JSON_DIVIDER***************************\n\t\t\t{\"status\":\"onTestFileStart\",\"test\":{\"context\":{\"config\":{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/private/tmp/jest_dx\",\"clearMocks\":false,\"coveragePathIgnorePatterns\":[\"/node_modules/\"],\"cwd\":\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli\",\"detectLeaks\":false,\"detectOpenHandles\":false,\"errorOnDeprecated\":false,\"extraGlobals\":[],\"forceCoverageMatch\":[],\"globals\":{},\"haste\":{\"computeSha1\":false,\"throwOnModuleCollision\":false},\"injectGlobals\":true,\"moduleDirectories\":[\"node_modules\"],\"moduleFileExtensions\":[\"js\",\"json\",\"jsx\",\"ts\",\"tsx\",\"node\"],\"moduleNameMapper\":[[\"^#spruce/schemas/fields/(.*)\",\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli/node_modules/@sprucelabs/schema/build/.spruce/schemas/fields/$1\"],[\"^#spruce/(.*)$\",\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli/build/.spruce/$1\"]],\"modulePathIgnorePatterns\":[],\"name\":\"44406c6bd09f4805a9dd2ad1a17b150c\",\"prettierPath\":\"prettier\",\"resetMocks\":false,\"resetModules\":false,\"restoreMocks\":false,\"rootDir\":\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli\",\"roots\":[\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli\"],\"runner\":\"jest-runner\",\"setupFiles\":[],\"setupFilesAfterEnv\":[],\"skipFilter\":false,\"slowTestThreshold\":5,\"snapshotSerializers\":[],\"testEnvironment\":\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/node_modules/jest-environment-node/build/index.js\",\"testEnvironmentOptions\":{},\"testLocationInResults\":false,\"testMatch\":[\"**/__tests__/**/*.test.js?(x)\"],\"testPathIgnorePatterns\":[\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli/tmp/\",\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli/src/\",\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli/node_modules/\",\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli/build/__tests__/testDirsAndFiles/\"],\"testRegex\":[],\"testRunner\":\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/node_modules/jest-jasmine2/build/index.js\",\"testURL\":\"http://localhost\",\"timers\":\"real\",\"transform\":[[\".[jt]sx?$\",\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/node_modules/babel-jest/build/index.js\",{}]],\"transformIgnorePatterns\":[\"/node_modules/\",\".pnp.[^/]+$\"],\"watchPathIgnorePatterns\":[\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli/src/\"]},\"hasteFS\":{\"_rootDir\":\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli\",\"_files\":{}},\"moduleMap\":{\"duplicates\":[],\"map\":[[\"@sprucelabs/spruce-cli\",{\"g\":[\"package.json\",1]}]],\"mocks\":[],\"rootDir\":\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli\"},\"resolver\":{\"_options\":{\"extensions\":[\".js\",\".json\",\".jsx\",\".ts\",\".tsx\",\".node\"],\"hasCoreModules\":true,\"moduleDirectories\":[\"node_modules\"],\"moduleNameMapper\":[{\"moduleName\":\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli/node_modules/@sprucelabs/schema/build/.spruce/schemas/fields/$1\",\"regex\":{}},{\"moduleName\":\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli/build/.spruce/$1\",\"regex\":{}}],\"rootDir\":\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli\"},\"_moduleMap\":{\"duplicates\":[],\"map\":[[\"@sprucelabs/spruce-cli\",{\"g\":[\"package.json\",1]}]],\"mocks\":[],\"rootDir\":\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli\"},\"_moduleIDCache\":{},\"_moduleNameCache\":{},\"_modulePathCache\":{},\"_supportsNativePlatform\":false}},\"duration\":17443,\"path\":\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli/build/__tests__/behavioral/watchers/WatchingForChanges.test.js\"}}");
|
|
277
277
|
var testResults = this.parser.getResults();
|
|
278
278
|
|
|
279
|
-
|
|
279
|
+
_testUtils.assert.isTruthy(testResults.testFiles);
|
|
280
280
|
|
|
281
|
-
|
|
281
|
+
_testUtils.assert.isLength(testResults.testFiles, 2);
|
|
282
282
|
}
|
|
283
283
|
}, {
|
|
284
284
|
key: "canUpdateAsTestsCompletes",
|
|
@@ -291,11 +291,11 @@ var JestJsonParserTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(), _
|
|
|
291
291
|
this.parser.write(completed);
|
|
292
292
|
var testResults = this.parser.getResults();
|
|
293
293
|
|
|
294
|
-
|
|
294
|
+
_testUtils.assert.isTruthy(testResults.testFiles);
|
|
295
295
|
|
|
296
|
-
|
|
296
|
+
_testUtils.assert.isLength(testResults.testFiles, 11);
|
|
297
297
|
|
|
298
|
-
|
|
298
|
+
_testUtils.assert.isEqualDeep(testResults, {
|
|
299
299
|
totalTestFiles: 39,
|
|
300
300
|
testFiles: [{
|
|
301
301
|
path: 'behavioral/errors/CreatingANewErrorBuilder.test.ts',
|
|
@@ -526,6 +526,6 @@ var JestJsonParserTest = (_dec = (0, _test.test)(), _dec2 = (0, _test.test)(), _
|
|
|
526
526
|
}
|
|
527
527
|
}]);
|
|
528
528
|
return JestJsonParserTest;
|
|
529
|
-
}(
|
|
529
|
+
}(_testUtils["default"]), (0, _defineProperty2["default"])(_class2, "parser", void 0), _class2), ((0, _applyDecoratedDescriptor2["default"])(_class, "canCreateJjp", [_dec], Object.getOwnPropertyDescriptor(_class, "canCreateJjp"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "generatesEmptyResults", [_dec2], Object.getOwnPropertyDescriptor(_class, "generatesEmptyResults"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "canHandleSelfContainedWrite", [_dec3], Object.getOwnPropertyDescriptor(_class, "canHandleSelfContainedWrite"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "canHandleSelfContainedWriteWithTwoTests", [_dec4], Object.getOwnPropertyDescriptor(_class, "canHandleSelfContainedWriteWithTwoTests"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "multipleSelfContainedWritesWorks", [_dec5], Object.getOwnPropertyDescriptor(_class, "multipleSelfContainedWritesWorks"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "partialWriteReturnsNothing", [_dec6], Object.getOwnPropertyDescriptor(_class, "partialWriteReturnsNothing"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "canPartialWriteAcrossTwoWrites", [_dec7], Object.getOwnPropertyDescriptor(_class, "canPartialWriteAcrossTwoWrites"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "canPartialWriteAndSelfContainedAcrossThreeWrites", [_dec8], Object.getOwnPropertyDescriptor(_class, "canPartialWriteAndSelfContainedAcrossThreeWrites"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "canSelfContainedPlusPartial", [_dec9], Object.getOwnPropertyDescriptor(_class, "canSelfContainedPlusPartial"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "canHandleGarbageAtFrontOfData", [_dec10], Object.getOwnPropertyDescriptor(_class, "canHandleGarbageAtFrontOfData"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "canHandlesSplitTestRestsWithGarbageInFrontAndDanglingEnd", [_dec11], Object.getOwnPropertyDescriptor(_class, "canHandlesSplitTestRestsWithGarbageInFrontAndDanglingEnd"), _class), (0, _applyDecoratedDescriptor2["default"])(_class, "canUpdateAsTestsCompletes", [_dec12], Object.getOwnPropertyDescriptor(_class, "canUpdateAsTestsCompletes"), _class)), _class));
|
|
530
530
|
exports["default"] = JestJsonParserTest;
|
|
531
531
|
//# sourceMappingURL=JestJsonParser.test.js.map
|