@neurodevs/node-tdd 0.2.5 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (326) hide show
  1. package/.vscode/launch.json +52 -57
  2. package/.vscode/settings.json +61 -66
  3. package/.vscode/tasks.json +98 -129
  4. package/README.md +1 -0
  5. package/build/.spruce/settings.json +3 -10
  6. package/build/__tests__/MockFetch.d.ts +18 -0
  7. package/build/__tests__/MockFetch.js +55 -0
  8. package/build/__tests__/MockFetch.js.map +1 -0
  9. package/build/__tests__/{impl → behavioral}/AbstractModuleTest.test.d.ts +2 -3
  10. package/build/__tests__/{impl → behavioral}/AbstractModuleTest.test.js +3 -12
  11. package/build/__tests__/behavioral/AbstractModuleTest.test.js.map +1 -0
  12. package/build/__tests__/behavioral/utilities/AllHooksCalledEvenIfNotDefined.test.d.ts +5 -0
  13. package/build/__tests__/behavioral/utilities/AllHooksCalledEvenIfNotDefined.test.js +34 -0
  14. package/build/__tests__/behavioral/utilities/AllHooksCalledEvenIfNotDefined.test.js.map +1 -0
  15. package/build/__tests__/behavioral/utilities/Assert.test.d.ts +45 -0
  16. package/build/__tests__/behavioral/utilities/Assert.test.js +645 -0
  17. package/build/__tests__/behavioral/utilities/Assert.test.js.map +1 -0
  18. package/build/__tests__/behavioral/utilities/InstanceParentTestCanAccessParentMethods.test.d.ts +4 -0
  19. package/build/__tests__/behavioral/utilities/InstanceParentTestCanAccessParentMethods.test.js +23 -0
  20. package/build/__tests__/behavioral/utilities/InstanceParentTestCanAccessParentMethods.test.js.map +1 -0
  21. package/build/__tests__/behavioral/utilities/MockFetch.test.d.ts +28 -0
  22. package/build/__tests__/behavioral/utilities/MockFetch.test.js +211 -0
  23. package/build/__tests__/behavioral/utilities/MockFetch.test.js.map +1 -0
  24. package/build/__tests__/behavioral/utilities/StackCleaner.test.d.ts +4 -0
  25. package/build/__tests__/behavioral/utilities/StackCleaner.test.js +46 -0
  26. package/build/__tests__/behavioral/utilities/StackCleaner.test.js.map +1 -0
  27. package/build/__tests__/behavioral/utilities/StaticParentTestCanAccessParentMethods.test.d.ts +7 -0
  28. package/build/__tests__/behavioral/utilities/StaticParentTestCanAccessParentMethods.test.js +32 -0
  29. package/build/__tests__/behavioral/utilities/StaticParentTestCanAccessParentMethods.test.js.map +1 -0
  30. package/build/__tests__/behavioral/utilities/StaticTestInheritsAbstractSpruceTestProperly.test.d.ts +4 -0
  31. package/build/__tests__/behavioral/utilities/StaticTestInheritsAbstractSpruceTestProperly.test.js +19 -0
  32. package/build/__tests__/behavioral/utilities/StaticTestInheritsAbstractSpruceTestProperly.test.js.map +1 -0
  33. package/build/__tests__/behavioral/utilities/Stringify.test.d.ts +5 -0
  34. package/build/__tests__/behavioral/utilities/Stringify.test.js +127 -0
  35. package/build/__tests__/behavioral/utilities/Stringify.test.js.map +1 -0
  36. package/build/__tests__/behavioral/utilities/TestDecoratorResolver.test.d.ts +7 -0
  37. package/build/__tests__/behavioral/utilities/TestDecoratorResolver.test.js +38 -0
  38. package/build/__tests__/behavioral/utilities/TestDecoratorResolver.test.js.map +1 -0
  39. package/build/__tests__/behavioral/utilities/TestOnBasic.test.d.ts +12 -0
  40. package/build/__tests__/behavioral/utilities/TestOnBasic.test.js +68 -0
  41. package/build/__tests__/behavioral/utilities/TestOnBasic.test.js.map +1 -0
  42. package/build/__tests__/behavioral/utilities/TestOnInstance.test.d.ts +28 -0
  43. package/build/__tests__/behavioral/utilities/TestOnInstance.test.js +289 -0
  44. package/build/__tests__/behavioral/utilities/TestOnInstance.test.js.map +1 -0
  45. package/build/__tests__/behavioral/utilities/TestOnInstanceExtendsTest.test.d.ts +9 -0
  46. package/build/__tests__/behavioral/utilities/TestOnInstanceExtendsTest.test.js +118 -0
  47. package/build/__tests__/behavioral/utilities/TestOnInstanceExtendsTest.test.js.map +1 -0
  48. package/build/__tests__/behavioral/utilities/TestOnInstanceExtendsTestWithHooks.test.d.ts +5 -0
  49. package/build/__tests__/behavioral/utilities/TestOnInstanceExtendsTestWithHooks.test.js +78 -0
  50. package/build/__tests__/behavioral/utilities/TestOnInstanceExtendsTestWithHooks.test.js.map +1 -0
  51. package/build/__tests__/behavioral/utilities/TestOnInstanceWithParentBeforeAll.test.d.ts +4 -0
  52. package/build/__tests__/behavioral/utilities/TestOnInstanceWithParentBeforeAll.test.js +23 -0
  53. package/build/__tests__/behavioral/utilities/TestOnInstanceWithParentBeforeAll.test.js.map +1 -0
  54. package/build/__tests__/behavioral/utilities/TestOnInstanceWithTwoLevelsOfInheritence.test.d.ts +4 -0
  55. package/build/__tests__/behavioral/utilities/TestOnInstanceWithTwoLevelsOfInheritence.test.js +24 -0
  56. package/build/__tests__/behavioral/utilities/TestOnInstanceWithTwoLevelsOfInheritence.test.js.map +1 -0
  57. package/build/__tests__/behavioral/utilities/TestResolver.test.d.ts +7 -0
  58. package/build/__tests__/behavioral/utilities/TestResolver.test.js +38 -0
  59. package/build/__tests__/behavioral/utilities/TestResolver.test.js.map +1 -0
  60. package/build/__tests__/behavioral/utilities/TestResolverOnStatic.test.d.ts +4 -0
  61. package/build/__tests__/behavioral/utilities/TestResolverOnStatic.test.js +20 -0
  62. package/build/__tests__/behavioral/utilities/TestResolverOnStatic.test.js.map +1 -0
  63. package/build/__tests__/behavioral/workspace/JestJsonParser.test.d.ts +18 -0
  64. package/build/__tests__/behavioral/workspace/JestJsonParser.test.js +267 -0
  65. package/build/__tests__/behavioral/workspace/JestJsonParser.test.js.map +1 -0
  66. package/build/__tests__/behavioral/workspace/TestReporter.test.d.ts +16 -0
  67. package/build/__tests__/behavioral/workspace/TestReporter.test.js +227 -0
  68. package/build/__tests__/behavioral/workspace/TestReporter.test.js.map +1 -0
  69. package/build/__tests__/behavioral/workspace/TestRunner.test.d.ts +15 -0
  70. package/build/__tests__/behavioral/workspace/TestRunner.test.js +99 -0
  71. package/build/__tests__/behavioral/workspace/TestRunner.test.js.map +1 -0
  72. package/build/__tests__/behavioral/workspace/Widgets.test.d.ts +13 -0
  73. package/build/__tests__/behavioral/workspace/Widgets.test.js +99 -0
  74. package/build/__tests__/behavioral/workspace/Widgets.test.js.map +1 -0
  75. package/build/__tests__/mock-terminal-kit.d.ts +79 -0
  76. package/build/__tests__/mock-terminal-kit.js +103 -0
  77. package/build/__tests__/mock-terminal-kit.js.map +1 -0
  78. package/build/__tests__/support/AbstractForInstanceTest.d.ts +4 -0
  79. package/build/__tests__/support/AbstractForInstanceTest.js +9 -0
  80. package/build/__tests__/support/AbstractForInstanceTest.js.map +1 -0
  81. package/build/__tests__/support/AbstractLevelOneTest.d.ts +3 -0
  82. package/build/__tests__/support/AbstractLevelOneTest.js +4 -0
  83. package/build/__tests__/support/AbstractLevelOneTest.js.map +1 -0
  84. package/build/__tests__/support/AbstractLevelTwoTest.d.ts +7 -0
  85. package/build/__tests__/support/AbstractLevelTwoTest.js +14 -0
  86. package/build/__tests__/support/AbstractLevelTwoTest.js.map +1 -0
  87. package/build/__tests__/support/AbstractStaticTest.d.ts +7 -0
  88. package/build/__tests__/support/AbstractStaticTest.js +14 -0
  89. package/build/__tests__/support/AbstractStaticTest.js.map +1 -0
  90. package/build/__tests__/support/AbstractTestOnInstanceTest.d.ts +22 -0
  91. package/build/__tests__/support/AbstractTestOnInstanceTest.js +23 -0
  92. package/build/__tests__/support/AbstractTestOnInstanceTest.js.map +1 -0
  93. package/build/__tests__/support/AbstractTestOnInstanceWithHooks.d.ts +26 -0
  94. package/build/__tests__/support/AbstractTestOnInstanceWithHooks.js +59 -0
  95. package/build/__tests__/support/AbstractTestOnInstanceWithHooks.js.map +1 -0
  96. package/build/__tests__/support/jest.setup.d.ts +1 -0
  97. package/build/__tests__/support/jest.setup.js +4 -0
  98. package/build/__tests__/support/jest.setup.js.map +1 -0
  99. package/build/__tests__/support/onTestFileResult.d.ts +244 -0
  100. package/build/__tests__/support/onTestFileResult.js +980 -0
  101. package/build/__tests__/support/onTestFileResult.js.map +1 -0
  102. package/build/impl/AbstractModuleTest.d.ts +18 -4
  103. package/build/impl/AbstractModuleTest.js +47 -9
  104. package/build/impl/AbstractModuleTest.js.map +1 -1
  105. package/build/index.d.ts +4 -4
  106. package/build/index.js +4 -4
  107. package/build/index.js.map +1 -1
  108. package/build/utilities/AssertionError.d.ts +3 -0
  109. package/build/utilities/AssertionError.js +12 -0
  110. package/build/utilities/AssertionError.js.map +1 -0
  111. package/build/utilities/StackCleaner.d.ts +4 -0
  112. package/build/utilities/StackCleaner.js +10 -0
  113. package/build/utilities/StackCleaner.js.map +1 -0
  114. package/build/utilities/TestDecoratorResolver.d.ts +35 -0
  115. package/build/utilities/TestDecoratorResolver.js +93 -0
  116. package/build/utilities/TestDecoratorResolver.js.map +1 -0
  117. package/build/utilities/assert.d.ts +49 -0
  118. package/build/utilities/assert.js +255 -0
  119. package/build/utilities/assert.js.map +1 -0
  120. package/build/utilities/assert.utility.d.ts +28 -0
  121. package/build/utilities/assert.utility.js +185 -0
  122. package/build/utilities/assert.utility.js.map +1 -0
  123. package/build/utilities/decorators.d.ts +9 -0
  124. package/build/utilities/decorators.js +133 -0
  125. package/build/utilities/decorators.js.map +1 -0
  126. package/build/workspace/CommandService.d.ts +49 -0
  127. package/build/workspace/CommandService.js +179 -0
  128. package/build/workspace/CommandService.js.map +1 -0
  129. package/build/workspace/JestJsonParser.d.ts +15 -0
  130. package/build/workspace/JestJsonParser.js +149 -0
  131. package/build/workspace/JestJsonParser.js.map +1 -0
  132. package/build/workspace/TKButtonWidget.d.ts +13 -0
  133. package/build/workspace/TKButtonWidget.js +37 -0
  134. package/build/workspace/TKButtonWidget.js.map +1 -0
  135. package/build/workspace/TestLogItemGenerator.d.ts +15 -0
  136. package/build/workspace/TestLogItemGenerator.js +142 -0
  137. package/build/workspace/TestLogItemGenerator.js.map +1 -0
  138. package/build/workspace/TestReporter.d.ts +103 -0
  139. package/build/workspace/TestReporter.js +677 -0
  140. package/build/workspace/TestReporter.js.map +1 -0
  141. package/build/workspace/TestRunner.d.ts +24 -0
  142. package/build/workspace/TestRunner.js +95 -0
  143. package/build/workspace/TestRunner.js.map +1 -0
  144. package/build/workspace/TkBaseWidget.d.ts +37 -0
  145. package/build/workspace/TkBaseWidget.js +185 -0
  146. package/build/workspace/TkBaseWidget.js.map +1 -0
  147. package/build/workspace/TkInputWidget.d.ts +16 -0
  148. package/build/workspace/TkInputWidget.js +64 -0
  149. package/build/workspace/TkInputWidget.js.map +1 -0
  150. package/build/workspace/TkLayoutCellWidget.d.ts +18 -0
  151. package/build/workspace/TkLayoutCellWidget.js +32 -0
  152. package/build/workspace/TkLayoutCellWidget.js.map +1 -0
  153. package/build/workspace/TkLayoutWidget.d.ts +34 -0
  154. package/build/workspace/TkLayoutWidget.js +130 -0
  155. package/build/workspace/TkLayoutWidget.js.map +1 -0
  156. package/build/workspace/TkMenuBarWidget.d.ts +13 -0
  157. package/build/workspace/TkMenuBarWidget.js +71 -0
  158. package/build/workspace/TkMenuBarWidget.js.map +1 -0
  159. package/build/workspace/TkPopupWidget.d.ts +16 -0
  160. package/build/workspace/TkPopupWidget.js +36 -0
  161. package/build/workspace/TkPopupWidget.js.map +1 -0
  162. package/build/workspace/TkProgressBarWidget.d.ts +10 -0
  163. package/build/workspace/TkProgressBarWidget.js +39 -0
  164. package/build/workspace/TkProgressBarWidget.js.map +1 -0
  165. package/build/workspace/TkTextWidget.d.ts +20 -0
  166. package/build/workspace/TkTextWidget.js +115 -0
  167. package/build/workspace/TkTextWidget.js.map +1 -0
  168. package/build/workspace/TkWindowWidget.d.ts +22 -0
  169. package/build/workspace/TkWindowWidget.js +88 -0
  170. package/build/workspace/TkWindowWidget.js.map +1 -0
  171. package/build/workspace/WidgetFactory.d.ts +6 -0
  172. package/build/workspace/WidgetFactory.js +21 -0
  173. package/build/workspace/WidgetFactory.js.map +1 -0
  174. package/build/workspace/button.types.d.ts +15 -0
  175. package/build/workspace/button.types.js +6 -0
  176. package/build/workspace/button.types.js.map +1 -0
  177. package/build/workspace/duration.utility.d.ts +4 -0
  178. package/build/workspace/duration.utility.js +26 -0
  179. package/build/workspace/duration.utility.js.map +1 -0
  180. package/build/workspace/factory.types.d.ts +89 -0
  181. package/build/workspace/factory.types.js +37 -0
  182. package/build/workspace/factory.types.js.map +1 -0
  183. package/build/workspace/input.types.d.ts +18 -0
  184. package/build/workspace/input.types.js +7 -0
  185. package/build/workspace/input.types.js.map +1 -0
  186. package/build/workspace/keySelectChoices.d.ts +517 -0
  187. package/build/workspace/keySelectChoices.js +2 -0
  188. package/build/workspace/keySelectChoices.js.map +1 -0
  189. package/build/workspace/layout.types.d.ts +33 -0
  190. package/build/workspace/layout.types.js +2 -0
  191. package/build/workspace/layout.types.js.map +1 -0
  192. package/build/workspace/menuBar.types.d.ts +19 -0
  193. package/build/workspace/menuBar.types.js +6 -0
  194. package/build/workspace/menuBar.types.js.map +1 -0
  195. package/build/workspace/popup.types.d.ts +13 -0
  196. package/build/workspace/popup.types.js +6 -0
  197. package/build/workspace/popup.types.js.map +1 -0
  198. package/build/workspace/progressBar.types.d.ts +10 -0
  199. package/build/workspace/progressBar.types.js +2 -0
  200. package/build/workspace/progressBar.types.js.map +1 -0
  201. package/build/workspace/table.types.d.ts +6 -0
  202. package/build/workspace/table.types.js +2 -0
  203. package/build/workspace/table.types.js.map +1 -0
  204. package/build/workspace/termKit.utility.d.ts +12 -0
  205. package/build/workspace/termKit.utility.js +128 -0
  206. package/build/workspace/termKit.utility.js.map +1 -0
  207. package/build/workspace/test.types.d.ts +24 -0
  208. package/build/workspace/test.types.js +2 -0
  209. package/build/workspace/test.types.js.map +1 -0
  210. package/build/workspace/testRunner.cli.d.ts +1 -0
  211. package/build/workspace/testRunner.cli.js +149 -0
  212. package/build/workspace/testRunner.cli.js.map +1 -0
  213. package/build/workspace/text.types.d.ts +20 -0
  214. package/build/workspace/text.types.js +7 -0
  215. package/build/workspace/text.types.js.map +1 -0
  216. package/build/workspace/widget.utilities.d.ts +5 -0
  217. package/build/workspace/widget.utilities.js +20 -0
  218. package/build/workspace/widget.utilities.js.map +1 -0
  219. package/build/workspace/widgets.types.d.ts +66 -0
  220. package/build/workspace/widgets.types.js +2 -0
  221. package/build/workspace/widgets.types.js.map +1 -0
  222. package/build/workspace/window.types.d.ts +18 -0
  223. package/build/workspace/window.types.js +9 -0
  224. package/build/workspace/window.types.js.map +1 -0
  225. package/eslint.config.js +3 -0
  226. package/package.json +31 -37
  227. package/prettier.config.js +3 -0
  228. package/src/.spruce/settings.json +3 -10
  229. package/src/__tests__/MockFetch.ts +100 -0
  230. package/src/__tests__/behavioral/AbstractModuleTest.test.ts +15 -0
  231. package/src/__tests__/behavioral/utilities/AllHooksCalledEvenIfNotDefined.test.ts +31 -0
  232. package/src/__tests__/behavioral/utilities/Assert.test.ts +826 -0
  233. package/src/__tests__/behavioral/utilities/InstanceParentTestCanAccessParentMethods.test.ts +14 -0
  234. package/src/__tests__/behavioral/utilities/MockFetch.test.ts +240 -0
  235. package/src/__tests__/behavioral/utilities/StackCleaner.test.ts +46 -0
  236. package/src/__tests__/behavioral/utilities/StaticParentTestCanAccessParentMethods.test.ts +34 -0
  237. package/src/__tests__/behavioral/utilities/StaticTestInheritsAbstractSpruceTestProperly.test.ts +11 -0
  238. package/src/__tests__/behavioral/utilities/Stringify.test.ts +169 -0
  239. package/src/__tests__/behavioral/utilities/TestDecoratorResolver.test.ts +51 -0
  240. package/src/__tests__/behavioral/utilities/TestOnBasic.test.ts +62 -0
  241. package/src/__tests__/behavioral/utilities/TestOnInstance.test.ts +439 -0
  242. package/src/__tests__/behavioral/utilities/TestOnInstanceExtendsTest.test.ts +237 -0
  243. package/src/__tests__/behavioral/utilities/TestOnInstanceExtendsTestWithHooks.test.ts +85 -0
  244. package/src/__tests__/behavioral/utilities/TestOnInstanceWithParentBeforeAll.test.ts +14 -0
  245. package/src/__tests__/behavioral/utilities/TestOnInstanceWithTwoLevelsOfInheritence.test.ts +16 -0
  246. package/src/__tests__/behavioral/utilities/TestResolver.test.ts +48 -0
  247. package/src/__tests__/behavioral/utilities/TestResolverOnStatic.test.ts +12 -0
  248. package/src/__tests__/behavioral/workspace/JestJsonParser.test.ts +357 -0
  249. package/src/__tests__/behavioral/workspace/TestReporter.test.ts +257 -0
  250. package/src/__tests__/behavioral/workspace/TestRunner.test.ts +87 -0
  251. package/src/__tests__/behavioral/workspace/Widgets.test.ts +90 -0
  252. package/src/__tests__/mock-terminal-kit.ts +115 -0
  253. package/src/__tests__/support/AbstractForInstanceTest.ts +12 -0
  254. package/src/__tests__/support/AbstractLevelOneTest.ts +3 -0
  255. package/src/__tests__/support/AbstractLevelTwoTest.ts +16 -0
  256. package/src/__tests__/support/AbstractStaticTest.ts +16 -0
  257. package/src/__tests__/support/AbstractTestOnInstanceTest.ts +30 -0
  258. package/src/__tests__/support/AbstractTestOnInstanceWithHooks.ts +138 -0
  259. package/src/__tests__/support/jest.setup.ts +2 -0
  260. package/src/__tests__/support/onTestFileResult.ts +1008 -0
  261. package/src/impl/AbstractModuleTest.ts +59 -10
  262. package/src/index.ts +4 -4
  263. package/src/utilities/AssertionError.ts +14 -0
  264. package/src/utilities/StackCleaner.ts +14 -0
  265. package/src/utilities/TestDecoratorResolver.ts +118 -0
  266. package/src/utilities/assert.ts +583 -0
  267. package/src/utilities/assert.utility.ts +295 -0
  268. package/src/utilities/decorators.ts +167 -0
  269. package/src/workspace/CommandService.ts +256 -0
  270. package/src/workspace/JestJsonParser.ts +255 -0
  271. package/src/workspace/TKButtonWidget.ts +54 -0
  272. package/src/workspace/TestLogItemGenerator.ts +184 -0
  273. package/src/workspace/TestReporter.ts +865 -0
  274. package/src/workspace/TestRunner.ts +128 -0
  275. package/src/workspace/TkBaseWidget.ts +249 -0
  276. package/src/workspace/TkInputWidget.ts +83 -0
  277. package/src/workspace/TkLayoutCellWidget.ts +46 -0
  278. package/src/workspace/TkLayoutWidget.ts +181 -0
  279. package/src/workspace/TkMenuBarWidget.ts +95 -0
  280. package/src/workspace/TkPopupWidget.ts +47 -0
  281. package/src/workspace/TkProgressBarWidget.ts +54 -0
  282. package/src/workspace/TkTextWidget.ts +158 -0
  283. package/src/workspace/TkWindowWidget.ts +122 -0
  284. package/src/workspace/WidgetFactory.ts +33 -0
  285. package/src/workspace/button.types.ts +19 -0
  286. package/src/workspace/duration.utility.ts +34 -0
  287. package/src/workspace/factory.types.ts +101 -0
  288. package/src/workspace/input.types.ts +22 -0
  289. package/src/workspace/keySelectChoices.ts +134 -0
  290. package/src/workspace/layout.types.ts +40 -0
  291. package/src/workspace/menuBar.types.ts +24 -0
  292. package/src/workspace/popup.types.ts +17 -0
  293. package/src/workspace/progressBar.types.ts +13 -0
  294. package/src/workspace/table.types.ts +9 -0
  295. package/src/workspace/termKit.utility.ts +130 -0
  296. package/src/workspace/terminal-kit.d.ts +28 -0
  297. package/src/workspace/test.types.ts +34 -0
  298. package/src/workspace/testRunner.cli.ts +159 -0
  299. package/src/workspace/text.types.ts +26 -0
  300. package/src/workspace/widget.utilities.ts +35 -0
  301. package/src/workspace/widgets.types.ts +102 -0
  302. package/src/workspace/window.types.ts +22 -0
  303. package/tsconfig.json +23 -27
  304. package/build/__tests__/AbstractPackageTest.d.ts +0 -4
  305. package/build/__tests__/AbstractPackageTest.js +0 -7
  306. package/build/__tests__/AbstractPackageTest.js.map +0 -1
  307. package/build/__tests__/functions/assertFunction.test.d.ts +0 -5
  308. package/build/__tests__/functions/assertFunction.test.js +0 -23
  309. package/build/__tests__/functions/assertFunction.test.js.map +0 -1
  310. package/build/__tests__/functions/testFunction.test.d.ts +0 -5
  311. package/build/__tests__/functions/testFunction.test.js +0 -23
  312. package/build/__tests__/functions/testFunction.test.js.map +0 -1
  313. package/build/__tests__/impl/AbstractModuleTest.test.js.map +0 -1
  314. package/build/functions/assert.d.ts +0 -3
  315. package/build/functions/assert.js +0 -4
  316. package/build/functions/assert.js.map +0 -1
  317. package/build/functions/test.d.ts +0 -3
  318. package/build/functions/test.js +0 -4
  319. package/build/functions/test.js.map +0 -1
  320. package/eslint.config.mjs +0 -3
  321. package/src/__tests__/AbstractPackageTest.ts +0 -7
  322. package/src/__tests__/functions/assertFunction.test.ts +0 -22
  323. package/src/__tests__/functions/testFunction.test.ts +0 -22
  324. package/src/__tests__/impl/AbstractModuleTest.test.ts +0 -34
  325. package/src/functions/assert.ts +0 -4
  326. package/src/functions/test.ts +0 -4
