html-reporter 9.9.2 → 9.10.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (396) hide show
  1. package/build/gemini.d.ts +2 -0
  2. package/{gemini.js → build/gemini.js} +1 -1
  3. package/build/gemini.js.map +1 -0
  4. package/build/hermione.d.ts +2 -0
  5. package/{hermione.js → build/hermione.js} +3 -21
  6. package/build/hermione.js.map +1 -0
  7. package/build/lib/cli-commands/gui.d.ts +2 -0
  8. package/{lib → build/lib}/cli-commands/gui.js +5 -7
  9. package/build/lib/cli-commands/gui.js.map +1 -0
  10. package/build/lib/cli-commands/index.d.ts +3 -0
  11. package/{lib → build/lib}/cli-commands/index.js +1 -1
  12. package/build/lib/cli-commands/index.js.map +1 -0
  13. package/build/lib/cli-commands/merge-reports.d.ts +2 -0
  14. package/{lib → build/lib}/cli-commands/merge-reports.js +11 -11
  15. package/build/lib/cli-commands/merge-reports.js.map +1 -0
  16. package/build/lib/cli-commands/remove-unused-screens/index.d.ts +2 -0
  17. package/{lib → build/lib}/cli-commands/remove-unused-screens/index.js +61 -110
  18. package/build/lib/cli-commands/remove-unused-screens/index.js.map +1 -0
  19. package/build/lib/cli-commands/remove-unused-screens/utils.d.ts +16 -0
  20. package/{lib → build/lib}/cli-commands/remove-unused-screens/utils.js +10 -48
  21. package/build/lib/cli-commands/remove-unused-screens/utils.js.map +1 -0
  22. package/build/lib/common-utils.d.ts +24 -0
  23. package/build/lib/common-utils.js +116 -0
  24. package/build/lib/common-utils.js.map +1 -0
  25. package/build/lib/config/custom-gui-asserts.d.ts +1 -0
  26. package/{lib → build/lib}/config/custom-gui-asserts.js +2 -12
  27. package/build/lib/config/custom-gui-asserts.js.map +1 -0
  28. package/build/lib/config/index.d.ts +21 -0
  29. package/{lib → build/lib}/config/index.js +7 -32
  30. package/build/lib/config/index.js.map +1 -0
  31. package/build/lib/constants/browser.d.ts +3 -0
  32. package/build/lib/constants/browser.js +5 -0
  33. package/build/lib/constants/browser.js.map +1 -0
  34. package/build/lib/constants/checked-statuses.d.ts +3 -0
  35. package/build/lib/constants/checked-statuses.js +7 -0
  36. package/build/lib/constants/checked-statuses.js.map +1 -0
  37. package/build/lib/constants/database.d.ts +25 -0
  38. package/build/lib/constants/database.js +47 -0
  39. package/build/lib/constants/database.js.map +1 -0
  40. package/build/lib/constants/defaults.d.ts +18 -0
  41. package/{lib → build/lib}/constants/defaults.js +1 -2
  42. package/build/lib/constants/defaults.js.map +1 -0
  43. package/build/lib/constants/diff-modes.d.ts +53 -0
  44. package/{lib → build/lib}/constants/diff-modes.js +2 -0
  45. package/build/lib/constants/diff-modes.js.map +1 -0
  46. package/build/lib/constants/errors.d.ts +5 -0
  47. package/{lib → build/lib}/constants/errors.js +1 -1
  48. package/build/lib/constants/errors.js.map +1 -0
  49. package/build/lib/constants/expand-modes.d.ts +4 -0
  50. package/{lib → build/lib}/constants/expand-modes.js +1 -1
  51. package/build/lib/constants/expand-modes.js.map +1 -0
  52. package/build/lib/constants/extension-points.d.ts +4 -0
  53. package/build/lib/constants/extension-points.js +8 -0
  54. package/build/lib/constants/extension-points.js.map +1 -0
  55. package/build/lib/constants/group-tests.d.ts +7 -0
  56. package/{lib → build/lib}/constants/group-tests.js +2 -0
  57. package/build/lib/constants/group-tests.js.map +1 -0
  58. package/build/lib/constants/paths.d.ts +2 -0
  59. package/{lib → build/lib}/constants/paths.js +1 -1
  60. package/build/lib/constants/paths.js.map +1 -0
  61. package/build/lib/constants/plugin-events.d.ts +5 -0
  62. package/{lib → build/lib}/constants/plugin-events.js +2 -4
  63. package/build/lib/constants/plugin-events.js.map +1 -0
  64. package/build/lib/constants/save-formats.d.ts +1 -0
  65. package/{lib → build/lib}/constants/save-formats.js +1 -1
  66. package/build/lib/constants/save-formats.js.map +1 -0
  67. package/build/lib/constants/test-statuses.d.ts +8 -0
  68. package/{lib → build/lib}/constants/test-statuses.js +1 -1
  69. package/build/lib/constants/test-statuses.js.map +1 -0
  70. package/build/lib/constants/view-modes.d.ts +5 -0
  71. package/{lib → build/lib}/constants/view-modes.js +1 -1
  72. package/build/lib/constants/view-modes.js.map +1 -0
  73. package/build/lib/db-utils/client.d.ts +19 -0
  74. package/{lib → build/lib}/db-utils/client.js +18 -45
  75. package/build/lib/db-utils/client.js.map +1 -0
  76. package/build/lib/db-utils/common.d.ts +10 -0
  77. package/build/lib/db-utils/common.js +56 -0
  78. package/build/lib/db-utils/common.js.map +1 -0
  79. package/build/lib/db-utils/server.d.ts +16 -0
  80. package/{lib → build/lib}/db-utils/server.js +15 -41
  81. package/build/lib/db-utils/server.js.map +1 -0
  82. package/build/lib/gui/api/facade.d.ts +8 -0
  83. package/{lib → build/lib}/gui/api/facade.js +1 -4
  84. package/build/lib/gui/api/facade.js.map +1 -0
  85. package/build/lib/gui/api/index.d.ts +9 -0
  86. package/{lib → build/lib}/gui/api/index.js +1 -5
  87. package/build/lib/gui/api/index.js.map +1 -0
  88. package/build/lib/gui/app.d.ts +62 -0
  89. package/{lib → build/lib}/gui/app.js +2 -21
  90. package/build/lib/gui/app.js.map +1 -0
  91. package/build/lib/gui/constants/client-events.d.ts +6 -0
  92. package/{lib → build/lib}/gui/constants/client-events.js +1 -4
  93. package/build/lib/gui/constants/client-events.js.map +1 -0
  94. package/build/lib/gui/constants/custom-gui-control-types.d.ts +2 -0
  95. package/{lib → build/lib}/gui/constants/custom-gui-control-types.js +1 -1
  96. package/build/lib/gui/constants/custom-gui-control-types.js.map +1 -0
  97. package/build/lib/gui/constants/gui-events.d.ts +2 -0
  98. package/{lib → build/lib}/gui/constants/gui-events.js +1 -1
  99. package/build/lib/gui/constants/gui-events.js.map +1 -0
  100. package/build/lib/gui/constants/server.d.ts +3 -0
  101. package/{lib → build/lib}/gui/constants/server.js +1 -1
  102. package/build/lib/gui/constants/server.js.map +1 -0
  103. package/build/lib/gui/event-source.d.ts +6 -0
  104. package/{lib → build/lib}/gui/event-source.js +2 -5
  105. package/build/lib/gui/event-source.js.map +1 -0
  106. package/build/lib/gui/index.d.ts +12 -0
  107. package/build/lib/gui/index.js +22 -0
  108. package/build/lib/gui/index.js.map +1 -0
  109. package/build/lib/gui/routes/plugins.d.ts +2 -0
  110. package/{lib → build/lib}/gui/routes/plugins.js +9 -24
  111. package/build/lib/gui/routes/plugins.js.map +1 -0
  112. package/build/lib/gui/server.d.ts +8 -0
  113. package/{lib → build/lib}/gui/server.js +32 -51
  114. package/build/lib/gui/server.js.map +1 -0
  115. package/build/lib/gui/tool-runner/index.d.ts +123 -0
  116. package/{lib → build/lib}/gui/tool-runner/index.js +42 -122
  117. package/build/lib/gui/tool-runner/index.js.map +1 -0
  118. package/build/lib/gui/tool-runner/report-subscriber.d.ts +2 -0
  119. package/{lib → build/lib}/gui/tool-runner/report-subscriber.js +7 -30
  120. package/build/lib/gui/tool-runner/report-subscriber.js.map +1 -0
  121. package/build/lib/gui/tool-runner/runner/all-test-runner.d.ts +4 -0
  122. package/{lib → build/lib}/gui/tool-runner/runner/all-test-runner.js +1 -3
  123. package/build/lib/gui/tool-runner/runner/all-test-runner.js.map +1 -0
  124. package/build/lib/gui/tool-runner/runner/index.d.ts +3 -0
  125. package/{lib → build/lib}/gui/tool-runner/runner/index.js +1 -2
  126. package/build/lib/gui/tool-runner/runner/index.js.map +1 -0
  127. package/build/lib/gui/tool-runner/runner/runner.d.ts +6 -0
  128. package/{lib → build/lib}/gui/tool-runner/runner/runner.js +1 -2
  129. package/build/lib/gui/tool-runner/runner/runner.js.map +1 -0
  130. package/build/lib/gui/tool-runner/runner/specific-test-runner.d.ts +7 -0
  131. package/{lib → build/lib}/gui/tool-runner/runner/specific-test-runner.js +2 -8
  132. package/build/lib/gui/tool-runner/runner/specific-test-runner.js.map +1 -0
  133. package/build/lib/gui/tool-runner/utils.d.ts +7 -0
  134. package/{lib → build/lib}/gui/tool-runner/utils.js +11 -35
  135. package/build/lib/gui/tool-runner/utils.js.map +1 -0
  136. package/build/lib/history-utils.d.ts +1 -0
  137. package/{lib → build/lib}/history-utils.js +5 -20
  138. package/build/lib/history-utils.js.map +1 -0
  139. package/build/lib/local-images-saver.d.ts +4 -0
  140. package/build/lib/local-images-saver.js +9 -0
  141. package/build/lib/local-images-saver.js.map +1 -0
  142. package/build/lib/merge-reports/index.d.ts +4 -0
  143. package/{lib → build/lib}/merge-reports/index.js +3 -8
  144. package/build/lib/merge-reports/index.js.map +1 -0
  145. package/build/lib/plugin-adapter.d.ts +32 -0
  146. package/{lib → build/lib}/plugin-adapter.js +8 -25
  147. package/build/lib/plugin-adapter.js.map +1 -0
  148. package/build/lib/plugin-api.d.ts +57 -0
  149. package/{lib → build/lib}/plugin-api.js +2 -20
  150. package/build/lib/plugin-api.js.map +1 -0
  151. package/build/lib/plugin-utils.d.ts +3 -0
  152. package/{lib → build/lib}/plugin-utils.js +3 -5
  153. package/build/lib/plugin-utils.js.map +1 -0
  154. package/build/lib/report-builder/gui.d.ts +73 -0
  155. package/{lib → build/lib}/report-builder/gui.js +33 -92
  156. package/build/lib/report-builder/gui.js.map +1 -0
  157. package/build/lib/report-builder/static.d.ts +32 -0
  158. package/{lib → build/lib}/report-builder/static.js +25 -64
  159. package/build/lib/report-builder/static.js.map +1 -0
  160. package/build/lib/reporter-helpers.d.ts +3 -0
  161. package/{lib → build/lib}/reporter-helpers.js +2 -11
  162. package/build/lib/reporter-helpers.js.map +1 -0
  163. package/build/lib/server-utils.d.ts +42 -0
  164. package/{lib → build/lib}/server-utils.js +37 -92
  165. package/build/lib/server-utils.js.map +1 -0
  166. package/build/lib/sqlite-adapter.d.ts +78 -0
  167. package/{lib → build/lib}/sqlite-adapter.js +15 -56
  168. package/build/lib/sqlite-adapter.js.map +1 -0
  169. package/build/lib/static/gui.min.css +1 -0
  170. package/build/lib/static/gui.min.js +124 -0
  171. package/build/lib/static/modules/utils.d.ts +31 -0
  172. package/{lib → build/lib}/static/modules/utils.js +16 -56
  173. package/build/lib/static/modules/utils.js.map +1 -0
  174. package/{lib → build/lib}/static/report.min.css +1 -1
  175. package/build/lib/static/report.min.js +124 -0
  176. package/build/lib/suite-adapter.d.ts +15 -0
  177. package/{lib → build/lib}/suite-adapter.js +2 -18
  178. package/build/lib/suite-adapter.js.map +1 -0
  179. package/build/lib/test-adapter.d.ts +118 -0
  180. package/{lib → build/lib}/test-adapter.js +38 -156
  181. package/build/lib/test-adapter.js.map +1 -0
  182. package/build/lib/tests-tree-builder/base.d.ts +70 -0
  183. package/{lib → build/lib}/tests-tree-builder/base.js +34 -74
  184. package/build/lib/tests-tree-builder/base.js.map +1 -0
  185. package/build/lib/tests-tree-builder/gui.d.ts +47 -0
  186. package/{lib → build/lib}/tests-tree-builder/gui.js +12 -63
  187. package/build/lib/tests-tree-builder/gui.js.map +1 -0
  188. package/build/lib/tests-tree-builder/static.d.ts +55 -0
  189. package/{lib → build/lib}/tests-tree-builder/static.js +11 -42
  190. package/build/lib/tests-tree-builder/static.js.map +1 -0
  191. package/build/lib/workers/create-workers.d.ts +2 -0
  192. package/{lib → build/lib}/workers/create-workers.js +1 -2
  193. package/build/lib/workers/create-workers.js.map +1 -0
  194. package/build/lib/workers/worker.d.ts +1 -0
  195. package/build/lib/workers/worker.js +13 -0
  196. package/build/lib/workers/worker.js.map +1 -0
  197. package/build/package.json +178 -0
  198. package/package.json +44 -23
  199. package/2html-reporter.iml +0 -9
  200. package/CHANGELOG.md +0 -2886
  201. package/docs/en/html-reporter-api.md +0 -198
  202. package/docs/en/html-reporter-commands.md +0 -96
  203. package/docs/en/html-reporter-custom-gui.md +0 -99
  204. package/docs/en/html-reporter-events.md +0 -125
  205. package/docs/en/html-reporter-plugins.md +0 -265
  206. package/docs/en/html-reporter-setup.md +0 -378
  207. package/docs/en/html-reporter.md +0 -8
  208. package/docs/ru/html-reporter-api.md +0 -198
  209. package/docs/ru/html-reporter-commands.md +0 -96
  210. package/docs/ru/html-reporter-custom-gui.md +0 -99
  211. package/docs/ru/html-reporter-events.md +0 -125
  212. package/docs/ru/html-reporter-plugins.md +0 -265
  213. package/docs/ru/html-reporter-setup.md +0 -378
  214. package/docs/ru/html-reporter.md +0 -8
  215. package/lib/common-utils.js +0 -117
  216. package/lib/constants/browser.js +0 -3
  217. package/lib/constants/database.js +0 -49
  218. package/lib/constants/extension-points.js +0 -6
  219. package/lib/db-utils/common.js +0 -76
  220. package/lib/gui/index.js +0 -19
  221. package/lib/local-images-saver.js +0 -11
  222. package/lib/static/components/bottom-progress-bar/index.js +0 -42
  223. package/lib/static/components/controls/accept-opened-button.js +0 -39
  224. package/lib/static/components/controls/base-host-input.js +0 -39
  225. package/lib/static/components/controls/browser-list/index.js +0 -239
  226. package/lib/static/components/controls/browser-list/index.styl +0 -52
  227. package/lib/static/components/controls/browser-list/label.js +0 -60
  228. package/lib/static/components/controls/browser-list/label.styl +0 -18
  229. package/lib/static/components/controls/browser-list/utils.js +0 -43
  230. package/lib/static/components/controls/common-controls.js +0 -75
  231. package/lib/static/components/controls/common-filters.js +0 -32
  232. package/lib/static/components/controls/control-button.js +0 -54
  233. package/lib/static/components/controls/controls.less +0 -109
  234. package/lib/static/components/controls/custom-gui-controls.js +0 -70
  235. package/lib/static/components/controls/find-same-diffs-button.js +0 -47
  236. package/lib/static/components/controls/gui-controls.js +0 -81
  237. package/lib/static/components/controls/menu-bar.js +0 -47
  238. package/lib/static/components/controls/report-controls.js +0 -21
  239. package/lib/static/components/controls/report-info.js +0 -31
  240. package/lib/static/components/controls/run-button.js +0 -27
  241. package/lib/static/components/controls/selects/control.js +0 -51
  242. package/lib/static/components/controls/selects/group-tests.js +0 -94
  243. package/lib/static/components/controls/selects/index.styl +0 -57
  244. package/lib/static/components/controls/strict-match-filter-input.js +0 -39
  245. package/lib/static/components/controls/test-name-filter-input.js +0 -42
  246. package/lib/static/components/custom-scripts.js +0 -23
  247. package/lib/static/components/details.js +0 -58
  248. package/lib/static/components/error-boundary.js +0 -26
  249. package/lib/static/components/extension-point.js +0 -106
  250. package/lib/static/components/favicon-changer.js +0 -56
  251. package/lib/static/components/group-tests/item.js +0 -39
  252. package/lib/static/components/group-tests/list.js +0 -71
  253. package/lib/static/components/group-tests/prop-types.js +0 -12
  254. package/lib/static/components/gui.js +0 -105
  255. package/lib/static/components/header/header.css +0 -5
  256. package/lib/static/components/header/index.js +0 -26
  257. package/lib/static/components/header/summary/dbBtn.js +0 -36
  258. package/lib/static/components/header/summary/dbSummary.js +0 -49
  259. package/lib/static/components/header/summary/index.js +0 -43
  260. package/lib/static/components/header/summary/item.js +0 -28
  261. package/lib/static/components/header/summary/summary.css +0 -77
  262. package/lib/static/components/icons/arrow.js +0 -24
  263. package/lib/static/components/icons/arrows-close.js +0 -25
  264. package/lib/static/components/icons/arrows-move.js +0 -24
  265. package/lib/static/components/icons/arrows-open.js +0 -25
  266. package/lib/static/components/icons/view-in-browser/index.js +0 -59
  267. package/lib/static/components/icons/view-in-browser/index.styl +0 -28
  268. package/lib/static/components/loading.js +0 -25
  269. package/lib/static/components/main-tree.js +0 -23
  270. package/lib/static/components/modals/find-same-diffs.js +0 -34
  271. package/lib/static/components/modals/index.js +0 -6
  272. package/lib/static/components/modals/modal.css +0 -3
  273. package/lib/static/components/modals/modal.js +0 -27
  274. package/lib/static/components/modals/screenshot-accepter/body.js +0 -88
  275. package/lib/static/components/modals/screenshot-accepter/header.js +0 -192
  276. package/lib/static/components/modals/screenshot-accepter/index.js +0 -228
  277. package/lib/static/components/modals/screenshot-accepter/meta.js +0 -32
  278. package/lib/static/components/modals/screenshot-accepter/style.css +0 -115
  279. package/lib/static/components/popup/index.js +0 -85
  280. package/lib/static/components/popup/index.styl +0 -37
  281. package/lib/static/components/progress-bar/index.js +0 -13
  282. package/lib/static/components/progress-bar/index.styl +0 -24
  283. package/lib/static/components/report.js +0 -72
  284. package/lib/static/components/retry-switcher/index.js +0 -36
  285. package/lib/static/components/retry-switcher/item.js +0 -55
  286. package/lib/static/components/section/body/description.js +0 -24
  287. package/lib/static/components/section/body/history/index.js +0 -29
  288. package/lib/static/components/section/body/history/index.styl +0 -4
  289. package/lib/static/components/section/body/index.js +0 -114
  290. package/lib/static/components/section/body/meta-info/content.js +0 -114
  291. package/lib/static/components/section/body/meta-info/index.js +0 -33
  292. package/lib/static/components/section/body/result.js +0 -41
  293. package/lib/static/components/section/body/tabs.js +0 -52
  294. package/lib/static/components/section/section-browser.js +0 -113
  295. package/lib/static/components/section/section-common.js +0 -100
  296. package/lib/static/components/section/section-wrapper.js +0 -20
  297. package/lib/static/components/section/title/browser-skipped.js +0 -22
  298. package/lib/static/components/section/title/browser.js +0 -74
  299. package/lib/static/components/section/title/simple.js +0 -82
  300. package/lib/static/components/state/error-details.js +0 -18
  301. package/lib/static/components/state/index.js +0 -208
  302. package/lib/static/components/state/screenshot/diff-circle.js +0 -66
  303. package/lib/static/components/state/screenshot/full.js +0 -28
  304. package/lib/static/components/state/screenshot/resized.js +0 -90
  305. package/lib/static/components/state/screenshot/with-encode-uri.js +0 -44
  306. package/lib/static/components/state/screenshot/with-synced-scale.js +0 -116
  307. package/lib/static/components/state/state-error.js +0 -140
  308. package/lib/static/components/state/state-fail/index.js +0 -161
  309. package/lib/static/components/state/state-fail/index.styl +0 -31
  310. package/lib/static/components/state/state-fail/onion-skin-diff/index.js +0 -43
  311. package/lib/static/components/state/state-fail/onion-skin-diff/index.styl +0 -19
  312. package/lib/static/components/state/state-fail/prop-types.js +0 -16
  313. package/lib/static/components/state/state-fail/swipe-diff/index.js +0 -138
  314. package/lib/static/components/state/state-fail/swipe-diff/index.styl +0 -82
  315. package/lib/static/components/state/state-fail/switch-diff/index.js +0 -36
  316. package/lib/static/components/state/state-fail/switch-diff/index.styl +0 -12
  317. package/lib/static/components/state/state-fail/useFitImages.js +0 -63
  318. package/lib/static/components/state/state-success.js +0 -23
  319. package/lib/static/components/sticky-header/gui.js +0 -12
  320. package/lib/static/components/sticky-header/index.js +0 -36
  321. package/lib/static/components/sticky-header/index.styl +0 -37
  322. package/lib/static/components/sticky-header/report.js +0 -14
  323. package/lib/static/components/suites.js +0 -157
  324. package/lib/static/containers/array/array.styl +0 -32
  325. package/lib/static/containers/array/index.js +0 -61
  326. package/lib/static/containers/modal.js +0 -43
  327. package/lib/static/gui.css +0 -161
  328. package/lib/static/gui.js +0 -14
  329. package/lib/static/gui.min.css +0 -1
  330. package/lib/static/gui.min.js +0 -124
  331. package/lib/static/hooks/useElementSize.js +0 -30
  332. package/lib/static/hooks/useEventListener.js +0 -25
  333. package/lib/static/hooks/useWindowSize.js +0 -25
  334. package/lib/static/index.js +0 -14
  335. package/lib/static/modules/action-names.js +0 -57
  336. package/lib/static/modules/actions.js +0 -332
  337. package/lib/static/modules/custom-queries.js +0 -27
  338. package/lib/static/modules/default-state.js +0 -84
  339. package/lib/static/modules/load-plugin.js +0 -109
  340. package/lib/static/modules/local-storage-wrapper.js +0 -54
  341. package/lib/static/modules/middlewares/local-storage.js +0 -30
  342. package/lib/static/modules/middlewares/metrika.js +0 -121
  343. package/lib/static/modules/plugins.js +0 -52
  344. package/lib/static/modules/query-params.js +0 -98
  345. package/lib/static/modules/reducers/api-values.js +0 -25
  346. package/lib/static/modules/reducers/auto-run.js +0 -14
  347. package/lib/static/modules/reducers/bottom-progress-bar.js +0 -16
  348. package/lib/static/modules/reducers/browsers.js +0 -43
  349. package/lib/static/modules/reducers/close-ids.js +0 -12
  350. package/lib/static/modules/reducers/config.js +0 -48
  351. package/lib/static/modules/reducers/date.js +0 -16
  352. package/lib/static/modules/reducers/db.js +0 -30
  353. package/lib/static/modules/reducers/fetch-db-details.js +0 -13
  354. package/lib/static/modules/reducers/grouped-tests/by/meta.js +0 -31
  355. package/lib/static/modules/reducers/grouped-tests/by/result.js +0 -57
  356. package/lib/static/modules/reducers/grouped-tests/helpers.js +0 -91
  357. package/lib/static/modules/reducers/grouped-tests/index.js +0 -52
  358. package/lib/static/modules/reducers/gui.js +0 -16
  359. package/lib/static/modules/reducers/index.js +0 -56
  360. package/lib/static/modules/reducers/loading.js +0 -12
  361. package/lib/static/modules/reducers/modals.js +0 -16
  362. package/lib/static/modules/reducers/notifications.js +0 -12
  363. package/lib/static/modules/reducers/plugins.js +0 -25
  364. package/lib/static/modules/reducers/processing.js +0 -21
  365. package/lib/static/modules/reducers/running.js +0 -19
  366. package/lib/static/modules/reducers/skips.js +0 -15
  367. package/lib/static/modules/reducers/stats.js +0 -21
  368. package/lib/static/modules/reducers/stopping.js +0 -16
  369. package/lib/static/modules/reducers/tree/helpers.js +0 -28
  370. package/lib/static/modules/reducers/tree/index.js +0 -314
  371. package/lib/static/modules/reducers/tree/nodes/browsers.js +0 -109
  372. package/lib/static/modules/reducers/tree/nodes/images.js +0 -59
  373. package/lib/static/modules/reducers/tree/nodes/results.js +0 -39
  374. package/lib/static/modules/reducers/tree/nodes/suites.js +0 -239
  375. package/lib/static/modules/reducers/view.js +0 -93
  376. package/lib/static/modules/selectors/grouped-tests.js +0 -8
  377. package/lib/static/modules/selectors/index.js +0 -3
  378. package/lib/static/modules/selectors/stats.js +0 -33
  379. package/lib/static/modules/selectors/tree.js +0 -256
  380. package/lib/static/modules/selectors/view.js +0 -5
  381. package/lib/static/modules/store.js +0 -25
  382. package/lib/static/modules/web-vitals.js +0 -13
  383. package/lib/static/modules/yandex-metrika.js +0 -50
  384. package/lib/static/report.min.js +0 -124
  385. package/lib/static/styles.css +0 -887
  386. package/lib/static/template.html +0 -13
  387. package/lib/workers/worker.js +0 -15
  388. package/webpack.common.js +0 -95
  389. package/webpack.dev.js +0 -25
  390. package/webpack.prod.js +0 -19
  391. /package/{lib → build/lib}/static/gui.html +0 -0
  392. /package/{lib → build/lib}/static/icons/favicon-failure.png +0 -0
  393. /package/{lib → build/lib}/static/icons/favicon-running.png +0 -0
  394. /package/{lib → build/lib}/static/icons/favicon-success.png +0 -0
  395. /package/{lib → build/lib}/static/icons/favicon.png +0 -0
  396. /package/{lib → build/lib}/static/index.html +0 -0
