sxy-test-runner 1.4.5 → 2.0.0

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 (354) hide show
  1. package/dist/cli/index.d.ts +3 -0
  2. package/dist/cli/index.d.ts.map +1 -0
  3. package/dist/cli/index.js +24 -22
  4. package/dist/cli/index.js.map +1 -0
  5. package/dist/cli/init.d.ts +2 -0
  6. package/dist/cli/init.d.ts.map +1 -0
  7. package/dist/cli/init.js +41 -91
  8. package/dist/cli/init.js.map +1 -0
  9. package/dist/cli/lib/addBasePath.d.ts +3 -0
  10. package/dist/cli/lib/addBasePath.d.ts.map +1 -0
  11. package/dist/cli/lib/addBasePath.js +12 -14
  12. package/dist/cli/lib/addBasePath.js.map +1 -0
  13. package/dist/cli/lib/addBasePath.unitTest.d.ts +2 -0
  14. package/dist/cli/lib/addBasePath.unitTest.d.ts.map +1 -0
  15. package/dist/cli/lib/addBasePath.unitTest.js +51 -29
  16. package/dist/cli/lib/addBasePath.unitTest.js.map +1 -0
  17. package/dist/cli/lib/addExports.d.ts +3 -0
  18. package/dist/cli/lib/addExports.d.ts.map +1 -0
  19. package/dist/cli/lib/addExports.js +13 -11
  20. package/dist/cli/lib/addExports.js.map +1 -0
  21. package/dist/cli/lib/addExports.unitTest.d.ts +2 -0
  22. package/dist/cli/lib/addExports.unitTest.d.ts.map +1 -0
  23. package/dist/cli/lib/addExports.unitTest.js +15 -30
  24. package/dist/cli/lib/addExports.unitTest.js.map +1 -0
  25. package/dist/cli/lib/applyConfigDefaults.d.ts +3 -0
  26. package/dist/cli/lib/applyConfigDefaults.d.ts.map +1 -0
  27. package/dist/cli/lib/applyConfigDefaults.js +6 -42
  28. package/dist/cli/lib/applyConfigDefaults.js.map +1 -0
  29. package/dist/cli/lib/applyConfigDefaults.unitTest.d.ts +2 -0
  30. package/dist/cli/lib/applyConfigDefaults.unitTest.d.ts.map +1 -0
  31. package/dist/cli/lib/applyConfigDefaults.unitTest.js +19 -27
  32. package/dist/cli/lib/applyConfigDefaults.unitTest.js.map +1 -0
  33. package/dist/cli/lib/buildDependencyTree.d.ts +3 -0
  34. package/dist/cli/lib/buildDependencyTree.d.ts.map +1 -0
  35. package/dist/cli/lib/buildDependencyTree.js +23 -34
  36. package/dist/cli/lib/buildDependencyTree.js.map +1 -0
  37. package/dist/cli/lib/buildDependencyTree.unitTest.d.ts +2 -0
  38. package/dist/cli/lib/buildDependencyTree.unitTest.d.ts.map +1 -0
  39. package/dist/cli/lib/buildDependencyTree.unitTest.js +13 -11
  40. package/dist/cli/lib/buildDependencyTree.unitTest.js.map +1 -0
  41. package/dist/cli/lib/buildDependencyTrees.d.ts +3 -0
  42. package/dist/cli/lib/buildDependencyTrees.d.ts.map +1 -0
  43. package/dist/cli/lib/buildDependencyTrees.js +15 -34
  44. package/dist/cli/lib/buildDependencyTrees.js.map +1 -0
  45. package/dist/cli/lib/buildDependencyTrees.unitTest.d.ts +2 -0
  46. package/dist/cli/lib/buildDependencyTrees.unitTest.d.ts.map +1 -0
  47. package/dist/cli/lib/buildDependencyTrees.unitTest.js +18 -14
  48. package/dist/cli/lib/buildDependencyTrees.unitTest.js.map +1 -0
  49. package/dist/cli/lib/defaultConfig.d.ts +3 -0
  50. package/dist/cli/lib/defaultConfig.d.ts.map +1 -0
  51. package/dist/cli/lib/defaultConfig.js +23 -21
  52. package/dist/cli/lib/defaultConfig.js.map +1 -0
  53. package/dist/cli/lib/defaultConfig.unitTest.d.ts +2 -0
  54. package/dist/cli/lib/defaultConfig.unitTest.d.ts.map +1 -0
  55. package/dist/cli/lib/defaultConfig.unitTest.js +7 -0
  56. package/dist/cli/lib/defaultConfig.unitTest.js.map +1 -0
  57. package/dist/cli/lib/doUserSetup.d.ts +3 -0
  58. package/dist/cli/lib/doUserSetup.d.ts.map +1 -0
  59. package/dist/cli/lib/doUserSetup.js +20 -23
  60. package/dist/cli/lib/doUserSetup.js.map +1 -0
  61. package/dist/cli/lib/doUserSetup.unitTest.d.ts +7 -0
  62. package/dist/cli/lib/doUserSetup.unitTest.d.ts.map +1 -0
  63. package/dist/cli/lib/doUserSetup.unitTest.js +41 -36
  64. package/dist/cli/lib/doUserSetup.unitTest.js.map +1 -0
  65. package/dist/cli/lib/doUserTeardown.d.ts +3 -0
  66. package/dist/cli/lib/doUserTeardown.d.ts.map +1 -0
  67. package/dist/cli/lib/doUserTeardown.js +21 -23
  68. package/dist/cli/lib/doUserTeardown.js.map +1 -0
  69. package/dist/cli/lib/doUserTeardown.unitTest.d.ts +7 -0
  70. package/dist/cli/lib/doUserTeardown.unitTest.d.ts.map +1 -0
  71. package/dist/cli/lib/doUserTeardown.unitTest.js +41 -36
  72. package/dist/cli/lib/doUserTeardown.unitTest.js.map +1 -0
  73. package/dist/cli/lib/findTestFiles.d.ts +3 -0
  74. package/dist/cli/lib/findTestFiles.d.ts.map +1 -0
  75. package/dist/cli/lib/findTestFiles.js +16 -24
  76. package/dist/cli/lib/findTestFiles.js.map +1 -0
  77. package/dist/cli/lib/findTestFiles.unitTest.d.ts +2 -0
  78. package/dist/cli/lib/findTestFiles.unitTest.d.ts.map +1 -0
  79. package/dist/cli/lib/findTestFiles.unitTest.js +19 -19
  80. package/dist/cli/lib/findTestFiles.unitTest.js.map +1 -0
  81. package/dist/cli/lib/getAllowedFlags.d.ts +3 -0
  82. package/dist/cli/lib/getAllowedFlags.d.ts.map +1 -0
  83. package/dist/cli/lib/getAllowedFlags.js +10 -8
  84. package/dist/cli/lib/getAllowedFlags.js.map +1 -0
  85. package/dist/cli/lib/getAllowedFlags.unitTest.d.ts +2 -0
  86. package/dist/cli/lib/getAllowedFlags.unitTest.d.ts.map +1 -0
  87. package/dist/cli/lib/getAllowedFlags.unitTest.js +22 -21
  88. package/dist/cli/lib/getAllowedFlags.unitTest.js.map +1 -0
  89. package/dist/cli/lib/globArgCombine.d.ts +3 -0
  90. package/dist/cli/lib/globArgCombine.d.ts.map +1 -0
  91. package/dist/cli/lib/globArgCombine.js +8 -1
  92. package/dist/cli/lib/globArgCombine.js.map +1 -0
  93. package/dist/cli/lib/globArgCombine.unitTest.d.ts +2 -0
  94. package/dist/cli/lib/globArgCombine.unitTest.d.ts.map +1 -0
  95. package/dist/cli/lib/globArgCombine.unitTest.js +19 -18
  96. package/dist/cli/lib/globArgCombine.unitTest.js.map +1 -0
  97. package/dist/cli/lib/injectProperties.d.ts +3 -0
  98. package/dist/cli/lib/injectProperties.d.ts.map +1 -0
  99. package/dist/cli/lib/injectProperties.js +10 -10
  100. package/dist/cli/lib/injectProperties.js.map +1 -0
  101. package/dist/cli/lib/injectProperties.unitTest.d.ts +2 -0
  102. package/dist/cli/lib/injectProperties.unitTest.d.ts.map +1 -0
  103. package/dist/cli/lib/injectProperties.unitTest.js +19 -81
  104. package/dist/cli/lib/injectProperties.unitTest.js.map +1 -0
  105. package/dist/cli/lib/loadConfig.d.ts +3 -0
  106. package/dist/cli/lib/loadConfig.d.ts.map +1 -0
  107. package/dist/cli/lib/loadConfig.js +14 -18
  108. package/dist/cli/lib/loadConfig.js.map +1 -0
  109. package/dist/cli/lib/loadConfig.unitTest.d.ts +2 -0
  110. package/dist/cli/lib/loadConfig.unitTest.d.ts.map +1 -0
  111. package/dist/cli/lib/loadConfig.unitTest.js +15 -15
  112. package/dist/cli/lib/loadConfig.unitTest.js.map +1 -0
  113. package/dist/cli/lib/loadTestFile.d.ts +4 -0
  114. package/dist/cli/lib/loadTestFile.d.ts.map +1 -0
  115. package/dist/cli/lib/loadTestFile.js +48 -78
  116. package/dist/cli/lib/loadTestFile.js.map +1 -0
  117. package/dist/cli/lib/loadTestFile.unitTest.d.ts +2 -0
  118. package/dist/cli/lib/loadTestFile.unitTest.d.ts.map +1 -0
  119. package/dist/cli/lib/loadTestFile.unitTest.js +12 -49
  120. package/dist/cli/lib/loadTestFile.unitTest.js.map +1 -0
  121. package/dist/cli/lib/parseCommandLineArguments.d.ts +3 -0
  122. package/dist/cli/lib/parseCommandLineArguments.d.ts.map +1 -0
  123. package/dist/cli/lib/parseCommandLineArguments.js +48 -42
  124. package/dist/cli/lib/parseCommandLineArguments.js.map +1 -0
  125. package/dist/cli/lib/parseCommandLineArguments.unitTest.d.ts +2 -0
  126. package/dist/cli/lib/parseCommandLineArguments.unitTest.d.ts.map +1 -0
  127. package/dist/cli/lib/parseCommandLineArguments.unitTest.js +22 -24
  128. package/dist/cli/lib/parseCommandLineArguments.unitTest.js.map +1 -0
  129. package/dist/cli/lib/parseDescribe.d.ts +3 -0
  130. package/dist/cli/lib/parseDescribe.d.ts.map +1 -0
  131. package/dist/cli/lib/parseDescribe.js +67 -81
  132. package/dist/cli/lib/parseDescribe.js.map +1 -0
  133. package/dist/cli/lib/parseDescribe.unitTest.d.ts +2 -0
  134. package/dist/cli/lib/parseDescribe.unitTest.d.ts.map +1 -0
  135. package/dist/cli/lib/parseDescribe.unitTest.js +20 -18
  136. package/dist/cli/lib/parseDescribe.unitTest.js.map +1 -0
  137. package/dist/cli/lib/reservedExportKeys.d.ts +2 -0
  138. package/dist/cli/lib/reservedExportKeys.d.ts.map +1 -0
  139. package/dist/cli/lib/reservedExportKeys.js +12 -1
  140. package/dist/cli/lib/reservedExportKeys.js.map +1 -0
  141. package/dist/cli/lib/reservedExportKeys.unitTest.d.ts +2 -0
  142. package/dist/cli/lib/reservedExportKeys.unitTest.d.ts.map +1 -0
  143. package/dist/cli/lib/reservedExportKeys.unitTest.js +6 -8
  144. package/dist/cli/lib/reservedExportKeys.unitTest.js.map +1 -0
  145. package/dist/cli/lib/runDescribe.d.ts +3 -0
  146. package/dist/cli/lib/runDescribe.d.ts.map +1 -0
  147. package/dist/cli/lib/runDescribe.js +39 -39
  148. package/dist/cli/lib/runDescribe.js.map +1 -0
  149. package/dist/cli/lib/runDescribe.unitTest.d.ts +2 -0
  150. package/dist/cli/lib/runDescribe.unitTest.d.ts.map +1 -0
  151. package/dist/cli/lib/runDescribe.unitTest.js +22 -402
  152. package/dist/cli/lib/runDescribe.unitTest.js.map +1 -0
  153. package/dist/cli/lib/runDescribeRun.d.ts +3 -0
  154. package/dist/cli/lib/runDescribeRun.d.ts.map +1 -0
  155. package/dist/cli/lib/runDescribeRun.js +34 -49
  156. package/dist/cli/lib/runDescribeRun.js.map +1 -0
  157. package/dist/cli/lib/runDescribeRun.unitTest.d.ts +2 -0
  158. package/dist/cli/lib/runDescribeRun.unitTest.d.ts.map +1 -0
  159. package/dist/cli/lib/runDescribeRun.unitTest.js +44 -410
  160. package/dist/cli/lib/runDescribeRun.unitTest.js.map +1 -0
  161. package/dist/cli/lib/runIt.d.ts +3 -0
  162. package/dist/cli/lib/runIt.d.ts.map +1 -0
  163. package/dist/cli/lib/runIt.js +59 -69
  164. package/dist/cli/lib/runIt.js.map +1 -0
  165. package/dist/cli/lib/runIt.unitTest.d.ts +2 -0
  166. package/dist/cli/lib/runIt.unitTest.d.ts.map +1 -0
  167. package/dist/cli/lib/runIt.unitTest.js +73 -410
  168. package/dist/cli/lib/runIt.unitTest.js.map +1 -0
  169. package/dist/cli/lib/runTasks.d.ts +3 -0
  170. package/dist/cli/lib/runTasks.d.ts.map +1 -0
  171. package/dist/cli/lib/runTasks.js +28 -31
  172. package/dist/cli/lib/runTasks.js.map +1 -0
  173. package/dist/cli/lib/runTasks.unitTest.d.ts +5 -0
  174. package/dist/cli/lib/runTasks.unitTest.d.ts.map +1 -0
  175. package/dist/cli/lib/runTasks.unitTest.js +35 -31
  176. package/dist/cli/lib/runTasks.unitTest.js.map +1 -0
  177. package/dist/cli/lib/runTest.d.ts +3 -0
  178. package/dist/cli/lib/runTest.d.ts.map +1 -0
  179. package/dist/cli/lib/runTest.js +54 -66
  180. package/dist/cli/lib/runTest.js.map +1 -0
  181. package/dist/cli/lib/runTest.unitTest.d.ts +20 -0
  182. package/dist/cli/lib/runTest.unitTest.d.ts.map +1 -0
  183. package/dist/cli/lib/runTest.unitTest.js +274 -289
  184. package/dist/cli/lib/runTest.unitTest.js.map +1 -0
  185. package/dist/cli/lib/runTests.d.ts +3 -0
  186. package/dist/cli/lib/runTests.d.ts.map +1 -0
  187. package/dist/cli/lib/runTests.js +123 -141
  188. package/dist/cli/lib/runTests.js.map +1 -0
  189. package/dist/cli/lib/runTests.unitTest.d.ts +6 -0
  190. package/dist/cli/lib/runTests.unitTest.d.ts.map +1 -0
  191. package/dist/cli/lib/runTests.unitTest.js +48 -61
  192. package/dist/cli/lib/runTests.unitTest.js.map +1 -0
  193. package/dist/cli/lib/showTestLoadingError.d.ts +3 -0
  194. package/dist/cli/lib/showTestLoadingError.d.ts.map +1 -0
  195. package/dist/cli/lib/showTestLoadingError.js +22 -33
  196. package/dist/cli/lib/showTestLoadingError.js.map +1 -0
  197. package/dist/cli/lib/showTestLoadingError.unitTest.d.ts +2 -0
  198. package/dist/cli/lib/showTestLoadingError.unitTest.d.ts.map +1 -0
  199. package/dist/cli/lib/showTestLoadingError.unitTest.js +16 -24
  200. package/dist/cli/lib/showTestLoadingError.unitTest.js.map +1 -0
  201. package/dist/cli/lib/showTestResult.d.ts +3 -0
  202. package/dist/cli/lib/showTestResult.d.ts.map +1 -0
  203. package/dist/cli/lib/showTestResult.js +88 -88
  204. package/dist/cli/lib/showTestResult.js.map +1 -0
  205. package/dist/cli/lib/showTestResult.unitTest.d.ts +2 -0
  206. package/dist/cli/lib/showTestResult.unitTest.d.ts.map +1 -0
  207. package/dist/cli/lib/showTestResult.unitTest.js +176 -184
  208. package/dist/cli/lib/showTestResult.unitTest.js.map +1 -0
  209. package/dist/cli/lib/testHelpers/makeCustomOut.d.ts +7 -0
  210. package/dist/cli/lib/testHelpers/makeCustomOut.d.ts.map +1 -0
  211. package/dist/cli/lib/testHelpers/makeCustomOut.js +10 -0
  212. package/dist/cli/lib/testHelpers/makeCustomOut.js.map +1 -0
  213. package/dist/cli/lib/timeProfier.d.ts +3 -0
  214. package/dist/cli/lib/timeProfier.d.ts.map +1 -0
  215. package/dist/cli/lib/timeProfier.js +4 -6
  216. package/dist/cli/lib/timeProfier.js.map +1 -0
  217. package/dist/cli/lib/validateConfig.d.ts +3 -0
  218. package/dist/cli/lib/validateConfig.d.ts.map +1 -0
  219. package/dist/cli/lib/validateConfig.js +21 -24
  220. package/dist/cli/lib/validateConfig.js.map +1 -0
  221. package/dist/cli/lib/validateConfig.unitTest.d.ts +2 -0
  222. package/dist/cli/lib/validateConfig.unitTest.d.ts.map +1 -0
  223. package/dist/cli/lib/validateConfig.unitTest.js +17 -18
  224. package/dist/cli/lib/validateConfig.unitTest.js.map +1 -0
  225. package/dist/cli/lib/{watchFiles.js → watchFiles.d.ts} +2 -1
  226. package/dist/cli/lib/watchFiles.d.ts.map +1 -0
  227. package/dist/cli/lib/watchFiles.js.map +1 -0
  228. package/dist/cli/lib/watchFiles.unitTest.d.ts +2 -0
  229. package/dist/cli/lib/watchFiles.unitTest.d.ts.map +1 -0
  230. package/dist/cli/lib/watchFiles.unitTest.js.map +1 -0
  231. package/dist/cli/lib/watchFilesAndRunTests.d.ts +2 -0
  232. package/dist/cli/lib/watchFilesAndRunTests.d.ts.map +1 -0
  233. package/dist/cli/lib/watchFilesAndRunTests.js +2 -3
  234. package/dist/cli/lib/watchFilesAndRunTests.js.map +1 -0
  235. package/dist/cli/lib/watchFilesAndRunTests.unitTest.d.ts +2 -0
  236. package/dist/cli/lib/watchFilesAndRunTests.unitTest.d.ts.map +1 -0
  237. package/dist/cli/lib/watchFilesAndRunTests.unitTest.js +86 -96
  238. package/dist/cli/lib/watchFilesAndRunTests.unitTest.js.map +1 -0
  239. package/dist/cli/lib/watchFilesAndRunTestsChokidar.d.ts +3 -0
  240. package/dist/cli/lib/watchFilesAndRunTestsChokidar.d.ts.map +1 -0
  241. package/dist/cli/lib/watchFilesAndRunTestsChokidar.js +99 -127
  242. package/dist/cli/lib/watchFilesAndRunTestsChokidar.js.map +1 -0
  243. package/dist/cli/lib/watchFilesAndRunTestsChokidar.unitTest.d.ts +2 -0
  244. package/dist/cli/lib/watchFilesAndRunTestsChokidar.unitTest.d.ts.map +1 -0
  245. package/dist/cli/lib/watchFilesAndRunTestsChokidar.unitTest.js +90 -99
  246. package/dist/cli/lib/watchFilesAndRunTestsChokidar.unitTest.js.map +1 -0
  247. package/dist/cli/lib/watchFilesAndRunTestsNodeWatch.d.ts +3 -0
  248. package/dist/cli/lib/watchFilesAndRunTestsNodeWatch.d.ts.map +1 -0
  249. package/dist/cli/lib/watchFilesAndRunTestsNodeWatch.js +108 -148
  250. package/dist/cli/lib/watchFilesAndRunTestsNodeWatch.js.map +1 -0
  251. package/dist/cli/lib/watchFilesAndRunTestsNodeWatch.unitTest.d.ts +2 -0
  252. package/dist/cli/lib/watchFilesAndRunTestsNodeWatch.unitTest.d.ts.map +1 -0
  253. package/dist/cli/lib/watchFilesAndRunTestsNodeWatch.unitTest.js +87 -100
  254. package/dist/cli/lib/watchFilesAndRunTestsNodeWatch.unitTest.js.map +1 -0
  255. package/dist/cli/lib/watchFilesChokidar.d.ts +4 -0
  256. package/dist/cli/lib/watchFilesChokidar.d.ts.map +1 -0
  257. package/dist/cli/lib/watchFilesChokidar.js +30 -56
  258. package/dist/cli/lib/watchFilesChokidar.js.map +1 -0
  259. package/dist/cli/lib/watchFilesChokidar.unitTest.d.ts +2 -0
  260. package/dist/cli/lib/watchFilesChokidar.unitTest.d.ts.map +1 -0
  261. package/dist/cli/lib/watchFilesChokidar.unitTest.js +77 -81
  262. package/dist/cli/lib/watchFilesChokidar.unitTest.js.map +1 -0
  263. package/dist/cli/lib/watchFilesNodeWatch.d.ts +7 -0
  264. package/dist/cli/lib/watchFilesNodeWatch.d.ts.map +1 -0
  265. package/dist/cli/lib/watchFilesNodeWatch.js +31 -41
  266. package/dist/cli/lib/watchFilesNodeWatch.js.map +1 -0
  267. package/dist/cli/lib/watchFilesNodeWatch.unitTest.d.ts +2 -0
  268. package/dist/cli/lib/watchFilesNodeWatch.unitTest.d.ts.map +1 -0
  269. package/dist/cli/lib/watchFilesNodeWatch.unitTest.js +41 -46
  270. package/dist/cli/lib/watchFilesNodeWatch.unitTest.js.map +1 -0
  271. package/dist/cli/once.d.ts +2 -0
  272. package/dist/cli/once.d.ts.map +1 -0
  273. package/dist/cli/once.js +35 -42
  274. package/dist/cli/once.js.map +1 -0
  275. package/dist/cli/watch.d.ts +2 -0
  276. package/dist/cli/watch.d.ts.map +1 -0
  277. package/dist/cli/watch.js +64 -114
  278. package/dist/cli/watch.js.map +1 -0
  279. package/dist/cli/watch.unitTest.d.ts +6 -0
  280. package/dist/cli/watch.unitTest.d.ts.map +1 -0
  281. package/dist/cli/watch.unitTest.js +100 -111
  282. package/dist/cli/watch.unitTest.js.map +1 -0
  283. package/dist/config.d.ts +7 -0
  284. package/dist/config.d.ts.map +1 -0
  285. package/dist/config.js +13 -2
  286. package/dist/config.js.map +1 -0
  287. package/dist/describe.d.ts +3 -0
  288. package/dist/describe.d.ts.map +1 -0
  289. package/dist/describe.js +20 -34
  290. package/dist/describe.js.map +1 -0
  291. package/dist/describe.unitTest.d.ts +2 -0
  292. package/dist/describe.unitTest.d.ts.map +1 -0
  293. package/dist/describe.unitTest.js +19 -23
  294. package/dist/describe.unitTest.js.map +1 -0
  295. package/dist/index.d.ts +2 -0
  296. package/dist/index.d.ts.map +1 -0
  297. package/dist/index.js +2 -1
  298. package/dist/index.js.map +1 -0
  299. package/dist/indexNumberToLetters.d.ts +2 -0
  300. package/dist/indexNumberToLetters.d.ts.map +1 -0
  301. package/dist/indexNumberToLetters.js +12 -11
  302. package/dist/indexNumberToLetters.js.map +1 -0
  303. package/dist/output.d.ts +6 -0
  304. package/dist/output.d.ts.map +1 -0
  305. package/dist/output.js +16 -18
  306. package/dist/output.js.map +1 -0
  307. package/dist/packages/chalk.d.ts +14 -0
  308. package/dist/packages/chalk.d.ts.map +1 -0
  309. package/dist/packages/chalk.js +22 -0
  310. package/dist/packages/chalk.js.map +1 -0
  311. package/dist/packages/figures.d.ts +6 -0
  312. package/dist/packages/figures.d.ts.map +1 -0
  313. package/dist/packages/figures.js +24 -0
  314. package/dist/packages/figures.js.map +1 -0
  315. package/dist/packages/loadConfig.d.ts +3 -0
  316. package/dist/packages/loadConfig.d.ts.map +1 -0
  317. package/dist/packages/loadConfig.js +28 -0
  318. package/dist/packages/loadConfig.js.map +1 -0
  319. package/dist/packages/mergeStructuredConfig.d.ts +2 -0
  320. package/dist/packages/mergeStructuredConfig.d.ts.map +1 -0
  321. package/dist/packages/mergeStructuredConfig.js +26 -0
  322. package/dist/packages/mergeStructuredConfig.js.map +1 -0
  323. package/dist/packages/slash.d.ts +2 -0
  324. package/dist/packages/slash.d.ts.map +1 -0
  325. package/dist/packages/slash.js +9 -0
  326. package/dist/packages/slash.js.map +1 -0
  327. package/dist/packages/timeProfiler.d.ts +6 -0
  328. package/dist/packages/timeProfiler.d.ts.map +1 -0
  329. package/dist/packages/timeProfiler.js +32 -0
  330. package/dist/packages/timeProfiler.js.map +1 -0
  331. package/dist/types.d.ts +138 -0
  332. package/dist/types.d.ts.map +1 -0
  333. package/dist/types.js +6 -0
  334. package/dist/types.js.map +1 -0
  335. package/package.json +24 -20
  336. package/dist/cli/files.js +0 -20
  337. package/dist/cli/files.unitTest.js +0 -246
  338. package/dist/cli/init.unitTest.js +0 -0
  339. package/dist/cli/lib/defaultConfig.test.js +0 -9
  340. package/dist/cli/lib/loadTestFileStatic.js +0 -41
  341. package/dist/cli/lib/loadTestFileStatic.unitTest.js +0 -30
  342. package/dist/cli/lib/processWatchEvent.js +0 -1
  343. package/dist/cli/lib/processWatchEvent.unitTest.js +0 -15
  344. package/dist/cli/lib/runDescribe.old.js +0 -108
  345. package/dist/cli/lib/runDescribe.old.unitTest.js +0 -440
  346. package/dist/cli/lib/runTest-old.js +0 -160
  347. package/dist/cli/lib/runTest-old.unitTest.js +0 -184
  348. package/dist/cli/lib/watchFiles.unitTest.js +0 -50
  349. package/dist/cli/once.unitTest.js +0 -39
  350. package/dist/describe-old.js +0 -271
  351. package/dist/describe-old.unitTest.js +0 -30
  352. package/dist/exported.eslintrc.js +0 -7
  353. package/dist/testsState.js +0 -5
  354. package/dist/timeProfiling.js +0 -9
