@elench/testkit 0.1.65 → 0.1.66

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 (305) hide show
  1. package/lib/app/browser-bridge.mjs +66 -0
  2. package/lib/app/configs.mjs +81 -0
  3. package/lib/app/configs.test.mjs +34 -0
  4. package/lib/cli/command-helpers.mjs +2 -10
  5. package/lib/cli/commands/browser/serve.mjs +3 -62
  6. package/lib/cli/db.mjs +3 -68
  7. package/lib/config/binaries.mjs +34 -0
  8. package/lib/config/database.mjs +9 -6
  9. package/lib/config/index.mjs +2 -31
  10. package/lib/config/runtime.mjs +24 -95
  11. package/lib/config/validation.mjs +18 -62
  12. package/lib/coverage/backend-discovery.mjs +68 -85
  13. package/lib/coverage/backend-discovery.test.mjs +55 -46
  14. package/lib/coverage/graph-builder.mjs +5 -5
  15. package/lib/coverage/next-ir-to-graph.mjs +0 -1
  16. package/lib/coverage/routing.mjs +2 -29
  17. package/lib/coverage/routing.test.mjs +0 -16
  18. package/lib/coverage/shared.mjs +22 -82
  19. package/lib/database/fingerprint.mjs +1 -1
  20. package/lib/known-failures/github-cache.mjs +159 -0
  21. package/lib/known-failures/github-transport.mjs +174 -0
  22. package/lib/known-failures/github.mjs +17 -325
  23. package/lib/runner/default-runtime-runner.mjs +4 -10
  24. package/lib/runner/execution-config.mjs +12 -83
  25. package/lib/runner/live-run.mjs +45 -0
  26. package/lib/runner/managed-processes.mjs +29 -0
  27. package/lib/runner/orchestrator.mjs +57 -188
  28. package/lib/runner/playwright-runner.mjs +4 -11
  29. package/lib/runner/run-finalization.mjs +132 -0
  30. package/lib/runner/run-guards.mjs +45 -0
  31. package/lib/runner/runtime-preparation.mjs +1 -1
  32. package/lib/runner/services.mjs +3 -4
  33. package/lib/runner/template-steps.mjs +8 -45
  34. package/lib/runner/template.mjs +7 -28
  35. package/lib/shared/configured-steps.mjs +178 -0
  36. package/lib/shared/configured-steps.test.mjs +73 -0
  37. package/lib/shared/execution-schema.mjs +74 -0
  38. package/lib/shared/execution-schema.test.mjs +26 -0
  39. package/node_modules/@elench/next-analysis/dist/api-routes.d.ts +7 -0
  40. package/node_modules/@elench/next-analysis/dist/api-routes.d.ts.map +1 -0
  41. package/node_modules/@elench/next-analysis/dist/api-routes.js +66 -0
  42. package/node_modules/@elench/next-analysis/dist/api-routes.js.map +1 -0
  43. package/node_modules/@elench/next-analysis/dist/app-root.d.ts +2 -0
  44. package/node_modules/@elench/next-analysis/dist/app-root.d.ts.map +1 -0
  45. package/node_modules/@elench/next-analysis/dist/app-root.js +7 -0
  46. package/node_modules/@elench/next-analysis/dist/app-root.js.map +1 -0
  47. package/node_modules/@elench/next-analysis/dist/backend-links.d.ts +8 -0
  48. package/node_modules/@elench/next-analysis/dist/backend-links.d.ts.map +1 -0
  49. package/node_modules/@elench/next-analysis/dist/backend-links.js +30 -0
  50. package/node_modules/@elench/next-analysis/dist/backend-links.js.map +1 -0
  51. package/node_modules/@elench/next-analysis/dist/index.d.ts +11 -0
  52. package/node_modules/@elench/next-analysis/dist/index.d.ts.map +1 -0
  53. package/node_modules/@elench/next-analysis/dist/index.js +10 -0
  54. package/node_modules/@elench/next-analysis/dist/index.js.map +1 -0
  55. package/node_modules/@elench/next-analysis/dist/pages.d.ts +7 -0
  56. package/node_modules/@elench/next-analysis/dist/pages.d.ts.map +1 -0
  57. package/node_modules/@elench/next-analysis/dist/pages.js +47 -0
  58. package/node_modules/@elench/next-analysis/dist/pages.js.map +1 -0
  59. package/node_modules/@elench/next-analysis/dist/project.d.ts +3 -0
  60. package/node_modules/@elench/next-analysis/dist/project.d.ts.map +1 -0
  61. package/node_modules/@elench/next-analysis/dist/project.js +102 -0
  62. package/node_modules/@elench/next-analysis/dist/project.js.map +1 -0
  63. package/node_modules/@elench/next-analysis/dist/route-tree.d.ts +7 -0
  64. package/node_modules/@elench/next-analysis/dist/route-tree.d.ts.map +1 -0
  65. package/node_modules/@elench/next-analysis/dist/route-tree.js +575 -0
  66. package/node_modules/@elench/next-analysis/dist/route-tree.js.map +1 -0
  67. package/node_modules/@elench/next-analysis/dist/routes.d.ts +6 -0
  68. package/node_modules/@elench/next-analysis/dist/routes.d.ts.map +1 -0
  69. package/node_modules/@elench/next-analysis/dist/routes.js +41 -0
  70. package/node_modules/@elench/next-analysis/dist/routes.js.map +1 -0
  71. package/node_modules/@elench/next-analysis/dist/server-actions.d.ts +7 -0
  72. package/node_modules/@elench/next-analysis/dist/server-actions.d.ts.map +1 -0
  73. package/node_modules/@elench/next-analysis/dist/server-actions.js +37 -0
  74. package/node_modules/@elench/next-analysis/dist/server-actions.js.map +1 -0
  75. package/node_modules/@elench/next-analysis/dist/shared.d.ts +57 -0
  76. package/node_modules/@elench/next-analysis/dist/shared.d.ts.map +1 -0
  77. package/node_modules/@elench/next-analysis/dist/shared.js +229 -0
  78. package/node_modules/@elench/next-analysis/dist/shared.js.map +1 -0
  79. package/node_modules/@elench/next-analysis/dist/swc.d.ts +53 -0
  80. package/node_modules/@elench/next-analysis/dist/swc.d.ts.map +1 -0
  81. package/node_modules/@elench/next-analysis/dist/swc.js +387 -0
  82. package/node_modules/@elench/next-analysis/dist/swc.js.map +1 -0
  83. package/node_modules/@elench/next-analysis/dist/types.d.ts +125 -0
  84. package/node_modules/@elench/next-analysis/dist/types.d.ts.map +1 -0
  85. package/node_modules/@elench/next-analysis/dist/types.js +2 -0
  86. package/node_modules/@elench/next-analysis/dist/types.js.map +1 -0
  87. package/node_modules/@elench/next-analysis/package.json +15 -2
  88. package/node_modules/@elench/testkit-bridge/dist/index.d.ts +36 -0
  89. package/node_modules/@elench/testkit-bridge/dist/index.d.ts.map +1 -0
  90. package/node_modules/@elench/testkit-bridge/dist/index.js +538 -0
  91. package/node_modules/@elench/testkit-bridge/dist/index.js.map +1 -0
  92. package/node_modules/@elench/testkit-bridge/package.json +16 -5
  93. package/node_modules/@elench/testkit-protocol/dist/index.d.ts +190 -0
  94. package/node_modules/@elench/testkit-protocol/dist/index.d.ts.map +1 -0
  95. package/node_modules/@elench/testkit-protocol/dist/index.js +296 -0
  96. package/node_modules/@elench/testkit-protocol/dist/index.js.map +1 -0
  97. package/node_modules/@elench/testkit-protocol/package.json +14 -7
  98. package/node_modules/@elench/ts-analysis/dist/callables.d.ts +8 -0
  99. package/node_modules/@elench/ts-analysis/dist/callables.d.ts.map +1 -0
  100. package/node_modules/@elench/ts-analysis/dist/callables.js +126 -0
  101. package/node_modules/@elench/ts-analysis/dist/callables.js.map +1 -0
  102. package/node_modules/@elench/ts-analysis/dist/exports.d.ts +6 -0
  103. package/node_modules/@elench/ts-analysis/dist/exports.d.ts.map +1 -0
  104. package/node_modules/@elench/ts-analysis/dist/exports.js +70 -0
  105. package/node_modules/@elench/ts-analysis/dist/exports.js.map +1 -0
  106. package/node_modules/@elench/ts-analysis/dist/index.d.ts +10 -0
  107. package/node_modules/@elench/ts-analysis/dist/index.d.ts.map +1 -0
  108. package/node_modules/@elench/ts-analysis/{src/index.mjs → dist/index.js} +9 -14
  109. package/node_modules/@elench/ts-analysis/dist/index.js.map +1 -0
  110. package/node_modules/@elench/ts-analysis/dist/jsx.d.ts +9 -0
  111. package/node_modules/@elench/ts-analysis/dist/jsx.d.ts.map +1 -0
  112. package/node_modules/@elench/ts-analysis/dist/jsx.js +68 -0
  113. package/node_modules/@elench/ts-analysis/dist/jsx.js.map +1 -0
  114. package/node_modules/@elench/ts-analysis/dist/project.d.ts +5 -0
  115. package/node_modules/@elench/ts-analysis/dist/project.d.ts.map +1 -0
  116. package/node_modules/@elench/ts-analysis/dist/project.js +90 -0
  117. package/node_modules/@elench/ts-analysis/dist/project.js.map +1 -0
  118. package/node_modules/@elench/ts-analysis/dist/requests.d.ts +6 -0
  119. package/node_modules/@elench/ts-analysis/dist/requests.d.ts.map +1 -0
  120. package/node_modules/@elench/ts-analysis/dist/requests.js +140 -0
  121. package/node_modules/@elench/ts-analysis/dist/requests.js.map +1 -0
  122. package/node_modules/@elench/ts-analysis/dist/resolution.d.ts +4 -0
  123. package/node_modules/@elench/ts-analysis/dist/resolution.d.ts.map +1 -0
  124. package/node_modules/@elench/ts-analysis/dist/resolution.js +53 -0
  125. package/node_modules/@elench/ts-analysis/dist/resolution.js.map +1 -0
  126. package/node_modules/@elench/ts-analysis/dist/shared.d.ts +6 -0
  127. package/node_modules/@elench/ts-analysis/dist/shared.d.ts.map +1 -0
  128. package/node_modules/@elench/ts-analysis/dist/shared.js +31 -0
  129. package/node_modules/@elench/ts-analysis/dist/shared.js.map +1 -0
  130. package/node_modules/@elench/ts-analysis/dist/syntax.d.ts +7 -0
  131. package/node_modules/@elench/ts-analysis/dist/syntax.d.ts.map +1 -0
  132. package/node_modules/@elench/ts-analysis/dist/syntax.js +27 -0
  133. package/node_modules/@elench/ts-analysis/dist/syntax.js.map +1 -0
  134. package/node_modules/@elench/ts-analysis/dist/types.d.ts +58 -0
  135. package/node_modules/@elench/ts-analysis/dist/types.d.ts.map +1 -0
  136. package/node_modules/@elench/ts-analysis/dist/types.js +2 -0
  137. package/node_modules/@elench/ts-analysis/dist/types.js.map +1 -0
  138. package/node_modules/@elench/ts-analysis/package.json +18 -2
  139. package/node_modules/typescript/LICENSE.txt +55 -0
  140. package/node_modules/typescript/README.md +50 -0
  141. package/node_modules/typescript/SECURITY.md +41 -0
  142. package/node_modules/typescript/ThirdPartyNoticeText.txt +193 -0
  143. package/node_modules/typescript/bin/tsc +2 -0
  144. package/node_modules/typescript/bin/tsserver +2 -0
  145. package/node_modules/typescript/lib/_tsc.js +133818 -0
  146. package/node_modules/typescript/lib/_tsserver.js +659 -0
  147. package/node_modules/typescript/lib/_typingsInstaller.js +222 -0
  148. package/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +2122 -0
  149. package/node_modules/typescript/lib/de/diagnosticMessages.generated.json +2122 -0
  150. package/node_modules/typescript/lib/es/diagnosticMessages.generated.json +2122 -0
  151. package/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +2122 -0
  152. package/node_modules/typescript/lib/it/diagnosticMessages.generated.json +2122 -0
  153. package/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +2122 -0
  154. package/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +2122 -0
  155. package/node_modules/typescript/lib/lib.d.ts +22 -0
  156. package/node_modules/typescript/lib/lib.decorators.d.ts +384 -0
  157. package/node_modules/typescript/lib/lib.decorators.legacy.d.ts +22 -0
  158. package/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +41 -0
  159. package/node_modules/typescript/lib/lib.dom.d.ts +39429 -0
  160. package/node_modules/typescript/lib/lib.dom.iterable.d.ts +571 -0
  161. package/node_modules/typescript/lib/lib.es2015.collection.d.ts +147 -0
  162. package/node_modules/typescript/lib/lib.es2015.core.d.ts +597 -0
  163. package/node_modules/typescript/lib/lib.es2015.d.ts +28 -0
  164. package/node_modules/typescript/lib/lib.es2015.generator.d.ts +77 -0
  165. package/node_modules/typescript/lib/lib.es2015.iterable.d.ts +605 -0
  166. package/node_modules/typescript/lib/lib.es2015.promise.d.ts +81 -0
  167. package/node_modules/typescript/lib/lib.es2015.proxy.d.ts +128 -0
  168. package/node_modules/typescript/lib/lib.es2015.reflect.d.ts +144 -0
  169. package/node_modules/typescript/lib/lib.es2015.symbol.d.ts +46 -0
  170. package/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +326 -0
  171. package/node_modules/typescript/lib/lib.es2016.array.include.d.ts +116 -0
  172. package/node_modules/typescript/lib/lib.es2016.d.ts +21 -0
  173. package/node_modules/typescript/lib/lib.es2016.full.d.ts +23 -0
  174. package/node_modules/typescript/lib/lib.es2016.intl.d.ts +31 -0
  175. package/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts +21 -0
  176. package/node_modules/typescript/lib/lib.es2017.d.ts +26 -0
  177. package/node_modules/typescript/lib/lib.es2017.date.d.ts +31 -0
  178. package/node_modules/typescript/lib/lib.es2017.full.d.ts +23 -0
  179. package/node_modules/typescript/lib/lib.es2017.intl.d.ts +44 -0
  180. package/node_modules/typescript/lib/lib.es2017.object.d.ts +49 -0
  181. package/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +135 -0
  182. package/node_modules/typescript/lib/lib.es2017.string.d.ts +45 -0
  183. package/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +53 -0
  184. package/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +77 -0
  185. package/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +53 -0
  186. package/node_modules/typescript/lib/lib.es2018.d.ts +24 -0
  187. package/node_modules/typescript/lib/lib.es2018.full.d.ts +24 -0
  188. package/node_modules/typescript/lib/lib.es2018.intl.d.ts +83 -0
  189. package/node_modules/typescript/lib/lib.es2018.promise.d.ts +30 -0
  190. package/node_modules/typescript/lib/lib.es2018.regexp.d.ts +37 -0
  191. package/node_modules/typescript/lib/lib.es2019.array.d.ts +79 -0
  192. package/node_modules/typescript/lib/lib.es2019.d.ts +24 -0
  193. package/node_modules/typescript/lib/lib.es2019.full.d.ts +24 -0
  194. package/node_modules/typescript/lib/lib.es2019.intl.d.ts +23 -0
  195. package/node_modules/typescript/lib/lib.es2019.object.d.ts +33 -0
  196. package/node_modules/typescript/lib/lib.es2019.string.d.ts +37 -0
  197. package/node_modules/typescript/lib/lib.es2019.symbol.d.ts +24 -0
  198. package/node_modules/typescript/lib/lib.es2020.bigint.d.ts +765 -0
  199. package/node_modules/typescript/lib/lib.es2020.d.ts +27 -0
  200. package/node_modules/typescript/lib/lib.es2020.date.d.ts +42 -0
  201. package/node_modules/typescript/lib/lib.es2020.full.d.ts +24 -0
  202. package/node_modules/typescript/lib/lib.es2020.intl.d.ts +474 -0
  203. package/node_modules/typescript/lib/lib.es2020.number.d.ts +28 -0
  204. package/node_modules/typescript/lib/lib.es2020.promise.d.ts +47 -0
  205. package/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +99 -0
  206. package/node_modules/typescript/lib/lib.es2020.string.d.ts +44 -0
  207. package/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +41 -0
  208. package/node_modules/typescript/lib/lib.es2021.d.ts +23 -0
  209. package/node_modules/typescript/lib/lib.es2021.full.d.ts +24 -0
  210. package/node_modules/typescript/lib/lib.es2021.intl.d.ts +166 -0
  211. package/node_modules/typescript/lib/lib.es2021.promise.d.ts +48 -0
  212. package/node_modules/typescript/lib/lib.es2021.string.d.ts +33 -0
  213. package/node_modules/typescript/lib/lib.es2021.weakref.d.ts +78 -0
  214. package/node_modules/typescript/lib/lib.es2022.array.d.ts +121 -0
  215. package/node_modules/typescript/lib/lib.es2022.d.ts +25 -0
  216. package/node_modules/typescript/lib/lib.es2022.error.d.ts +75 -0
  217. package/node_modules/typescript/lib/lib.es2022.full.d.ts +24 -0
  218. package/node_modules/typescript/lib/lib.es2022.intl.d.ts +145 -0
  219. package/node_modules/typescript/lib/lib.es2022.object.d.ts +26 -0
  220. package/node_modules/typescript/lib/lib.es2022.regexp.d.ts +39 -0
  221. package/node_modules/typescript/lib/lib.es2022.string.d.ts +25 -0
  222. package/node_modules/typescript/lib/lib.es2023.array.d.ts +924 -0
  223. package/node_modules/typescript/lib/lib.es2023.collection.d.ts +21 -0
  224. package/node_modules/typescript/lib/lib.es2023.d.ts +22 -0
  225. package/node_modules/typescript/lib/lib.es2023.full.d.ts +24 -0
  226. package/node_modules/typescript/lib/lib.es2023.intl.d.ts +56 -0
  227. package/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts +65 -0
  228. package/node_modules/typescript/lib/lib.es2024.collection.d.ts +29 -0
  229. package/node_modules/typescript/lib/lib.es2024.d.ts +26 -0
  230. package/node_modules/typescript/lib/lib.es2024.full.d.ts +24 -0
  231. package/node_modules/typescript/lib/lib.es2024.object.d.ts +29 -0
  232. package/node_modules/typescript/lib/lib.es2024.promise.d.ts +35 -0
  233. package/node_modules/typescript/lib/lib.es2024.regexp.d.ts +25 -0
  234. package/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts +68 -0
  235. package/node_modules/typescript/lib/lib.es2024.string.d.ts +29 -0
  236. package/node_modules/typescript/lib/lib.es5.d.ts +4601 -0
  237. package/node_modules/typescript/lib/lib.es6.d.ts +23 -0
  238. package/node_modules/typescript/lib/lib.esnext.array.d.ts +35 -0
  239. package/node_modules/typescript/lib/lib.esnext.collection.d.ts +96 -0
  240. package/node_modules/typescript/lib/lib.esnext.d.ts +29 -0
  241. package/node_modules/typescript/lib/lib.esnext.decorators.d.ts +28 -0
  242. package/node_modules/typescript/lib/lib.esnext.disposable.d.ts +193 -0
  243. package/node_modules/typescript/lib/lib.esnext.error.d.ts +24 -0
  244. package/node_modules/typescript/lib/lib.esnext.float16.d.ts +445 -0
  245. package/node_modules/typescript/lib/lib.esnext.full.d.ts +24 -0
  246. package/node_modules/typescript/lib/lib.esnext.intl.d.ts +21 -0
  247. package/node_modules/typescript/lib/lib.esnext.iterator.d.ts +148 -0
  248. package/node_modules/typescript/lib/lib.esnext.promise.d.ts +34 -0
  249. package/node_modules/typescript/lib/lib.esnext.sharedmemory.d.ts +25 -0
  250. package/node_modules/typescript/lib/lib.scripthost.d.ts +322 -0
  251. package/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +41 -0
  252. package/node_modules/typescript/lib/lib.webworker.d.ts +13150 -0
  253. package/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +23 -0
  254. package/node_modules/typescript/lib/lib.webworker.iterable.d.ts +340 -0
  255. package/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +2122 -0
  256. package/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +2122 -0
  257. package/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +2122 -0
  258. package/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +2122 -0
  259. package/node_modules/typescript/lib/tsc.js +8 -0
  260. package/node_modules/typescript/lib/tsserver.js +8 -0
  261. package/node_modules/typescript/lib/tsserverlibrary.d.ts +17 -0
  262. package/node_modules/typescript/lib/tsserverlibrary.js +21 -0
  263. package/node_modules/typescript/lib/typesMap.json +497 -0
  264. package/node_modules/typescript/lib/typescript.d.ts +11437 -0
  265. package/node_modules/typescript/lib/typescript.js +200276 -0
  266. package/node_modules/typescript/lib/typingsInstaller.js +8 -0
  267. package/node_modules/typescript/lib/watchGuard.js +53 -0
  268. package/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +2122 -0
  269. package/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +2122 -0
  270. package/node_modules/typescript/package.json +120 -0
  271. package/package.json +12 -9
  272. package/lib/coverage/fs-walk.mjs +0 -64
  273. package/node_modules/@elench/next-analysis/src/api-routes.mjs +0 -81
  274. package/node_modules/@elench/next-analysis/src/api-routes.test.mjs +0 -22
  275. package/node_modules/@elench/next-analysis/src/app-root.mjs +0 -7
  276. package/node_modules/@elench/next-analysis/src/backend-links.mjs +0 -31
  277. package/node_modules/@elench/next-analysis/src/index.mjs +0 -21
  278. package/node_modules/@elench/next-analysis/src/pages.mjs +0 -68
  279. package/node_modules/@elench/next-analysis/src/project.mjs +0 -94
  280. package/node_modules/@elench/next-analysis/src/project.test.mjs +0 -35
  281. package/node_modules/@elench/next-analysis/src/route-tree.mjs +0 -621
  282. package/node_modules/@elench/next-analysis/src/routes.mjs +0 -41
  283. package/node_modules/@elench/next-analysis/src/routes.test.mjs +0 -25
  284. package/node_modules/@elench/next-analysis/src/server-actions.mjs +0 -53
  285. package/node_modules/@elench/next-analysis/src/server-actions.test.mjs +0 -37
  286. package/node_modules/@elench/next-analysis/src/shared.mjs +0 -209
  287. package/node_modules/@elench/next-analysis/src/swc.mjs +0 -388
  288. package/node_modules/@elench/testkit-bridge/src/index.mjs +0 -583
  289. package/node_modules/@elench/testkit-bridge/src/index.test.mjs +0 -409
  290. package/node_modules/@elench/testkit-protocol/src/index.d.ts +0 -231
  291. package/node_modules/@elench/testkit-protocol/src/index.mjs +0 -265
  292. package/node_modules/@elench/testkit-protocol/src/index.test.mjs +0 -242
  293. package/node_modules/@elench/ts-analysis/src/callables.mjs +0 -135
  294. package/node_modules/@elench/ts-analysis/src/callables.test.mjs +0 -55
  295. package/node_modules/@elench/ts-analysis/src/exports.mjs +0 -69
  296. package/node_modules/@elench/ts-analysis/src/exports.test.mjs +0 -50
  297. package/node_modules/@elench/ts-analysis/src/jsx.mjs +0 -69
  298. package/node_modules/@elench/ts-analysis/src/jsx.test.mjs +0 -43
  299. package/node_modules/@elench/ts-analysis/src/project.mjs +0 -100
  300. package/node_modules/@elench/ts-analysis/src/project.test.mjs +0 -54
  301. package/node_modules/@elench/ts-analysis/src/requests.mjs +0 -141
  302. package/node_modules/@elench/ts-analysis/src/requests.test.mjs +0 -35
  303. package/node_modules/@elench/ts-analysis/src/resolution.mjs +0 -53
  304. package/node_modules/@elench/ts-analysis/src/shared.mjs +0 -32
  305. package/node_modules/@elench/ts-analysis/src/syntax.mjs +0 -27