@@ -0,0 +1,2 @@
1
+ declare function _exports(): never;
2
+ export = _exports;
@@ -1,5 +1,5 @@
1
1
  'use strict';
2
-
3
2
  module.exports = () => {
4
3
  throw new Error('html-reporter: Gemini support is removed. Migrate your Gemini test to Hermione (https://github.com/gemini-testing/hermione) or use html-reporter@4');
5
4
  };
5
+ //# sourceMappingURL=gemini.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gemini.js","sourceRoot":"","sources":["../gemini.js"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,MAAM,CAAC,OAAO,GAAG,GAAG,EAAE;IAClB,MAAM,IAAI,KAAK,CAAC,oJAAoJ,CAAC,CAAC;AAC1K,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ declare function _exports(hermione: any, opts: any): void;
2
+ export = _exports;
@@ -1,81 +1,63 @@
1
1
  'use strict';
2
-
3
2
  const os = require('os');
4
3
  const PQueue = require('p-queue');
5
4
  const PluginAdapter = require('./lib/plugin-adapter');
6
5
  const createWorkers = require('./lib/workers/create-workers');
7
-
8
6
  let workers;
9
-
10
7
  module.exports = (hermione, opts) => {
11
8
  if (hermione.isWorker()) {
12
9
  return;
13
10
  }
14
11
  const plugin = PluginAdapter.create(hermione, opts);
15
-
16
12
  if (!plugin.isEnabled()) {
17
13
  return;
18
14
  }
19
-
20
15
  plugin
21
16
  .addApi()
22
17
  .addCliCommands()
23
18
  .init(prepare);
24
-
25
19
  hermione.on(hermione.events.RUNNER_START, (runner) => {
26
20
  workers = createWorkers(runner);
27
21
  });
28
22
  };