@@ -0,0 +1,23 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var TestOnInstanceWithParentBeforeAllTest_1;
8
+ import test, { suite } from '../../../utilities/decorators.js';
9
+ import assert from '../../../utilities/assert.js';
10
+ import AbstractForInstanceTest from '../../support/AbstractForInstanceTest.js';
11
+ let TestOnInstanceWithParentBeforeAllTest = TestOnInstanceWithParentBeforeAllTest_1 = class TestOnInstanceWithParentBeforeAllTest extends AbstractForInstanceTest {
12
+ async canCreateTestOnInstanceWithParentBeforeAll() {
13
+ assert.isTrue(TestOnInstanceWithParentBeforeAllTest_1.wasBeforeAllCalled, 'beforeAll was not called on parent class');
14
+ }
15
+ };
16
+ __decorate([
17
+ test()
18
+ ], TestOnInstanceWithParentBeforeAllTest.prototype, "canCreateTestOnInstanceWithParentBeforeAll", null);
19
+ TestOnInstanceWithParentBeforeAllTest = TestOnInstanceWithParentBeforeAllTest_1 = __decorate([
20
+ suite()
21
+ ], TestOnInstanceWithParentBeforeAllTest);
22
+ export default TestOnInstanceWithParentBeforeAllTest;
23
+ //# sourceMappingURL=TestOnInstanceWithParentBeforeAll.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TestOnInstanceWithParentBeforeAll.test.js","sourceRoot":"","sources":["../../../../src/__tests__/behavioral/utilities/TestOnInstanceWithParentBeforeAll.test.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,IAAI,EAAE,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAA;AAC9D,OAAO,MAAM,MAAM,8BAA8B,CAAA;AACjD,OAAO,uBAAuB,MAAM,0CAA0C,CAAA;AAG/D,IAAM,qCAAqC,6CAA3C,MAAM,qCAAsC,SAAQ,uBAAuB;IAEtE,AAAN,KAAK,CAAC,0CAA0C;QACtD,MAAM,CAAC,MAAM,CACT,uCAAqC,CAAC,kBAAkB,EACxD,0CAA0C,CAC7C,CAAA;IACL,CAAC;CACJ,CAAA;AANmB;IADf,IAAI,EAAE;uGAMN;AAPgB,qCAAqC;IADzD,KAAK,EAAE;GACa,qCAAqC,CAQzD;eARoB,qCAAqC"}
@@ -0,0 +1,4 @@
1
+ import AbstractBeforeAllLevelOneTest from '../../support/AbstractLevelOneTest.js';
2
+ export default class TestOnInstanceWithTwoLevelsOfInheritenceTest extends AbstractBeforeAllLevelOneTest {
3
+ protected canCreateTestOnInstanceWithTwoLevelsOfInheritence(): Promise<void>;
4
+ }
@@ -0,0 +1,24 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var TestOnInstanceWithTwoLevelsOfInheritenceTest_1;
8
+ import assert from '../../../utilities/assert.js';
9
+ import test, { suite } from '../../../utilities/decorators.js';
10
+ import AbstractBeforeAllLevelOneTest from '../../support/AbstractLevelOneTest.js';
11
+ let TestOnInstanceWithTwoLevelsOfInheritenceTest = TestOnInstanceWithTwoLevelsOfInheritenceTest_1 = class TestOnInstanceWithTwoLevelsOfInheritenceTest extends AbstractBeforeAllLevelOneTest {
12
+ async canCreateTestOnInstanceWithTwoLevelsOfInheritence() {
13
+ assert.isTrue(TestOnInstanceWithTwoLevelsOfInheritenceTest_1.wasBeforeAllLevelTwoCalled, 'beforeAll was not called on level two class');
14
+ assert.isTrue(this.wasBeforeEachLevelTwoCalled);
15
+ }
16
+ };
17
+ __decorate([
18
+ test()
19
+ ], TestOnInstanceWithTwoLevelsOfInheritenceTest.prototype, "canCreateTestOnInstanceWithTwoLevelsOfInheritence", null);
20
+ TestOnInstanceWithTwoLevelsOfInheritenceTest = TestOnInstanceWithTwoLevelsOfInheritenceTest_1 = __decorate([
21
+ suite()
22
+ ], TestOnInstanceWithTwoLevelsOfInheritenceTest);
23
+ export default TestOnInstanceWithTwoLevelsOfInheritenceTest;
24
+ //# sourceMappingURL=TestOnInstanceWithTwoLevelsOfInheritence.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TestOnInstanceWithTwoLevelsOfInheritence.test.js","sourceRoot":"","sources":["../../../../src/__tests__/behavioral/utilities/TestOnInstanceWithTwoLevelsOfInheritence.test.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,MAAM,MAAM,8BAA8B,CAAA;AACjD,OAAO,IAAI,EAAE,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAA;AAC9D,OAAO,6BAA6B,MAAM,uCAAuC,CAAA;AAGlE,IAAM,4CAA4C,oDAAlD,MAAM,4CAA6C,SAAQ,6BAA6B;IAEnF,AAAN,KAAK,CAAC,iDAAiD;QAC7D,MAAM,CAAC,MAAM,CACT,8CAA4C,CAAC,0BAA0B,EACvE,6CAA6C,CAChD,CAAA;QAED,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,2BAA2B,CAAC,CAAA;IACnD,CAAC;CACJ,CAAA;AARmB;IADf,IAAI,EAAE;qHAQN;AATgB,4CAA4C;IADhE,KAAK,EAAE;GACa,4CAA4C,CAUhE;eAVoB,4CAA4C"}
@@ -0,0 +1,7 @@
1
+ import AbstractModuleTest from '../../../impl/AbstractModuleTest.js';
2
+ export default class TestDecoratorResolverTest extends AbstractModuleTest {
3
+ protected static counter: number;
4
+ protected static beforeAll(): Promise<void>;
5
+ protected static afterAll(): Promise<void>;
6
+ protected canCreateTestDecoratorResolver(): Promise<void>;
7
+ }
@@ -0,0 +1,38 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ var TestDecoratorResolverTest_1;
8
+ import AbstractModuleTest from '../../../impl/AbstractModuleTest.js';
9
+ import assert from '../../../utilities/assert.js';
10
+ import test, { suite } from '../../../utilities/decorators.js';
11
+ import TestDecoratorResolver from '../../../utilities/TestDecoratorResolver.js';
12
+ let TestDecoratorResolverTest = class TestDecoratorResolverTest extends AbstractModuleTest {
13
+ static { TestDecoratorResolverTest_1 = this; }
14
+ static counter = 4;
15
+ static async beforeAll() {
16
+ await super.beforeAll();
17
+ assert.isEqual(this.counter, 4, 'beforeAll did not access correct static property');
18
+ }
19
+ static async afterAll() {
20
+ await super.afterAll();
21
+ assert.isEqual(this.counter, 10, 'afterAll did not access correct static property');
22
+ }
23
+ async canCreateTestDecoratorResolver() {
24
+ TestDecoratorResolverTest_1.counter = 10;
25
+ const activeTest = TestDecoratorResolver.getActiveTest();
26
+ assert.isInstanceOf(activeTest, TestDecoratorResolverTest_1, 'getActive test is not this on instance test');
27
+ const activeTest2 = TestDecoratorResolver.getActiveTest();
28
+ assert.isEqual(activeTest, activeTest2, 'getActiveTest called a second time did not return same instance');
29
+ }
30
+ };
31
+ __decorate([
32
+ test()
33
+ ], TestDecoratorResolverTest.prototype, "canCreateTestDecoratorResolver", null);
34
+ TestDecoratorResolverTest = TestDecoratorResolverTest_1 = __decorate([
35
+ suite()
36
+ ], TestDecoratorResolverTest);
37
+ export default TestDecoratorResolverTest;
38
+ //# sourceMappingURL=TestResolver.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TestResolver.test.js","sourceRoot":"","sources":["../../../../src/__tests__/behavioral/utilities/TestResolver.test.ts"],"names":[],"mappings":";;;;;;;AAAA,OAAO,kBAAkB,MAAM,qCAAqC,CAAA;AACpE,OAAO,MAAM,MAAM,8BAA8B,CAAA;AACjD,OAAO,IAAI,EAAE,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAA;AAC9D,OAAO,qBAAqB,MAAM,6CAA6C,CAAA;AAGhE,IAAM,yBAAyB,GAA/B,MAAM,yBAA0B,SAAQ,kBAAkB;;IAC3D,MAAM,CAAC,OAAO,GAAG,CAAC,CAAA;IAElB,MAAM,CAAC,KAAK,CAAC,SAAS;QAC5B,MAAM,KAAK,CAAC,SAAS,EAAE,CAAA;QAEvB,MAAM,CAAC,OAAO,CACV,IAAI,CAAC,OAAO,EACZ,CAAC,EACD,kDAAkD,CACrD,CAAA;IACL,CAAC;IAES,MAAM,CAAC,KAAK,CAAC,QAAQ;QAC3B,MAAM,KAAK,CAAC,QAAQ,EAAE,CAAA;QAEtB,MAAM,CAAC,OAAO,CACV,IAAI,CAAC,OAAO,EACZ,EAAE,EACF,iDAAiD,CACpD,CAAA;IACL,CAAC;IAGe,AAAN,KAAK,CAAC,8BAA8B;QAC1C,2BAAyB,CAAC,OAAO,GAAG,EAAE,CAAA;QAEtC,MAAM,UAAU,GAAG,qBAAqB,CAAC,aAAa,EAAE,CAAA;QACxD,MAAM,CAAC,YAAY,CACf,UAAU,EACV,2BAAyB,EACzB,6CAA6C,CAChD,CAAA;QAED,MAAM,WAAW,GAAG,qBAAqB,CAAC,aAAa,EAAE,CAAA;QACzD,MAAM,CAAC,OAAO,CACV,UAAU,EACV,WAAW,EACX,iEAAiE,CACpE,CAAA;IACL,CAAC;;AAhBe;IADf,IAAI,EAAE;+EAiBN;AAxCgB,yBAAyB;IAD7C,KAAK,EAAE;GACa,yBAAyB,CAyC7C;eAzCoB,yBAAyB"}
@@ -0,0 +1,4 @@
1
+ import AbstractModuleTest from '../../../impl/AbstractModuleTest.js';
2
+ export default class TestDecoratorResolverOnStaticTest extends AbstractModuleTest {
3
+ protected static canCreateTestDecoratorResolverOnStatic(): Promise<void>;
4
+ }
@@ -0,0 +1,20 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import AbstractModuleTest from '../../../impl/AbstractModuleTest.js';
8
+ import assert from '../../../utilities/assert.js';
9
+ import test from '../../../utilities/decorators.js';
10
+ import TestDecoratorResolver from '../../../utilities/TestDecoratorResolver.js';
11
+ export default class TestDecoratorResolverOnStaticTest extends AbstractModuleTest {
12
+ static async canCreateTestDecoratorResolverOnStatic() {
13
+ const active = TestDecoratorResolver.getActiveTest();
14
+ assert.isEqual(active, TestDecoratorResolverOnStaticTest);
15
+ }
16
+ }
17
+ __decorate([
18
+ test()
19
+ ], TestDecoratorResolverOnStaticTest, "canCreateTestDecoratorResolverOnStatic", null);
20
+ //# sourceMappingURL=TestResolverOnStatic.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TestResolverOnStatic.test.js","sourceRoot":"","sources":["../../../../src/__tests__/behavioral/utilities/TestResolverOnStatic.test.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,kBAAkB,MAAM,qCAAqC,CAAA;AACpE,OAAO,MAAM,MAAM,8BAA8B,CAAA;AACjD,OAAO,IAAI,MAAM,kCAAkC,CAAA;AACnD,OAAO,qBAAqB,MAAM,6CAA6C,CAAA;AAE/E,MAAM,CAAC,OAAO,OAAO,iCAAkC,SAAQ,kBAAkB;IAEtD,AAAb,MAAM,CAAC,KAAK,CAAC,sCAAsC;QACzD,MAAM,MAAM,GAAG,qBAAqB,CAAC,aAAa,EAAE,CAAA;QACpD,MAAM,CAAC,OAAO,CAAC,MAAM,EAAE,iCAAiC,CAAC,CAAA;IAC7D,CAAC;CACJ;AAJ0B;IADtB,IAAI,EAAE;qFAIN"}
@@ -0,0 +1,18 @@
1
+ import AbstractModuleTest from '../../../impl/AbstractModuleTest.js';
2
+ export default class JestJsonParserTest extends AbstractModuleTest {
3
+ private static parser;
4
+ protected static beforeEach(): Promise<void>;
5
+ protected static canCreateJjp(): void;
6
+ protected static generatesEmptyResults(): void;
7
+ protected static canHandleSelfContainedWrite(): void;
8
+ protected static canHandleSelfContainedWriteWithTwoTests(): void;
9
+ protected static multipleSelfContainedWritesWorks(): void;
10
+ protected static partialWriteReturnsNothing(): void;
11
+ protected static canPartialWriteAcrossTwoWrites(): void;
12
+ protected static canPartialWriteAndSelfContainedAcrossThreeWrites(): void;
13
+ protected static canSelfContainedPlusPartial(): void;
14
+ protected static canHandleGarbageAtFrontOfData(): void;
15
+ protected static canHandlesSplitTestRestsWithGarbageInFrontAndDanglingEnd(): void;
16
+ protected static canUpdateAsTestsCompletes(): void;
17
+ private static generateTestResults;
18
+ }
@@ -0,0 +1,267 @@
1
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
6
+ };
7
+ import { END_DIVIDER, START_DIVIDER } from '@sprucelabs/jest-json-reporter';
8
+ import AbstractModuleTest from '../../../impl/AbstractModuleTest.js';
9
+ import assert from '../../../utilities/assert.js';
10
+ import test from '../../../utilities/decorators.js';
11
+ import JestJsonParser from '../../../workspace/JestJsonParser.js';
12
+ import onTestFileResult from '../../support/onTestFileResult.js';
13
+ export default class JestJsonParserTest extends AbstractModuleTest {
14
+ static parser;
15
+ static async beforeEach() {
16
+ await super.beforeEach();
17
+ this.parser = new JestJsonParser();
18
+ }
19
+ static canCreateJjp() {
20
+ assert.isTruthy(this.parser.write);
21
+ }
22
+ static generatesEmptyResults() {
23
+ const startRun = this.generateTestResults('onRunStart');
24
+ this.parser.write(startRun);
25
+ const testResults = this.parser.getResults();
26
+ assert.isEqualDeep(testResults, {
27
+ totalTestFiles: 43,
28
+ });
29
+ }
30
+ static canHandleSelfContainedWrite() {
31
+ const data = this.generateTestResults('onTestFileStart', 'behavioral/errors/CreatingANewErrorBuilder.test.js');
32
+ this.parser.write(this.generateTestResults('onRunStart'));
33
+ this.parser.write(data);
34
+ const testResults = this.parser.getResults();
35
+ assert.isTruthy(testResults.testFiles);
36
+ assert.isLength(testResults.testFiles, 1);
37
+ assert.isEqualDeep(testResults.testFiles[0], {
38
+ path: `behavioral/errors/CreatingANewErrorBuilder.test.ts`,
39
+ status: 'running',
40
+ });
41
+ }
42
+ static canHandleSelfContainedWriteWithTwoTests() {
43
+ const data = this.generateTestResults('onTestFileStart', 'behavioral/errors/CreatingANewErrorBuilder.test.js') +
44
+ this.generateTestResults('onTestFileStart', 'behavioral/tests/RunningTests.test.js');
45
+ this.parser.write(data);
46
+ const testResults = this.parser.getResults();
47
+ assert.isTruthy(testResults.testFiles);
48
+ assert.isLength(testResults.testFiles, 2);
49
+ assert.isEqualDeep(testResults.testFiles, [
50
+ {
51
+ path: `behavioral/errors/CreatingANewErrorBuilder.test.ts`,
52
+ status: 'running',
53
+ },
54
+ {
55
+ path: `behavioral/tests/RunningTests.test.ts`,
56
+ status: 'running',
57
+ },
58
+ ]);
59
+ }
60
+ static multipleSelfContainedWritesWorks() {
61
+ this.parser.write(this.generateTestResults('onTestFileStart', `behavioral/errors/CreatingANewErrorBuilder.test.js`));
62
+ this.parser.write(this.generateTestResults('onTestFileStart', `behavioral/tests/RunningTests.test.js`));
63
+ const testResults = this.parser.getResults();
64
+ assert.isTruthy(testResults.testFiles);
65
+ assert.isLength(testResults.testFiles, 2);
66
+ assert.isEqualDeep(testResults.testFiles, [
67
+ {
68
+ path: `behavioral/errors/CreatingANewErrorBuilder.test.ts`,
69
+ status: 'running',
70
+ },
71
+ {
72
+ path: `behavioral/tests/RunningTests.test.ts`,
73
+ status: 'running',
74
+ },
75
+ ]);
76
+ }
77
+ static partialWriteReturnsNothing() {
78
+ const data = this.generateTestResults('onTestFileStart', 'behavioral/errors/KeepingErrorsInSync.test.js').substr(0, 100);
79
+ this.parser.write(data);
80
+ const testResults = this.parser.getResults();
81
+ assert.isFalsy(testResults.testFiles);
82
+ }
83
+ static canPartialWriteAcrossTwoWrites() {
84
+ const data = this.generateTestResults('onTestFileStart', 'behavioral/errors/KeepingErrorsInSync.test.js');
85
+ const firstPart = data.substr(0, 100);
86
+ const secondPart = data.substr(100);
87
+ this.parser.write(firstPart);
88
+ this.parser.write(secondPart);
89
+ const testResults = this.parser.getResults();
90
+ assert.isTruthy(testResults.testFiles);
91
+ assert.isLength(testResults.testFiles, 1);
92
+ assert.isEqualDeep(testResults.testFiles[0], {
93
+ path: `behavioral/errors/KeepingErrorsInSync.test.ts`,
94
+ status: 'running',
95
+ });
96
+ }
97
+ static canPartialWriteAndSelfContainedAcrossThreeWrites() {
98
+ const data = this.generateTestResults('onTestFileStart', 'behavioral/errors/KeepingErrorsInSync.test.js');
99
+ const firstPart = data.substr(0, 100);
100
+ const secondPart = data.substr(100);
101
+ this.parser.write(this.generateTestResults('onRunStart'));
102
+ this.parser.write(firstPart);
103
+ this.parser.write(secondPart);
104
+ this.parser.write(this.generateTestResults('onTestFileStart', 'behavioral/tests/CreatingANewErrorBuilder.test.js'));
105
+ const testResults = this.parser.getResults();
106
+ assert.isEqualDeep(testResults, {
107
+ totalTestFiles: 43,
108
+ testFiles: [
109
+ {
110
+ path: 'behavioral/errors/KeepingErrorsInSync.test.ts',
111
+ status: 'running',
112
+ },
113
+ {
114
+ path: 'behavioral/tests/CreatingANewErrorBuilder.test.ts',
115
+ status: 'running',
116
+ },
117
+ ],
118
+ });
119
+ }
120
+ static canSelfContainedPlusPartial() {
121
+ const firstSelfContained = this.generateTestResults('onTestFileStart', `behavioral/errors/KeepingErrorsInSync.test.js`);
122
+ const data = firstSelfContained +
123
+ this.generateTestResults('onTestFileStart', 'behavioral/tests/CreatingANewErrorBuilder.test.js');
124
+ const splitIdx = firstSelfContained.length + 500;
125
+ const firstPart = data.substr(0, splitIdx);
126
+ const secondPart = data.substr(splitIdx);
127
+ this.parser.write(firstPart);
128
+ this.parser.write(secondPart);
129
+ const testResults = this.parser.getResults();
130
+ assert.isTruthy(testResults.testFiles);
131
+ assert.isLength(testResults.testFiles, 2);
132
+ assert.isEqualDeep(testResults.testFiles[0], {
133
+ path: `behavioral/errors/KeepingErrorsInSync.test.ts`,
134
+ status: 'running',
135
+ });
136
+ assert.isEqualDeep(testResults.testFiles[1], {
137
+ path: 'behavioral/tests/CreatingANewErrorBuilder.test.ts',
138
+ status: 'running',
139
+ });
140
+ }
141
+ static canHandleGarbageAtFrontOfData() {
142
+ const data = 'yarn test run\nother garbage' +
143
+ this.generateTestResults('onTestFileStart', 'behavioral/errors/CreatingANewErrorBuilder.test.js');
144
+ this.parser.write(data);
145
+ const testResults = this.parser.getResults();
146
+ assert.isTruthy(testResults.testFiles);
147
+ assert.isLength(testResults.testFiles, 1);
148
+ assert.isEqualDeep(testResults.testFiles[0], {
149
+ path: `behavioral/errors/CreatingANewErrorBuilder.test.ts`,
150
+ status: 'running',
151
+ });
152
+ }
153
+ static canHandlesSplitTestRestsWithGarbageInFrontAndDanglingEnd() {
154
+ this.parser.write('yarn run go team ***************************START_JSON_DIVIDER***************************');
155
+ this.parser.write('{"status":"onTestFileStart","test":{"context":{},"duration":40472,"path":"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli/build/__tests__/behavioral/tests/RunningTests.test.js"}}');
156
+ this.parser.write(`***************************END_JSON_DIVIDER***************************\n\t\t\t***************************START_JSON_DIVIDER***************************\n\t\t\t{"status":"onTestFileStart","test":{"context":{},"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":{},"duration":17443,"path":"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli/build/__tests__/behavioral/watchers/WatchingForChanges.test.js"}}`);
157
+ const testResults = this.parser.getResults();
158
+ assert.isTruthy(testResults.testFiles);
159
+ assert.isLength(testResults.testFiles, 2);
160
+ }
161
+ static canUpdateAsTestsCompletes() {
162
+ const data = this.generateTestResults('onTestFileStart', 'behavioral/errors/CreatingANewErrorBuilder.test.js');
163
+ this.parser.write(data);
164
+ const completed = this.generateTestResults('onTestFileResult', 'behavioral/errors/CreatingANewErrorBuilder.test.js');
165
+ this.parser.write(completed);
166
+ const testResults = this.parser.getResults();
167
+ assert.isTruthy(testResults.testFiles);
168
+ assert.isLength(testResults.testFiles, 11);
169
+ assert.doesInclude(testResults, {
170
+ totalTestFiles: 39,
171
+ totalTestFilesComplete: 20,
172
+ totalFailed: 1,
173
+ totalPassed: 181,
174
+ totalTests: 183,
175
+ totalSkipped: 1,
176
+ totalTodo: 0,
177
+ });
178
+ assert.isEqualDeep(testResults.testFiles[0], {
179
+ path: 'behavioral/errors/CreatingANewErrorBuilder.test.ts',
180
+ status: 'running',
181
+ });
182
+ assert.isEqualDeep(testResults.testFiles[1], {
183
+ path: 'implementation/CasualNameUtility.test.ts',
184
+ status: 'passed',
185
+ tests: [
186
+ {
187
+ name: 'No name returns friend',
188
+ status: 'passed',
189
+ errorMessages: [],
190
+ duration: 2,
191
+ },
192
+ {
193
+ name: 'Just last name to just last name',
194
+ status: 'passed',
195
+ errorMessages: [],
196
+ duration: 0,
197
+ },
198
+ {
199
+ name: 'First name only to first name only',
200
+ status: 'passed',
201
+ errorMessages: [],
202
+ duration: 1,
203
+ },
204
+ {
205
+ name: 'last and first name to First Last initial',
206
+ status: 'passed',
207
+ errorMessages: [],
208
+ duration: 0,
209
+ },
210
+ ],
211
+ });
212
+ const failedFile = testResults.testFiles.find((f) => f.path === 'behavioral/UpdatingARole.test.ts');
213
+ assert.isTruthy(failedFile);
214
+ assert.isEqual(failedFile.status, 'failed');
215
+ assert.isTruthy(failedFile.tests);
216
+ assert.isEqual(failedFile.tests[0].status, 'failed');
217
+ }
218
+ static generateTestResults(jestStatus, testFile) {
219
+ switch (jestStatus) {
220
+ case 'onRunStart':
221
+ return `${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}`;
222
+ case 'onTestFileStart':
223
+ return `${START_DIVIDER}{"status":"onTestFileStart","test":{"context":{},"duration":40472,"path":"/Users/taylorromero/Development/SpruceLabs/spruce-cli-workspace/packages/spruce-cli/build/__tests__/${testFile}"}}${END_DIVIDER}`;
224
+ case 'onTestFileResult':
225
+ return `${START_DIVIDER}${JSON.stringify(onTestFileResult(testFile ?? 'missing'))}${END_DIVIDER}`;
226
+ default:
227
+ throw new Error('Status not implemented');
228
+ }
229
+ }
230
+ }
231
+ __decorate([
232
+ test()
233
+ ], JestJsonParserTest, "canCreateJjp", null);
234
+ __decorate([
235
+ test()
236
+ ], JestJsonParserTest, "generatesEmptyResults", null);
237
+ __decorate([
238
+ test()
239
+ ], JestJsonParserTest, "canHandleSelfContainedWrite", null);
240
+ __decorate([
241
+ test()
242
+ ], JestJsonParserTest, "canHandleSelfContainedWriteWithTwoTests", null);
243
+ __decorate([
244
+ test()
245
+ ], JestJsonParserTest, "multipleSelfContainedWritesWorks", null);
246
+ __decorate([
247
+ test()
248
+ ], JestJsonParserTest, "partialWriteReturnsNothing", null);
249
+ __decorate([
250
+ test()
251
+ ], JestJsonParserTest, "canPartialWriteAcrossTwoWrites", null);
252
+ __decorate([
253
+ test()
254
+ ], JestJsonParserTest, "canPartialWriteAndSelfContainedAcrossThreeWrites", null);
255
+ __decorate([
256
+ test()
257
+ ], JestJsonParserTest, "canSelfContainedPlusPartial", null);
258
+ __decorate([
259
+ test()
260
+ ], JestJsonParserTest, "canHandleGarbageAtFrontOfData", null);
261
+ __decorate([
262
+ test()
263
+ ], JestJsonParserTest, "canHandlesSplitTestRestsWithGarbageInFrontAndDanglingEnd", null);
264
+ __decorate([
265
+ test()
266
+ ], JestJsonParserTest, "canUpdateAsTestsCompletes", null);
267
+ //# sourceMappingURL=JestJsonParser.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"JestJsonParser.test.js","sourceRoot":"","sources":["../../../../src/__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16 @@
1
+ import AbstractModuleTest from '../../../impl/AbstractModuleTest.js';
2
+ export default class TestReporterTest extends AbstractModuleTest {
3
+ protected static canInstantiateTestReporter(): Promise<void>;
4
+ protected static canInstantiateWithOptions(): Promise<void>;
5
+ protected static hasStartMethod(): Promise<void>;
6
+ protected static hasDestroyMethod(): Promise<void>;
7
+ protected static hasUpdateResultsMethod(): Promise<void>;
8
+ protected static hasSetStatusMethod(): Promise<void>;
9
+ protected static hasResetMethod(): Promise<void>;
10
+ protected static hasAppendErrorMethod(): Promise<void>;
11
+ protected static throwsIfUpdateResultsCalledBeforeStart(): Promise<void>;
12
+ protected static doesNotDestroyOnUncaughtException(): Promise<void>;
13
+ protected static grabsInputToResetMouseStateAfterCrash(): Promise<void>;
14
+ protected static errorLogIsCreatedWithFocusableSetToFalse(): Promise<void>;
15
+ private static TestReporter;
16
+ }