@@ -0,0 +1,538 @@
1
+ import { createRequire } from "node:module";
2
+ import * as http from "node:http";
3
+ import { TESTKIT_BROWSER_PROTOCOL_VERSION, createBridgeErrorResponse, } from "@elench/testkit-protocol";
4
+ const require = createRequire(import.meta.url);
5
+ const BRIDGE_PACKAGE_VERSION = require("../package.json").version;
6
+ export function createBrowserBridge(adapter) {
7
+ if (!adapter || typeof adapter.loadProductContext !== "function") {
8
+ throw new Error("createBrowserBridge(adapter) requires a loadProductContext function");
9
+ }
10
+ return {
11
+ async handleRequest(request, response) {
12
+ try {
13
+ const url = new URL(request.url || "/", "http://127.0.0.1");
14
+ const context = await adapter.loadProductContext();
15
+ if (request.method === "OPTIONS") {
16
+ response.statusCode = 204;
17
+ response.setHeader("access-control-allow-origin", "*");
18
+ response.setHeader("access-control-allow-methods", "GET, OPTIONS");
19
+ response.setHeader("access-control-allow-headers", "content-type");
20
+ response.end();
21
+ return;
22
+ }
23
+ if (request.method !== "GET") {
24
+ return writeJson(response, 405, createBridgeErrorResponse("method_not_allowed", "Only GET is supported"));
25
+ }
26
+ if (url.pathname === "/health") {
27
+ return writeJson(response, 200, buildHealthResponse(context));
28
+ }
29
+ if (url.pathname === "/match") {
30
+ const pageUrl = url.searchParams.get("url");
31
+ if (!pageUrl) {
32
+ return writeJson(response, 400, createBridgeErrorResponse("missing_url", 'Expected query parameter "url"'));
33
+ }
34
+ return writeJson(response, 200, buildMatchResponse(context, pageUrl));
35
+ }
36
+ if (url.pathname === "/page" || url.pathname === "/failures" || url.pathname === "/coverage") {
37
+ const pageUrl = url.searchParams.get("url");
38
+ if (!pageUrl) {
39
+ return writeJson(response, 400, createBridgeErrorResponse("missing_url", 'Expected query parameter "url"'));
40
+ }
41
+ const payload = buildPageOverlayResponse(context, pageUrl);
42
+ if (url.pathname === "/failures") {
43
+ return writeJson(response, 200, {
44
+ protocolVersion: payload.protocolVersion,
45
+ page: payload.page,
46
+ match: payload.match,
47
+ run: payload.run,
48
+ summary: payload.summary,
49
+ failures: payload.failures,
50
+ });
51
+ }
52
+ if (url.pathname === "/coverage") {
53
+ return writeJson(response, 200, {
54
+ protocolVersion: payload.protocolVersion,
55
+ page: payload.page,
56
+ match: payload.match,
57
+ run: payload.run,
58
+ summary: payload.summary,
59
+ coverage: payload.coverage,
60
+ });
61
+ }
62
+ return writeJson(response, 200, payload);
63
+ }
64
+ return writeJson(response, 404, createBridgeErrorResponse("not_found", `No bridge endpoint for ${url.pathname}`));
65
+ }
66
+ catch (error) {
67
+ return writeJson(response, 500, createBridgeErrorResponse("internal_error", error instanceof Error ? error.message : String(error)));
68
+ }
69
+ },
70
+ };
71
+ }
72
+ export function startBrowserBridgeServer(adapter, options = {}) {
73
+ const bridge = createBrowserBridge(adapter);
74
+ const host = options.host || "127.0.0.1";
75
+ const port = Number(options.port || 3847);
76
+ const server = http.createServer((request, response) => {
77
+ bridge.handleRequest(request, response);
78
+ });
79
+ return new Promise((resolve, reject) => {
80
+ server.once("error", reject);
81
+ server.listen(port, host, () => {
82
+ server.removeListener("error", reject);
83
+ resolve({
84
+ server,
85
+ host,
86
+ port,
87
+ url: `http://${host}:${port}`,
88
+ });
89
+ });
90
+ });
91
+ }
92
+ export function buildHealthResponse(context) {
93
+ return {
94
+ protocolVersion: TESTKIT_BROWSER_PROTOCOL_VERSION,
95
+ bridgeVersion: BRIDGE_PACKAGE_VERSION,
96
+ status: "ok",
97
+ product: context.product,
98
+ };
99
+ }
100
+ export function buildMatchResponse(context, pageUrl) {
101
+ const page = normalizePage(pageUrl);
102
+ const service = matchServiceForPage(context.services || [], page);
103
+ return {
104
+ protocolVersion: TESTKIT_BROWSER_PROTOCOL_VERSION,
105
+ url: page.url,
106
+ origin: page.origin,
107
+ route: page.route,
108
+ matched: Boolean(service),
109
+ product: context.product,
110
+ service: service
111
+ ? {
112
+ name: service.name,
113
+ baseUrl: service.baseUrl,
114
+ origin: service.origin,
115
+ }
116
+ : null,
117
+ };
118
+ }
119
+ export function buildPageOverlayResponse(context, pageUrl) {
120
+ const page = normalizePage(pageUrl);
121
+ const match = buildMatchResponse(context, page.url);
122
+ const projection = buildGraphProjection(context, page, match.service?.name || null);
123
+ const relatedCoverageCount = projection.coverage.length;
124
+ const relatedFailureCount = projection.failures.length;
125
+ const coverageBreakdown = buildCoverageBreakdown(projection.coverage);
126
+ return {
127
+ protocolVersion: TESTKIT_BROWSER_PROTOCOL_VERSION,
128
+ page,
129
+ match,
130
+ run: {
131
+ artifactAvailable: Boolean(context.runArtifact),
132
+ generatedAt: context.runArtifact?.generatedAt || null,
133
+ status: context.runArtifact?.run?.status || null,
134
+ },
135
+ summary: {
136
+ failureState: context.runArtifact
137
+ ? relatedFailureCount > 0
138
+ ? "failing"
139
+ : "healthy"
140
+ : "unavailable",
141
+ coverageState: relatedCoverageCount > 0 ? "covered" : "missing",
142
+ relatedFailureCount,
143
+ relatedCoverageCount,
144
+ coverageBreakdown,
145
+ },
146
+ failures: projection.failures,
147
+ coverage: projection.coverage,
148
+ };
149
+ }
150
+ function collectFailedFiles(runArtifact) {
151
+ if (!runArtifact || !Array.isArray(runArtifact.services))
152
+ return [];
153
+ return runArtifact.services.flatMap((service) => (service.suites || []).flatMap((suite) => (suite.files || [])
154
+ .filter((file) => file.status === "failed")
155
+ .map((file) => ({
156
+ service: service.name,
157
+ suite: suite.name,
158
+ type: suite.type,
159
+ framework: suite.framework,
160
+ filePath: file.path,
161
+ error: file.error || null,
162
+ failureDetails: Array.isArray(file.failureDetails) ? file.failureDetails : [],
163
+ }))));
164
+ }
165
+ function matchServiceForPage(services, page) {
166
+ return [...services]
167
+ .filter((service) => matchesServiceBaseUrl(service.baseUrl, page))
168
+ .sort((left, right) => (normalizeBaseUrl(right.baseUrl)?.length || 0) - (normalizeBaseUrl(left.baseUrl)?.length || 0))[0] || null;
169
+ }
170
+ function matchesServiceBaseUrl(baseUrl, page) {
171
+ const normalized = normalizeBaseUrl(baseUrl);
172
+ if (!normalized)
173
+ return false;
174
+ if (!page.url.startsWith(normalized))
175
+ return false;
176
+ const parsed = new URL(normalized);
177
+ const basePath = normalizeRoute(parsed.pathname || "/");
178
+ return basePath === "/" || page.route === basePath || page.route.startsWith(`${basePath}/`);
179
+ }
180
+ function normalizePage(value) {
181
+ const parsed = new URL(String(value));
182
+ return {
183
+ url: parsed.href,
184
+ origin: parsed.origin,
185
+ route: normalizeRoute(parsed.pathname || "/"),
186
+ };
187
+ }
188
+ function normalizeBaseUrl(value) {
189
+ if (typeof value !== "string" || value.trim().length === 0)
190
+ return null;
191
+ try {
192
+ const parsed = new URL(value);
193
+ const normalizedPath = normalizeRoute(parsed.pathname || "/");
194
+ return `${parsed.origin}${normalizedPath === "/" ? "" : normalizedPath}`;
195
+ }
196
+ catch {
197
+ return null;
198
+ }
199
+ }
200
+ function normalizeRoute(value) {
201
+ const trimmed = String(value || "/").trim();
202
+ if (!trimmed || trimmed === "/")
203
+ return "/";
204
+ const withLeadingSlash = trimmed.startsWith("/") ? trimmed : `/${trimmed}`;
205
+ return withLeadingSlash.length > 1 ? withLeadingSlash.replace(/\/+$/u, "") : withLeadingSlash;
206
+ }
207
+ function writeJson(response, statusCode, payload) {
208
+ response.statusCode = statusCode;
209
+ response.setHeader("content-type", "application/json; charset=utf-8");
210
+ response.setHeader("access-control-allow-origin", "*");
211
+ response.setHeader("access-control-allow-methods", "GET, OPTIONS");
212
+ response.setHeader("access-control-allow-headers", "content-type");
213
+ response.end(`${JSON.stringify(payload, null, 2)}\n`);
214
+ }
215
+ function buildGraphProjection(context, page, matchedServiceName) {
216
+ const graph = context.discovery?.coverageGraph || null;
217
+ if (!graph || !matchedServiceName) {
218
+ return { coverage: [], failures: [] };
219
+ }
220
+ const nodes = Array.isArray(graph.nodes) ? graph.nodes : [];
221
+ const edges = Array.isArray(graph.edges) ? graph.edges : [];
222
+ const evidence = Array.isArray(graph.evidence) ? graph.evidence : [];
223
+ const discoveryFiles = Array.isArray(context.discovery?.files) ? context.discovery.files : [];
224
+ const discoveryByFile = new Map(discoveryFiles.map((entry) => [entry.path, entry]));
225
+ const nodeById = new Map(nodes.map((node) => [node.id, node]));
226
+ const outgoing = buildOutgoingEdgeMap(edges);
227
+ const pageNode = nodes.find((node) => node.kind === "page_view" && node.service === matchedServiceName && normalizeRoute(node.route || "/") === page.route);
228
+ if (!pageNode) {
229
+ return { coverage: [], failures: [] };
230
+ }
231
+ const failedFiles = collectFailedFiles(context.runArtifact);
232
+ const failureByFile = new Map(failedFiles.map((entry) => [entry.filePath, entry]));
233
+ const surfaceNodes = (outgoing.get(pageNode.id) || [])
234
+ .map((nodeId) => nodeById.get(nodeId))
235
+ .filter((node) => node?.kind === "ui_surface");
236
+ const pageReachableNodeIds = collectReachableNodeIds(pageNode.id, outgoing);
237
+ const surfaceReachableEntries = surfaceNodes.map((surfaceNode) => ({
238
+ surfaceNode,
239
+ reachableNodeIds: collectReachableNodeIds(surfaceNode.id, outgoing),
240
+ }));
241
+ if (surfaceNodes.length === 0) {
242
+ const relevantEvidence = evidence.filter((entry) => intersects(entry.coveredNodeIds || [], pageReachableNodeIds));
243
+ return buildPageLevelProjection({
244
+ pageNode,
245
+ nodeById,
246
+ relevantEvidence,
247
+ pageReachableNodeIds,
248
+ discoveryByFile,
249
+ failureByFile,
250
+ runArtifact: context.runArtifact,
251
+ });
252
+ }
253
+ const coverage = [];
254
+ const failures = [];
255
+ for (const { surfaceNode, reachableNodeIds: surfaceReachableNodeIds } of surfaceReachableEntries.sort((left, right) => left.surfaceNode.id.localeCompare(right.surfaceNode.id))) {
256
+ const relevantEvidence = evidence.filter((entry) => intersects(entry.coveredNodeIds || [], surfaceReachableNodeIds));
257
+ const supportingTests = relevantEvidence
258
+ .map((entry) => buildSupportingTestRef(entry, discoveryByFile, context.runArtifact))
259
+ .filter(Boolean);
260
+ if (supportingTests.length > 0) {
261
+ const supportKind = inferCoverageSupportKind(supportingTests);
262
+ coverage.push({
263
+ id: surfaceNode.id,
264
+ kind: surfaceNode.kind,
265
+ label: surfaceNode.label,
266
+ service: surfaceNode.service,
267
+ route: pageNode.route || null,
268
+ targets: collectTargetsForEvidence(relevantEvidence, surfaceNode.target),
269
+ supportingTests,
270
+ viaNodes: collectViaNodes(relevantEvidence, surfaceReachableNodeIds, nodeById, new Set([pageNode.id, surfaceNode.id])),
271
+ confidence: supportingTests.some((entry) => entry.type === "pw") ? "high" : "medium",
272
+ importance: inferSurfaceImportance(surfaceNode),
273
+ surfaceKind: surfaceNode.metadata?.surfaceKind ? String(surfaceNode.metadata.surfaceKind) : null,
274
+ supportKind,
275
+ reason: buildCoverageReason(surfaceNode, supportKind, supportingTests, relevantEvidence),
276
+ });
277
+ }
278
+ const failedEvidence = relevantEvidence.filter((entry) => failureByFile.has(entry.testFilePath));
279
+ if (failedEvidence.length === 0)
280
+ continue;
281
+ const failedTests = failedEvidence
282
+ .map((entry) => {
283
+ const supporting = buildSupportingTestRef(entry, discoveryByFile, context.runArtifact);
284
+ const failed = failureByFile.get(entry.testFilePath);
285
+ if (!supporting)
286
+ return null;
287
+ return {
288
+ ...supporting,
289
+ error: failed?.error || supporting.error || null,
290
+ status: "failed",
291
+ };
292
+ })
293
+ .filter(Boolean);
294
+ failures.push({
295
+ id: `failure:${surfaceNode.id}`,
296
+ kind: surfaceNode.kind,
297
+ label: surfaceNode.label,
298
+ service: surfaceNode.service,
299
+ route: pageNode.route || null,
300
+ targets: collectTargetsForEvidence(failedEvidence, surfaceNode.target),
301
+ failedTests,
302
+ viaNodes: collectViaNodes(failedEvidence, surfaceReachableNodeIds, nodeById, new Set([pageNode.id, surfaceNode.id])),
303
+ importance: inferSurfaceImportance(surfaceNode),
304
+ surfaceKind: surfaceNode.metadata?.surfaceKind ? String(surfaceNode.metadata.surfaceKind) : null,
305
+ reason: buildFailureReason(surfaceNode, failedTests),
306
+ });
307
+ }
308
+ const routeLevelNodeIds = collectRouteLevelNodeIds(pageReachableNodeIds, surfaceReachableEntries);
309
+ if (routeLevelNodeIds.size > 0) {
310
+ const routeRelevantEvidence = evidence.filter((entry) => intersects(entry.coveredNodeIds || [], routeLevelNodeIds));
311
+ const pageProjection = buildPageLevelProjection({
312
+ pageNode,
313
+ nodeById,
314
+ relevantEvidence: routeRelevantEvidence,
315
+ pageReachableNodeIds: routeLevelNodeIds,
316
+ discoveryByFile,
317
+ failureByFile,
318
+ runArtifact: context.runArtifact,
319
+ });
320
+ coverage.unshift(...pageProjection.coverage);
321
+ failures.unshift(...pageProjection.failures);
322
+ }
323
+ return { coverage, failures };
324
+ }
325
+ function buildPageLevelProjection({ pageNode, nodeById, relevantEvidence, pageReachableNodeIds, discoveryByFile, failureByFile, runArtifact }) {
326
+ const supportingTests = relevantEvidence
327
+ .map((entry) => buildSupportingTestRef(entry, discoveryByFile, runArtifact))
328
+ .filter(Boolean);
329
+ const coverage = supportingTests.length > 0
330
+ ? [
331
+ {
332
+ id: pageNode.id,
333
+ kind: pageNode.kind,
334
+ label: pageNode.label,
335
+ service: pageNode.service,
336
+ route: pageNode.route || null,
337
+ targets: collectTargetsForEvidence(relevantEvidence, pageNode.target),
338
+ supportingTests,
339
+ viaNodes: collectViaNodes(relevantEvidence, pageReachableNodeIds, nodeById, new Set([pageNode.id])),
340
+ confidence: supportingTests.some((entry) => entry.type === "pw") ? "high" : "medium",
341
+ importance: inferSurfaceImportance(pageNode),
342
+ surfaceKind: pageNode.kind,
343
+ supportKind: inferCoverageSupportKind(supportingTests),
344
+ reason: buildCoverageReason(pageNode, inferCoverageSupportKind(supportingTests), supportingTests, relevantEvidence),
345
+ },
346
+ ]
347
+ : [];
348
+ const failures = relevantEvidence
349
+ .filter((entry) => failureByFile.has(entry.testFilePath))
350
+ .map((entry) => {
351
+ const failed = failureByFile.get(entry.testFilePath);
352
+ const supporting = buildSupportingTestRef(entry, discoveryByFile, runArtifact);
353
+ return {
354
+ id: `failure:${entry.testFilePath}`,
355
+ kind: pageNode.kind,
356
+ label: supporting?.label || pageNode.label,
357
+ service: pageNode.service,
358
+ route: pageNode.route || null,
359
+ targets: collectTargetsForEvidence([entry], pageNode.target),
360
+ failedTests: supporting ? [{ ...supporting, error: failed?.error || supporting.error || null, status: "failed" }] : [],
361
+ viaNodes: collectViaNodes([entry], pageReachableNodeIds, nodeById, new Set([pageNode.id])),
362
+ importance: inferSurfaceImportance(pageNode),
363
+ surfaceKind: pageNode.kind,
364
+ reason: buildFailureReason(pageNode, supporting ? [{ ...supporting, error: failed?.error || supporting.error || null, status: "failed" }] : []),
365
+ };
366
+ });
367
+ return { coverage, failures };
368
+ }
369
+ function buildOutgoingEdgeMap(edges) {
370
+ const map = new Map();
371
+ for (const edge of edges || []) {
372
+ const entries = map.get(edge.from) || [];
373
+ entries.push(edge.to);
374
+ map.set(edge.from, entries);
375
+ }
376
+ return map;
377
+ }
378
+ function collectReachableNodeIds(startNodeId, outgoing) {
379
+ const visited = new Set([startNodeId]);
380
+ const queue = [startNodeId];
381
+ while (queue.length > 0) {
382
+ const current = queue.shift();
383
+ if (!current)
384
+ continue;
385
+ for (const next of outgoing.get(current) || []) {
386
+ if (visited.has(next))
387
+ continue;
388
+ visited.add(next);
389
+ queue.push(next);
390
+ }
391
+ }
392
+ return visited;
393
+ }
394
+ function collectRouteLevelNodeIds(pageReachableNodeIds, surfaceReachableEntries) {
395
+ const routeLevelNodeIds = new Set(pageReachableNodeIds);
396
+ for (const { reachableNodeIds } of surfaceReachableEntries) {
397
+ for (const nodeId of reachableNodeIds) {
398
+ routeLevelNodeIds.delete(nodeId);
399
+ }
400
+ }
401
+ return routeLevelNodeIds;
402
+ }
403
+ function collectViaNodes(evidenceEntries, reachableNodeIds, nodeById, excludedNodeIds = new Set()) {
404
+ const nodes = new Map();
405
+ for (const entry of evidenceEntries) {
406
+ for (const nodeId of entry.coveredNodeIds || []) {
407
+ if (!reachableNodeIds.has(nodeId) || excludedNodeIds.has(nodeId))
408
+ continue;
409
+ const node = nodeById.get(nodeId);
410
+ if (!node)
411
+ continue;
412
+ nodes.set(nodeId, {
413
+ id: node.id,
414
+ kind: node.kind,
415
+ label: node.label,
416
+ ...(node.route ? { route: node.route } : {}),
417
+ ...(node.method ? { method: node.method } : {}),
418
+ ...(node.path ? { path: node.path } : {}),
419
+ });
420
+ }
421
+ }
422
+ return [...nodes.values()].sort((left, right) => left.id.localeCompare(right.id));
423
+ }
424
+ function collectTargetsForEvidence(evidenceEntries, pageTarget) {
425
+ const targets = [];
426
+ if (pageTarget)
427
+ targets.push(pageTarget);
428
+ for (const entry of evidenceEntries || []) {
429
+ for (const target of entry?.details?.targets || []) {
430
+ targets.push(target);
431
+ }
432
+ }
433
+ const seen = new Set();
434
+ return targets.filter((target) => {
435
+ const key = `${target.kind}:${target.value}`;
436
+ if (seen.has(key))
437
+ return false;
438
+ seen.add(key);
439
+ return true;
440
+ });
441
+ }
442
+ function buildSupportingTestRef(evidence, discoveryByFile, runArtifact) {
443
+ const discovery = discoveryByFile.get(evidence.testFilePath);
444
+ const runFile = findRunFileResult(runArtifact, evidence.testFilePath);
445
+ return {
446
+ service: evidence.service,
447
+ suite: evidence.suiteName,
448
+ type: evidence.selectionType,
449
+ framework: evidence.framework,
450
+ filePath: evidence.testFilePath,
451
+ label: discovery?.displayName || pathBaseName(evidence.testFilePath),
452
+ ...(runFile?.status ? { status: runFile.status } : {}),
453
+ ...(runFile?.error ? { error: runFile.error } : {}),
454
+ };
455
+ }
456
+ function findRunFileResult(runArtifact, targetPath) {
457
+ if (!runArtifact || !Array.isArray(runArtifact.services))
458
+ return null;
459
+ for (const service of runArtifact.services) {
460
+ for (const suite of service.suites || []) {
461
+ for (const file of suite.files || []) {
462
+ if (file.path === targetPath)
463
+ return file;
464
+ }
465
+ }
466
+ }
467
+ return null;
468
+ }
469
+ function intersects(values, setLike) {
470
+ for (const value of values || []) {
471
+ if (setLike.has(value))
472
+ return true;
473
+ }
474
+ return false;
475
+ }
476
+ function pathBaseName(filePath) {
477
+ const parts = String(filePath || "").split("/");
478
+ return parts[parts.length - 1] || filePath;
479
+ }
480
+ function buildCoverageBreakdown(entries) {
481
+ const breakdown = { direct: 0, indirect: 0, mixed: 0 };
482
+ for (const entry of entries || []) {
483
+ if (entry.supportKind === "direct")
484
+ breakdown.direct += 1;
485
+ else if (entry.supportKind === "indirect")
486
+ breakdown.indirect += 1;
487
+ else
488
+ breakdown.mixed += 1;
489
+ }
490
+ return breakdown;
491
+ }
492
+ function inferCoverageSupportKind(supportingTests) {
493
+ const hasPw = (supportingTests || []).some((entry) => entry.type === "pw");
494
+ const hasBackend = (supportingTests || []).some((entry) => entry.type !== "pw");
495
+ if (hasPw && hasBackend)
496
+ return "mixed";
497
+ if (hasPw)
498
+ return "direct";
499
+ return "indirect";
500
+ }
501
+ function inferSurfaceImportance(node) {
502
+ const label = String(node?.label || "").toLowerCase();
503
+ const surfaceKind = String(node?.metadata?.surfaceKind || node?.kind || "").toLowerCase();
504
+ if (/\b(pay|purchase|checkout|publish|send|submit|confirm|delete|remove)\b/u.test(label)) {
505
+ return "critical";
506
+ }
507
+ if (/\b(save|create|update|refresh|retry|login|sign in|continue)\b/u.test(label)) {
508
+ return "high";
509
+ }
510
+ if (surfaceKind === "form" || surfaceKind === "button" || surfaceKind === "input") {
511
+ return "medium";
512
+ }
513
+ return "low";
514
+ }
515
+ function buildCoverageReason(node, supportKind, supportingTests, evidenceEntries) {
516
+ const directCount = supportingTests.filter((entry) => entry.type === "pw").length;
517
+ const backendCount = supportingTests.filter((entry) => entry.type !== "pw").length;
518
+ const requestPaths = new Set();
519
+ for (const entry of evidenceEntries || []) {
520
+ for (const path of entry?.details?.requestPaths || [])
521
+ requestPaths.add(path);
522
+ }
523
+ const requestSummary = requestPaths.size > 0 ? ` via ${[...requestPaths].join(", ")}` : "";
524
+ if (supportKind === "mixed") {
525
+ return `${node.label} is covered directly by ${directCount} UI test${directCount === 1 ? "" : "s"} and indirectly by ${backendCount} backend test${backendCount === 1 ? "" : "s"}${requestSummary}.`;
526
+ }
527
+ if (supportKind === "direct") {
528
+ return `${node.label} is covered directly by ${directCount} UI test${directCount === 1 ? "" : "s"}${requestSummary}.`;
529
+ }
530
+ return `${node.label} is covered indirectly by ${backendCount} backend test${backendCount === 1 ? "" : "s"}${requestSummary}.`;
531
+ }
532
+ function buildFailureReason(node, failedTests) {
533
+ const count = (failedTests || []).length;
534
+ if (count === 0)
535
+ return `${node.label} has a related failing test.`;
536
+ return `${node.label} is implicated by ${count} failing test${count === 1 ? "" : "s"}.`;
537
+ }
538
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EACL,gCAAgC,EAChC,yBAAyB,GAG1B,MAAM,0BAA0B,CAAC;AAsBlC,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC/C,MAAM,sBAAsB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC,OAAO,CAAC;AAElE,MAAM,UAAU,mBAAmB,CAAC,OAAsB;IAGxD,IAAI,CAAC,OAAO,IAAI,OAAO,OAAO,CAAC,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ACpE,OAAO,GAAG,IAAI,CAAC,KAAK,qBAAqB,KAAK,gBAAgB,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC;AAC1F,CAAC"}
@@ -1,17 +1,28 @@
1
1
  {
2
2
  "name": "@elench/testkit-bridge",
3
- "version": "0.1.65",
3
+ "version": "0.1.66",
4
4
  "description": "Browser bridge helpers for testkit",
5
5
  "type": "module",
6
- "main": "./src/index.mjs",
6
+ "main": "./dist/index.js",
7
+ "types": "./dist/index.d.ts",
7
8
  "exports": {
8
- ".": "./src/index.mjs"
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "default": "./dist/index.js"
12
+ },
13
+ "./package.json": "./package.json"
9
14
  },
10
15
  "files": [
11
- "src/"
16
+ "dist/",
17
+ "package.json"
12
18
  ],
19
+ "scripts": {
20
+ "build": "tsc -p tsconfig.build.json",
21
+ "clean": "rm -rf dist",
22
+ "typecheck": "tsc -p tsconfig.json --noEmit"
23
+ },
13
24
  "dependencies": {
14
- "@elench/testkit-protocol": "0.1.65"
25
+ "@elench/testkit-protocol": "0.1.66"
15
26
  },
16
27
  "private": false
17
28
  }