29
-
30
23
  async function prepare(hermione, reportBuilder, pluginConfig) {
31
- const {path: reportPath} = pluginConfig;
32
-
24
+ const { path: reportPath } = pluginConfig;
33
25
  const failHandler = async (testResult) => {
34
26
  const formattedResult = reportBuilder.format(testResult);
35
27
  const actions = [formattedResult.saveTestImages(reportPath, workers)];
36
-
37
28
  if (formattedResult.errorDetails) {
38
29
  actions.push(formattedResult.saveErrorDetails(reportPath));
39
30
  }
40
-
41
31
  await Promise.all(actions);
42
-
43
32
  return formattedResult;
44
33
  };
45
-
46
34
  const addFail = (formattedResult) => {
47
35
  return formattedResult.hasDiff()
48
36
  ? reportBuilder.addFail(formattedResult)
49
37
  : reportBuilder.addError(formattedResult);
50
38
  };
51
-
52
39
  return new Promise((resolve, reject) => {
53
- const queue = new PQueue({concurrency: os.cpus().length});
40
+ const queue = new PQueue({ concurrency: os.cpus().length });
54
41
  const promises = [];
55
-
56
42
  hermione.on(hermione.events.TEST_PASS, testResult => {
57
43
  promises.push(queue.add(async () => {
58
44
  const formattedResult = reportBuilder.format(testResult);
59
45
  await formattedResult.saveTestImages(reportPath, workers);
60
-
61
46
  return reportBuilder.addSuccess(formattedResult);
62
47
  }).catch(reject));
63
48
  });
64
-
65
49
  hermione.on(hermione.events.RETRY, testResult => {
66
50
  promises.push(queue.add(() => failHandler(testResult).then(addFail)).catch(reject));
67
51
  });
68
-
69
52
  hermione.on(hermione.events.TEST_FAIL, testResult => {
70
53
  promises.push(queue.add(() => failHandler(testResult).then(addFail)).catch(reject));
71
54
  });
72
-
73
55
  hermione.on(hermione.events.TEST_PENDING, testResult => {
74
56
  promises.push(queue.add(() => failHandler(testResult).then((testResult) => reportBuilder.addSkipped(testResult)).catch(reject)));
75
57
  });
76
-
77
58
  hermione.on(hermione.events.RUNNER_END, () => {
78
59
  return Promise.all(promises).then(resolve, reject);
79
60
  });
80
61
  });
81
62
  }
