@sprucelabs/spruce-cli 19.1.26 → 19.1.28
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 +16 -0
- package/build/.spruce/errors/options.types.d.ts +1 -1
- package/build/.spruce/events/heartwood/didRegisterSkillViews.v2021_02_11.contract.d.ts +1 -1
- package/build/.spruce/events/heartwood/generateUrl.v2021_02_11.contract.d.ts +1 -1
- package/build/.spruce/events/heartwood/getActiveTheme.v2021_02_11.contract.d.ts +1 -1
- package/build/.spruce/events/heartwood/getSkillViews.v2021_02_11.contract.d.ts +1 -1
- package/build/.spruce/events/heartwood/listViews.v2021_02_11.contract.d.ts +1 -1
- package/build/.spruce/events/heartwood/registerDashboardCards.v2021_02_11.contract.d.ts +1 -1
- package/build/.spruce/events/heartwood/registerSkillViews.v2021_02_11.contract.d.ts +1 -1
- package/build/.spruce/events/heartwood/upsertTheme.v2021_02_11.contract.d.ts +1 -1
- package/build/.spruce/events/spruceCli/registerSkillViews.v2021_04_11.contract.d.ts +1 -1
- package/build/GlobalEmitter.d.ts +2 -2
- package/build/__tests__/behavioral/onboard/StartingOnboarding.test.js +2 -2
- package/build/__tests__/behavioral/onboard/StartingOnboarding.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/UsingSchemasInCli.test.js +2 -2
- package/build/__tests__/behavioral/schemas/UsingSchemasInCli.test.js.map +1 -1
- package/build/__tests__/implementation/ArgParser.test.js +2 -2
- package/build/__tests__/implementation/ArgParser.test.js.map +1 -1
- package/build/__tests__/implementation/BulkImporting.test.js +2 -2
- package/build/__tests__/implementation/BulkImporting.test.js.map +1 -1
- package/build/__tests__/implementation/CommanderCommandResultMapper.test.js +2 -2
- package/build/__tests__/implementation/CommanderCommandResultMapper.test.js.map +1 -1
- package/build/__tests__/implementation/EventContractCleanerUtil.test.js +2 -2
- package/build/__tests__/implementation/EventContractCleanerUtil.test.js.map +1 -1
- package/build/__tests__/implementation/FeaturesUtil.test.js +2 -2
- package/build/__tests__/implementation/FeaturesUtil.test.js.map +1 -1
- package/build/__tests__/implementation/JestJsonParser.test.js +2 -2
- package/build/__tests__/implementation/JestJsonParser.test.js.map +1 -1
- package/build/__tests__/testDirsAndFiles/event_with_emit_and_response_payloads/event.options.d.ts +1 -1
- package/build/components/FormComponent.d.ts +2 -2
- package/build/components/QuizComponent.d.ts +4 -4
- package/build/features/AbstractAction.d.ts +1 -1
- package/build/features/ActionFactory.d.ts +1 -1
- package/build/features/ActionQuestionAsker.d.ts +1 -1
- package/build/features/cache/actions/DisableAction.d.ts +2 -2
- package/build/features/cache/actions/EnableAction.d.ts +2 -2
- package/build/features/conversation/actions/CreateAction.d.ts +2 -2
- package/build/features/conversation/actions/TestAction.d.ts +2 -2
- package/build/features/dependencies/actions/AddAction.d.ts +2 -2
- package/build/features/dependencies/actions/ManageAction.d.ts +1 -1
- package/build/features/deploy/actions/HerokuAction.d.ts +2 -2
- package/build/features/error/actions/CreateAction.d.ts +2 -2
- package/build/features/error/actions/SyncAction.d.ts +2 -2
- package/build/features/event/actions/CreateAction.d.ts +1 -1
- package/build/features/event/actions/ListenAction.d.ts +1 -1
- package/build/features/event/actions/SetRemoteAction.d.ts +2 -2
- package/build/features/event/actions/SyncAction.d.ts +2 -2
- package/build/features/event/actions/SyncListenersAction.d.ts +1 -1
- package/build/features/event/builders/EventContractBuilder.d.ts +2 -2
- package/build/features/event/stores/ListenerStore.d.ts +1 -1
- package/build/features/eventContract/actions/PullAction.d.ts +2 -2
- package/build/features/features.types.d.ts +4 -4
- package/build/features/log/actions/CreateTransportAction.d.ts +2 -2
- package/build/features/node/NodeFeature.d.ts +2 -2
- package/build/features/node/actions/CreateAction.d.ts +2 -2
- package/build/features/node/actions/UpdateDependenciesAction.d.ts +2 -2
- package/build/features/node/actions/UpgradeAction.d.ts +2 -2
- package/build/features/onboard/ScriptPlayer.d.ts +4 -4
- package/build/features/onboard/actions/OnboardAction.d.ts +2 -2
- package/build/features/onboard/stores/OnboardingStore.d.ts +3 -3
- package/build/features/organization/actions/CreateAction.d.ts +2 -2
- package/build/features/organization/actions/InstallAction.d.ts +2 -2
- package/build/features/permission/actions/CreateAction.d.ts +2 -2
- package/build/features/permission/actions/SyncAction.d.ts +2 -2
- package/build/features/permission/stores/PermissionStore.d.ts +1 -1
- package/build/features/person/actions/LoginAction.d.ts +2 -2
- package/build/features/person/actions/LogoutAction.d.ts +1 -1
- package/build/features/person/actions/WhoamiAction.d.ts +1 -1
- package/build/features/polish/actions/SetupAction.d.ts +1 -1
- package/build/features/sandbox/actions/SetupAction.d.ts +1 -1
- package/build/features/schema/actions/CreateAction.d.ts +2 -2
- package/build/features/schema/actions/SyncAction.d.ts +2 -2
- package/build/features/schema/actions/SyncFieldsAction.d.ts +1 -1
- package/build/features/skill/SkillFeature.d.ts +3 -3
- package/build/features/skill/actions/BootAction.d.ts +2 -2
- package/build/features/skill/actions/CreateAction.d.ts +2 -2
- package/build/features/skill/actions/DashboardAction.d.ts +1 -1
- package/build/features/skill/actions/LoginAction.d.ts +2 -2
- package/build/features/skill/actions/RebuildAction.d.ts +2 -2
- package/build/features/skill/actions/RegisterAction.d.ts +2 -2
- package/build/features/skill/updaters/Updater.d.ts +2 -2
- package/build/features/store/actions/CreateAction.d.ts +2 -2
- package/build/features/store/actions/SyncAction.d.ts +2 -2
- package/build/features/test/TestReporter.d.ts +2 -2
- package/build/features/test/TestRunner.d.ts +1 -1
- package/build/features/test/actions/CreateAction.d.ts +2 -2
- package/build/features/test/actions/SetupAction.d.ts +2 -2
- package/build/features/test/actions/TestAction.d.ts +1 -1
- package/build/features/test/test.types.d.ts +2 -2
- package/build/features/universalFileDescriptions.js +4 -0
- package/build/features/universalFileDescriptions.js.map +1 -1
- package/build/features/validateAndNormalize.utility.d.ts +1 -1
- package/build/features/view/actions/CreateAction.d.ts +1 -1
- package/build/features/view/actions/CreateThemeAction.d.ts +1 -1
- package/build/features/view/actions/SyncAction.d.ts +1 -1
- package/build/features/view/actions/WatchAction.d.ts +1 -1
- package/build/features/vscode/actions/SetupAction.d.ts +2 -2
- package/build/interfaces/SpyInterface.d.ts +2 -2
- package/build/interfaces/TerminalInterface.d.ts +1 -1
- package/build/interfaces/TerminalInterface.js +2 -2
- package/build/interfaces/TerminalInterface.js.map +1 -1
- package/build/services/ServiceFactory.d.ts +1 -1
- package/build/stores/AbstractStore.d.ts +1 -1
- package/build/stores/StoreFactory.d.ts +2 -2
- package/build/tests/AbstractCliTest.d.ts +1 -1
- package/build/tests/AbstractCliTest.js +2 -2
- package/build/tests/AbstractCliTest.js.map +1 -1
- package/build/tests/CommandFaker.d.ts +1 -1
- package/build/tests/JestJsonParser.d.ts +2 -2
- package/build/tests/MockProgramFactory.d.ts +1 -1
- package/build/tests/buildTestCache.js +1 -1
- package/build/tests/buildTestCache.js.map +1 -1
- package/build/tests/cleanTestData.js +2 -2
- package/build/tests/cleanTestData.js.map +1 -1
- package/build/types/apiClient.types.d.ts +3 -3
- package/build/types/cli.types.d.ts +10 -10
- package/build/utilities/apiClient.utility.d.ts +1 -1
- package/build/utilities/introspection.utility.d.ts +1 -1
- package/build/utilities/introspection.utility.js +2 -2
- package/build/utilities/introspection.utility.js.map +1 -1
- package/build/widgets/WidgetFactory.js.map +1 -1
- package/build/widgets/keySelectChoices.d.ts +2 -2
- package/build/widgets/terminalKit/TkBaseWidget.d.ts +2 -2
- package/build/widgets/types/button.types.d.ts +1 -1
- package/build/widgets/types/factory.types.d.ts +3 -3
- package/build/widgets/types/input.types.d.ts +1 -1
- package/build/widgets/types/layout.types.d.ts +2 -2
- package/build/widgets/types/menuBar.types.d.ts +1 -1
- package/build/widgets/types/popup.types.d.ts +1 -1
- package/build/widgets/types/text.types.d.ts +1 -1
- package/build/widgets/types/widgets.types.d.ts +2 -2
- package/build/widgets/types/window.types.d.ts +1 -1
- package/build/writers/AbstractWriter.d.ts +1 -1
- package/build/writers/WriterFactory.d.ts +1 -1
- package/package.json +41 -41
- package/src/features/universalFileDescriptions.ts +5 -0
- package/src/tests/buildTestCache.ts +4 -1
- package/src/widgets/WidgetFactory.ts +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventContractCleanerUtil.test.js","names":["_mercuryCoreEvents","require","_spruceEventUtils","_testUtils","_interopRequireWildcard","_eventContractCleaner","_dec","_dec2","_dec3","_dec4","_class","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","valueOf","e","ownKeys","r","t","keys","getOwnPropertySymbols","o","filter","enumerable","push","_objectSpread","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","didMessageContract","eventSignatures","coreEventContracts","didMessageGlobalContractWithoutPayload","isGlobal","emitPayloadSchema","fields","targetOnlyPayload","buildEmitTargetAndPayloadSchema","eventName","targetSchema","id","namespace","type","EventContractCleanerUtilTest","exports","test","_AbstractSpruceTest","_inherits2","_super","_classCallCheck2","_createClass2","value","_canGetEventContractCleanerUtil","_asyncToGenerator2","_regenerator","mark","_callee","wrap","_callee$","_context","prev","next","assert","isTruthy","eventContractCleanerUtil","stop","canGetEventContractCleanerUtil","_makesNoChangeToLocalContract","_callee2","cleaned","_callee2$","_context2","cleanPayloadsAndPermissions","isEqualDeep","makesNoChangeToLocalContract","_stripsOutEntireEmitPayloadIfNoTargetNorPayload","_callee3","_cleaned$eventSignatu","_callee3$","_context3","isFalsy","stripsOutEntireEmitPayloadIfNoTargetNorPayload","_keepsEmitPayloadIfOnlyTarget","_callee4","_cleaned$eventSignatu2","_callee4$","_context4","keepsEmitPayloadIfOnlyTarget","AbstractSpruceTest","_applyDecoratedDescriptor2"],"sources":["../../../src/__tests__/implementation/EventContractCleanerUtil.test.ts"],"sourcesContent":["import { coreEventContracts } from '@sprucelabs/mercury-core-events'\nimport { buildEmitTargetAndPayloadSchema } from '@sprucelabs/spruce-event-utils'\nimport AbstractSpruceTest, { test, assert } from '@sprucelabs/test-utils'\nimport { eventContractCleanerUtil } from '../../utilities/eventContractCleaner.utility'\n\nconst didMessageContract = {\n\teventSignatures: {\n\t\t'did-message::v2020_12_25':\n\t\t\tcoreEventContracts[0].eventSignatures['did-message::v2020_12_25'],\n\t},\n}\n\nconst didMessageGlobalContractWithoutPayload = {\n\teventSignatures: {\n\t\t'did-message::v2020_12_25': {\n\t\t\t...coreEventContracts[0].eventSignatures['did-message::v2020_12_25'],\n\t\t\tisGlobal: true,\n\t\t\temitPayloadSchema: {\n\t\t\t\t...coreEventContracts[0].eventSignatures['did-message::v2020_12_25']\n\t\t\t\t\t.emitPayloadSchema,\n\t\t\t\tfields: {},\n\t\t\t},\n\t\t},\n\t},\n}\n\nconst targetOnlyPayload = {\n\teventSignatures: {\n\t\t'did-message::v2020_12_25': {\n\t\t\tisGlobal: true,\n\t\t\temitPayloadSchema: buildEmitTargetAndPayloadSchema({\n\t\t\t\teventName: 'did-message::v2020_12_15',\n\t\t\t\ttargetSchema: {\n\t\t\t\t\tid: 'test',\n\t\t\t\t\tfields: {\n\t\t\t\t\t\tnamespace: {\n\t\t\t\t\t\t\ttype: 'text',\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t}),\n\t\t},\n\t},\n}\n\nexport default class EventContractCleanerUtilTest extends AbstractSpruceTest {\n\t@test()\n\tprotected static async canGetEventContractCleanerUtil() {\n\t\tassert.isTruthy(eventContractCleanerUtil)\n\t}\n\n\t@test()\n\tprotected static async makesNoChangeToLocalContract() {\n\t\tconst cleaned =\n\t\t\teventContractCleanerUtil.cleanPayloadsAndPermissions(didMessageContract)\n\n\t\tassert.isEqualDeep(cleaned, didMessageContract)\n\t}\n\n\t@test()\n\tprotected static async stripsOutEntireEmitPayloadIfNoTargetNorPayload() {\n\t\tconst cleaned = eventContractCleanerUtil.cleanPayloadsAndPermissions(\n\t\t\tdidMessageGlobalContractWithoutPayload\n\t\t)\n\n\t\tassert.isFalsy(\n\t\t\tcleaned.eventSignatures['did-message::v2020_12_25']?.emitPayloadSchema\n\t\t)\n\t}\n\n\t@test()\n\tprotected static async keepsEmitPayloadIfOnlyTarget() {\n\t\tconst cleaned =\n\t\t\teventContractCleanerUtil.cleanPayloadsAndPermissions(targetOnlyPayload)\n\n\t\tassert.isTruthy(\n\t\t\tcleaned.eventSignatures['did-message::v2020_12_25']?.emitPayloadSchema\n\t\t)\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAC,uBAAA,CAAAH,OAAA;AACA,IAAAI,qBAAA,GAAAJ,OAAA;AAAuF,IAAAK,IAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,MAAA;AAAA,SAAAC,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,WAAA,WAAAA,WAAA,GAAAG,gBAAA,GAAAD,iBAAA,KAAAF,WAAA;AAAA,SAAAR,wBAAAY,GAAA,EAAAJ,WAAA,SAAAA,WAAA,IAAAI,GAAA,IAAAA,GAAA,CAAAC,UAAA,WAAAD,GAAA,QAAAA,GAAA,aAAAE,OAAA,CAAAF,GAAA,yBAAAA,GAAA,uCAAAA,GAAA,UAAAG,KAAA,GAAAR,wBAAA,CAAAC,WAAA,OAAAO,KAAA,IAAAA,KAAA,CAAAC,GAAA,CAAAJ,GAAA,YAAAG,KAAA,CAAAE,GAAA,CAAAL,GAAA,SAAAM,MAAA,WAAAC,qBAAA,GAAAC,MAAA,CAAAC,cAAA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AA,MAAA,OAAAsH,0BAAA,aAAAtH,MAAA,mCAAAD,KAAA,GAAAe,MAAA,CAAAE,wBAAA,CAAAhB,MAAA,mCAAAA,MAAA,IAAAA,MAAA"}
|
|
1
|
+
{"version":3,"file":"EventContractCleanerUtil.test.js","names":["_mercuryCoreEvents","require","_spruceEventUtils","_testUtils","_interopRequireWildcard","_eventContractCleaner","_dec","_dec2","_dec3","_dec4","_class","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","valueOf","ownKeys","keys","getOwnPropertySymbols","o","filter","enumerable","push","_objectSpread","length","forEach","_defineProperty2","getOwnPropertyDescriptors","defineProperties","didMessageContract","eventSignatures","coreEventContracts","didMessageGlobalContractWithoutPayload","isGlobal","emitPayloadSchema","fields","targetOnlyPayload","buildEmitTargetAndPayloadSchema","eventName","targetSchema","id","namespace","type","EventContractCleanerUtilTest","exports","test","_AbstractSpruceTest","_inherits2","_super","_classCallCheck2","_createClass2","key","value","_canGetEventContractCleanerUtil","_asyncToGenerator2","_regenerator","mark","_callee","wrap","_callee$","_context","prev","next","assert","isTruthy","eventContractCleanerUtil","stop","canGetEventContractCleanerUtil","_makesNoChangeToLocalContract","_callee2","cleaned","_callee2$","_context2","cleanPayloadsAndPermissions","isEqualDeep","makesNoChangeToLocalContract","_stripsOutEntireEmitPayloadIfNoTargetNorPayload","_callee3","_cleaned$eventSignatu","_callee3$","_context3","isFalsy","stripsOutEntireEmitPayloadIfNoTargetNorPayload","_keepsEmitPayloadIfOnlyTarget","_callee4","_cleaned$eventSignatu2","_callee4$","_context4","keepsEmitPayloadIfOnlyTarget","AbstractSpruceTest","_applyDecoratedDescriptor2"],"sources":["../../../src/__tests__/implementation/EventContractCleanerUtil.test.ts"],"sourcesContent":["import { coreEventContracts } from '@sprucelabs/mercury-core-events'\nimport { buildEmitTargetAndPayloadSchema } from '@sprucelabs/spruce-event-utils'\nimport AbstractSpruceTest, { test, assert } from '@sprucelabs/test-utils'\nimport { eventContractCleanerUtil } from '../../utilities/eventContractCleaner.utility'\n\nconst didMessageContract = {\n\teventSignatures: {\n\t\t'did-message::v2020_12_25':\n\t\t\tcoreEventContracts[0].eventSignatures['did-message::v2020_12_25'],\n\t},\n}\n\nconst didMessageGlobalContractWithoutPayload = {\n\teventSignatures: {\n\t\t'did-message::v2020_12_25': {\n\t\t\t...coreEventContracts[0].eventSignatures['did-message::v2020_12_25'],\n\t\t\tisGlobal: true,\n\t\t\temitPayloadSchema: {\n\t\t\t\t...coreEventContracts[0].eventSignatures['did-message::v2020_12_25']\n\t\t\t\t\t.emitPayloadSchema,\n\t\t\t\tfields: {},\n\t\t\t},\n\t\t},\n\t},\n}\n\nconst targetOnlyPayload = {\n\teventSignatures: {\n\t\t'did-message::v2020_12_25': {\n\t\t\tisGlobal: true,\n\t\t\temitPayloadSchema: buildEmitTargetAndPayloadSchema({\n\t\t\t\teventName: 'did-message::v2020_12_15',\n\t\t\t\ttargetSchema: {\n\t\t\t\t\tid: 'test',\n\t\t\t\t\tfields: {\n\t\t\t\t\t\tnamespace: {\n\t\t\t\t\t\t\ttype: 'text',\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t}),\n\t\t},\n\t},\n}\n\nexport default class EventContractCleanerUtilTest extends AbstractSpruceTest {\n\t@test()\n\tprotected static async canGetEventContractCleanerUtil() {\n\t\tassert.isTruthy(eventContractCleanerUtil)\n\t}\n\n\t@test()\n\tprotected static async makesNoChangeToLocalContract() {\n\t\tconst cleaned =\n\t\t\teventContractCleanerUtil.cleanPayloadsAndPermissions(didMessageContract)\n\n\t\tassert.isEqualDeep(cleaned, didMessageContract)\n\t}\n\n\t@test()\n\tprotected static async stripsOutEntireEmitPayloadIfNoTargetNorPayload() {\n\t\tconst cleaned = eventContractCleanerUtil.cleanPayloadsAndPermissions(\n\t\t\tdidMessageGlobalContractWithoutPayload\n\t\t)\n\n\t\tassert.isFalsy(\n\t\t\tcleaned.eventSignatures['did-message::v2020_12_25']?.emitPayloadSchema\n\t\t)\n\t}\n\n\t@test()\n\tprotected static async keepsEmitPayloadIfOnlyTarget() {\n\t\tconst cleaned =\n\t\t\teventContractCleanerUtil.cleanPayloadsAndPermissions(targetOnlyPayload)\n\n\t\tassert.isTruthy(\n\t\t\tcleaned.eventSignatures['did-message::v2020_12_25']?.emitPayloadSchema\n\t\t)\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,IAAAA,kBAAA,GAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAC,uBAAA,CAAAH,OAAA;AACA,IAAAI,qBAAA,GAAAJ,OAAA;AAAuF,IAAAK,IAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,MAAA;AAAA,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAR,wBAAAQ,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,gBAAAK,OAAA,CAAAL,CAAA,0BAAAA,CAAA,sBAAAA,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC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,wBAAA,CAAAf,MAAA,qDAAAA,MAAA,OAAAmH,0BAAA,aAAAnH,MAAA,mCAAAD,KAAA,GAAAc,MAAA,CAAAE,wBAAA,CAAAf,MAAA,mCAAAA,MAAA,IAAAA,MAAA"}
|
|
@@ -17,8 +17,8 @@ var _applyDecoratedDescriptor2 = _interopRequireDefault(require("@babel/runtime/
|
|
|
17
17
|
var _testUtils = _interopRequireWildcard(require("@sprucelabs/test-utils"));
|
|
18
18
|
var _feature = _interopRequireDefault(require("../../features/feature.utilities"));
|
|
19
19
|
var _dec, _dec2, _class;
|
|
20
|
-
function _getRequireWildcardCache(
|
|
21
|
-
function _interopRequireWildcard(
|
|
20
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
21
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
22
22
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
|
23
23
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
24
24
|
var FeaturesUtilTest = exports["default"] = (_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) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FeaturesUtil.test.js","names":["_testUtils","_interopRequireWildcard","require","_feature","_interopRequireDefault","_dec","_dec2","_class","_getRequireWildcardCache","
|
|
1
|
+
{"version":3,"file":"FeaturesUtil.test.js","names":["_testUtils","_interopRequireWildcard","require","_feature","_interopRequireDefault","_dec","_dec2","_class","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","valueOf","FeaturesUtilTest","exports","test","_AbstractSpruceTest","_inherits2","_super","_classCallCheck2","_createClass2","key","value","_generatesActionFromFile","_asyncToGenerator2","_regenerator","mark","_callee","path","expected","actual","wrap","_callee$","_context","prev","next","featuresUtil","filePathToActionCode","assert","isEqual","stop","generatesActionFromFile","_x","_x2","AbstractSpruceTest","_applyDecoratedDescriptor2"],"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,IAAAA,UAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,QAAA,GAAAC,sBAAA,CAAAF,OAAA;AAA2D,IAAAG,IAAA,EAAAC,KAAA,EAAAC,MAAA;AAAA,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAR,wBAAAQ,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,gBAAAK,OAAA,CAAAL,CAAA,0BAAAA,CAAA,sBAAAA,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAjB,CAAA,EAAAc,CAAA,SAAAI,CAAA,GAAAR,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAI,CAAA,KAAAA,CAAA,CAAAX,GAAA,IAAAW,CAAA,CAAAC,GAAA,IAAAR,MAAA,CAAAC,cAAA,CAAA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aAAAP,gBAAA;IAAAQ,GAAA;IAAAC,KAAA;MAAA,IAAAC,wBAAA,OAAAC,kBAAA,2BAAAC,YAAA,YAAAC,IAAA,CALD,SAAAC,QAOCC,IAAY,EACZC,QAAgB;QAAA,IAAAC,MAAA;QAAA,OAAAL,YAAA,YAAAM,IAAA,UAAAC,SAAAC,QAAA;UAAA,kBAAAA,QAAA,CAAAC,IAAA,GAAAD,QAAA,CAAAE,IAAA;YAAA;cAEVL,MAAM,GAAGM,mBAAY,CAACC,oBAAoB,CAACT,IAAI,CAAC;cACtDU,iBAAM,CAACC,OAAO,CAACT,MAAM,EAAED,QAAQ,CAAC;YAAA;YAAA;cAAA,OAAAI,QAAA,CAAAO,IAAA;UAAA;QAAA,GAAAb,OAAA;MAAA,CAChC;MAAA,SAAAc,wBAAAC,EAAA,EAAAC,GAAA;QAAA,OAAApB,wBAAA,CAAAhB,KAAA,OAAAD,SAAA;MAAA;MAAA,OAAAmC,uBAAA;IAAA;EAAA;EAAA,OAAA5B,gBAAA;AAAA,EAb4C+B,qBAAkB,QAAAC,0BAAA,aAAAzE,MAAA,8BAAAF,IAAA,EAAAC,KAAA,GAAAc,MAAA,CAAAE,wBAAA,CAAAf,MAAA,8BAAAA,MAAA,IAAAA,MAAA"}
|
|
@@ -21,8 +21,8 @@ var _testUtils = _interopRequireWildcard(require("@sprucelabs/test-utils"));
|
|
|
21
21
|
var _JestJsonParser = _interopRequireDefault(require("../../tests/JestJsonParser"));
|
|
22
22
|
var _onTestFileResult = _interopRequireDefault(require("../support/onTestFileResult"));
|
|
23
23
|
var _dec, _dec2, _dec3, _dec4, _dec5, _dec6, _dec7, _dec8, _dec9, _dec10, _dec11, _dec12, _class, _class2;
|
|
24
|
-
function _getRequireWildcardCache(
|
|
25
|
-
function _interopRequireWildcard(
|
|
24
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
25
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
26
26
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2["default"])(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2["default"])(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2["default"])(this, result); }; }
|
|
27
27
|
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; } }
|
|
28
28
|
var JestJsonParserTest = exports["default"] = (_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) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JestJsonParser.test.js","names":["_jestJsonReporter","require","_testUtils","_interopRequireWildcard","_JestJsonParser","_interopRequireDefault","_onTestFileResult","_dec","_dec2","_dec3","_dec4","_dec5","_dec6","_dec7","_dec8","_dec9","_dec10","_dec11","_dec12","_class","_class2","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","valueOf","e","JestJsonParserTest","exports","test","_AbstractSpruceTest","_inherits2","_super","_classCallCheck2","_createClass2","value","_beforeEach","_asyncToGenerator2","_regenerator","mark","_callee","wrap","_callee$","_context","prev","next","_get2","parser","JestJsonParser","stop","beforeEach","canCreateJjp","assert","isTruthy","write","generatesEmptyResults","startRun","generateTestResults","testResults","getResults","isEqualDeep","totalTestFiles","canHandleSelfContainedWrite","data","testFiles","isLength","path","status","jestStatus","testFile","concat","START_DIVIDER","END_DIVIDER","JSON","stringify","onTestFileResult","Error","canHandleSelfContainedWriteWithTwoTests","multipleSelfContainedWritesWorks","partialWriteReturnsNothing","substr","isFalsy","canPartialWriteAcrossTwoWrites","firstPart","secondPart","canPartialWriteAndSelfContainedAcrossThreeWrites","canSelfContainedPlusPartial","firstSelfContained","splitIdx","length","canHandleGarbageAtFrontOfData","canHandlesSplitTestRestsWithGarbageInFrontAndDanglingEnd","canUpdateAsTestsCompletes","_testResults$testFile","_testResults$testFile2","completed","tests","name","errorMessages","duration","errorMessage","find","file","totalTestFilesComplete","totalFailed","totalPassed","totalTests","totalSkipped","totalTodo","AbstractSpruceTest","_defineProperty2","_applyDecoratedDescriptor2"],"sources":["../../../src/__tests__/implementation/JestJsonParser.test.ts"],"sourcesContent":["import { START_DIVIDER, END_DIVIDER } from '@sprucelabs/jest-json-reporter'\nimport AbstractSpruceTest, { test, assert } from '@sprucelabs/test-utils'\nimport JestJsonParser, { JsonResultKeys } from '../../tests/JestJsonParser'\nimport onTestFileResult from '../support/onTestFileResult'\nexport default class JestJsonParserTest extends AbstractSpruceTest {\n\tprivate static parser: JestJsonParser\n\n\tprotected static async beforeEach() {\n\t\tawait super.beforeEach()\n\t\tthis.parser = new JestJsonParser()\n\t}\n\n\t@test()\n\tprotected static canCreateJjp() {\n\t\tassert.isTruthy(this.parser.write)\n\t}\n\n\t@test()\n\tprotected static generatesEmptyResults() {\n\t\tconst startRun = this.generateTestResults('onRunStart')\n\n\t\tthis.parser.write(startRun)\n\n\t\tconst testResults = this.parser.getResults()\n\n\t\tassert.isEqualDeep(testResults, {\n\t\t\ttotalTestFiles: 43,\n\t\t})\n\t}\n\n\t@test()\n\tprotected static canHandleSelfContainedWrite() {\n\t\tconst data = this.generateTestResults(\n\t\t\t'onTestFileStart',\n\t\t\t'behavioral/errors/CreatingANewErrorBuilder.test.js'\n\t\t)\n\n\t\tthis.parser.write(this.generateTestResults('onRunStart'))\n\t\tthis.parser.write(data)\n\n\t\tconst testResults = this.parser.getResults()\n\t\tassert.isTruthy(testResults.testFiles)\n\n\t\tassert.isLength(testResults.testFiles, 1)\n\t\tassert.isEqualDeep(testResults.testFiles[0], {\n\t\t\tpath: `behavioral/errors/CreatingANewErrorBuilder.test.ts`,\n\t\t\tstatus: 'running',\n\t\t})\n\t}\n\n\tprivate static generateTestResults(\n\t\tjestStatus: JsonResultKeys,\n\t\ttestFile?: string\n\t): string {\n\t\tswitch (jestStatus) {\n\t\t\tcase 'onRunStart':\n\t\t\t\treturn `${START_DIVIDER}{\"status\":\"onRunStart\",\"results\":{\"numFailedTestSuites\":0,\"numFailedTests\":0,\"numPassedTestSuites\":0,\"numPassedTests\":0,\"numPendingTestSuites\":0,\"numPendingTests\":0,\"numRuntimeErrorTestSuites\":0,\"numTodoTests\":0,\"numTotalTestSuites\":43,\"numTotalTests\":0,\"openHandles\":[],\"snapshot\":{\"added\":0,\"didUpdate\":false,\"failure\":false,\"filesAdded\":0,\"filesRemoved\":0,\"filesRemovedList\":[],\"filesUnmatched\":0,\"filesUpdated\":0,\"matched\":0,\"total\":0,\"unchecked\":0,\"uncheckedKeysByFile\":[],\"unmatched\":0,\"updated\":0},\"startTime\":1603459399575,\"success\":false,\"testResults\":[],\"wasInterrupted\":false}}${END_DIVIDER}`\n\t\t\tcase 'onTestFileStart':\n\t\t\t\treturn `${START_DIVIDER}{\"status\":\"onTestFileStart\",\"test\":{\"context\":{\"config\":{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/private/var/folders/qw/v2bfr0c94bn37vclwvcltsj40000gn/T/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\":40472,\"path\":\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli/build/__tests__/${testFile}\"}}${END_DIVIDER}`\n\t\t\tcase 'onTestFileResult':\n\t\t\t\treturn `${START_DIVIDER}${JSON.stringify(\n\t\t\t\t\tonTestFileResult(testFile ?? 'missing')\n\t\t\t\t)}${END_DIVIDER}`\n\t\t\tdefault:\n\t\t\t\tthrow new Error('Status not implemented')\n\t\t}\n\t}\n\n\t@test()\n\tprotected static canHandleSelfContainedWriteWithTwoTests() {\n\t\tconst data =\n\t\t\tthis.generateTestResults(\n\t\t\t\t'onTestFileStart',\n\t\t\t\t'behavioral/errors/CreatingANewErrorBuilder.test.js'\n\t\t\t) +\n\t\t\tthis.generateTestResults(\n\t\t\t\t'onTestFileStart',\n\t\t\t\t'behavioral/tests/RunningTests.test.js'\n\t\t\t)\n\t\tthis.parser.write(data)\n\n\t\tconst testResults = this.parser.getResults()\n\n\t\tassert.isTruthy(testResults.testFiles)\n\t\tassert.isLength(testResults.testFiles, 2)\n\t\tassert.isEqualDeep(testResults.testFiles, [\n\t\t\t{\n\t\t\t\tpath: `behavioral/errors/CreatingANewErrorBuilder.test.ts`,\n\t\t\t\tstatus: 'running',\n\t\t\t},\n\t\t\t{\n\t\t\t\tpath: `behavioral/tests/RunningTests.test.ts`,\n\t\t\t\tstatus: 'running',\n\t\t\t},\n\t\t])\n\t}\n\n\t@test()\n\tprotected static multipleSelfContainedWritesWorks() {\n\t\tthis.parser.write(\n\t\t\tthis.generateTestResults(\n\t\t\t\t'onTestFileStart',\n\t\t\t\t`behavioral/errors/CreatingANewErrorBuilder.test.js`\n\t\t\t)\n\t\t)\n\n\t\tthis.parser.write(\n\t\t\tthis.generateTestResults(\n\t\t\t\t'onTestFileStart',\n\t\t\t\t`behavioral/tests/RunningTests.test.js`\n\t\t\t)\n\t\t)\n\t\tconst testResults = this.parser.getResults()\n\n\t\tassert.isTruthy(testResults.testFiles)\n\t\tassert.isLength(testResults.testFiles, 2)\n\t\tassert.isEqualDeep(testResults.testFiles, [\n\t\t\t{\n\t\t\t\tpath: `behavioral/errors/CreatingANewErrorBuilder.test.ts`,\n\t\t\t\tstatus: 'running',\n\t\t\t},\n\t\t\t{\n\t\t\t\tpath: `behavioral/tests/RunningTests.test.ts`,\n\t\t\t\tstatus: 'running',\n\t\t\t},\n\t\t])\n\t}\n\n\t@test()\n\tprotected static partialWriteReturnsNothing() {\n\t\tconst data = this.generateTestResults(\n\t\t\t'onTestFileStart',\n\t\t\t'behavioral/errors/KeepingErrorsInSync.test.js'\n\t\t).substr(0, 100)\n\n\t\tthis.parser.write(data)\n\n\t\tconst testResults = this.parser.getResults()\n\t\tassert.isFalsy(testResults.testFiles)\n\t}\n\n\t@test()\n\tprotected static canPartialWriteAcrossTwoWrites() {\n\t\tconst data = this.generateTestResults(\n\t\t\t'onTestFileStart',\n\t\t\t'behavioral/errors/KeepingErrorsInSync.test.js'\n\t\t)\n\n\t\tconst firstPart = data.substr(0, 100)\n\t\tconst secondPart = data.substr(100)\n\n\t\tthis.parser.write(firstPart)\n\t\tthis.parser.write(secondPart)\n\n\t\tconst testResults = this.parser.getResults()\n\n\t\tassert.isTruthy(testResults.testFiles)\n\t\tassert.isLength(testResults.testFiles, 1)\n\n\t\tassert.isEqualDeep(testResults.testFiles[0], {\n\t\t\tpath: `behavioral/errors/KeepingErrorsInSync.test.ts`,\n\t\t\tstatus: 'running',\n\t\t})\n\t}\n\n\t@test()\n\tprotected static canPartialWriteAndSelfContainedAcrossThreeWrites() {\n\t\tconst data = this.generateTestResults(\n\t\t\t'onTestFileStart',\n\t\t\t'behavioral/errors/KeepingErrorsInSync.test.js'\n\t\t)\n\n\t\tconst firstPart = data.substr(0, 100)\n\t\tconst secondPart = data.substr(100)\n\n\t\tthis.parser.write(this.generateTestResults('onRunStart'))\n\t\tthis.parser.write(firstPart)\n\t\tthis.parser.write(secondPart)\n\t\tthis.parser.write(\n\t\t\tthis.generateTestResults(\n\t\t\t\t'onTestFileStart',\n\t\t\t\t'behavioral/tests/CreatingANewErrorBuilder.test.js'\n\t\t\t)\n\t\t)\n\n\t\tconst testResults = this.parser.getResults()\n\n\t\tassert.isEqualDeep(testResults, {\n\t\t\ttotalTestFiles: 43,\n\t\t\ttestFiles: [\n\t\t\t\t{\n\t\t\t\t\tpath: 'behavioral/errors/KeepingErrorsInSync.test.ts',\n\t\t\t\t\tstatus: 'running',\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: 'behavioral/tests/CreatingANewErrorBuilder.test.ts',\n\t\t\t\t\tstatus: 'running',\n\t\t\t\t},\n\t\t\t],\n\t\t})\n\t}\n\n\t@test()\n\tprotected static canSelfContainedPlusPartial() {\n\t\tconst firstSelfContained = this.generateTestResults(\n\t\t\t'onTestFileStart',\n\t\t\t`behavioral/errors/KeepingErrorsInSync.test.js`\n\t\t)\n\t\tconst data =\n\t\t\tfirstSelfContained +\n\t\t\tthis.generateTestResults(\n\t\t\t\t'onTestFileStart',\n\t\t\t\t'behavioral/tests/CreatingANewErrorBuilder.test.js'\n\t\t\t)\n\n\t\tconst splitIdx = firstSelfContained.length + 500\n\t\tconst firstPart = data.substr(0, splitIdx)\n\t\tconst secondPart = data.substr(splitIdx)\n\n\t\tthis.parser.write(firstPart)\n\t\tthis.parser.write(secondPart)\n\n\t\tconst testResults = this.parser.getResults()\n\t\tassert.isTruthy(testResults.testFiles)\n\t\tassert.isLength(testResults.testFiles, 2)\n\n\t\tassert.isEqualDeep(testResults.testFiles[0], {\n\t\t\tpath: `behavioral/errors/KeepingErrorsInSync.test.ts`,\n\t\t\tstatus: 'running',\n\t\t})\n\n\t\tassert.isEqualDeep(testResults.testFiles[1], {\n\t\t\tpath: 'behavioral/tests/CreatingANewErrorBuilder.test.ts',\n\t\t\tstatus: 'running',\n\t\t})\n\t}\n\n\t@test()\n\tprotected static canHandleGarbageAtFrontOfData() {\n\t\tconst data =\n\t\t\t'yarn test run\\nother garbage' +\n\t\t\tthis.generateTestResults(\n\t\t\t\t'onTestFileStart',\n\t\t\t\t'behavioral/errors/CreatingANewErrorBuilder.test.js'\n\t\t\t)\n\t\tthis.parser.write(data)\n\n\t\tconst testResults = this.parser.getResults()\n\n\t\tassert.isTruthy(testResults.testFiles)\n\t\tassert.isLength(testResults.testFiles, 1)\n\t\tassert.isEqualDeep(testResults.testFiles[0], {\n\t\t\tpath: `behavioral/errors/CreatingANewErrorBuilder.test.ts`,\n\t\t\tstatus: 'running',\n\t\t})\n\t}\n\n\t@test()\n\tprotected static canHandlesSplitTestRestsWithGarbageInFrontAndDanglingEnd() {\n\t\tthis.parser.write(\n\t\t\t'yarn run go team ***************************START_JSON_DIVIDER***************************'\n\t\t)\n\t\tthis.parser.write(\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\":50540,\"path\":\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli/build/__tests__/behavioral/tests/RunningTests.test.js\"}}'\n\t\t)\n\t\t/* eslint-disable no-useless-escape */\n\t\tthis.parser\n\t\t\t.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\"}}`)\n\n\t\tconst testResults = this.parser.getResults()\n\n\t\tassert.isTruthy(testResults.testFiles)\n\t\tassert.isLength(testResults.testFiles, 2)\n\t}\n\n\t@test()\n\tprotected static canUpdateAsTestsCompletes() {\n\t\tconst data = this.generateTestResults(\n\t\t\t'onTestFileStart',\n\t\t\t'behavioral/errors/CreatingANewErrorBuilder.test.js'\n\t\t)\n\n\t\tthis.parser.write(data)\n\n\t\tconst completed = this.generateTestResults(\n\t\t\t'onTestFileResult',\n\t\t\t'behavioral/errors/CreatingANewErrorBuilder.test.js'\n\t\t)\n\n\t\tthis.parser.write(completed)\n\n\t\tconst testResults = this.parser.getResults()\n\n\t\tassert.isTruthy(testResults.testFiles)\n\t\tassert.isLength(testResults.testFiles, 11)\n\n\t\tassert.isEqualDeep(testResults, {\n\t\t\ttotalTestFiles: 39,\n\t\t\ttestFiles: [\n\t\t\t\t{\n\t\t\t\t\tpath: 'behavioral/errors/CreatingANewErrorBuilder.test.ts',\n\t\t\t\t\tstatus: 'running',\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: 'implementation/CasualNameUtility.test.ts',\n\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\ttests: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'No name returns friend',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 2,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'Just last name to just last name',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 0,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'First name only to first name only',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 1,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'last and first name to First Last initial',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 0,\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: 'implementation/PhoneUtility.test.ts',\n\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\ttests: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'canMatchDummyNumber',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 1,\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: 'implementation/TokenUtility.test.ts',\n\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\ttests: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'exists',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 0,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'canGenerateTokenForPerson',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 10,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'generatesValidToken',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 1,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'decodesAndVerifiesValidToken',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 1,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'decodesValidToken',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 1,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'verifyFailsOnBadSecret',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 17,\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: 'implementation/RoleStore.test.ts',\n\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\ttests: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'canCreateOrgStore',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 4,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'canGenerateBaseRoles',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 80,\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: 'implementation/PersonRoleStore.test.ts',\n\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\ttests: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'personRole',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 6,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'canGivePersonGlobalRole',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 88,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'canGiveRoleAndThenTakeItAway',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 25,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'canAssignOrgRole',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 30,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'removeRoleFromOrgDoesNotRemoveGlobal',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 28,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'cantAssignSameRoleTwice',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 14,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'canAddRemoveThenReAddRole',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 18,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'removesTheCorrectRole',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 19,\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: 'implementation/ContractValidator.test.ts',\n\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\ttests: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'canRegisterContract',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 2,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'cannotMixinContractWithDuplicateEvents',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 0,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'canClearEventsFromContract',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 1,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'clearingUnknownEventThrowsError',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 1,\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: 'implementation/MercuryServer.test.ts',\n\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\ttests: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'canCreateServer',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 28,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'throwsWhenEmittingBadEvent',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 21,\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: 'behavioral/UpdatingARole.test.ts',\n\t\t\t\t\tstatus: 'failed',\n\t\t\t\t\terrorMessage: testResults.testFiles.find(\n\t\t\t\t\t\t(file) => file.path === 'behavioral/UpdatingARole.test.ts'\n\t\t\t\t\t)?.errorMessage,\n\t\t\t\t\ttests: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'hasUpdateRoleEvent',\n\t\t\t\t\t\t\tstatus: 'failed',\n\t\t\t\t\t\t\terrorMessages: testResults.testFiles.find(\n\t\t\t\t\t\t\t\t(file) => file.path === 'behavioral/UpdatingARole.test.ts'\n\t\t\t\t\t\t\t)?.tests?.[0]?.errorMessages,\n\t\t\t\t\t\t\tduration: 24,\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: 'implementation/SkillGenerator.test.ts',\n\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\ttests: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'canInstantiate',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 1,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'generatesNewSkillValuesByName',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 1,\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: 'implementation/Database.test.ts',\n\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\ttests: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'throws error when updating record not found (neDb)',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 3,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'can delete record (mongo)',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 47,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'can upsert (neDb)',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 5,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'can create a compound field unique index (mongo)',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 82,\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t},\n\t\t\t],\n\t\t\ttotalTestFilesComplete: 20,\n\t\t\ttotalFailed: 1,\n\t\t\ttotalPassed: 181,\n\t\t\ttotalTests: 183,\n\t\t\ttotalSkipped: 1,\n\t\t\ttotalTodo: 0,\n\t\t})\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAA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AAjB,MAAA,uCAAAA,MAAA,OAAAgI,0BAAA,aAAAhI,MAAA,iCAAAP,KAAA,GAAAsB,MAAA,CAAAE,wBAAA,CAAAjB,MAAA,iCAAAA,MAAA,OAAAgI,0BAAA,aAAAhI,MAAA,qCAAAN,KAAA,GAAAqB,MAAA,CAAAE,wBAAA,CAAAjB,MAAA,qCAAAA,MAAA,OAAAgI,0BAAA,aAAAhI,MAAA,uDAAAL,KAAA,GAAAoB,MAAA,CAAAE,wBAAA,CAAAjB,MAAA,uDAAAA,MAAA,OAAAgI,0BAAA,aAAAhI,MAAA,kCAAAJ,KAAA,GAAAmB,MAAA,CAAAE,wBAAA,CAAAjB,MAAA,kCAAAA,MAAA,OAAAgI,0BAAA,aAAAhI,MAAA,oCAAAH,MAAA,GAAAkB,MAAA,CAAAE,wBAAA,CAAAjB,MAAA,oCAAAA,MAAA,OAAAgI,0BAAA,aAAAhI,MAAA,+DAAAF,MAAA,GAAAiB,MAAA,CAAAE,wBAAA,CAAAjB,MAAA,+DAAAA,MAAA,OAAAgI,0BAAA,aAAAhI,MAAA,gCAAAD,MAAA,GAAAgB,MAAA,CAAAE,wBAAA,CAAAjB,MAAA,gCAAAA,MAAA,IAAAA,MAAA"}
|
|
1
|
+
{"version":3,"file":"JestJsonParser.test.js","names":["_jestJsonReporter","require","_testUtils","_interopRequireWildcard","_JestJsonParser","_interopRequireDefault","_onTestFileResult","_dec","_dec2","_dec3","_dec4","_dec5","_dec6","_dec7","_dec8","_dec9","_dec10","_dec11","_dec12","_class","_class2","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","_typeof","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","prototype","hasOwnProperty","call","i","set","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","valueOf","JestJsonParserTest","exports","test","_AbstractSpruceTest","_inherits2","_super","_classCallCheck2","_createClass2","key","value","_beforeEach","_asyncToGenerator2","_regenerator","mark","_callee","wrap","_callee$","_context","prev","next","_get2","parser","JestJsonParser","stop","beforeEach","canCreateJjp","assert","isTruthy","write","generatesEmptyResults","startRun","generateTestResults","testResults","getResults","isEqualDeep","totalTestFiles","canHandleSelfContainedWrite","data","testFiles","isLength","path","status","jestStatus","testFile","concat","START_DIVIDER","END_DIVIDER","JSON","stringify","onTestFileResult","Error","canHandleSelfContainedWriteWithTwoTests","multipleSelfContainedWritesWorks","partialWriteReturnsNothing","substr","isFalsy","canPartialWriteAcrossTwoWrites","firstPart","secondPart","canPartialWriteAndSelfContainedAcrossThreeWrites","canSelfContainedPlusPartial","firstSelfContained","splitIdx","length","canHandleGarbageAtFrontOfData","canHandlesSplitTestRestsWithGarbageInFrontAndDanglingEnd","canUpdateAsTestsCompletes","_testResults$testFile","_testResults$testFile2","completed","tests","name","errorMessages","duration","errorMessage","find","file","totalTestFilesComplete","totalFailed","totalPassed","totalTests","totalSkipped","totalTodo","AbstractSpruceTest","_defineProperty2","_applyDecoratedDescriptor2"],"sources":["../../../src/__tests__/implementation/JestJsonParser.test.ts"],"sourcesContent":["import { START_DIVIDER, END_DIVIDER } from '@sprucelabs/jest-json-reporter'\nimport AbstractSpruceTest, { test, assert } from '@sprucelabs/test-utils'\nimport JestJsonParser, { JsonResultKeys } from '../../tests/JestJsonParser'\nimport onTestFileResult from '../support/onTestFileResult'\nexport default class JestJsonParserTest extends AbstractSpruceTest {\n\tprivate static parser: JestJsonParser\n\n\tprotected static async beforeEach() {\n\t\tawait super.beforeEach()\n\t\tthis.parser = new JestJsonParser()\n\t}\n\n\t@test()\n\tprotected static canCreateJjp() {\n\t\tassert.isTruthy(this.parser.write)\n\t}\n\n\t@test()\n\tprotected static generatesEmptyResults() {\n\t\tconst startRun = this.generateTestResults('onRunStart')\n\n\t\tthis.parser.write(startRun)\n\n\t\tconst testResults = this.parser.getResults()\n\n\t\tassert.isEqualDeep(testResults, {\n\t\t\ttotalTestFiles: 43,\n\t\t})\n\t}\n\n\t@test()\n\tprotected static canHandleSelfContainedWrite() {\n\t\tconst data = this.generateTestResults(\n\t\t\t'onTestFileStart',\n\t\t\t'behavioral/errors/CreatingANewErrorBuilder.test.js'\n\t\t)\n\n\t\tthis.parser.write(this.generateTestResults('onRunStart'))\n\t\tthis.parser.write(data)\n\n\t\tconst testResults = this.parser.getResults()\n\t\tassert.isTruthy(testResults.testFiles)\n\n\t\tassert.isLength(testResults.testFiles, 1)\n\t\tassert.isEqualDeep(testResults.testFiles[0], {\n\t\t\tpath: `behavioral/errors/CreatingANewErrorBuilder.test.ts`,\n\t\t\tstatus: 'running',\n\t\t})\n\t}\n\n\tprivate static generateTestResults(\n\t\tjestStatus: JsonResultKeys,\n\t\ttestFile?: string\n\t): string {\n\t\tswitch (jestStatus) {\n\t\t\tcase 'onRunStart':\n\t\t\t\treturn `${START_DIVIDER}{\"status\":\"onRunStart\",\"results\":{\"numFailedTestSuites\":0,\"numFailedTests\":0,\"numPassedTestSuites\":0,\"numPassedTests\":0,\"numPendingTestSuites\":0,\"numPendingTests\":0,\"numRuntimeErrorTestSuites\":0,\"numTodoTests\":0,\"numTotalTestSuites\":43,\"numTotalTests\":0,\"openHandles\":[],\"snapshot\":{\"added\":0,\"didUpdate\":false,\"failure\":false,\"filesAdded\":0,\"filesRemoved\":0,\"filesRemovedList\":[],\"filesUnmatched\":0,\"filesUpdated\":0,\"matched\":0,\"total\":0,\"unchecked\":0,\"uncheckedKeysByFile\":[],\"unmatched\":0,\"updated\":0},\"startTime\":1603459399575,\"success\":false,\"testResults\":[],\"wasInterrupted\":false}}${END_DIVIDER}`\n\t\t\tcase 'onTestFileStart':\n\t\t\t\treturn `${START_DIVIDER}{\"status\":\"onTestFileStart\",\"test\":{\"context\":{\"config\":{\"automock\":false,\"cache\":true,\"cacheDirectory\":\"/private/var/folders/qw/v2bfr0c94bn37vclwvcltsj40000gn/T/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\":40472,\"path\":\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli/build/__tests__/${testFile}\"}}${END_DIVIDER}`\n\t\t\tcase 'onTestFileResult':\n\t\t\t\treturn `${START_DIVIDER}${JSON.stringify(\n\t\t\t\t\tonTestFileResult(testFile ?? 'missing')\n\t\t\t\t)}${END_DIVIDER}`\n\t\t\tdefault:\n\t\t\t\tthrow new Error('Status not implemented')\n\t\t}\n\t}\n\n\t@test()\n\tprotected static canHandleSelfContainedWriteWithTwoTests() {\n\t\tconst data =\n\t\t\tthis.generateTestResults(\n\t\t\t\t'onTestFileStart',\n\t\t\t\t'behavioral/errors/CreatingANewErrorBuilder.test.js'\n\t\t\t) +\n\t\t\tthis.generateTestResults(\n\t\t\t\t'onTestFileStart',\n\t\t\t\t'behavioral/tests/RunningTests.test.js'\n\t\t\t)\n\t\tthis.parser.write(data)\n\n\t\tconst testResults = this.parser.getResults()\n\n\t\tassert.isTruthy(testResults.testFiles)\n\t\tassert.isLength(testResults.testFiles, 2)\n\t\tassert.isEqualDeep(testResults.testFiles, [\n\t\t\t{\n\t\t\t\tpath: `behavioral/errors/CreatingANewErrorBuilder.test.ts`,\n\t\t\t\tstatus: 'running',\n\t\t\t},\n\t\t\t{\n\t\t\t\tpath: `behavioral/tests/RunningTests.test.ts`,\n\t\t\t\tstatus: 'running',\n\t\t\t},\n\t\t])\n\t}\n\n\t@test()\n\tprotected static multipleSelfContainedWritesWorks() {\n\t\tthis.parser.write(\n\t\t\tthis.generateTestResults(\n\t\t\t\t'onTestFileStart',\n\t\t\t\t`behavioral/errors/CreatingANewErrorBuilder.test.js`\n\t\t\t)\n\t\t)\n\n\t\tthis.parser.write(\n\t\t\tthis.generateTestResults(\n\t\t\t\t'onTestFileStart',\n\t\t\t\t`behavioral/tests/RunningTests.test.js`\n\t\t\t)\n\t\t)\n\t\tconst testResults = this.parser.getResults()\n\n\t\tassert.isTruthy(testResults.testFiles)\n\t\tassert.isLength(testResults.testFiles, 2)\n\t\tassert.isEqualDeep(testResults.testFiles, [\n\t\t\t{\n\t\t\t\tpath: `behavioral/errors/CreatingANewErrorBuilder.test.ts`,\n\t\t\t\tstatus: 'running',\n\t\t\t},\n\t\t\t{\n\t\t\t\tpath: `behavioral/tests/RunningTests.test.ts`,\n\t\t\t\tstatus: 'running',\n\t\t\t},\n\t\t])\n\t}\n\n\t@test()\n\tprotected static partialWriteReturnsNothing() {\n\t\tconst data = this.generateTestResults(\n\t\t\t'onTestFileStart',\n\t\t\t'behavioral/errors/KeepingErrorsInSync.test.js'\n\t\t).substr(0, 100)\n\n\t\tthis.parser.write(data)\n\n\t\tconst testResults = this.parser.getResults()\n\t\tassert.isFalsy(testResults.testFiles)\n\t}\n\n\t@test()\n\tprotected static canPartialWriteAcrossTwoWrites() {\n\t\tconst data = this.generateTestResults(\n\t\t\t'onTestFileStart',\n\t\t\t'behavioral/errors/KeepingErrorsInSync.test.js'\n\t\t)\n\n\t\tconst firstPart = data.substr(0, 100)\n\t\tconst secondPart = data.substr(100)\n\n\t\tthis.parser.write(firstPart)\n\t\tthis.parser.write(secondPart)\n\n\t\tconst testResults = this.parser.getResults()\n\n\t\tassert.isTruthy(testResults.testFiles)\n\t\tassert.isLength(testResults.testFiles, 1)\n\n\t\tassert.isEqualDeep(testResults.testFiles[0], {\n\t\t\tpath: `behavioral/errors/KeepingErrorsInSync.test.ts`,\n\t\t\tstatus: 'running',\n\t\t})\n\t}\n\n\t@test()\n\tprotected static canPartialWriteAndSelfContainedAcrossThreeWrites() {\n\t\tconst data = this.generateTestResults(\n\t\t\t'onTestFileStart',\n\t\t\t'behavioral/errors/KeepingErrorsInSync.test.js'\n\t\t)\n\n\t\tconst firstPart = data.substr(0, 100)\n\t\tconst secondPart = data.substr(100)\n\n\t\tthis.parser.write(this.generateTestResults('onRunStart'))\n\t\tthis.parser.write(firstPart)\n\t\tthis.parser.write(secondPart)\n\t\tthis.parser.write(\n\t\t\tthis.generateTestResults(\n\t\t\t\t'onTestFileStart',\n\t\t\t\t'behavioral/tests/CreatingANewErrorBuilder.test.js'\n\t\t\t)\n\t\t)\n\n\t\tconst testResults = this.parser.getResults()\n\n\t\tassert.isEqualDeep(testResults, {\n\t\t\ttotalTestFiles: 43,\n\t\t\ttestFiles: [\n\t\t\t\t{\n\t\t\t\t\tpath: 'behavioral/errors/KeepingErrorsInSync.test.ts',\n\t\t\t\t\tstatus: 'running',\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: 'behavioral/tests/CreatingANewErrorBuilder.test.ts',\n\t\t\t\t\tstatus: 'running',\n\t\t\t\t},\n\t\t\t],\n\t\t})\n\t}\n\n\t@test()\n\tprotected static canSelfContainedPlusPartial() {\n\t\tconst firstSelfContained = this.generateTestResults(\n\t\t\t'onTestFileStart',\n\t\t\t`behavioral/errors/KeepingErrorsInSync.test.js`\n\t\t)\n\t\tconst data =\n\t\t\tfirstSelfContained +\n\t\t\tthis.generateTestResults(\n\t\t\t\t'onTestFileStart',\n\t\t\t\t'behavioral/tests/CreatingANewErrorBuilder.test.js'\n\t\t\t)\n\n\t\tconst splitIdx = firstSelfContained.length + 500\n\t\tconst firstPart = data.substr(0, splitIdx)\n\t\tconst secondPart = data.substr(splitIdx)\n\n\t\tthis.parser.write(firstPart)\n\t\tthis.parser.write(secondPart)\n\n\t\tconst testResults = this.parser.getResults()\n\t\tassert.isTruthy(testResults.testFiles)\n\t\tassert.isLength(testResults.testFiles, 2)\n\n\t\tassert.isEqualDeep(testResults.testFiles[0], {\n\t\t\tpath: `behavioral/errors/KeepingErrorsInSync.test.ts`,\n\t\t\tstatus: 'running',\n\t\t})\n\n\t\tassert.isEqualDeep(testResults.testFiles[1], {\n\t\t\tpath: 'behavioral/tests/CreatingANewErrorBuilder.test.ts',\n\t\t\tstatus: 'running',\n\t\t})\n\t}\n\n\t@test()\n\tprotected static canHandleGarbageAtFrontOfData() {\n\t\tconst data =\n\t\t\t'yarn test run\\nother garbage' +\n\t\t\tthis.generateTestResults(\n\t\t\t\t'onTestFileStart',\n\t\t\t\t'behavioral/errors/CreatingANewErrorBuilder.test.js'\n\t\t\t)\n\t\tthis.parser.write(data)\n\n\t\tconst testResults = this.parser.getResults()\n\n\t\tassert.isTruthy(testResults.testFiles)\n\t\tassert.isLength(testResults.testFiles, 1)\n\t\tassert.isEqualDeep(testResults.testFiles[0], {\n\t\t\tpath: `behavioral/errors/CreatingANewErrorBuilder.test.ts`,\n\t\t\tstatus: 'running',\n\t\t})\n\t}\n\n\t@test()\n\tprotected static canHandlesSplitTestRestsWithGarbageInFrontAndDanglingEnd() {\n\t\tthis.parser.write(\n\t\t\t'yarn run go team ***************************START_JSON_DIVIDER***************************'\n\t\t)\n\t\tthis.parser.write(\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\":50540,\"path\":\"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli/build/__tests__/behavioral/tests/RunningTests.test.js\"}}'\n\t\t)\n\t\t/* eslint-disable no-useless-escape */\n\t\tthis.parser\n\t\t\t.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\"}}`)\n\n\t\tconst testResults = this.parser.getResults()\n\n\t\tassert.isTruthy(testResults.testFiles)\n\t\tassert.isLength(testResults.testFiles, 2)\n\t}\n\n\t@test()\n\tprotected static canUpdateAsTestsCompletes() {\n\t\tconst data = this.generateTestResults(\n\t\t\t'onTestFileStart',\n\t\t\t'behavioral/errors/CreatingANewErrorBuilder.test.js'\n\t\t)\n\n\t\tthis.parser.write(data)\n\n\t\tconst completed = this.generateTestResults(\n\t\t\t'onTestFileResult',\n\t\t\t'behavioral/errors/CreatingANewErrorBuilder.test.js'\n\t\t)\n\n\t\tthis.parser.write(completed)\n\n\t\tconst testResults = this.parser.getResults()\n\n\t\tassert.isTruthy(testResults.testFiles)\n\t\tassert.isLength(testResults.testFiles, 11)\n\n\t\tassert.isEqualDeep(testResults, {\n\t\t\ttotalTestFiles: 39,\n\t\t\ttestFiles: [\n\t\t\t\t{\n\t\t\t\t\tpath: 'behavioral/errors/CreatingANewErrorBuilder.test.ts',\n\t\t\t\t\tstatus: 'running',\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: 'implementation/CasualNameUtility.test.ts',\n\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\ttests: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'No name returns friend',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 2,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'Just last name to just last name',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 0,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'First name only to first name only',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 1,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'last and first name to First Last initial',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 0,\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: 'implementation/PhoneUtility.test.ts',\n\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\ttests: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'canMatchDummyNumber',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 1,\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: 'implementation/TokenUtility.test.ts',\n\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\ttests: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'exists',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 0,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'canGenerateTokenForPerson',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 10,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'generatesValidToken',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 1,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'decodesAndVerifiesValidToken',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 1,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'decodesValidToken',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 1,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'verifyFailsOnBadSecret',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 17,\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: 'implementation/RoleStore.test.ts',\n\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\ttests: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'canCreateOrgStore',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 4,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'canGenerateBaseRoles',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 80,\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: 'implementation/PersonRoleStore.test.ts',\n\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\ttests: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'personRole',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 6,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'canGivePersonGlobalRole',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 88,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'canGiveRoleAndThenTakeItAway',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 25,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'canAssignOrgRole',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 30,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'removeRoleFromOrgDoesNotRemoveGlobal',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 28,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'cantAssignSameRoleTwice',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 14,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'canAddRemoveThenReAddRole',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 18,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'removesTheCorrectRole',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 19,\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: 'implementation/ContractValidator.test.ts',\n\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\ttests: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'canRegisterContract',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 2,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'cannotMixinContractWithDuplicateEvents',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 0,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'canClearEventsFromContract',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 1,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'clearingUnknownEventThrowsError',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 1,\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: 'implementation/MercuryServer.test.ts',\n\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\ttests: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'canCreateServer',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 28,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'throwsWhenEmittingBadEvent',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 21,\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: 'behavioral/UpdatingARole.test.ts',\n\t\t\t\t\tstatus: 'failed',\n\t\t\t\t\terrorMessage: testResults.testFiles.find(\n\t\t\t\t\t\t(file) => file.path === 'behavioral/UpdatingARole.test.ts'\n\t\t\t\t\t)?.errorMessage,\n\t\t\t\t\ttests: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'hasUpdateRoleEvent',\n\t\t\t\t\t\t\tstatus: 'failed',\n\t\t\t\t\t\t\terrorMessages: testResults.testFiles.find(\n\t\t\t\t\t\t\t\t(file) => file.path === 'behavioral/UpdatingARole.test.ts'\n\t\t\t\t\t\t\t)?.tests?.[0]?.errorMessages,\n\t\t\t\t\t\t\tduration: 24,\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: 'implementation/SkillGenerator.test.ts',\n\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\ttests: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'canInstantiate',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 1,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'generatesNewSkillValuesByName',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 1,\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t},\n\t\t\t\t{\n\t\t\t\t\tpath: 'implementation/Database.test.ts',\n\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\ttests: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'throws error when updating record not found (neDb)',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 3,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'can delete record (mongo)',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 47,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'can upsert (neDb)',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 5,\n\t\t\t\t\t\t},\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'can create a compound field unique index (mongo)',\n\t\t\t\t\t\t\tstatus: 'passed',\n\t\t\t\t\t\t\terrorMessages: [],\n\t\t\t\t\t\t\tduration: 82,\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t},\n\t\t\t],\n\t\t\ttotalTestFilesComplete: 20,\n\t\t\ttotalFailed: 1,\n\t\t\ttotalPassed: 181,\n\t\t\ttotalTests: 183,\n\t\t\ttotalSkipped: 1,\n\t\t\ttotalTodo: 0,\n\t\t})\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA,IAAAA,iBAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,uBAAA,CAAAF,OAAA;AACA,IAAAG,eAAA,GAAAC,sBAAA,CAAAJ,OAAA;AACA,IAAAK,iBAAA,GAAAD,sBAAA,CAAAJ,OAAA;AAA0D,IAAAM,IAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,KAAA,EAAAC,MAAA,EAAAC,MAAA,EAAAC,MAAA,EAAAC,MAAA,EAAAC,OAAA;AAAA,SAAAC,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,yBAAAC,CAAA,WAAAA,CAAA,GAAA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MAAA,OAAA+H,0BAAA,aAAA/H,MAAA,oCAAAH,MAAA,GAAAiB,MAAA,CAAAE,wBAAA,CAAAhB,MAAA,oCAAAA,MAAA,OAAA+H,0BAAA,aAAA/H,MAAA,+DAAAF,MAAA,GAAAgB,MAAA,CAAAE,wBAAA,CAAAhB,MAAA,+DAAAA,MAAA,OAAA+H,0BAAA,aAAA/H,MAAA,gCAAAD,MAAA,GAAAe,MAAA,CAAAE,wBAAA,CAAAhB,MAAA,gCAAAA,MAAA,IAAAA,MAAA"}
|
package/build/__tests__/testDirsAndFiles/event_with_emit_and_response_payloads/event.options.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { EventSignature } from '@sprucelabs/mercury-types';
|
|
2
|
-
|
|
2
|
+
type Options = Omit<EventSignature, 'responsePayloadSchema' | 'emitPayloadSchema' | 'listenPermissionContract' | 'emitPermissionContract'>;
|
|
3
3
|
declare const eventOptions: Options;
|
|
4
4
|
export default eventOptions;
|
|
@@ -12,11 +12,11 @@ interface FormActionDone {
|
|
|
12
12
|
interface FormActionCancel {
|
|
13
13
|
type: FormBuilderActionType.Cancel;
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
type FormActionEditField<T extends Schema> = {
|
|
16
16
|
type: FormBuilderActionType.EditField;
|
|
17
17
|
fieldName: SchemaFieldNames<T>;
|
|
18
18
|
};
|
|
19
|
-
|
|
19
|
+
type FormAction<T extends Schema> = FormActionDone | FormActionCancel | FormActionEditField<T>;
|
|
20
20
|
export interface FormPresentationOptions<T extends Schema, F extends SchemaFieldNames<T> = SchemaFieldNames<T>> {
|
|
21
21
|
headline?: string;
|
|
22
22
|
showOverview?: boolean;
|
|
@@ -22,14 +22,14 @@ interface QuizPresentationOptions<T extends Schema, Q extends QuizQuestions> ext
|
|
|
22
22
|
questions?: QuizAnswerFieldNames<Q>[];
|
|
23
23
|
randomizeQuestions?: boolean;
|
|
24
24
|
}
|
|
25
|
-
|
|
26
|
-
|
|
25
|
+
type QuizAnswerFieldNames<Q extends QuizQuestions> = Extract<keyof Q, string>;
|
|
26
|
+
type QuizAnswers<Q extends QuizQuestions> = {
|
|
27
27
|
[K in QuizAnswerFieldNames<Q>]: string;
|
|
28
28
|
};
|
|
29
|
-
|
|
29
|
+
type QuizAnswerValidities<Q extends QuizQuestions> = {
|
|
30
30
|
[K in QuizAnswerFieldNames<Q>]: AnswerValidity;
|
|
31
31
|
};
|
|
32
|
-
|
|
32
|
+
type QuizPresentationResults<Q extends QuizQuestions> = {
|
|
33
33
|
/** The answers that were given */
|
|
34
34
|
answers: QuizAnswers<Q>;
|
|
35
35
|
/** The answers right or wrong */
|
|
@@ -33,7 +33,7 @@ export default abstract class AbstractAction<S extends Schema = Schema> implemen
|
|
|
33
33
|
protected Writer<C extends WriterCode>(code: C, options?: Partial<WriterOptions>): WriterMap[C];
|
|
34
34
|
protected getFeature<C extends FeatureCode>(code: C): import("./features.types").FeatureMap[C];
|
|
35
35
|
protected getFeatureCodes(): FeatureCode[];
|
|
36
|
-
protected validateAndNormalizeOptions(options: SchemaPartialValues<S>): import("@sprucelabs/schema").SchemaValuesWithDefaults<S> extends infer T ? { [K in keyof T]: Exclude<import("@sprucelabs/schema").SchemaValuesWithDefaults<S>[K], null>; } : never;
|
|
36
|
+
protected validateAndNormalizeOptions(options: SchemaPartialValues<S>): import("@sprucelabs/schema").SchemaValuesWithDefaults<S> extends infer T extends Record<string, any> ? { [K in keyof T]: Exclude<import("@sprucelabs/schema").SchemaValuesWithDefaults<S>[K], null>; } : never;
|
|
37
37
|
protected resolveVersion(userSuppliedVersion: string | null | undefined, resolvedDestination: string): Promise<string>;
|
|
38
38
|
private askForVersionIfTodaysVersionDoesNotExist;
|
|
39
39
|
protected connectToApi(options?: ApiClientFactoryOptions): Promise<ApiClient>;
|
|
@@ -26,5 +26,5 @@ export interface FeatureActionFactoryOptions extends Omit<ActionOptions, 'parent
|
|
|
26
26
|
blockedCommands?: BlockedCommands;
|
|
27
27
|
optionOverrides?: OptionOverrides;
|
|
28
28
|
}
|
|
29
|
-
|
|
29
|
+
type ActionConstructor = new (options: ActionOptions) => AbstractAction;
|
|
30
30
|
export {};
|
|
@@ -32,5 +32,5 @@ export default class ActionOptionAsker<F extends FeatureCode = FeatureCode> {
|
|
|
32
32
|
private getCommandName;
|
|
33
33
|
private generateConfirmInstallMessage;
|
|
34
34
|
}
|
|
35
|
-
|
|
35
|
+
type FeatureCommandExecuteOptions<F extends FeatureCode, S extends Schema | undefined = FeatureMap[F]['optionsSchema']> = S extends Schema ? SchemaPartialValues<S> : undefined;
|
|
36
36
|
export {};
|
|
@@ -6,8 +6,8 @@ declare const optionsSchema: {
|
|
|
6
6
|
description: string;
|
|
7
7
|
fields: {};
|
|
8
8
|
};
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
type OptionsSchema = typeof optionsSchema;
|
|
10
|
+
type Options = SchemaValues<OptionsSchema>;
|
|
11
11
|
export default class DisableCacheAction extends AbstractAction<OptionsSchema> {
|
|
12
12
|
optionsSchema: {
|
|
13
13
|
id: string;
|
|
@@ -6,8 +6,8 @@ declare const optionsSchema: {
|
|
|
6
6
|
description: string;
|
|
7
7
|
fields: {};
|
|
8
8
|
};
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
type OptionsSchema = typeof optionsSchema;
|
|
10
|
+
type Options = SchemaValues<OptionsSchema>;
|
|
11
11
|
export default class EnableCacheAction extends AbstractAction<OptionsSchema> {
|
|
12
12
|
optionsSchema: {
|
|
13
13
|
id: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { SpruceSchemas } from "./../../../.spruce/schemas/schemas.types";
|
|
2
2
|
import AbstractAction from '../../AbstractAction';
|
|
3
3
|
import { FeatureActionResponse } from '../../features.types';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
type OptionsSchema = SpruceSchemas.SpruceCli.v2020_07_22.CreateConversationTopicOptionsSchema;
|
|
5
|
+
type Options = SpruceSchemas.SpruceCli.v2020_07_22.CreateConversationTopicOptions;
|
|
6
6
|
export default class CreateAction extends AbstractAction<OptionsSchema> {
|
|
7
7
|
invocationMessage: string;
|
|
8
8
|
optionsSchema: SpruceSchemas.SpruceCli.v2020_07_22.CreateConversationTopicOptionsSchema;
|
|
@@ -15,8 +15,8 @@ declare const optionsSchema: {
|
|
|
15
15
|
};
|
|
16
16
|
};
|
|
17
17
|
};
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
type OptionsSchema = typeof optionsSchema;
|
|
19
|
+
type Options = SchemaValues<OptionsSchema>;
|
|
20
20
|
export default class TestAction extends AbstractAction<OptionsSchema> {
|
|
21
21
|
optionsSchema: {
|
|
22
22
|
id: string;
|
|
@@ -12,8 +12,8 @@ declare const optionsSchema: {
|
|
|
12
12
|
};
|
|
13
13
|
};
|
|
14
14
|
};
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
type OptionsSchema = typeof optionsSchema;
|
|
16
|
+
type Options = SchemaValues<OptionsSchema>;
|
|
17
17
|
export default class DeployAction extends AbstractAction<OptionsSchema> {
|
|
18
18
|
optionsSchema: {
|
|
19
19
|
id: string;
|
|
@@ -5,7 +5,7 @@ declare const optionsSchema: {
|
|
|
5
5
|
description: string;
|
|
6
6
|
fields: {};
|
|
7
7
|
};
|
|
8
|
-
|
|
8
|
+
type OptionsSchema = typeof optionsSchema;
|
|
9
9
|
export default class DeployAction extends AbstractAction<OptionsSchema> {
|
|
10
10
|
optionsSchema: {
|
|
11
11
|
id: string;
|
|
@@ -24,8 +24,8 @@ declare const optionsSchema: {
|
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
};
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
type OptionsSchema = typeof optionsSchema;
|
|
28
|
+
type Options = SchemaValues<OptionsSchema>;
|
|
29
29
|
export default class DeployAction extends AbstractAction<OptionsSchema> {
|
|
30
30
|
optionsSchema: {
|
|
31
31
|
id: string;
|