package/dist/cli/watch.js CHANGED
@@ -1,118 +1,68 @@
1
- import { createTimeProfiler } from 'sxy-dev-tools';
2
- import chalk from 'chalk-extensions';
3
- import { packageName, showTimeProfiling } from '../config.js';
4
- import { out, log, debug } from '../output.js';
5
- const {
6
- timeProfileAsync
7
- } = await createTimeProfiler(showTimeProfiling);
8
-
9
- // args: string[]
1
+ import chalk from '../packages/chalk.js';
2
+ import { packageName } from '../config.js';
3
+ import { out, debug } from '../output.js';
10
4
  export async function watch() {
11
- //const args = global.commandLineArguments
12
-
13
- await out(chalk.brightblue`[${packageName}]...`);
14
- const {
15
- parseCommandLineArguments
16
- } = await import('./lib/parseCommandLineArguments.js'); //// async function
17
- const allowedClArguments = {
18
- 'config': {
19
- flag: 'c',
20
- hasValue: true
21
- },
22
- 'files': {
23
- flag: 'f',
24
- hasValue: true
5
+ out(chalk.brightblue `[${packageName}]...`);
6
+ const { parseCommandLineArguments } = await import('./lib/parseCommandLineArguments.js');
7
+ const allowedClArguments = {
8
+ config: {
9
+ flag: 'c',
10
+ hasValue: true
11
+ },
12
+ files: {
13
+ flag: 'f',
14
+ hasValue: true
15
+ }
16
+ };
17
+ const clArguments = parseCommandLineArguments(allowedClArguments);
18
+ debug('clArguments', clArguments);
19
+ const { loadConfig } = await import('./lib/loadConfig.js');
20
+ const userConfig = (typeof clArguments.config === 'string')
21
+ ? await loadConfig(clArguments.config)
22
+ : await loadConfig();
23
+ if ('files' in clArguments) {
24
+ const files = clArguments.files;
25
+ if (typeof files !== 'string' || files === '') {
26
+ throw new Error('No pattern specified for --files or -f argument');
27
+ }
28
+ console.log('Looking for tests using pattern: ' + files); // eslint-disable-line no-console
29
+ userConfig.tests = files;
25
30
  }
26
- };
27
- const clArguments = await parseCommandLineArguments(allowedClArguments);
28
- await debug('clArguments', clArguments);
29
- const {
30
- loadConfig
31
- } = await import('./lib/loadConfig.js'); //// async function
32
- const userConfig = 'config' in clArguments ? await loadConfig(clArguments.config) : await loadConfig();
33
- if ('files' in clArguments) {
34
- const files = clArguments.files;
35
- if (!files) throw new Error('No pattern specified for --files or -f argument');
36
- await console.log('Looking for tests using pattern: ' + files);
37
- userConfig.tests = files;
38
- }
39
- const {
40
- applyConfigDefaults
41
- } = await import('./lib/applyConfigDefaults.js'); //// sync function
42
- const config = await applyConfigDefaults(userConfig);
43
- const {
44
- validateConfig
45
- } = await import('./lib/validateConfig.js'); //// sync function
46
- await validateConfig(config);
47
- const {
48
- doUserSetup
49
- } = await import('./lib/doUserSetup.js');
50
- await doUserSetup(config);
51
- await out(chalk.brightblue`finding tests...`);
52
- const {
53
- findTestFiles
54
- } = await import('./lib/findTestFiles.js'); //// async function
55
- const testFiles = await findTestFiles(config);
56
- await debug(testFiles);
57
-
58
- // global store of the dependencies of tests
59
- let dependencyTrees = {};
60
- // store failing tests so we can re-run them.
61
- const failingTests = [];
62
- if (testFiles.length > 0) {
63
- const {
64
- buildDependencyTrees
65
- } = await import('./lib/buildDependencyTrees.js');
66
- await out(chalk.brightblue`finding initial dependency trees...`);
67
- dependencyTrees = await buildDependencyTrees(config, testFiles); //// sync function
68
-
69
- if (config.watch.runAllOnStartup) {
70
- const {
71
- runTests
72
- } = await import('./lib/runTests.js');
73
- await out(chalk.brightblue`running initial tests...`);
74
- runTests(config, testFiles, failingTests).then(async () => {
75
- await out(chalk.brightblue`watching...`);
76
- });
77
- //// async function, run in separate thread
31
+ const { applyConfigDefaults } = await import('./lib/applyConfigDefaults.js');
32
+ const config = applyConfigDefaults(userConfig);
33
+ const { validateConfig } = await import('./lib/validateConfig.js');
34
+ validateConfig(config);
35
+ const { doUserSetup } = await import('./lib/doUserSetup.js');
36
+ await doUserSetup(config);
37
+ out(chalk.brightblue `finding tests...`);
38
+ const { findTestFiles } = await import('./lib/findTestFiles.js');
39
+ const testFiles = await findTestFiles(config);
40
+ debug(testFiles);
41
+ // global store of the dependencies of tests
42
+ let dependencyTrees = {};
43
+ // store failing tests so we can re-run them.
44
+ const failingTests = [];
45
+ if (testFiles.length > 0) {
46
+ const { buildDependencyTrees } = await import('./lib/buildDependencyTrees.js');
47
+ out(chalk.brightblue `finding initial dependency trees...`);
48
+ dependencyTrees = await buildDependencyTrees(config, testFiles);
49
+ if (config.watch.runAllOnStartup) {
50
+ const { runTests } = await import('./lib/runTests.js');
51
+ out(chalk.brightblue `running initial tests...`);
52
+ void runTests(config, testFiles, failingTests).then(() => {
53
+ out(chalk.brightblue `watching...`);
54
+ });
55
+ }
78
56
  }
79
- } else {
80
- await out(chalk.brightblue`no tests found`);
81
- await out(chalk.brightblue`watching...`);
82
- }
83
- const {
84
- watchFilesAndRunTests
85
- } = await import('./lib/watchFilesAndRunTests.js');
86
- await watchFilesAndRunTests(config, testFiles, dependencyTrees, failingTests); //// async function run in thread
87
-
88
- await new Promise(async () => {});
89
-
90
- // won't run because promise will never finish
91
- const {
92
- doUserTeardown
93
- } = await import('./lib/doUserTeardown.js');
94
- await doUserTeardown(config);
95
-
96
- /////// SET UP?
97
-
98
- // if ( typeof config.setup === 'function' ) {
99
- // await timeProfile('run setup function', config.setup(/* can we pass anything here? */))
100
- // }
57
+ else {
58
+ out(chalk.brightblue `no tests found`);
59
+ out(chalk.brightblue `watching...`);
60
+ }
61
+ const { watchFilesAndRunTests } = await import('./lib/watchFilesAndRunTests.js');
62
+ await watchFilesAndRunTests(config, testFiles, dependencyTrees, failingTests);
63
+ await new Promise(() => { });
64
+ // won't run because promise will never finish
65
+ const { doUserTeardown } = await import('./lib/doUserTeardown.js');
66
+ await doUserTeardown(config);
101
67
  }
102
-
103
- // runInitialTests
104
-
105
- //--find tests
106
- //if found tests,
107
- // find dependencyTrees
108
- // also, run tests
109
- //else
110
- // warn
111
-
112
- // dn't run initial tests
113
- // do we need to find initial test? yes
114
- // find tests
115
- // if found tests
116
- // make dep trees
117
- // else
118
- // warn
68
+ //# sourceMappingURL=watch.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"watch.js","sourceRoot":"","sources":["../../src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AAE,SAAS,EAAE,YAAY,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE;gBACrD,GAAG,CAAC,KAAK,CAAC,UAAU,CAAA,aAAa,CAAC,CAAA;YACtC,CAAC,CAAC,CAAA;QACN,CAAC;IACL,CAAC;SAAM,CAAC;QACJ,GAAG,CAAC,KAAK,CAAC,UAAU,CAAA,gBAAgB,CAAC,CAAA;QACrC,GAAG,CAAC,KAAK,CAAC,UAAU,CAAA,aAAa,CAAC,CAAA;IACtC,CAAC;IAED,MAAM,EAAE,qBAAqB,EAAE,GAAG,MAAM,MAAM,CAAC,gCAAgC,CAAC,CAAA;IAChF,MAAM,qBAAqB,CAAC,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,YAAY,CAAC,CAAA;IAE7E,MAAM,IAAI,OAAO,CAAO,GAAG,EAAE,GAAE,CAAC,CAAC,CAAA;IAEjC,8CAA8C;IAC9C,MAAM,EAAE,cAAc,EAAE,GAAG,MAAM,MAAM,CAAC,yBAAyB,CAAC,CAAA;IAClE,MAAM,cAAc,CAAC,MAAM,CAAC,CAAA;AAChC,CAAC"}
@@ -0,0 +1,6 @@
1
+ declare global {
2
+ var configBasedSetupFunctionRan: boolean;
3
+ var watchSetupFileHasRun: boolean;
4
+ }
5
+ export {};
6
+ //# sourceMappingURL=watch.unitTest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"watch.unitTest.d.ts","sourceRoot":"","sources":["../../src/cli/watch.unitTest.ts"],"names":[],"mappings":"AAIA,OAAO,CAAC,MAAM,CAAC;IAEX,IAAI,2BAA2B,EAAE,OAAO,CAAA;IAExC,IAAI,oBAAoB,EAAE,OAAO,CAAA;CACpC"}
@@ -1,117 +1,106 @@
1
- import figures from 'figures';
2
-
3
- //import { applyConfigDefaults } from './lib/applyConfigDefaults.js'
1
+ import figures from '../packages/figures.js';
4
2
  import { watch } from './watch.js';
5
- await mochaDescribe('watch command', async function () {
6
- await mochaIt('should run tests and output results and display correct tallies', async function () {
7
- await this.timeout(10000);
8
- const originalConsoleLog = console.log;
9
- let consoleLogBuffer = '';
10
- console.log = function testLog(...texts) {
11
- consoleLogBuffer += texts.join(' ') + '\n';
12
- };
13
- global.commandLineArguments = ['--config', 'unitTesting/watch/sxy-test-runner.config.js'];
14
- watch();
15
- await new Promise(async (resolve, reject) => {
16
- await setTimeout(resolve, 8000);
3
+ mochaDescribe('watch command', function () {
4
+ mochaIt('should run tests and output results and display correct tallies', async function () {
5
+ this.timeout(10000);
6
+ const originalConsoleLog = console.log; // eslint-disable-line no-console
7
+ let consoleLogBuffer = '';
8
+ console.log = function testLog(...texts) {
9
+ consoleLogBuffer += texts.join(' ') + '\n';
10
+ };
11
+ global.commandLineArguments = [
12
+ '--config',
13
+ 'unitTesting/watch/sxy-test-runner.config.js'
14
+ ];
15
+ void watch();
16
+ await new Promise(resolve => setTimeout(resolve, 8000));
17
+ console.log = originalConsoleLog; // eslint-disable-line no-console
18
+ const testFileName = 'unitTesting/watch/1.test.js';
19
+ const thing = 'Sample test 1';
20
+ const should = '1 should equal 1';
21
+ consoleLogBuffer.should.include(testFileName);
22
+ consoleLogBuffer.should.include(thing);
23
+ consoleLogBuffer.should.include(should);
24
+ consoleLogBuffer.should.include(figures.tick);
25
+ consoleLogBuffer.should.include('Tests: 3/3');
26
+ consoleLogBuffer.should.include('Items: 2/2');
27
+ consoleLogBuffer.should.include('Test Files: 2/2');
17
28
  });
18
- console.log = originalConsoleLog;
19
-
20
- //console.log(consoleLogBuffer)
21
-
22
- const testFileName = `unitTesting/watch/1.test.js`;
23
- const thing = 'Sample test 1';
24
- const should = '1 should equal 1';
25
- await consoleLogBuffer.should.include(testFileName);
26
- await consoleLogBuffer.should.include(thing);
27
- await consoleLogBuffer.should.include(should);
28
- await consoleLogBuffer.should.include(figures.tick);
29
- await consoleLogBuffer.should.include('Tests: 3/3');
30
- await consoleLogBuffer.should.include('Items: 2/2');
31
- await consoleLogBuffer.should.include('Test Files: 2/2');
32
- });
33
- await mochaIt('should run tests and display correct tallies', async function () {
34
- await this.timeout(10000);
35
- const originalConsoleLog = console.log;
36
- let consoleLogBuffer = '';
37
- console.log = function testLog(...texts) {
38
- consoleLogBuffer += texts.join(' ') + '\n';
39
- };
40
- global.commandLineArguments = ['--config', 'unitTesting/watch/sxy-test-runner.config.js'];
41
- watch();
42
- await new Promise(async (resolve, reject) => {
43
- await setTimeout(resolve, 8000);
29
+ mochaIt('should run tests and display correct tallies', async function () {
30
+ this.timeout(10000);
31
+ const originalConsoleLog = console.log; // eslint-disable-line no-console
32
+ let consoleLogBuffer = '';
33
+ console.log = function testLog(...texts) {
34
+ consoleLogBuffer += texts.join(' ') + '\n';
35
+ };
36
+ global.commandLineArguments = [
37
+ '--config',
38
+ 'unitTesting/watch/sxy-test-runner.config.js'
39
+ ];
40
+ void watch();
41
+ await new Promise(resolve => setTimeout(resolve, 8000));
42
+ console.log = originalConsoleLog; // eslint-disable-line no-console
43
+ const testFileName = 'unitTesting/watch/1.test.js';
44
+ const thing = 'Sample test 1';
45
+ const should = '1 should equal 1';
46
+ consoleLogBuffer.should.include(testFileName);
47
+ consoleLogBuffer.should.include(thing);
48
+ consoleLogBuffer.should.include(should);
49
+ consoleLogBuffer.should.include(figures.tick);
44
50
  });
45
- console.log = originalConsoleLog;
46
-
47
- //console.log(consoleLogBuffer)
48
-
49
- const testFileName = `unitTesting/watch/1.test.js`;
50
- const thing = 'Sample test 1';
51
- const should = '1 should equal 1';
52
- await consoleLogBuffer.should.include(testFileName);
53
- await consoleLogBuffer.should.include(thing);
54
- await consoleLogBuffer.should.include(should);
55
- await consoleLogBuffer.should.include(figures.tick);
56
- });
57
- await mochaIt('should warn us when there are no tests', async function () {
58
- await this.timeout(6000);
59
- const originalConsoleLog = console.log;
60
- let consoleLogBuffer = '';
61
- console.log = function testLog(...texts) {
62
- consoleLogBuffer += texts.join(' ') + '\n';
63
- };
64
- global.commandLineArguments = ['--config', 'sxy-test-runner.no-tests.config.js'];
65
- watch();
66
- await new Promise(async (resolve, reject) => {
67
- await setTimeout(resolve, 4000);
51
+ mochaIt('should warn us when there are no tests', async function () {
52
+ this.timeout(6000);
53
+ const originalConsoleLog = console.log; // eslint-disable-line no-console
54
+ let consoleLogBuffer = '';
55
+ console.log = function testLog(...texts) {
56
+ consoleLogBuffer += texts.join(' ') + '\n';
57
+ };
58
+ global.commandLineArguments = [
59
+ '--config',
60
+ 'sxy-test-runner.no-tests.config.js'
61
+ ];
62
+ void watch();
63
+ await new Promise(resolve => setTimeout(resolve, 4000));
64
+ console.log = originalConsoleLog; // eslint-disable-line no-console
65
+ consoleLogBuffer.should.include('no tests found');
66
+ consoleLogBuffer.should.not.include('describing');
68
67
  });
69
- console.log = originalConsoleLog;
70
-
71
- //console.log('saved console.log output:')
72
- //console.log(consoleLogBuffer)
73
-
74
- await consoleLogBuffer.should.include('no tests found');
75
- await consoleLogBuffer.should.not.include('describing');
76
- });
77
- await mochaIt('should not run tests when asked not to run initial tests', async function () {
78
- await this.timeout(6000);
79
- const originalConsoleLog = console.log;
80
- let consoleLogBuffer = '';
81
- console.log = function testLog(...texts) {
82
- consoleLogBuffer += texts.join(' ') + '\n';
83
- };
84
- global.commandLineArguments = ['--config', 'sxy-test-runner.no-initial-tests.config.js'];
85
- watch();
86
- await new Promise(async (resolve, reject) => {
87
- await setTimeout(resolve, 4000);
68
+ mochaIt('should not run tests when asked not to run initial tests', async function () {
69
+ this.timeout(6000);
70
+ const originalConsoleLog = console.log; // eslint-disable-line no-console
71
+ let consoleLogBuffer = '';
72
+ console.log = function testLog(...texts) {
73
+ consoleLogBuffer += texts.join(' ') + '\n';
74
+ };
75
+ global.commandLineArguments = [
76
+ '--config',
77
+ 'sxy-test-runner.no-initial-tests.config.js'
78
+ ];
79
+ void watch();
80
+ await new Promise(resolve => setTimeout(resolve, 4000));
81
+ console.log = originalConsoleLog; // eslint-disable-line no-console
82
+ consoleLogBuffer.should.not.include('running initial tests');
83
+ consoleLogBuffer.should.not.include('describing');
84
+ consoleLogBuffer.should.include('watching');
88
85
  });
89
- console.log = originalConsoleLog;
90
-
91
- //console.log('saved console.log output:')
92
- //console.log(consoleLogBuffer)
93
-
94
- //consoleLogBuffer.should.not.include( 'no tests found' ) // not sure - removing for now
95
- await consoleLogBuffer.should.not.include('running initial tests');
96
- await consoleLogBuffer.should.not.include('describing');
97
- await consoleLogBuffer.should.include('watching');
98
- });
99
- await mochaIt('setup function and setup file from the config should have run', async function () {
100
- await this.timeout(6000);
101
- global.configBasedSetupFunctionRan = false;
102
- global.watchSetupFileHasRun = false;
103
- const originalConsoleLog = console.log;
104
- let consoleLogBuffer = '';
105
- console.log = function testLog(...texts) {
106
- consoleLogBuffer += texts.join(' ') + '\n';
107
- };
108
- global.commandLineArguments = ['--config', 'sxy-test-runner.setup-tasks.config.js'];
109
- watch();
110
- await new Promise(async (resolve, reject) => {
111
- await setTimeout(resolve, 2000);
86
+ mochaIt('setup function and setup file from the config should have run', async function () {
87
+ this.timeout(6000);
88
+ global.configBasedSetupFunctionRan = false;
89
+ global.watchSetupFileHasRun = false;
90
+ const originalConsoleLog = console.log; // eslint-disable-line no-console
91
+ let consoleLogBuffer = '';
92
+ console.log = function testLog(...texts) {
93
+ consoleLogBuffer += texts.join(' ') + '\n';
94
+ };
95
+ global.commandLineArguments = [
96
+ '--config',
97
+ 'sxy-test-runner.setup-tasks.config.js'
98
+ ];
99
+ void watch();
100
+ await new Promise(resolve => setTimeout(resolve, 2000));
101
+ console.log = originalConsoleLog; // eslint-disable-line no-console
102
+ global.configBasedSetupFunctionRan.should.equal(true);
103
+ global.watchSetupFileHasRun.should.equal(true);
112
104
  });
113
- console.log = originalConsoleLog;
114
- await global.configBasedSetupFunctionRan.should.equal(true);
115
- await global.watchSetupFileHasRun.should.equal(true);
116
- });
117
- });
105
+ });
106
+ //# sourceMappingURL=watch.unitTest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"watch.unitTest.js","sourceRoot":"","sources":["../../src/cli/watch.unitTest.ts"],"names":[],"mappings":"A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3
+ export declare const configFileName = "sxy-test-runner.config";
4
+ export declare const configLocations: string[];
5
+ export declare const debugging = false;
6
+ export declare const showTimeProfiling: boolean;
7
+ //# sourceMappingURL=config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,oBAAoB,CAAA;AAE5C,eAAO,MAAM,OAAO,aAAa,CAAA;AAEjC,eAAO,MAAM,cAAc,2BAA2B,CAAA;AACtD,eAAO,MAAM,eAAe,UAAiB,CAAA;AAE7C,eAAO,MAAM,SAAS,QAAQ,CAAA;AAa9B,eAAO,MAAM,iBAAiB,SAA2C,CAAA"}
package/dist/config.js CHANGED
@@ -2,6 +2,17 @@ export const packageName = 'sxy-test-runner';
2
2
  export const cliName = 'sxy-test';
3
3
  export const configFileName = 'sxy-test-runner.config';
4
4
  export const configLocations = ['', 'config']; // locations where the configs may be placed in proj folder
5
-
6
5
  export const debugging = false;
7
- export const showTimeProfiling = false;
6
+ // Parse a boolean-ish env var. Accepts true/false and 1/0, case-insensitive,
7
+ // tolerant of surrounding quotes and whitespace (e.g. TIME_PROFILING="true").
8
+ // Anything unrecognised (or unset) is treated as false.
9
+ function envFlag(value) {
10
+ if (value === undefined)
11
+ return false;
12
+ const normalized = value.trim().replace(/^["']|["']$/g, '').toLowerCase();
13
+ return normalized === 'true' || normalized === '1';
14
+ }
15
+ // Toggle per-phase timing output with the SXYT_TIME_PROFILING env var
16
+ // (SXYT_TIME_PROFILING=true | 1). Defaults to off so normal runs stay clean.
17
+ export const showTimeProfiling = envFlag(process.env.SXYT_TIME_PROFILING);
18
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG,iBAAiB,CAAA;AAE5C,MAAM,CAAC,MAAM,OAAO,GAAG,UAAU,CAAA;AAEjC,MAAM,CAAC,MAAM,cAAc,GAAG,wBAAwB,CAAA;AACtD,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAA,CAAC,2DAA2D;AAEzG,MAAM,CAAC,MAAM,SAAS,GAAG,KAAK,CAAA;AAE9B,6EAA6E;AAC7E,8EAA8E;AAC9E,wDAAwD;AACxD,SAAS,OAAO,CAAC,KAAyB;IACtC,IAAI,KAAK,KAAK,SAAS;QAAE,OAAO,KAAK,CAAA;IACrC,MAAM,UAAU,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,cAAc,EAAE,EAAE,CAAC,CAAC,WAAW,EAAE,CAAA;IACzE,OAAO,UAAU,KAAK,MAAM,IAAI,UAAU,KAAK,GAAG,CAAA;AACtD,CAAC;AAED,sEAAsE;AACtE,6EAA6E;AAC7E,MAAM,CAAC,MAAM,iBAAiB,GAAG,OAAO,CAAC,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAA"}
@@ -0,0 +1,3 @@
1
+ import type { DescribeCallback } from './types.js';
2
+ export declare function describe(theThing: string, tests: DescribeCallback): void;
3
+ //# sourceMappingURL=describe.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"describe.d.ts","sourceRoot":"","sources":["../src/describe.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA;AAElD,wBAAgB,QAAQ,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,gBAAgB,GAAG,IAAI,CAuBxE"}
package/dist/describe.js CHANGED
@@ -1,34 +1,20 @@
1
- import chalk from 'chalk-extensions';
2
- import { out, log, debug } from './output.js';
3
- import { showTimeProfiling } from './config.js';
4
- import { createTimeProfiler } from 'sxy-dev-tools';
5
-
6
- //console.log('sxyDevTools', sxyDevTools)
7
- //console.log('createTimeProfiler', createTimeProfiler)
8
-
9
- const {
10
- timeProfile,
11
- timeProfileAsync
12
- } = await createTimeProfiler(showTimeProfiling);
13
-
14
- //console.log('chalk', chalk)
15
-
16
- export async function describe(theThing, tests) {
17
- if (!global.__sxy_test_runner__) {
18
- throw new Error(`sxy-test-runner describe() was called, but the test framework has not initialized.` + ` This might be because you have run a test file directly` + `, instead of running 'pnpm sxy-test-runner'`);
19
- // todo - maybe we can initialise the framework and just run only this test file
20
- }
21
-
22
- //const thisDescribeCounter = global.testState.describeCounter++ // ++: assign the value, THEN increment
23
- const thisDescribeCounter = global.__sxy_test_runner__.describeCounter;
24
- global.__sxy_test_runner__.describeCounter++;
25
- const describe = {
26
- counter: thisDescribeCounter,
27
- thing: theThing,
28
- tests
29
- };
30
-
31
- //global.testState.describes.push( describe )
32
- await global.__sxy_test_runner__.describes.push(describe);
33
- await debug(chalk.lightgrey`${thisDescribeCounter})` + chalk.lightgrey` Done with ` + chalk.brightblue`${theThing}\n`);
34
- }
1
+ import chalk from './packages/chalk.js';
2
+ import { debug } from './output.js';
3
+ export function describe(theThing, tests) {
4
+ if (!global.__sxy_test_runner__) {
5
+ throw new Error('sxy-test-runner describe() was called, but the test framework has not initialized.'
6
+ + ' This might be because you have run a test file directly'
7
+ + ', instead of running \'pnpm sxy-test-runner\'');
8
+ // todo - maybe we can initialise the framework and just run only this test file
9
+ }
10
+ const thisDescribeCounter = global.__sxy_test_runner__.describeCounter;
11
+ global.__sxy_test_runner__.describeCounter++;
12
+ global.__sxy_test_runner__.describes.push({
13
+ counter: thisDescribeCounter,
14
+ thing: theThing,
15
+ tests
16
+ });
17
+ debug(chalk.lightgrey `${thisDescribeCounter})`
18
+ + chalk.lightgrey ` Done with ` + chalk.brightblue `${theThing}\n`);
19
+ }
20
+ //# sourceMappingURL=describe.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"describe.js","sourceRoot":"","sources":["../src/describe.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,qBAAqB,CAAA;AAEvC,OAAO,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAGnC,MAAM,UAAU,QAAQ,CAAC,QAAgB,EAAE,KAAuB;IAC9D,IAAI,CAAC,MAAM,CAAC,mBAAmB,EAAE,CAAC;QAC9B,MAAM,IAAI,KAAK,CACX,oFAAoF;cAClF,0DAA0D;cAC1D,+CAA+C,CACpD,CAAA;QACD,gFAAgF;IACpF,CAAC;IAED,MAAM,mBAAmB,GAAG,MAAM,CAAC,mBAAmB,CAAC,eAAe,CAAA;IACtE,MAAM,CAAC,mBAAmB,CAAC,eAAe,EAAE,CAAA;IAE5C,MAAM,CAAC,mBAAmB,CAAC,SAAS,CAAC,IAAI,CAAC;QACtC,OAAO,EAAE,mBAAmB;QAC5B,KAAK,EAAE,QAAQ;QACf,KAAK;KACR,CAAC,CAAA;IAEF,KAAK,CACD,KAAK,CAAC,SAAS,CAAA,GAAG,mBAAmB,GAAG;UAClC,KAAK,CAAC,SAAS,CAAA,aAAa,GAAG,KAAK,CAAC,UAAU,CAAA,GAAG,QAAQ,IAAI,CACvE,CAAA;AACL,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=describe.unitTest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"describe.unitTest.d.ts","sourceRoot":"","sources":["../src/describe.unitTest.ts"],"names":[],"mappings":""}
@@ -1,26 +1,22 @@
1
1
  import { expect } from 'chai';
2
2
  import { describe } from './describe.js';
3
- await mochaDescribe('new describe() function', async function () {
4
- await mochaIt('should run tests and output results', async function () {
5
- await this.timeout(6000);
6
-
7
- // eslint-disable-next-line camelcase
8
- global.__sxy_test_runner__ = {
9
- describes: [],
10
- describeCounter: 1
11
- };
12
- await describe('a thing', async ({
13
- it
14
- }) => {
15
- await it('should be great', async () => {
16
- (await expect('it')).to.be.great;
17
- });
18
- await it('should be awesome', async () => {
19
- (await expect('it')).to.be.awesome;
20
- });
3
+ mochaDescribe('new describe() function', function () {
4
+ mochaIt('should register the describe on the global test-runner state', function () {
5
+ global.__sxy_test_runner__ = {
6
+ describes: [],
7
+ describeCounter: 1
8
+ };
9
+ describe('a thing', ({ it }) => {
10
+ it('should be great', () => {
11
+ expect('it').to.be.a('string');
12
+ });
13
+ it('should be awesome', () => {
14
+ expect('it').to.be.a('string');
15
+ });
16
+ });
17
+ global.__sxy_test_runner__.describes.length.should.equal(1);
18
+ global.__sxy_test_runner__.describes[0]?.thing.should.equal('a thing');
19
+ global.__sxy_test_runner__.describes[0]?.tests.should.be.a('function');
21
20
  });
22
- await global.__sxy_test_runner__.describes.length.should.equal(1);
23
- await global.__sxy_test_runner__.describes[0].thing.should.equal('a thing');
24
- await global.__sxy_test_runner__.describes[0].tests.should.be.a('function');
25
- });
26
- });
21
+ });
22
+ //# sourceMappingURL=describe.unitTest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"describe.unitTest.js","sourceRoot":"","sources":["../src/describe.unitTest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,MAAM,CAAA;AAC7B,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA;AAExC,aAAa,CAAC,yBAAyB,EAAE;IACrC,OAAO,CAAC,8DAA8D,EAAE;QACpE,MAAM,CAAC,mBAAmB,GAAG;YACzB,SAAS,EAAE,EAAE;YACb,eAAe,EAAE,CAAC;SACrB,CAAA;QAED,QAAQ,CAAC,SAAS,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE;YAC3B,EAAE,CAAC,iBAAiB,EAAE,GAAG,EAAE;gBACvB,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAA;YAClC,CAAC,CAAC,CAAA;YACF,EAAE,CAAC,mBAAmB,EAAE,GAAG,EAAE;gBACzB,MAAM,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAA;YAClC,CAAC,CAAC,CAAA;QACN,CAAC,CAAC,CAAA;QAEF,MAAM,CAAC,mBAAmB,CAAC,SAAS,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;QAC3D,MAAM,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,CAAA;QACtE,MAAM,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,UAAU,CAAC,CAAA;IAC1E,CAAC,CAAC,CAAA;AACN,CAAC,CAAC,CAAA"}
@@ -0,0 +1,2 @@
1
+ export { describe } from './describe.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA"}
package/dist/index.js CHANGED
@@ -1 +1,2 @@
1
- export { describe } from './describe.js';
1
+ export { describe } from './describe.js';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare function indexNumberToLetters(number: number, uppercase?: boolean): string | undefined;
2
+ //# sourceMappingURL=indexNumberToLetters.d.ts.map