63
+ //# sourceMappingURL=hermione.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hermione.js","sourceRoot":"","sources":["../hermione.js"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AACzB,MAAM,MAAM,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;AAClC,MAAM,aAAa,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;AACtD,MAAM,aAAa,GAAG,OAAO,CAAC,8BAA8B,CAAC,CAAC;AAE9D,IAAI,OAAO,CAAC;AAEZ,MAAM,CAAC,OAAO,GAAG,CAAC,QAAQ,EAAE,IAAI,EAAE,EAAE;IAChC,IAAI,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AEH,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,YAAY,EAAE,UAAU,CAAC,EAAE;YACnD,QAAQ,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,EAAE,EAAE,CAAC,aAAa,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;QACrI,CAAC,CAAC,CAAC;QAEH,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,UAAU,EAAE,GAAG,EAAE;YACzC,OAAO,OAAO,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;QACvD,CAAC,CAAC,CAAC;IACP,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,2 @@
1
+ declare function _exports(program: any, pluginConfig: any, hermione: any): void;
2
+ export = _exports;
@@ -1,14 +1,11 @@
1
1
  'use strict';
2
-
3
- const runGui = require('../gui');
2
+ const runGui = require('../gui').default;
4
3
  const Api = require('../gui/api');
5
- const {GUI: commandName} = require('./');
6
-
4
+ const { GUI: commandName } = require('./');
7
5
  module.exports = (program, pluginConfig, hermione) => {
8
6
  // must be executed here because it adds `gui` field in `gemini` and `hermione tool`,
9
7
  // which is available to other plugins and is an API for interacting with the current plugin
10
8
  const guiApi = Api.create(hermione);
11
-
12
9
  program
13
10
  .command(`${commandName} [paths...]`)
14
11
  .allowUnknownOption()
@@ -18,6 +15,7 @@ module.exports = (program, pluginConfig, hermione) => {
18
15
  .option('-a, --auto-run', 'auto run immediately')
19
16
  .option('-O, --no-open', 'not to open a browser window after starting the server')
20
17
  .action((paths, options) => {
21
- runGui({paths, hermione, guiApi, configs: {options, program, pluginConfig}});
22
- });
18
+ runGui({ paths, hermione, guiApi, configs: { options, program, pluginConfig } });
19
+ });
23
20
  };
