@sprucelabs/spruce-cli 19.1.16 → 19.1.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/build/__tests__/behavioral/events/CreatingAListener.test.js +3 -3
- package/build/__tests__/behavioral/events/CreatingAListener.test.js.map +1 -1
- package/build/__tests__/behavioral/events/KeepingEventsInSync2.test.js +2 -2
- package/build/__tests__/behavioral/events/KeepingEventsInSync2.test.js.map +1 -1
- package/build/__tests__/behavioral/events/KeepingListenersInSync.test.js +2 -2
- package/build/__tests__/behavioral/events/KeepingListenersInSync.test.js.map +1 -1
- package/build/__tests__/behavioral/permissions/SyncingPermissions.test.js +3 -3
- package/build/__tests__/behavioral/permissions/SyncingPermissions.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/CreatingANewSchemaBuilder.test.js +5 -5
- package/build/__tests__/behavioral/schemas/CreatingANewSchemaBuilder.test.js.map +1 -1
- package/build/__tests__/behavioral/schemas/SettingUpSchemasForModuleDistribution.test.js +2 -2
- package/build/__tests__/behavioral/schemas/SettingUpSchemasForModuleDistribution.test.js.map +1 -1
- package/build/__tests__/behavioral/tests/CreatingATest.test.js +2 -2
- package/build/__tests__/behavioral/tests/CreatingATest.test.js.map +1 -1
- package/build/__tests__/behavioral/views/RegisteringSkillViewOnBoot.test.d.ts +1 -1
- package/build/__tests__/implementation/EventStore.test.js +3 -3
- package/build/__tests__/implementation/EventStore.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/cli/Cli.d.ts +2 -2
- package/build/features/ActionQuestionAsker.d.ts +1 -1
- package/build/features/cache/actions/DisableAction.js +3 -3
- package/build/features/cache/actions/DisableAction.js.map +1 -1
- package/build/features/cache/actions/EnableAction.js +2 -2
- package/build/features/cache/actions/EnableAction.js.map +1 -1
- package/build/features/conversation/actions/TestAction.js +2 -2
- package/build/features/conversation/actions/TestAction.js.map +1 -1
- package/build/features/conversation/stores/ConversationStore.d.ts +1 -1
- package/build/features/error/ParentTestFinder.js +2 -2
- package/build/features/error/ParentTestFinder.js.map +1 -1
- package/build/features/event/stores/EventStore.d.ts +1 -1
- package/build/features/node/NodeFeature.d.ts +7 -2
- package/build/features/organization/stores/OrganizationStore.d.ts +2 -2
- package/build/features/schema/stores/SchemaStore.js +3 -3
- package/build/features/schema/stores/SchemaStore.js.map +1 -1
- package/build/features/skill/actions/RegisterAction.d.ts +7 -7
- package/build/features/skill/actions/RegisterAction.js +22 -22
- package/build/features/skill/actions/RegisterAction.js.map +1 -1
- package/build/features/skill/stores/SkillStore.d.ts +2 -2
- package/build/features/test/TestRunner.js +1 -1
- package/build/features/test/TestRunner.js.map +1 -1
- package/build/features/test/actions/SetupAction.js +2 -2
- package/build/features/test/actions/SetupAction.js.map +1 -1
- package/build/features/universalDevDependencies.d.ts +7 -2
- package/build/features/universalDevDependencies.js +1 -0
- package/build/features/universalDevDependencies.js.map +1 -1
- package/build/features/view/stores/ViewStore.d.ts +1 -1
- package/build/index.js +1 -1
- package/build/index.js.map +1 -1
- package/build/interfaces/TerminalInterface.js +2 -2
- package/build/interfaces/TerminalInterface.js.map +1 -1
- package/build/services/CommandService.js +2 -2
- package/build/services/CommandService.js.map +1 -1
- package/build/tests/AbstractCliTest.js +2 -1
- package/build/tests/AbstractCliTest.js.map +1 -1
- package/build/tests/AbstractEventTest.d.ts +2 -2
- package/build/tests/fixtures/OrganizationFixture.d.ts +1 -1
- package/build/tests/fixtures/PersonFixture.js +2 -2
- package/build/tests/fixtures/PersonFixture.js.map +1 -1
- package/build/utilities/eventContractCleaner.utility.js +3 -3
- package/build/utilities/eventContractCleaner.utility.js.map +1 -1
- package/build/utilities/introspection.utility.js +4 -4
- package/build/utilities/introspection.utility.js.map +1 -1
- package/build/utilities/tsConfig.utility.js +2 -2
- package/build/utilities/tsConfig.utility.js.map +1 -1
- package/node_modules/@typescript-eslint/parser/package.json +5 -5
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js +1 -2
- package/node_modules/@typescript-eslint/scope-manager/dist/definition/DefinitionType.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js +2 -4
- package/node_modules/@typescript-eslint/scope-manager/dist/referencer/Reference.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js +1 -2
- package/node_modules/@typescript-eslint/scope-manager/dist/scope/ScopeType.js.map +1 -1
- package/node_modules/@typescript-eslint/scope-manager/package.json +5 -5
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js +2 -2
- package/node_modules/@typescript-eslint/types/dist/generated/ast-spec.js.map +1 -1
- package/node_modules/@typescript-eslint/types/package.json +2 -2
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ts-estree/estree-to-ts-node-types.d.ts +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/_ts3.4/dist/ts-estree/ts-nodes.d.ts +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert.js +19 -0
- package/node_modules/@typescript-eslint/typescript-estree/dist/convert.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js +3 -3
- package/node_modules/@typescript-eslint/typescript-estree/dist/parseSettings/warnAboutTSVersion.js.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/estree-to-ts-node-types.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/dist/ts-estree/ts-nodes.d.ts.map +1 -1
- package/node_modules/@typescript-eslint/typescript-estree/package.json +5 -5
- package/node_modules/@typescript-eslint/visitor-keys/package.json +3 -3
- package/package.json +36 -36
- package/src/features/skill/actions/RegisterAction.ts +27 -27
- package/src/features/test/TestRunner.ts +1 -1
- package/src/features/universalDevDependencies.ts +1 -1
- package/src/tests/AbstractCliTest.ts +3 -1
|
@@ -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","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","_testResults$testFile3","_testResults$testFile4","completed","tests","name","errorMessages","duration","errorMessage","find","file","totalTestFilesComplete","totalFailed","totalPassed","totalTests","totalSkipped","totalTodo","AbstractSpruceTest","_defineProperty2","_applyDecoratedDescriptor2","exports"],"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\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AAA,aAAAjI,MAAA,kCAAAV,KAAA,GAAAyB,MAAA,CAAAE,wBAAA,CAAAjB,MAAA,kCAAAA,MAAA,OAAAiI,0BAAA,aAAAjI,MAAA,8CAAAT,KAAA,GAAAwB,MAAA,CAAAE,wBAAA,CAAAjB,MAAA,8CAAAA,MAAA,OAAAiI,0BAAA,aAAAjI,MAAA,uCAAAR,KAAA,GAAAuB,MAAA,CAAAE,wBAAA,CAAAjB,MAAA,uCAAAA,MAAA,OAAAiI,0BAAA,aAAAjI,MAAA,iCAAAP,KAAA,GAAAsB,MAAA,CAAAE,wBAAA,CAAAjB,MAAA,iCAAAA,MAAA,OAAAiI,0BAAA,aAAAjI,MAAA,qCAAAN,KAAA,GAAAqB,MAAA,CAAAE,wBAAA,CAAAjB,MAAA,qCAAAA,MAAA,OAAAiI,0BAAA,aAAAjI,MAAA,uDAAAL,KAAA,GAAAoB,MAAA,CAAAE,wBAAA,CAAAjB,MAAA,uDAAAA,MAAA,OAAAiI,0BAAA,aAAAjI,MAAA,kCAAAJ,KAAA,GAAAmB,MAAA,CAAAE,wBAAA,CAAAjB,MAAA,kCAAAA,MAAA,OAAAiI,0BAAA,aAAAjI,MAAA,oCAAAH,MAAA,GAAAkB,MAAA,CAAAE,wBAAA,CAAAjB,MAAA,oCAAAA,MAAA,OAAAiI,0BAAA,aAAAjI,MAAA,+DAAAF,MAAA,GAAAiB,MAAA,CAAAE,wBAAA,CAAAjB,MAAA,+DAAAA,MAAA,OAAAiI,0BAAA,aAAAjI,MAAA,gCAAAD,MAAA,GAAAgB,MAAA,CAAAE,wBAAA,CAAAjB,MAAA,gCAAAA,MAAA,IAAAA,MAAA;AAAAkI,OAAA,cAAAtF,kBAAA"}
|
|
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","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","exports"],"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;A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AjB,MAAA,iCAAAA,MAAA,OAAA+H,0BAAA,aAAA/H,MAAA,qCAAAN,KAAA,GAAAqB,MAAA,CAAAE,wBAAA,CAAAjB,MAAA,qCAAAA,MAAA,OAAA+H,0BAAA,aAAA/H,MAAA,uDAAAL,KAAA,GAAAoB,MAAA,CAAAE,wBAAA,CAAAjB,MAAA,uDAAAA,MAAA,OAAA+H,0BAAA,aAAA/H,MAAA,kCAAAJ,KAAA,GAAAmB,MAAA,CAAAE,wBAAA,CAAAjB,MAAA,kCAAAA,MAAA,OAAA+H,0BAAA,aAAA/H,MAAA,oCAAAH,MAAA,GAAAkB,MAAA,CAAAE,wBAAA,CAAAjB,MAAA,oCAAAA,MAAA,OAAA+H,0BAAA,aAAA/H,MAAA,+DAAAF,MAAA,GAAAiB,MAAA,CAAAE,wBAAA,CAAAjB,MAAA,+DAAAA,MAAA,OAAA+H,0BAAA,aAAA/H,MAAA,gCAAAD,MAAA,GAAAgB,MAAA,CAAAE,wBAAA,CAAAjB,MAAA,gCAAAA,MAAA,IAAAA,MAAA;AAAAgI,OAAA,cAAApF,kBAAA"}
|
package/build/cli/Cli.d.ts
CHANGED
|
@@ -21,8 +21,8 @@ export default class Cli implements CliInterface {
|
|
|
21
21
|
getActionExecuter(): ActionExecuter | undefined;
|
|
22
22
|
on(...args: any[]): Promise<void>;
|
|
23
23
|
off(...args: any[]): Promise<number>;
|
|
24
|
-
emit(...args: any[]): Promise<import("@sprucelabs/mercury-types").MercuryAggregateResponse<import("@sprucelabs/schema").SchemaStaticValues<any, false, string, import("@sprucelabs/schema").StaticSchemaAllValues<any, false
|
|
25
|
-
emitAndFlattenResponses(...args: any[]): Promise<import("@sprucelabs/schema").SchemaStaticValues<any, false, string, import("@sprucelabs/schema").StaticSchemaAllValues<any, false
|
|
24
|
+
emit(...args: any[]): Promise<import("@sprucelabs/mercury-types").MercuryAggregateResponse<Pick<import("@sprucelabs/schema").SchemaStaticValues<any, false, string, import("@sprucelabs/schema").StaticSchemaAllValues<any, false>>, string>>>;
|
|
25
|
+
emitAndFlattenResponses(...args: any[]): Promise<Pick<import("@sprucelabs/schema").SchemaStaticValues<any, false, string, import("@sprucelabs/schema").StaticSchemaAllValues<any, false>>, string>[]>;
|
|
26
26
|
installFeatures(options: InstallFeatureOptions): Promise<import("../features/features.types").FeatureInstallResponse>;
|
|
27
27
|
getFeature<C extends FeatureCode>(code: C): import("../features/features.types").FeatureMap[C];
|
|
28
28
|
checkHealth(options?: HealthOptions): Promise<HealthCheckResults>;
|
|
@@ -24,7 +24,7 @@ export default class ActionOptionAsker<F extends FeatureCode = FeatureCode> {
|
|
|
24
24
|
description?: any;
|
|
25
25
|
destination?: any;
|
|
26
26
|
}>;
|
|
27
|
-
askAboutMissingActionOptions(action: FeatureAction<Schema>, options: (Record<string, any> & FeatureCommandExecuteOptions<F>) | undefined): Promise<import("@sprucelabs/schema").SchemaStaticValues<Schema, false, never, import("@sprucelabs/schema").StaticSchemaAllValues<Schema, false
|
|
27
|
+
askAboutMissingActionOptions(action: FeatureAction<Schema>, options: (Record<string, any> & FeatureCommandExecuteOptions<F>) | undefined): Promise<Pick<import("@sprucelabs/schema").SchemaStaticValues<Schema, false, never, import("@sprucelabs/schema").StaticSchemaAllValues<Schema, false>>, never> | undefined>;
|
|
28
28
|
installOurFeature(installOptions: Record<string, any>): Promise<FeatureInstallResponse>;
|
|
29
29
|
private renderHeading;
|
|
30
30
|
private installOrMarkAsSkippedMissingDependency;
|
|
@@ -44,7 +44,7 @@ var DisableCacheAction = /*#__PURE__*/function (_AbstractAction) {
|
|
|
44
44
|
key: "execute",
|
|
45
45
|
value: function () {
|
|
46
46
|
var _execute = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(_options) {
|
|
47
|
-
var _err$options, _err$
|
|
47
|
+
var _err$options, _err$message, error;
|
|
48
48
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
49
49
|
while (1) switch (_context.prev = _context.next) {
|
|
50
50
|
case 0:
|
|
@@ -63,7 +63,7 @@ var DisableCacheAction = /*#__PURE__*/function (_AbstractAction) {
|
|
|
63
63
|
_context.prev = 8;
|
|
64
64
|
_context.t0 = _context["catch"](0);
|
|
65
65
|
error = _context.t0;
|
|
66
|
-
if ((_err$options = _context.t0.options) !== null && _err$options !== void 0 && (_err$options
|
|
66
|
+
if ((_err$options = _context.t0.options) !== null && _err$options !== void 0 && (_err$options = _err$options.cmd) !== null && _err$options !== void 0 && _err$options.includes('which')) {
|
|
67
67
|
error = new _SpruceError["default"]({
|
|
68
68
|
code: 'MISSING_DEPENDENCIES',
|
|
69
69
|
dependencies: [{
|
|
@@ -71,7 +71,7 @@ var DisableCacheAction = /*#__PURE__*/function (_AbstractAction) {
|
|
|
71
71
|
hint: 'Get Docker here: https://www.docker.com/products/docker-desktop'
|
|
72
72
|
}]
|
|
73
73
|
});
|
|
74
|
-
} else if ((_err$message = _context.t0.message) !== null && _err$message !== void 0 && (_err$message
|
|
74
|
+
} else if ((_err$message = _context.t0.message) !== null && _err$message !== void 0 && (_err$message = _err$message.toLowerCase()) !== null && _err$message !== void 0 && _err$message.includes('no such container')) {
|
|
75
75
|
error = new _SpruceError["default"]({
|
|
76
76
|
code: 'CACHE_NOT_ENABLED'
|
|
77
77
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DisableAction.js","names":["_schema","require","_SpruceError","_interopRequireDefault","_AbstractAction2","_constants","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","optionsSchema","buildSchema","id","description","fields","DisableCacheAction","_AbstractAction","_inherits2","_super","_this","_classCallCheck2","_len","length","args","Array","_key","concat","_defineProperty2","_assertThisInitialized2","_createClass2","key","value","_execute","_asyncToGenerator2","_regenerator","mark","_callee","_options","_err$options","_err$
|
|
1
|
+
{"version":3,"file":"DisableAction.js","names":["_schema","require","_SpruceError","_interopRequireDefault","_AbstractAction2","_constants","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","optionsSchema","buildSchema","id","description","fields","DisableCacheAction","_AbstractAction","_inherits2","_super","_this","_classCallCheck2","_len","length","args","Array","_key","concat","_defineProperty2","_assertThisInitialized2","_createClass2","key","value","_execute","_asyncToGenerator2","_regenerator","mark","_callee","_options","_err$options","_err$message","error","wrap","_callee$","_context","prev","next","Service","execute","DISABLE_NPM_CACHE_COMMAND","abrupt","headline","summaryLines","t0","options","cmd","includes","SpruceError","code","dependencies","name","hint","message","toLowerCase","errors","stop","_x","AbstractAction","exports"],"sources":["../../../../src/features/cache/actions/DisableAction.ts"],"sourcesContent":["import { buildSchema, SchemaValues } from '@sprucelabs/schema'\nimport SpruceError from '../../../errors/SpruceError'\nimport AbstractAction from '../../AbstractAction'\nimport { FeatureActionResponse } from '../../features.types'\nimport { DISABLE_NPM_CACHE_COMMAND } from '../constants'\n\nconst optionsSchema = buildSchema({\n\tid: 'disableCacheAction',\n\tdescription: 'Disable caching.',\n\tfields: {},\n})\n\ntype OptionsSchema = typeof optionsSchema\ntype Options = SchemaValues<OptionsSchema>\n\nexport default class DisableCacheAction extends AbstractAction<OptionsSchema> {\n\tpublic optionsSchema = optionsSchema\n\tpublic commandAliases = [\n\t\t'disable.cache',\n\t\t'stop.cache',\n\t\t'disable.caching',\n\t\t'stop.caching',\n\t]\n\tpublic invocationMessage = 'Disabling cache...'\n\n\tpublic async execute(_options: Options): Promise<FeatureActionResponse> {\n\t\ttry {\n\t\t\tawait this.Service('command').execute('which docker')\n\t\t\tawait this.Service('command').execute(DISABLE_NPM_CACHE_COMMAND)\n\n\t\t\treturn {\n\t\t\t\theadline: 'Stopping cache',\n\t\t\t\tsummaryLines: ['Shutting down cache!'],\n\t\t\t}\n\t\t} catch (err: any) {\n\t\t\tlet error = err\n\t\t\tif (err.options?.cmd?.includes('which')) {\n\t\t\t\terror = new SpruceError({\n\t\t\t\t\tcode: 'MISSING_DEPENDENCIES',\n\t\t\t\t\tdependencies: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'Docker',\n\t\t\t\t\t\t\thint: 'Get Docker here: https://www.docker.com/products/docker-desktop',\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t})\n\t\t\t} else if (err.message?.toLowerCase()?.includes('no such container')) {\n\t\t\t\terror = new SpruceError({\n\t\t\t\t\tcode: 'CACHE_NOT_ENABLED',\n\t\t\t\t})\n\t\t\t} else {\n\t\t\t\terror = new SpruceError({\n\t\t\t\t\tcode: 'MISSING_DEPENDENCIES',\n\t\t\t\t\tdependencies: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'Docker',\n\t\t\t\t\t\t\thint: 'Get Docker here: https://www.docker.com/products/docker-desktop',\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t})\n\t\t\t}\n\n\t\t\treturn {\n\t\t\t\terrors: [error],\n\t\t\t}\n\t\t}\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,gBAAA,GAAAD,sBAAA,CAAAF,OAAA;AAEA,IAAAI,UAAA,GAAAJ,OAAA;AAAwD,SAAAK,aAAAC,OAAA,QAAAC,yBAAA,GAAAC,yBAAA,oBAAAC,qBAAA,QAAAC,KAAA,OAAAC,gBAAA,aAAAL,OAAA,GAAAM,MAAA,MAAAL,yBAAA,QAAAM,SAAA,OAAAF,gBAAA,mBAAAG,WAAA,EAAAF,MAAA,GAAAG,OAAA,CAAAC,SAAA,CAAAN,KAAA,EAAAO,SAAA,EAAAJ,SAAA,YAAAD,MAAA,GAAAF,KAAA,C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A,CAAauB,WAAW,CAAC,CAAC,cAAAvB,YAAA,eAA1BA,YAAA,CAA4BgB,QAAQ,CAAC,mBAAmB,CAAC,EAAE;gBACrEf,KAAK,GAAG,IAAIgB,uBAAW,CAAC;kBACvBC,IAAI,EAAE;gBACP,CAAC,CAAC;cACH,CAAC,MAAM;gBACNjB,KAAK,GAAG,IAAIgB,uBAAW,CAAC;kBACvBC,IAAI,EAAE,sBAAsB;kBAC5BC,YAAY,EAAE,CACb;oBACCC,IAAI,EAAE,QAAQ;oBACdC,IAAI,EAAE;kBACP,CAAC;gBAEH,CAAC,CAAC;cACH;cAAC,OAAAjB,QAAA,CAAAM,MAAA,WAEM;gBACNc,MAAM,EAAE,CAACvB,KAAK;cACf,CAAC;YAAA;YAAA;cAAA,OAAAG,QAAA,CAAAqB,IAAA;UAAA;QAAA,GAAA5B,OAAA;MAAA,CAEF;MAAA,SAAAW,QAAAkB,EAAA;QAAA,OAAAjC,QAAA,CAAA/B,KAAA,OAAAD,SAAA;MAAA;MAAA,OAAA+C,OAAA;IAAA;EAAA;EAAA,OAAAhC,kBAAA;AAAA,EAnD8CmD,2BAAc;AAAAC,OAAA,cAAApD,kBAAA"}
|
|
@@ -44,7 +44,7 @@ var EnableCacheAction = /*#__PURE__*/function (_AbstractAction) {
|
|
|
44
44
|
key: "execute",
|
|
45
45
|
value: function () {
|
|
46
46
|
var _execute = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(_options) {
|
|
47
|
-
var _err$options,
|
|
47
|
+
var _err$options, error;
|
|
48
48
|
return _regenerator["default"].wrap(function _callee$(_context) {
|
|
49
49
|
while (1) switch (_context.prev = _context.next) {
|
|
50
50
|
case 0:
|
|
@@ -66,7 +66,7 @@ var EnableCacheAction = /*#__PURE__*/function (_AbstractAction) {
|
|
|
66
66
|
_context.prev = 10;
|
|
67
67
|
_context.t0 = _context["catch"](0);
|
|
68
68
|
error = _context.t0;
|
|
69
|
-
if ((_err$options = _context.t0.options) !== null && _err$options !== void 0 && (_err$options
|
|
69
|
+
if ((_err$options = _context.t0.options) !== null && _err$options !== void 0 && (_err$options = _err$options.cmd) !== null && _err$options !== void 0 && _err$options.includes('which')) {
|
|
70
70
|
error = new _SpruceError["default"]({
|
|
71
71
|
code: 'MISSING_DEPENDENCIES',
|
|
72
72
|
dependencies: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EnableAction.js","names":["_schema","require","_SpruceError","_interopRequireDefault","_AbstractAction2","_constants","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","optionsSchema","buildSchema","id","description","fields","EnableCacheAction","_AbstractAction","_inherits2","_super","_this","_classCallCheck2","_len","length","args","Array","_key","concat","_defineProperty2","_assertThisInitialized2","_createClass2","key","value","_execute","_asyncToGenerator2","_regenerator","mark","_callee","_options","_err$options","
|
|
1
|
+
{"version":3,"file":"EnableAction.js","names":["_schema","require","_SpruceError","_interopRequireDefault","_AbstractAction2","_constants","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","optionsSchema","buildSchema","id","description","fields","EnableCacheAction","_AbstractAction","_inherits2","_super","_this","_classCallCheck2","_len","length","args","Array","_key","concat","_defineProperty2","_assertThisInitialized2","_createClass2","key","value","_execute","_asyncToGenerator2","_regenerator","mark","_callee","_options","_err$options","error","wrap","_callee$","_context","prev","next","Service","execute","Action","ENABLE_NPM_CACHE_COMMAND","abrupt","headline","summaryLines","t0","options","cmd","includes","SpruceError","code","dependencies","name","hint","errors","stop","_x","AbstractAction","exports"],"sources":["../../../../src/features/cache/actions/EnableAction.ts"],"sourcesContent":["import { buildSchema, SchemaValues } from '@sprucelabs/schema'\nimport SpruceError from '../../../errors/SpruceError'\nimport AbstractAction from '../../AbstractAction'\nimport { FeatureActionResponse } from '../../features.types'\nimport { ENABLE_NPM_CACHE_COMMAND } from '../constants'\n\nconst optionsSchema = buildSchema({\n\tid: 'enableCacheAction',\n\tdescription: 'Enable npm caching so pulling node_modules is much faster.',\n\tfields: {},\n})\n\ntype OptionsSchema = typeof optionsSchema\ntype Options = SchemaValues<OptionsSchema>\n\nexport default class EnableCacheAction extends AbstractAction<OptionsSchema> {\n\tpublic optionsSchema = optionsSchema\n\tpublic commandAliases = [\n\t\t'enable.cache',\n\t\t'start.cache',\n\t\t'enable.caching',\n\t\t'start.caching',\n\t]\n\tpublic invocationMessage = 'Enabling cache... 💪'\n\n\tpublic async execute(_options: Options): Promise<FeatureActionResponse> {\n\t\ttry {\n\t\t\tawait this.Service('command').execute('which docker')\n\n\t\t\tawait this.Action('cache', 'disable').execute({})\n\t\t\tawait this.Service('command').execute(ENABLE_NPM_CACHE_COMMAND)\n\n\t\t\treturn {\n\t\t\t\theadline: 'Starting cache',\n\t\t\t\tsummaryLines: ['Booting cache systems now. Give it a sec!'],\n\t\t\t}\n\t\t} catch (err: any) {\n\t\t\tlet error = err\n\t\t\tif (err.options?.cmd?.includes('which')) {\n\t\t\t\terror = new SpruceError({\n\t\t\t\t\tcode: 'MISSING_DEPENDENCIES',\n\t\t\t\t\tdependencies: [\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tname: 'Docker',\n\t\t\t\t\t\t\thint: 'Get Docker here: https://www.docker.com/products/docker-desktop',\n\t\t\t\t\t\t},\n\t\t\t\t\t],\n\t\t\t\t})\n\t\t\t} else {\n\t\t\t\terror = new SpruceError({ code: 'DOCKER_NOT_STARTED' })\n\t\t\t}\n\n\t\t\treturn {\n\t\t\t\terrors: [error],\n\t\t\t}\n\t\t}\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC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EAAA,GAAAV,QAAA;cAEGH,KAAK,GAAAG,QAAA,CAAAU,EAAA;cACT,KAAAd,YAAA,GAAII,QAAA,CAAAU,EAAA,CAAIC,OAAO,cAAAf,YAAA,gBAAAA,YAAA,GAAXA,YAAA,CAAagB,GAAG,cAAAhB,YAAA,eAAhBA,YAAA,CAAkBiB,QAAQ,CAAC,OAAO,CAAC,EAAE;gBACxChB,KAAK,GAAG,IAAIiB,uBAAW,CAAC;kBACvBC,IAAI,EAAE,sBAAsB;kBAC5BC,YAAY,EAAE,CACb;oBACCC,IAAI,EAAE,QAAQ;oBACdC,IAAI,EAAE;kBACP,CAAC;gBAEH,CAAC,CAAC;cACH,CAAC,MAAM;gBACNrB,KAAK,GAAG,IAAIiB,uBAAW,CAAC;kBAAEC,IAAI,EAAE;gBAAqB,CAAC,CAAC;cACxD;cAAC,OAAAf,QAAA,CAAAO,MAAA,WAEM;gBACNY,MAAM,EAAE,CAACtB,KAAK;cACf,CAAC;YAAA;YAAA;cAAA,OAAAG,QAAA,CAAAoB,IAAA;UAAA;QAAA,GAAA1B,OAAA;MAAA,CAEF;MAAA,SAAAU,QAAAiB,EAAA;QAAA,OAAA/B,QAAA,CAAA/B,KAAA,OAAAD,SAAA;MAAA;MAAA,OAAA8C,OAAA;IAAA;EAAA;EAAA,OAAA/B,iBAAA;AAAA,EAzC6CiD,2BAAc;AAAAC,OAAA,cAAAlD,iBAAA"}
|
|
@@ -53,7 +53,7 @@ var TestAction = /*#__PURE__*/function (_AbstractAction) {
|
|
|
53
53
|
value: function () {
|
|
54
54
|
var _execute = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(options) {
|
|
55
55
|
var _this2 = this;
|
|
56
|
-
var _this$validateAndNorm, shouldReturnImmediately, shouldRunSilently, command, isWriting, promise, _err$options, _err$
|
|
56
|
+
var _this$validateAndNorm, shouldReturnImmediately, shouldRunSilently, command, isWriting, promise, _err$options, _err$options2;
|
|
57
57
|
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
58
58
|
while (1) switch (_context2.prev = _context2.next) {
|
|
59
59
|
case 0:
|
|
@@ -132,7 +132,7 @@ var TestAction = /*#__PURE__*/function (_AbstractAction) {
|
|
|
132
132
|
case 15:
|
|
133
133
|
_context2.prev = 15;
|
|
134
134
|
_context2.t0 = _context2["catch"](2);
|
|
135
|
-
if (!((_err$options = _context2.t0.options) !== null && _err$options !== void 0 && (_err$options
|
|
135
|
+
if (!((_err$options = _context2.t0.options) !== null && _err$options !== void 0 && (_err$options = _err$options.stderr) !== null && _err$options !== void 0 && _err$options.includes('SIGINT') || ((_err$options2 = _context2.t0.options) === null || _err$options2 === void 0 ? void 0 : _err$options2.code) === 'CONVERSATION_ABORTED')) {
|
|
136
136
|
_context2.next = 19;
|
|
137
137
|
break;
|
|
138
138
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TestAction.js","names":["_schema","require","_AbstractAction2","_interopRequireDefault","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","optionsSchema","buildSchema","id","description","fields","shouldReturnImmediately","type","isPrivate","shouldRunSilently","TestAction","_AbstractAction","_inherits2","_super","_this","_classCallCheck2","_len","length","args","Array","_key","concat","_defineProperty2","_assertThisInitialized2","_createClass2","key","value","_execute","_asyncToGenerator2","_regenerator","mark","_callee2","options","_this2","_this$validateAndNorm","command","isWriting","promise","_err$options","_err$options$stderr","_err$options2","wrap","_callee2$","_context2","prev","next","validateAndNormalizeOptions","ui","startLoading","Service","Promise","resolve","reject","execute","spawnOptions","undefined","stdio","process","stdin","onData","_ref","_callee","data","_process$stdout","_process$stdout2","_callee$","_context","search","clear","stopLoading","stdout","write","replace","stop","_x2","onError","includes","env","ACTION","then","killHandler","kill","bind","abrupt","meta","pid","t0","stderr","code","summaryLines","errors","_x","_kill","_callee3","_this$killHandler","_callee3$","_context3","AbstractAction","exports"],"sources":["../../../../src/features/conversation/actions/TestAction.ts"],"sourcesContent":["import { buildSchema, SchemaValues } from '@sprucelabs/schema'\nimport AbstractAction from '../../AbstractAction'\nimport { FeatureActionResponse } from '../../features.types'\n\nconst optionsSchema = buildSchema({\n\tid: 'testConversationOptions',\n\tdescription: 'Test your conversation topics.',\n\tfields: {\n\t\tshouldReturnImmediately: {\n\t\t\ttype: 'boolean',\n\t\t\tisPrivate: true,\n\t\t},\n\t\tshouldRunSilently: {\n\t\t\ttype: 'boolean',\n\t\t\tisPrivate: true,\n\t\t},\n\t},\n})\n\ntype OptionsSchema = typeof optionsSchema\ntype Options = SchemaValues<OptionsSchema>\nexport default class TestAction extends AbstractAction<OptionsSchema> {\n\tpublic optionsSchema = optionsSchema\n\tpublic commandAliases = ['test.conversation', 'chat']\n\tpublic invocationMessage = \"Let's test talking about topics... 🎙\"\n\n\tprivate killHandler?: () => void\n\n\tpublic async execute(options: Options): Promise<FeatureActionResponse> {\n\t\tconst { shouldReturnImmediately, shouldRunSilently } =\n\t\t\tthis.validateAndNormalizeOptions(options)\n\n\t\tthis.ui.startLoading('Booting skill...')\n\n\t\ttry {\n\t\t\tconst command = this.Service('command')\n\t\t\tlet isWriting = false\n\n\t\t\tconst promise = new Promise((resolve, reject) => {\n\t\t\t\tcommand\n\t\t\t\t\t.execute('yarn boot.local', {\n\t\t\t\t\t\tspawnOptions: shouldRunSilently\n\t\t\t\t\t\t\t? undefined\n\t\t\t\t\t\t\t: {\n\t\t\t\t\t\t\t\t\tstdio: [process.stdin, 'pipe', 'pipe'],\n\t\t\t\t\t\t\t },\n\n\t\t\t\t\t\tonData: shouldRunSilently\n\t\t\t\t\t\t\t? undefined\n\t\t\t\t\t\t\t: async (data) => {\n\t\t\t\t\t\t\t\t\tif (!isWriting) {\n\t\t\t\t\t\t\t\t\t\tisWriting = data.search(':: Skill booted') > -1\n\t\t\t\t\t\t\t\t\t\tif (isWriting) {\n\t\t\t\t\t\t\t\t\t\t\tthis.ui.clear()\n\t\t\t\t\t\t\t\t\t\t\tthis.ui.stopLoading()\n\t\t\t\t\t\t\t\t\t\t\tprocess.stdout?.write(\n\t\t\t\t\t\t\t\t\t\t\t\t'? Send your first message to kick-off the conversation: '\n\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else if (isWriting) {\n\t\t\t\t\t\t\t\t\t\tprocess.stdout?.write(\n\t\t\t\t\t\t\t\t\t\t\tdata.replace('Skill :: Skill booted', '')\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t },\n\t\t\t\t\t\tonError: (data) => {\n\t\t\t\t\t\t\tif (!data.includes('warning package.json')) {\n\t\t\t\t\t\t\t\t// const err = new SpruceError({\n\t\t\t\t\t\t\t\t// \tfriendlyMessage:\n\t\t\t\t\t\t\t\t// \t\t`Testing conversations failed because of the following error:\\n\\n` +\n\t\t\t\t\t\t\t\t// \t\tdata,\n\t\t\t\t\t\t\t\t// \tcode: 'EXECUTING_COMMAND_FAILED',\n\t\t\t\t\t\t\t\t// \tcmd: 'ACTION=test.conversation yarn.boot.local',\n\t\t\t\t\t\t\t\t// \tstderr: data,\n\t\t\t\t\t\t\t\t// })\n\t\t\t\t\t\t\t\t// reject(err)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\tenv: {\n\t\t\t\t\t\t\tACTION: 'test.conversation',\n\t\t\t\t\t\t},\n\t\t\t\t\t})\n\t\t\t\t\t.then(resolve)\n\t\t\t\t\t.catch(reject)\n\t\t\t})\n\n\t\t\tthis.killHandler = command.kill.bind(command)\n\n\t\t\tif (shouldReturnImmediately) {\n\t\t\t\treturn {\n\t\t\t\t\tmeta: {\n\t\t\t\t\t\tkill: this.killHandler,\n\t\t\t\t\t\tpid: command.pid() as number,\n\t\t\t\t\t\tpromise,\n\t\t\t\t\t},\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tawait promise\n\t\t\t}\n\t\t} catch (err: any) {\n\t\t\tif (\n\t\t\t\terr.options?.stderr?.includes('SIGINT') ||\n\t\t\t\terr.options?.code === 'CONVERSATION_ABORTED'\n\t\t\t) {\n\t\t\t\treturn {\n\t\t\t\t\tsummaryLines: ['Conversation terminated. ✌️'],\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn {\n\t\t\t\terrors: [err],\n\t\t\t}\n\t\t}\n\n\t\treturn {\n\t\t\tsummaryLines: ['Talk soon! 👋'],\n\t\t}\n\t}\n\n\tpublic async kill() {\n\t\tthis.killHandler?.()\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,gBAAA,GAAAC,sBAAA,CAAAF,OAAA;AAAiD,SAAAG,aAAAC,OAAA,QAAAC,yBAAA,GAAAC,yBAAA,oBAAAC,qBAAA,QAAAC,KAAA,OAAAC,gBAAA,aAAAL,OAAA,GAAAM,MAAA,MAAAL,yBAAA,QAAAM,SAAA,OAAAF,gBAAA,mBAAAG,WAAA,EAAAF,MAAA,GAAAG,OAAA,CAAAC,SAAA,CAAAN,KAAA,EAAAO,SAAA,EAAAJ,SAAA,YAAAD,MAAA,GAAAF,KAAA,CAAAQ,KAAA,OAAAD,SAAA,gBAAAE,2BAAA,mBAAAP,MAAA;AAAA,SAAAJ,0BAAA,eAAAO,OAAA,qBAAAA,OAAA,CAAAC,SAAA,oBAAAD,OAAA,CAAAC,SAAA,CAAAI,IAAA,2BAAAC,KAAA,oCAAAC,OAAA,CAAAC,SAAA,CAAAC,OAAA,CAAAC,IAAA,CAAAV,OAAA,CAAAC,SAAA,CAAAM,OAAA,8CAAAI,CAAA;AAGjD,IAAMC,aAAa,GAAG,IAAAC,mBAAW,EAAC;EACjCC,EAAE,EAAE,yBAAyB;EAC7BC,WAAW,EAAE,gCAAgC;EAC7CC,MAAM,EAA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OAAI,CAACd,WAAW,cAAAc,iBAAA,uBAAhBA,iBAAA,CAAA/F,IAAA,KAAmB,CAAC;YAAA;YAAA;cAAA,OAAAiG,SAAA,CAAAvB,IAAA;UAAA;QAAA,GAAAoB,QAAA;MAAA,CACpB;MAAA,SAAAZ,KAAA;QAAA,OAAAW,KAAA,CAAApG,KAAA,OAAAD,SAAA;MAAA;MAAA,OAAA0F,IAAA;IAAA;EAAA;EAAA,OAAAvE,UAAA;AAAA,EApGsCuF,2BAAc;AAAAC,OAAA,cAAAxF,UAAA"}
|
|
1
|
+
{"version":3,"file":"TestAction.js","names":["_schema","require","_AbstractAction2","_interopRequireDefault","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","Reflect","construct","arguments","apply","_possibleConstructorReturn2","sham","Proxy","Boolean","prototype","valueOf","call","e","optionsSchema","buildSchema","id","description","fields","shouldReturnImmediately","type","isPrivate","shouldRunSilently","TestAction","_AbstractAction","_inherits2","_super","_this","_classCallCheck2","_len","length","args","Array","_key","concat","_defineProperty2","_assertThisInitialized2","_createClass2","key","value","_execute","_asyncToGenerator2","_regenerator","mark","_callee2","options","_this2","_this$validateAndNorm","command","isWriting","promise","_err$options","_err$options2","wrap","_callee2$","_context2","prev","next","validateAndNormalizeOptions","ui","startLoading","Service","Promise","resolve","reject","execute","spawnOptions","undefined","stdio","process","stdin","onData","_ref","_callee","data","_process$stdout","_process$stdout2","_callee$","_context","search","clear","stopLoading","stdout","write","replace","stop","_x2","onError","includes","env","ACTION","then","killHandler","kill","bind","abrupt","meta","pid","t0","stderr","code","summaryLines","errors","_x","_kill","_callee3","_this$killHandler","_callee3$","_context3","AbstractAction","exports"],"sources":["../../../../src/features/conversation/actions/TestAction.ts"],"sourcesContent":["import { buildSchema, SchemaValues } from '@sprucelabs/schema'\nimport AbstractAction from '../../AbstractAction'\nimport { FeatureActionResponse } from '../../features.types'\n\nconst optionsSchema = buildSchema({\n\tid: 'testConversationOptions',\n\tdescription: 'Test your conversation topics.',\n\tfields: {\n\t\tshouldReturnImmediately: {\n\t\t\ttype: 'boolean',\n\t\t\tisPrivate: true,\n\t\t},\n\t\tshouldRunSilently: {\n\t\t\ttype: 'boolean',\n\t\t\tisPrivate: true,\n\t\t},\n\t},\n})\n\ntype OptionsSchema = typeof optionsSchema\ntype Options = SchemaValues<OptionsSchema>\nexport default class TestAction extends AbstractAction<OptionsSchema> {\n\tpublic optionsSchema = optionsSchema\n\tpublic commandAliases = ['test.conversation', 'chat']\n\tpublic invocationMessage = \"Let's test talking about topics... 🎙\"\n\n\tprivate killHandler?: () => void\n\n\tpublic async execute(options: Options): Promise<FeatureActionResponse> {\n\t\tconst { shouldReturnImmediately, shouldRunSilently } =\n\t\t\tthis.validateAndNormalizeOptions(options)\n\n\t\tthis.ui.startLoading('Booting skill...')\n\n\t\ttry {\n\t\t\tconst command = this.Service('command')\n\t\t\tlet isWriting = false\n\n\t\t\tconst promise = new Promise((resolve, reject) => {\n\t\t\t\tcommand\n\t\t\t\t\t.execute('yarn boot.local', {\n\t\t\t\t\t\tspawnOptions: shouldRunSilently\n\t\t\t\t\t\t\t? undefined\n\t\t\t\t\t\t\t: {\n\t\t\t\t\t\t\t\t\tstdio: [process.stdin, 'pipe', 'pipe'],\n\t\t\t\t\t\t\t },\n\n\t\t\t\t\t\tonData: shouldRunSilently\n\t\t\t\t\t\t\t? undefined\n\t\t\t\t\t\t\t: async (data) => {\n\t\t\t\t\t\t\t\t\tif (!isWriting) {\n\t\t\t\t\t\t\t\t\t\tisWriting = data.search(':: Skill booted') > -1\n\t\t\t\t\t\t\t\t\t\tif (isWriting) {\n\t\t\t\t\t\t\t\t\t\t\tthis.ui.clear()\n\t\t\t\t\t\t\t\t\t\t\tthis.ui.stopLoading()\n\t\t\t\t\t\t\t\t\t\t\tprocess.stdout?.write(\n\t\t\t\t\t\t\t\t\t\t\t\t'? Send your first message to kick-off the conversation: '\n\t\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t\t} else if (isWriting) {\n\t\t\t\t\t\t\t\t\t\tprocess.stdout?.write(\n\t\t\t\t\t\t\t\t\t\t\tdata.replace('Skill :: Skill booted', '')\n\t\t\t\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t },\n\t\t\t\t\t\tonError: (data) => {\n\t\t\t\t\t\t\tif (!data.includes('warning package.json')) {\n\t\t\t\t\t\t\t\t// const err = new SpruceError({\n\t\t\t\t\t\t\t\t// \tfriendlyMessage:\n\t\t\t\t\t\t\t\t// \t\t`Testing conversations failed because of the following error:\\n\\n` +\n\t\t\t\t\t\t\t\t// \t\tdata,\n\t\t\t\t\t\t\t\t// \tcode: 'EXECUTING_COMMAND_FAILED',\n\t\t\t\t\t\t\t\t// \tcmd: 'ACTION=test.conversation yarn.boot.local',\n\t\t\t\t\t\t\t\t// \tstderr: data,\n\t\t\t\t\t\t\t\t// })\n\t\t\t\t\t\t\t\t// reject(err)\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t},\n\t\t\t\t\t\tenv: {\n\t\t\t\t\t\t\tACTION: 'test.conversation',\n\t\t\t\t\t\t},\n\t\t\t\t\t})\n\t\t\t\t\t.then(resolve)\n\t\t\t\t\t.catch(reject)\n\t\t\t})\n\n\t\t\tthis.killHandler = command.kill.bind(command)\n\n\t\t\tif (shouldReturnImmediately) {\n\t\t\t\treturn {\n\t\t\t\t\tmeta: {\n\t\t\t\t\t\tkill: this.killHandler,\n\t\t\t\t\t\tpid: command.pid() as number,\n\t\t\t\t\t\tpromise,\n\t\t\t\t\t},\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tawait promise\n\t\t\t}\n\t\t} catch (err: any) {\n\t\t\tif (\n\t\t\t\terr.options?.stderr?.includes('SIGINT') ||\n\t\t\t\terr.options?.code === 'CONVERSATION_ABORTED'\n\t\t\t) {\n\t\t\t\treturn {\n\t\t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AAD,SAAA;MAAA;MAAA,OAAAyF,IAAA;IAAA;EAAA;EAAA,OAAAtE,UAAA;AAAA,EApGsCsF,2BAAc;AAAAC,OAAA,cAAAvF,UAAA"}
|
|
@@ -8,7 +8,7 @@ export interface EventStoreFetchEventContractsResponse {
|
|
|
8
8
|
export default class ConversationStore extends AbstractStore {
|
|
9
9
|
name: string;
|
|
10
10
|
fetchRegisteredTopics(): Promise<{
|
|
11
|
-
topics: import("@sprucelabs/schema").SchemaStaticValues<SpruceSchemas.Mercury.v2020_12_25.GetConversationTopicsTopicSchema, false, never, import("@sprucelabs/schema").StaticSchemaAllValues<SpruceSchemas.Mercury.v2020_12_25.GetConversationTopicsTopicSchema, false
|
|
11
|
+
topics: Pick<import("@sprucelabs/schema").SchemaStaticValues<SpruceSchemas.Mercury.v2020_12_25.GetConversationTopicsTopicSchema, false, never, import("@sprucelabs/schema").StaticSchemaAllValues<SpruceSchemas.Mercury.v2020_12_25.GetConversationTopicsTopicSchema, false>>, "key">[];
|
|
12
12
|
errors: SpruceError[] | undefined;
|
|
13
13
|
}>;
|
|
14
14
|
}
|
|
@@ -33,11 +33,11 @@ var ParentTestFinder = /*#__PURE__*/function () {
|
|
|
33
33
|
matches = _context.sent;
|
|
34
34
|
allDetails = _introspection["default"].introspect(matches);
|
|
35
35
|
return _context.abrupt("return", matches.map(function (path, idx) {
|
|
36
|
-
var _details$classes
|
|
36
|
+
var _details$classes;
|
|
37
37
|
var details = allDetails[idx];
|
|
38
38
|
return {
|
|
39
39
|
path: path,
|
|
40
|
-
name: (_details$classes = details.classes) === null || _details$classes === void 0
|
|
40
|
+
name: (_details$classes = details.classes) === null || _details$classes === void 0 || (_details$classes = _details$classes[0]) === null || _details$classes === void 0 ? void 0 : _details$classes.className,
|
|
41
41
|
isDefaultExport: true
|
|
42
42
|
};
|
|
43
43
|
}).filter(function (match) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ParentTestFinder.js","names":["_globby","_interopRequireDefault","require","_spruceSkillUtils","_introspection","ParentTestFinder","cwd","_classCallCheck2","_defineProperty2","_createClass2","key","value","_findAbstractTests","_asyncToGenerator2","_regenerator","mark","_callee","matches","allDetails","wrap","_callee$","_context","prev","next","globby","diskUtil","resolvePath","sent","introspectionUtil","introspect","abrupt","map","path","idx","_details$classes","
|
|
1
|
+
{"version":3,"file":"ParentTestFinder.js","names":["_globby","_interopRequireDefault","require","_spruceSkillUtils","_introspection","ParentTestFinder","cwd","_classCallCheck2","_defineProperty2","_createClass2","key","value","_findAbstractTests","_asyncToGenerator2","_regenerator","mark","_callee","matches","allDetails","wrap","_callee$","_context","prev","next","globby","diskUtil","resolvePath","sent","introspectionUtil","introspect","abrupt","map","path","idx","_details$classes","details","name","classes","className","isDefaultExport","filter","match","stop","findAbstractTests","apply","arguments","exports"],"sources":["../../../src/features/error/ParentTestFinder.ts"],"sourcesContent":["import globby from '@sprucelabs/globby'\nimport { diskUtil } from '@sprucelabs/spruce-skill-utils'\nimport introspectionUtil from '../../utilities/introspection.utility'\n\nexport default class ParentTestFinder {\n\tprivate cwd: string\n\n\tpublic constructor(cwd: string) {\n\t\tthis.cwd = cwd\n\t}\n\n\tpublic async findAbstractTests() {\n\t\tconst matches = await globby([\n\t\t\tdiskUtil.resolvePath(this.cwd, '**', 'Abstract*Test*.ts'),\n\t\t\t'!**/*.d.ts',\n\t\t])\n\n\t\tconst allDetails = introspectionUtil.introspect(matches)\n\n\t\treturn matches\n\t\t\t.map((path, idx) => {\n\t\t\t\tconst details = allDetails[idx]\n\t\t\t\treturn {\n\t\t\t\t\tpath,\n\t\t\t\t\tname: details.classes?.[0]?.className,\n\t\t\t\t\tisDefaultExport: true,\n\t\t\t\t}\n\t\t\t})\n\t\t\t.filter((match) => !!match.name)\n\t}\n}\n"],"mappings":";;;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,iBAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAH,sBA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AACL,IAAI;cAAA,EAAC;YAAA;YAAA;cAAA,OAAAf,QAAA,CAAAqB,IAAA;UAAA;QAAA,GAAA1B,OAAA;MAAA,CACjC;MAAA,SAAA2B,kBAAA;QAAA,OAAA/B,kBAAA,CAAAgC,KAAA,OAAAC,SAAA;MAAA;MAAA,OAAAF,iBAAA;IAAA;EAAA;EAAA,OAAAtC,gBAAA;AAAA;AAAAyC,OAAA,cAAAzC,gBAAA"}
|
|
@@ -14,7 +14,7 @@ export default class EventStore extends AbstractStore {
|
|
|
14
14
|
private generateGlobbyForLocalEvents;
|
|
15
15
|
registerEventContract(options: {
|
|
16
16
|
eventContract: EventContract;
|
|
17
|
-
}): Promise<import("@sprucelabs/mercury-types").MercuryAggregateResponse<import("@sprucelabs/schema").SchemaStaticValues<SpruceSchemas.Mercury.v2020_12_25.RegisterEventsResponsePayloadSchema, false, never, import("@sprucelabs/schema").StaticSchemaAllValues<SpruceSchemas.Mercury.v2020_12_25.RegisterEventsResponsePayloadSchema, false
|
|
17
|
+
}): Promise<import("@sprucelabs/mercury-types").MercuryAggregateResponse<Pick<import("@sprucelabs/schema").SchemaStaticValues<SpruceSchemas.Mercury.v2020_12_25.RegisterEventsResponsePayloadSchema, false, never, import("@sprucelabs/schema").StaticSchemaAllValues<SpruceSchemas.Mercury.v2020_12_25.RegisterEventsResponsePayloadSchema, false>>, "fqens">>>;
|
|
18
18
|
unRegisterEvents(options: SpruceSchemas.Mercury.v2020_12_25.UnregisterEventsEmitPayload): Promise<void>;
|
|
19
19
|
}
|
|
20
20
|
export interface EventStoreFetchEventContractsResponse {
|