21
+ //# sourceMappingURL=gui.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gui.js","sourceRoot":"","sources":["../../../lib/cli-commands/gui.js"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,MAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC;AACzC,MAAM,GAAG,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;AAClC,MAAM,EAAC,GAAG,EAAE,WAAW,EAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAEzC,MAAM,CAAC,OAAO,GAAG,CAAC,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,EAAE;IACjD,qFAAqF;IACrF,4FAA4F;IAC5F,MAAM,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;IAEpC,OAAO;SACF,OAAO,CAAC,GAAG,WAAW,aAAa,CAAC;SACpC,kBAAkB,EAAE;SACpB,WAAW,CAAC,sEAAsE,CAAC;SACnF,MAAM,CAAC,mBAAmB,EAAE,0BAA0B,EAAE,IAAI,CAAC;SAC7D,MAAM,CAAC,uBAAuB,EAAE,8BAA8B,EAAE,WAAW,CAAC;SAC5E,MAAM,CAAC,gBAAgB,EAAE,sBAAsB,CAAC;SAChD,MAAM,CAAC,eAAe,EAAE,wDAAwD,CAAC;SACjF,MAAM,CAAC,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;QACvB,MAAM,CAAC,EAAC,KAAK,EAAE,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,EAAC,OAAO,EAAE,OAAO,EAAE,YAAY,EAAC,EAAC,CAAC,CAAC;IACjF,CAAC,CAAC,CAAC;AACX,CAAC,CAAC"}
@@ -0,0 +1,3 @@
1
+ export let GUI: string;
2
+ export let MERGE_REPORTS: string;
3
+ export let REMOVE_UNUSED_SCREENS: string;
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
-
3
2
  module.exports = {
4
3
  GUI: 'gui',
5
4
  MERGE_REPORTS: 'merge-reports',
6
5
  REMOVE_UNUSED_SCREENS: 'remove-unused-screens'
7
6
  };
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/cli-commands/index.js"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,MAAM,CAAC,OAAO,GAAG;IACb,GAAG,EAAE,KAAK;IACV,aAAa,EAAE,eAAe;IAC9B,qBAAqB,EAAE,uBAAuB;CACjD,CAAC"}
@@ -0,0 +1,2 @@
1
+ declare function _exports(program: any, pluginConfig: any, hermione: any): void;
2
+ export = _exports;
@@ -1,9 +1,7 @@
1
1
  'use strict';
2
-
3
- const {MERGE_REPORTS: commandName} = require('./');
2
+ const { MERGE_REPORTS: commandName } = require('./');
4
3
  const mergeReports = require('../merge-reports');
5
- const {logError} = require('../server-utils');
6
-
4
+ const { logError } = require('../server-utils');
7
5
  module.exports = (program, pluginConfig, hermione) => {
8
6
  program
9
7
  .command(`${commandName} [paths...]`)
@@ -11,11 +9,13 @@ module.exports = (program, pluginConfig, hermione) => {
11
9
  .description('merge reports')
12
10
  .option('-d, --destination <destination>', 'path to directory with merged report', pluginConfig.path)
13
11
  .action(async (paths, options) => {
14
- try {
15
- await mergeReports(pluginConfig, hermione, paths, options);
16
- } catch (err) {
17
- logError(err);
18
- process.exit(1);
19
- }
20
- });
12
+ try {
13
+ await mergeReports(pluginConfig, hermione, paths, options);
14
+ }
15
+ catch (err) {
16
+ logError(err);
17
+ process.exit(1);
18
+ }
19
+ });
21
20
  };
21
+ //# sourceMappingURL=merge-reports.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"merge-reports.js","sourceRoot":"","sources":["../../../lib/cli-commands/merge-reports.js"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,MAAM,EAAC,aAAa,EAAE,WAAW,EAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AACnD,MAAM,YAAY,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAAC;AACjD,MAAM,EAAC,QAAQ,EAAC,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAE9C,MAAM,CAAC,OAAO,GAAG,CAAC,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,EAAE;IACjD,OAAO;SACF,OAAO,CAAC,GAAG,WAAW,aAAa,CAAC;SACpC,kBAAkB,EAAE;SACpB,WAAW,CAAC,eAAe,CAAC;SAC5B,MAAM,CAAC,iCAAiC,EAAE,sCAAsC,EAAE,YAAY,CAAC,IAAI,CAAC;SACpG,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE;QAC7B,IAAI;YACA,MAAM,YAAY,CAAC,YAAY,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,CAAC,CAAC;SAC9D;QAAC,OAAO,GAAG,EAAE;YACV,QAAQ,CAAC,GAAG,CAAC,CAAC;YACd,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;SACnB;IACL,CAAC,CAAC,CAAC;AACX,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ declare function _exports(program: any, pluginConfig: any, hermione: any): void;
2
+ export = _exports;
@@ -1,5 +1,4 @@
1
1
  'use strict';
2
-
3
2
  const path = require('path');
4
3
  const fs = require('fs-extra');
5
4
  const _ = require('lodash');
@@ -7,26 +6,22 @@ const ora = require('ora');
7
6
  const chalk = require('chalk');
8
7
  const filesize = require('filesize');
9
8
  const Promise = require('bluebird');
10
-
11
- const {REMOVE_UNUSED_SCREENS: commandName} = require('..');
12
- const {getTestsFromFs, findScreens, askQuestion, identifyOutdatedScreens, identifyUnusedScreens, removeScreens} = require('./utils');
13
- const {DATABASE_URLS_JSON_NAME, LOCAL_DATABASE_NAME} = require('../../constants/database');
14
- const {logger} = require('../../common-utils');
15
-
9
+ const { REMOVE_UNUSED_SCREENS: commandName } = require('..');
10
+ const { getTestsFromFs, findScreens, askQuestion, identifyOutdatedScreens, identifyUnusedScreens, removeScreens } = require('./utils');
11
+ const { DATABASE_URLS_JSON_NAME, LOCAL_DATABASE_NAME } = require('../../constants/database');
12
+ const { logger } = require('../../common-utils');
16
13
  // TODO: remove hack after add ability to add controllers from plugin in silent mode
17
14
  function proxyHermione() {
18
15
  const proxyHandler = {
19
16
  get(target, prop) {
20
- return prop in target ? target[prop] : new Proxy(() => {}, this);
17
+ return prop in target ? target[prop] : new Proxy(() => { }, this);
21
18
  },
22
19
  apply() {
23
- return new Proxy(() => {}, this);
20
+ return new Proxy(() => { }, this);
24
21
  }
25
22
  };
26
-
27
23
  global.hermione = new Proxy(global.hermione || {}, proxyHandler);
28
24
  }
29
-
30
25
  module.exports = (program, pluginConfig, hermione) => {
31
26
  program
32
27
  .command(commandName)
@@ -35,176 +30,133 @@ module.exports = (program, pluginConfig, hermione) => {
35
30
  .option('--skip-questions', 'do not ask questions during execution (default values will be used)')
36
31
  .on('--help', () => logger.log(getHelpMessage()))
37
32
  .action(async (options) => {
38
- try {
39
- proxyHermione();
40
-
41
- const {pattern: userPatterns} = options;
42
-
43
- if (_.isEmpty(userPatterns)) {
44
- throw new Error(`option "pattern" is required. See examples of usage: ${chalk.green(`npx hermione ${commandName} --help`)}`);
45
- }
46
-
47
- const userScreenPatterns = transformPatternOption(userPatterns);
48
- const spinner = ora({spinner: 'point'});
49
-
50
- spinner.start('Reading hermione tests from file system');
51
- const fsTests = await getTestsFromFs(hermione);
52
- spinner.succeed();
53
-
54
- logger.log(`${chalk.green(fsTests.count)} uniq tests were read in browsers: ${[...fsTests.browserIds].join(', ')}`);
55
-
56
- spinner.start(`Searching reference images on the file system by specified patterns:\n${userScreenPatterns.join('\n')}`);
57
- const foundScreenPaths = await findScreens(userScreenPatterns);
58
- spinner.succeed();
59
-
60
- logger.log(`Found ${chalk.green(foundScreenPaths.length)} reference images`);
61
-
62
- const shouldIdentifyOutdated = await askQuestion({
63
- name: 'identifyOutdated',
64
- type: 'confirm',
65
- message: 'Identify outdated reference images (tests for them are removed)?',
66
- default: true
67
- }, options);
68
-
69
- if (shouldIdentifyOutdated) {
70
- await handleOutdatedScreens(foundScreenPaths, fsTests.screenPatterns, {spinner, cliOpts: options});
71
- }
72
-
73
- const shouldIdentifyUnused = await askQuestion({
74
- name: 'identifyUnused',
75
- type: 'confirm',
76
- message: 'Identify unused reference images (tests passed successfully for them, but they were not used during execution)?',
77
- default: true
78
- }, options);
79
-
80
- if (shouldIdentifyUnused) {
81
- await handleUnusedScreens(foundScreenPaths, fsTests, {hermione, pluginConfig, spinner, cliOpts: options});
82
- }
83
- } catch (err) {
84
- logger.error(err.stack || err);
85
- process.exit(1);
33
+ try {
34
+ proxyHermione();
35
+ const { pattern: userPatterns } = options;
36
+ if (_.isEmpty(userPatterns)) {
37
+ throw new Error(`option "pattern" is required. See examples of usage: ${chalk.green(`npx hermione ${commandName} --help`)}`);
38
+ }
39
+ const userScreenPatterns = transformPatternOption(userPatterns);
40
+ const spinner = ora({ spinner: 'point' });
41
+ spinner.start('Reading hermione tests from file system');
42
+ const fsTests = await getTestsFromFs(hermione);
43
+ spinner.succeed();
44
+ logger.log(`${chalk.green(fsTests.count)} uniq tests were read in browsers: ${[...fsTests.browserIds].join(', ')}`);
45
+ spinner.start(`Searching reference images on the file system by specified patterns:\n${userScreenPatterns.join('\n')}`);
46
+ const foundScreenPaths = await findScreens(userScreenPatterns);
47
+ spinner.succeed();
48
+ logger.log(`Found ${chalk.green(foundScreenPaths.length)} reference images`);
49
+ const shouldIdentifyOutdated = await askQuestion({
50
+ name: 'identifyOutdated',
51
+ type: 'confirm',
52
+ message: 'Identify outdated reference images (tests for them are removed)?',
53
+ default: true
54
+ }, options);
55
+ if (shouldIdentifyOutdated) {
56
+ await handleOutdatedScreens(foundScreenPaths, fsTests.screenPatterns, { spinner, cliOpts: options });
86
57
  }
87
- });
58
+ const shouldIdentifyUnused = await askQuestion({
59
+ name: 'identifyUnused',
60
+ type: 'confirm',
61
+ message: 'Identify unused reference images (tests passed successfully for them, but they were not used during execution)?',
62
+ default: true
63
+ }, options);
64
+ if (shouldIdentifyUnused) {
65
+ await handleUnusedScreens(foundScreenPaths, fsTests, { hermione, pluginConfig, spinner, cliOpts: options });
66
+ }
67
+ }
68
+ catch (err) {
69
+ logger.error(err.stack || err);
70
+ process.exit(1);
71
+ }
72
+ });
88
73
  };
89
-
90
74
  async function handleOutdatedScreens(screenPaths, screenPatterns, opts = {}) {
91
- const {spinner} = opts;
92
-
75
+ const { spinner } = opts;
93
76
  spinner.start(`Identifying outdated reference images (tests for these images do not exist)`);
94
77
  const outdatedScreenPaths = identifyOutdatedScreens(screenPaths, screenPatterns);
95
78
  spinner.succeed();
96
-
97
- await handleScreens(screenPaths, {paths: outdatedScreenPaths, type: 'outdated'}, opts);
79
+ await handleScreens(screenPaths, { paths: outdatedScreenPaths, type: 'outdated' }, opts);
98
80
  }
99
-
100
81
  async function handleUnusedScreens(screenPaths, fsTests, opts = {}) {
101
- const {hermione, pluginConfig, spinner, cliOpts} = opts;
82
+ const { hermione, pluginConfig, spinner, cliOpts } = opts;
102
83
  const mainDatabaseUrls = path.resolve(pluginConfig.path, DATABASE_URLS_JSON_NAME);
103
-
104
84
  const isReportPathExists = await fs.pathExists(pluginConfig.path);
105
85
  if (!isReportPathExists) {
106
86
  throw new Error(`Can't find html-report in "${pluginConfig.path}" folder. You should run tests or download report from CI`);
107
87
  }
108
-
109
88
  spinner.start('Loading databases with the test results in order to identify unused screenshots in tests');
110
- const dbPaths = await hermione.htmlReporter.downloadDatabases([mainDatabaseUrls], {pluginConfig});
89
+ const dbPaths = await hermione.htmlReporter.downloadDatabases([mainDatabaseUrls], { pluginConfig });
111
90
  spinner.succeed();
112
-
113
91
  if (_.isEmpty(dbPaths)) {
114
92
  throw new Error(`Databases were not loaded from "${mainDatabaseUrls}" file`);
115
93
  }
116
-
117
94
  const mergedDbPath = path.resolve(pluginConfig.path, LOCAL_DATABASE_NAME);
118
95
  const srcDbPaths = dbPaths.filter((dbPath) => dbPath !== mergedDbPath);
119
-
120
96
  if (!_.isEmpty(srcDbPaths)) {
121
97
  spinner.start('Merging databases');
122
98
  await hermione.htmlReporter.mergeDatabases(srcDbPaths, pluginConfig.path);
123
99
  spinner.succeed();
124
-
125
100
  logger.log(`${chalk.green(srcDbPaths.length)} databases were merged to ${chalk.green(mergedDbPath)}`);
126
101
  }
127
-
128
102
  spinner.start(`Identifying unused reference images (tests passed successfully for them, but they were not used during execution)`);
129
- const unusedScreenPaths = identifyUnusedScreens(fsTests, {hermione, mergedDbPath});
103
+ const unusedScreenPaths = identifyUnusedScreens(fsTests, { hermione, mergedDbPath });
130
104
  spinner.succeed();
131
-
132
- await handleScreens(screenPaths, {paths: unusedScreenPaths, type: 'unused'}, {spinner, cliOpts});
105
+ await handleScreens(screenPaths, { paths: unusedScreenPaths, type: 'unused' }, { spinner, cliOpts });
133
106
  }
134
-
135
- async function handleScreens(allScreenPaths, screensToRemove, {spinner, cliOpts} = {}) {
136
- const existentScreenPaths = await Promise.filter(screensToRemove.paths, async screenPath => {
107
+ async function handleScreens(allScreenPaths, screensToRemove, { spinner, cliOpts } = {}) {
108
+ const existentScreenPaths = await Promise.filter(screensToRemove.paths, async (screenPath) => {
137
109
  try {
138
110
  await fs.access(screenPath);
139
111
  return true;
140
- } catch (err) {
112
+ }
113
+ catch (err) {
141
114
  if (err.code === 'ENOENT') {
142
- logger.warn(
143
- chalk.red(
144
- `Screen by path: "${screenPath}" is not found in your file system. ` +
145
- 'Try to rebase your branch or download more recent report from CI.',
146
- ),
147
- );
115
+ logger.warn(chalk.red(`Screen by path: "${screenPath}" is not found in your file system. ` +
116
+ 'Try to rebase your branch or download more recent report from CI.'));
148
117
  return false;
149
118
  }
150
-
151
119
  throw err;
152
120
  }
153
121
  });
154
-
155
122
  const screenPathsToRemoveLen = existentScreenPaths.length;
156
-
157
- logger.log(
158
- `Found ${chalk[screenPathsToRemoveLen > 0 ? 'red' : 'green'](screenPathsToRemoveLen)} ` +
159
- `${screensToRemove.type} reference images out of ${chalk.bold(allScreenPaths.length)}`
160
- );
161
-
123
+ logger.log(`Found ${chalk[screenPathsToRemoveLen > 0 ? 'red' : 'green'](screenPathsToRemoveLen)} ` +
124
+ `${screensToRemove.type} reference images out of ${chalk.bold(allScreenPaths.length)}`);
162
125
  if (_.isEmpty(existentScreenPaths)) {
163
126
  return;
164
127
  }
165
-
166
128
  spinner.start(`Calculating total size of ${screensToRemove.type} reference images`);
167
- const bytes = (await Promise.map(existentScreenPaths, (screenPath) => fs.stat(screenPath))).reduce((acc, {size}) => acc + size, 0);
129
+ const bytes = (await Promise.map(existentScreenPaths, (screenPath) => fs.stat(screenPath))).reduce((acc, { size }) => acc + size, 0);
168
130
  spinner.succeed();
169
-
170
131
  logger.log(`Total size of ${screensToRemove.type} reference images = ${chalk.red(filesize(bytes))}`);
171
-
172
132
  const shouldShowList = await askQuestion({
173
133
  name: 'shouldShowList',
174
134
  type: 'confirm',
175
135
  message: `Show list of ${screensToRemove.type} reference images? (${screenPathsToRemoveLen} paths)`,
176
136
  default: false
177
137
  }, cliOpts);
178
-
179
138
  if (shouldShowList) {
180
139
  logger.log(`List of ${screensToRemove.type} reference images:\n${existentScreenPaths.map((p) => chalk.red(p)).join('\n')}`);
181
140
  }
182
-
183
141
  const shouldRemove = await askQuestion({
184
142
  name: 'shouldRemove',
185
143
  type: 'confirm',
186
144
  message: `Remove ${screensToRemove.type} reference images?`,
187
145
  default: true
188
146
  }, cliOpts);
189
-
190
147
  if (!shouldRemove) {
191
148
  return;
192
149
  }
193
-
194
150
  spinner.start(`Removing ${screensToRemove.type} reference images`);
195
151
  await removeScreens(existentScreenPaths);
196
152
  spinner.succeed();
197
-
198
153
  logger.log(`${chalk.green(screenPathsToRemoveLen)} reference images were removed`);
199
154
  }
200
-
201
155
  function collect(newValue, array = []) {
202
156
  return array.concat(newValue);
203
157
  }
204
-
205
158
  function getHelpMessage() {
206
159
  const rmUnusedScreens = `npx hermione ${commandName}`;
207
-
208
160
  return `
209
161
  Example of usage:
210
162
  Specify the folder in which all reference screenshots are located:
@@ -219,11 +171,10 @@ function getHelpMessage() {
219
171
  Don't ask me about anything and just delete unused reference screenshots:
220
172
  ${chalk.green(`${rmUnusedScreens} -p 'hermione-screens-folder' --skip-questions`)}`;
221
173
  }
222
-
223
174
  function transformPatternOption(patterns) {
224
175
  return patterns.map(p => {
225
176
  const resolvedPattern = path.resolve(process.cwd(), p);
226
-
227
177
  return resolvedPattern.endsWith('.png') ? resolvedPattern : path.join(resolvedPattern, '*.png');
228
178
  });
229
179
  }
180
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/cli-commands/remove-unused-screens/index.js"],"names":[],"mappings":"AAAA,YAAY,CAAC;AAEb,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAC7B,MAAM,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAC/B,MAAM,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;AAC5B,MAAM,GAAG,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;AAC3B,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AAC/B,MAAM,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AACrC,MAAM,OAAO,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AAEpC,MAAM,EAAC,qBAAqB,EAAE,WAAW,EAAC,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AAC3D,MAAM,EAAC,cAAc,EAAE,WAAW,EAAE,WAAW,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,aAAa,EAAC,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;AACrI,MAAM,EAAC,uBAAuB,EAAE,mBAAmB,EAAC,GAAG,OAAO,CAAC,0BAA0B,CAAC,CAAC;AAC3F,MAAM,EAAC,MAAM,EAAC,GAAG,OAAO,CAAC,oBAAoB,CAAC,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C,QAAQ,EAAE,KAAK,GAAG,EAAE;IACjC,OAAO,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AAClC,CAAC;AAED,SAAS,cAAc;IACnB,MAAM,eAAe,GAAG,gBAAgB,WAAW,EAAE,CAAC;IAEtD,OAAO;;;MAGL,KAAK,CAAC,KAAK,CAAC,GAAG,eAAe,+BAA+B,CAAC;;;MAG9D,KAAK,CAAC,KAAK,CAAC,GAAG,eAAe,wBAAwB,CAAC;;;MAGvD,KAAK,CAAC,KAAK,CAAC,GAAG,eAAe,6DAA6D,CAAC;;;MAG5F,KAAK,CAAC,KAAK,CAAC,GAAG,eAAe,gDAAgD,CAAC,EAAE,CAAC;AACxF,CAAC;AAED,SAAS,sBAAsB,CAAC,QAAQ;IACpC,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE;QACpB,MAAM,eAAe,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,CAAC;QAEvD,OAAO,eAAe,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,OAAO,CAAC,CAAC;IACpG,CAAC,CAAC,CAAC;AACP,CAAC"}
@@ -0,0 +1,16 @@
1
+ export function getTestsFromFs(hermione: any): Promise<{
2
+ byId: {};
3
+ screenPatterns: never[];
4
+ count: number;
5
+ browserIds: Set<any>;
6
+ }>;
7
+ export function findScreens(screenPatterns: any): Promise<any[]>;
8
+ export function askQuestion(question: any, { skipQuestions }?: {
9
+ skipQuestions: any;
10
+ }): Promise<any>;
11
+ export function identifyOutdatedScreens(screenPaths: any, screenPatterns: any): any[];
12
+ export function identifyUnusedScreens(fsTests: any, { hermione, mergedDbPath }?: {
13
+ hermione: any;
14
+ mergedDbPath: any;
15
+ }): any[];
16
+ export function removeScreens(screenPaths: any): Promise<void>;