mootant 0.0.0 → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1605) hide show
  1. package/bin/mootant.js +5 -0
  2. package/dist/adapters/jest/build-dry-file.d.ts +54 -0
  3. package/dist/adapters/jest/build-dry-file.js +73 -0
  4. package/dist/adapters/jest/build-isolated-facts.d.ts +45 -0
  5. package/dist/adapters/jest/build-isolated-facts.js +37 -0
  6. package/dist/adapters/jest/check-jest-support.d.ts +16 -0
  7. package/dist/adapters/jest/check-jest-support.js +5 -0
  8. package/dist/adapters/jest/check-repeatable.d.ts +39 -0
  9. package/dist/adapters/jest/check-repeatable.js +63 -0
  10. package/dist/adapters/jest/collect-jest-dependencies.d.ts +25 -0
  11. package/dist/adapters/jest/collect-jest-dependencies.js +15 -0
  12. package/dist/adapters/jest/create-heap-cap.d.ts +16 -0
  13. package/dist/adapters/jest/create-heap-cap.js +12 -0
  14. package/dist/adapters/jest/create-record-reader.d.ts +14 -0
  15. package/dist/adapters/jest/create-record-reader.js +25 -0
  16. package/dist/adapters/jest/create-worker-pool.d.ts +16 -0
  17. package/dist/adapters/jest/create-worker-pool.js +41 -0
  18. package/dist/adapters/jest/filter-jest-arguments.d.ts +32 -0
  19. package/dist/adapters/jest/filter-jest-arguments.js +210 -0
  20. package/dist/adapters/jest/find-jest-command.d.ts +15 -0
  21. package/dist/adapters/jest/find-jest-command.js +117 -0
  22. package/dist/adapters/jest/fold-attempts.d.ts +13 -0
  23. package/dist/adapters/jest/fold-attempts.js +21 -0
  24. package/dist/adapters/jest/get-dry-deadline.d.ts +20 -0
  25. package/dist/adapters/jest/get-dry-deadline.js +8 -0
  26. package/dist/adapters/jest/get-jest-base-arguments.d.ts +13 -0
  27. package/dist/adapters/jest/get-jest-base-arguments.js +18 -0
  28. package/dist/adapters/jest/get-jest-cache-directory.d.ts +9 -0
  29. package/dist/adapters/jest/get-jest-cache-directory.js +5 -0
  30. package/dist/adapters/jest/get-jest-cache-inputs.d.ts +61 -0
  31. package/dist/adapters/jest/get-jest-cache-inputs.js +58 -0
  32. package/dist/adapters/jest/get-jest-console.d.ts +22 -0
  33. package/dist/adapters/jest/get-jest-console.js +5 -0
  34. package/dist/adapters/jest/get-unit-deadline.d.ts +15 -0
  35. package/dist/adapters/jest/get-unit-deadline.js +8 -0
  36. package/dist/adapters/jest/index.d.ts +13 -0
  37. package/dist/adapters/jest/index.js +11 -0
  38. package/dist/adapters/jest/insert-jest-flags.d.ts +9 -0
  39. package/dist/adapters/jest/insert-jest-flags.js +9 -0
  40. package/dist/adapters/jest/is-transform-input.d.ts +14 -0
  41. package/dist/adapters/jest/is-transform-input.js +9 -0
  42. package/dist/adapters/jest/keep-late-transforms.d.ts +16 -0
  43. package/dist/adapters/jest/keep-late-transforms.js +5 -0
  44. package/dist/adapters/jest/keep-transform-reads.d.ts +34 -0
  45. package/dist/adapters/jest/keep-transform-reads.js +30 -0
  46. package/dist/adapters/jest/list-jest-config-files.d.ts +21 -0
  47. package/dist/adapters/jest/list-jest-config-files.js +29 -0
  48. package/dist/adapters/jest/list-jest-config-paths.d.ts +19 -0
  49. package/dist/adapters/jest/list-jest-config-paths.js +24 -0
  50. package/dist/adapters/jest/list-jest-projects.d.ts +24 -0
  51. package/dist/adapters/jest/list-jest-projects.js +29 -0
  52. package/dist/adapters/jest/list-jest-test-files.d.ts +21 -0
  53. package/dist/adapters/jest/list-jest-test-files.js +16 -0
  54. package/dist/adapters/jest/list-unserved-files.d.ts +16 -0
  55. package/dist/adapters/jest/list-unserved-files.js +12 -0
  56. package/dist/adapters/jest/read-host-config.d.ts +28 -0
  57. package/dist/adapters/jest/read-host-config.js +26 -0
  58. package/dist/adapters/jest/read-jest-config.d.ts +27 -0
  59. package/dist/adapters/jest/read-jest-config.js +43 -0
  60. package/dist/adapters/jest/read-teardown.d.ts +23 -0
  61. package/dist/adapters/jest/read-teardown.js +34 -0
  62. package/dist/adapters/jest/resolve-jest-packages.d.ts +20 -0
  63. package/dist/adapters/jest/resolve-jest-packages.js +45 -0
  64. package/dist/adapters/jest/results-mark.d.ts +6 -0
  65. package/dist/adapters/jest/results-mark.js +2 -0
  66. package/dist/adapters/jest/run-dry.d.ts +37 -0
  67. package/dist/adapters/jest/run-dry.js +165 -0
  68. package/dist/adapters/jest/run-isolated.d.ts +26 -0
  69. package/dist/adapters/jest/run-isolated.js +113 -0
  70. package/dist/adapters/jest/run-on-worker.d.ts +46 -0
  71. package/dist/adapters/jest/run-on-worker.js +76 -0
  72. package/dist/adapters/jest/runner.d.ts +23 -0
  73. package/dist/adapters/jest/runner.js +2 -0
  74. package/dist/adapters/jest/score-jest.d.ts +12 -0
  75. package/dist/adapters/jest/score-jest.js +19 -0
  76. package/dist/adapters/jest/start-jest-host.d.ts +37 -0
  77. package/dist/adapters/jest/start-jest-host.js +85 -0
  78. package/dist/adapters/jest/start-jest-session.d.ts +40 -0
  79. package/dist/adapters/jest/start-jest-session.js +185 -0
  80. package/dist/adapters/jest/start-worker.d.ts +32 -0
  81. package/dist/adapters/jest/start-worker.js +50 -0
  82. package/dist/adapters/jest/transform-config-names.d.ts +6 -0
  83. package/dist/adapters/jest/transform-config-names.js +20 -0
  84. package/dist/adapters/jest/ts-jest-path.d.ts +7 -0
  85. package/dist/adapters/jest/ts-jest-path.js +2 -0
  86. package/dist/adapters/jest/types/booted-project.d.ts +25 -0
  87. package/dist/adapters/jest/types/circus-event.d.ts +103 -0
  88. package/dist/adapters/jest/types/circus-state.d.ts +50 -0
  89. package/dist/adapters/jest/types/error-realm.d.ts +7 -0
  90. package/dist/adapters/jest/types/flag-kind.d.ts +6 -0
  91. package/dist/adapters/jest/types/folded-test.d.ts +55 -0
  92. package/dist/adapters/jest/types/heap-cap.d.ts +18 -0
  93. package/dist/adapters/jest/types/host-test.d.ts +26 -0
  94. package/dist/adapters/jest/types/inline-cjs.d.ts +7 -0
  95. package/dist/adapters/jest/types/jest-adapter-options.d.ts +22 -0
  96. package/dist/adapters/jest/types/jest-command.d.ts +27 -0
  97. package/dist/adapters/jest/types/jest-config.d.ts +16 -0
  98. package/dist/adapters/jest/types/jest-console.d.ts +6 -0
  99. package/dist/adapters/jest/types/jest-file-facts.d.ts +14 -0
  100. package/dist/adapters/jest/types/jest-file-result.d.ts +47 -0
  101. package/dist/adapters/jest/types/jest-global-config.d.ts +49 -0
  102. package/dist/adapters/jest/types/jest-handle.d.ts +119 -0
  103. package/dist/adapters/jest/types/jest-host.d.ts +72 -0
  104. package/dist/adapters/jest/types/jest-module-map.d.ts +15 -0
  105. package/dist/adapters/jest/types/jest-packages.d.ts +57 -0
  106. package/dist/adapters/jest/types/jest-project-config.d.ts +112 -0
  107. package/dist/adapters/jest/types/jest-project.d.ts +16 -0
  108. package/dist/adapters/jest/types/jest-ready.d.ts +58 -0
  109. package/dist/adapters/jest/types/jest-record.d.ts +333 -0
  110. package/dist/adapters/jest/types/jest-test-runner.d.ts +46 -0
  111. package/dist/adapters/jest/types/jest-timed-record.d.ts +6 -0
  112. package/dist/adapters/jest/types/jest-unit.d.ts +42 -0
  113. package/dist/adapters/jest/types/jest-worker.d.ts +49 -0
  114. package/dist/adapters/jest/types/record-reader.d.ts +16 -0
  115. package/dist/adapters/jest/types/unit-outcome.d.ts +45 -0
  116. package/dist/adapters/jest/types/unit-worker.d.ts +166 -0
  117. package/dist/adapters/jest/types/vm-side.d.ts +43 -0
  118. package/dist/adapters/jest/types/worker-calls.d.ts +66 -0
  119. package/dist/adapters/jest/types/worker-channel.d.ts +53 -0
  120. package/dist/adapters/jest/types/worker-files.d.ts +31 -0
  121. package/dist/adapters/jest/types/worker-pool.d.ts +55 -0
  122. package/dist/adapters/jest/types/worker-process.d.ts +64 -0
  123. package/dist/adapters/jest/types/worker-project.d.ts +15 -0
  124. package/dist/adapters/jest/types/worker-session.d.ts +63 -0
  125. package/dist/adapters/jest/types/worker-slot.d.ts +20 -0
  126. package/dist/adapters/jest/wait-for-jest-exit.d.ts +15 -0
  127. package/dist/adapters/jest/wait-for-jest-exit.js +28 -0
  128. package/dist/adapters/jest/worker/boot-worker.d.ts +39 -0
  129. package/dist/adapters/jest/worker/channel-slot.d.ts +6 -0
  130. package/dist/adapters/jest/worker/count-default-resolver-calls.d.ts +18 -0
  131. package/dist/adapters/jest/worker/count-resolver-calls.d.ts +16 -0
  132. package/dist/adapters/jest/worker/create-circus-tracker.d.ts +61 -0
  133. package/dist/adapters/jest/worker/create-state-guard.d.ts +55 -0
  134. package/dist/adapters/jest/worker/create-test-runner.d.ts +76 -0
  135. package/dist/adapters/jest/worker/create-transformer-factory.d.ts +124 -0
  136. package/dist/adapters/jest/worker/create-worker-channel.d.ts +11 -0
  137. package/dist/adapters/jest/worker/install-exit-guards.d.ts +34 -0
  138. package/dist/adapters/jest/worker/install-vm-side.d.ts +36 -0
  139. package/dist/adapters/jest/worker/read-error-facts.d.ts +21 -0
  140. package/dist/adapters/jest/worker/read-jest-result.d.ts +11 -0
  141. package/dist/adapters/jest/worker/run-unit.d.ts +52 -0
  142. package/dist/adapters/jest/worker/switch-source.d.ts +16 -0
  143. package/dist/adapters/jest/worker/track-stores.d.ts +10 -0
  144. package/dist/adapters/jest/worker/vm-setup.d.ts +1 -0
  145. package/dist/adapters/jest/worker/vm-setup.js +2 -0
  146. package/dist/adapters/jest/worker/worker.d.ts +1 -0
  147. package/dist/adapters/jest/worker/worker.js +2 -0
  148. package/dist/adapters/jest/worker/wrap-project-config.d.ts +24 -0
  149. package/dist/adapters/jest/write-worker-files.d.ts +13 -0
  150. package/dist/adapters/jest/write-worker-files.js +31 -0
  151. package/dist/adapters/jest/write-worker-session.d.ts +30 -0
  152. package/dist/adapters/jest/write-worker-session.js +23 -0
  153. package/dist/adapters/node-test/build-dry-file.d.ts +52 -0
  154. package/dist/adapters/node-test/build-dry-file.js +56 -0
  155. package/dist/adapters/node-test/build-isolated-facts.d.ts +33 -0
  156. package/dist/adapters/node-test/build-isolated-facts.js +34 -0
  157. package/dist/adapters/node-test/check-node-support.d.ts +8 -0
  158. package/dist/adapters/node-test/check-node-support.js +5 -0
  159. package/dist/adapters/node-test/check-todo-bail.d.ts +10 -0
  160. package/dist/adapters/node-test/check-todo-bail.js +5 -0
  161. package/dist/adapters/node-test/check-typescript.d.ts +24 -0
  162. package/dist/adapters/node-test/check-typescript.js +17 -0
  163. package/dist/adapters/node-test/collect-node-dependencies.d.ts +31 -0
  164. package/dist/adapters/node-test/collect-node-dependencies.js +24 -0
  165. package/dist/adapters/node-test/create-glob-pattern.d.ts +11 -0
  166. package/dist/adapters/node-test/create-glob-pattern.js +21 -0
  167. package/dist/adapters/node-test/describe-hook-failure.d.ts +14 -0
  168. package/dist/adapters/node-test/describe-hook-failure.js +4 -0
  169. package/dist/adapters/node-test/drop-todo-errors.d.ts +10 -0
  170. package/dist/adapters/node-test/drop-todo-errors.js +5 -0
  171. package/dist/adapters/node-test/filter-exec-argv.d.ts +19 -0
  172. package/dist/adapters/node-test/filter-exec-argv.js +33 -0
  173. package/dist/adapters/node-test/find-test-command.d.ts +13 -0
  174. package/dist/adapters/node-test/find-test-command.js +18 -0
  175. package/dist/adapters/node-test/get-default-patterns.d.ts +13 -0
  176. package/dist/adapters/node-test/get-default-patterns.js +14 -0
  177. package/dist/adapters/node-test/get-dry-deadline.d.ts +17 -0
  178. package/dist/adapters/node-test/get-dry-deadline.js +6 -0
  179. package/dist/adapters/node-test/get-node-cache-inputs.d.ts +31 -0
  180. package/dist/adapters/node-test/get-node-cache-inputs.js +33 -0
  181. package/dist/adapters/node-test/get-preload-path.d.ts +10 -0
  182. package/dist/adapters/node-test/get-preload-path.js +7 -0
  183. package/dist/adapters/node-test/get-unit-deadline.d.ts +13 -0
  184. package/dist/adapters/node-test/get-unit-deadline.js +5 -0
  185. package/dist/adapters/node-test/includes-tsx.d.ts +9 -0
  186. package/dist/adapters/node-test/includes-tsx.js +5 -0
  187. package/dist/adapters/node-test/index.d.ts +13 -0
  188. package/dist/adapters/node-test/index.js +11 -0
  189. package/dist/adapters/node-test/list-file-errors.d.ts +18 -0
  190. package/dist/adapters/node-test/list-file-errors.js +8 -0
  191. package/dist/adapters/node-test/list-flag-values.d.ts +10 -0
  192. package/dist/adapters/node-test/list-flag-values.js +9 -0
  193. package/dist/adapters/node-test/list-loaded-files.d.ts +9 -0
  194. package/dist/adapters/node-test/list-loaded-files.js +7 -0
  195. package/dist/adapters/node-test/list-node-test-files.d.ts +13 -0
  196. package/dist/adapters/node-test/list-node-test-files.js +42 -0
  197. package/dist/adapters/node-test/list-running-tries.d.ts +16 -0
  198. package/dist/adapters/node-test/list-running-tries.js +6 -0
  199. package/dist/adapters/node-test/list-setup-files.d.ts +11 -0
  200. package/dist/adapters/node-test/list-setup-files.js +9 -0
  201. package/dist/adapters/node-test/loader-flags.d.ts +4 -0
  202. package/dist/adapters/node-test/loader-flags.js +8 -0
  203. package/dist/adapters/node-test/place-preload.d.ts +17 -0
  204. package/dist/adapters/node-test/place-preload.js +27 -0
  205. package/dist/adapters/node-test/preload/create-bail-error.d.ts +9 -0
  206. package/dist/adapters/node-test/preload/create-bail-error.js +7 -0
  207. package/dist/adapters/node-test/preload/create-commonjs-route.d.ts +24 -0
  208. package/dist/adapters/node-test/preload/create-commonjs-route.js +15 -0
  209. package/dist/adapters/node-test/preload/create-file-recorder.d.ts +10 -0
  210. package/dist/adapters/node-test/preload/create-file-recorder.js +10 -0
  211. package/dist/adapters/node-test/preload/create-load-hook.d.ts +22 -0
  212. package/dist/adapters/node-test/preload/create-load-hook.js +18 -0
  213. package/dist/adapters/node-test/preload/create-record-writer.d.ts +13 -0
  214. package/dist/adapters/node-test/preload/create-record-writer.js +8 -0
  215. package/dist/adapters/node-test/preload/create-report-reader.d.ts +35 -0
  216. package/dist/adapters/node-test/preload/create-report-reader.js +34 -0
  217. package/dist/adapters/node-test/preload/create-source-switcher.d.ts +25 -0
  218. package/dist/adapters/node-test/preload/create-source-switcher.js +25 -0
  219. package/dist/adapters/node-test/preload/create-try-tracker.d.ts +71 -0
  220. package/dist/adapters/node-test/preload/create-try-tracker.js +125 -0
  221. package/dist/adapters/node-test/preload/hooks.d.ts +19 -0
  222. package/dist/adapters/node-test/preload/hooks.js +17 -0
  223. package/dist/adapters/node-test/preload/install-marker-receivers.d.ts +30 -0
  224. package/dist/adapters/node-test/preload/install-marker-receivers.js +16 -0
  225. package/dist/adapters/node-test/preload/install-module-hooks.d.ts +79 -0
  226. package/dist/adapters/node-test/preload/install-module-hooks.js +13 -0
  227. package/dist/adapters/node-test/preload/loaded-key.d.ts +5 -0
  228. package/dist/adapters/node-test/preload/loaded-key.js +2 -0
  229. package/dist/adapters/node-test/preload/patch-module-compile.d.ts +14 -0
  230. package/dist/adapters/node-test/preload/patch-module-compile.js +11 -0
  231. package/dist/adapters/node-test/preload/preload.d.ts +1 -0
  232. package/dist/adapters/node-test/preload/preload.js +71 -0
  233. package/dist/adapters/node-test/preload/read-unit.d.ts +13 -0
  234. package/dist/adapters/node-test/preload/read-unit.js +5 -0
  235. package/dist/adapters/node-test/preload/reported-key.d.ts +5 -0
  236. package/dist/adapters/node-test/preload/reported-key.js +2 -0
  237. package/dist/adapters/node-test/preload/reporter.d.ts +10 -0
  238. package/dist/adapters/node-test/preload/reporter.js +12 -0
  239. package/dist/adapters/node-test/preload/served-key.d.ts +5 -0
  240. package/dist/adapters/node-test/preload/served-key.js +2 -0
  241. package/dist/adapters/node-test/read-node-runtime.d.ts +22 -0
  242. package/dist/adapters/node-test/read-node-runtime.js +40 -0
  243. package/dist/adapters/node-test/read-test-timeout.d.ts +8 -0
  244. package/dist/adapters/node-test/read-test-timeout.js +12 -0
  245. package/dist/adapters/node-test/read-tries.d.ts +47 -0
  246. package/dist/adapters/node-test/read-tries.js +31 -0
  247. package/dist/adapters/node-test/resolve-command.d.ts +15 -0
  248. package/dist/adapters/node-test/resolve-command.js +87 -0
  249. package/dist/adapters/node-test/resolve-tsx.d.ts +8 -0
  250. package/dist/adapters/node-test/resolve-tsx.js +12 -0
  251. package/dist/adapters/node-test/run-dry.d.ts +32 -0
  252. package/dist/adapters/node-test/run-dry.js +87 -0
  253. package/dist/adapters/node-test/run-isolated.d.ts +22 -0
  254. package/dist/adapters/node-test/run-isolated.js +56 -0
  255. package/dist/adapters/node-test/run-test-file.d.ts +22 -0
  256. package/dist/adapters/node-test/run-test-file.js +35 -0
  257. package/dist/adapters/node-test/run-test-process.d.ts +63 -0
  258. package/dist/adapters/node-test/run-test-process.js +69 -0
  259. package/dist/adapters/node-test/score-node-test.d.ts +11 -0
  260. package/dist/adapters/node-test/score-node-test.js +32 -0
  261. package/dist/adapters/node-test/start-node-test-session.d.ts +26 -0
  262. package/dist/adapters/node-test/start-node-test-session.js +124 -0
  263. package/dist/adapters/node-test/types/node-test-adapter-options.d.ts +33 -0
  264. package/dist/adapters/node-test/types/node-test-command.d.ts +28 -0
  265. package/dist/adapters/node-test/types/node-test-handle.d.ts +118 -0
  266. package/dist/adapters/node-test/types/node-test-hooks-data.d.ts +20 -0
  267. package/dist/adapters/node-test/types/node-test-record.d.ts +330 -0
  268. package/dist/adapters/node-test/types/node-test-unit.d.ts +57 -0
  269. package/dist/adapters/node-test/types/process-watch.d.ts +22 -0
  270. package/dist/adapters/node-test/types/source-switcher.d.ts +21 -0
  271. package/dist/adapters/node-test/types/test-process-outcome.d.ts +31 -0
  272. package/dist/adapters/node-test/types/try-context.d.ts +26 -0
  273. package/dist/adapters/node-test/types/try-tracker.d.ts +44 -0
  274. package/dist/adapters/shared/capture-clock.d.ts +11 -0
  275. package/dist/adapters/shared/capture-clock.js +14 -0
  276. package/dist/adapters/shared/create-environment-proxy.d.ts +12 -0
  277. package/dist/adapters/shared/create-environment-proxy.js +17 -0
  278. package/dist/adapters/shared/describe-exit.d.ts +14 -0
  279. package/dist/adapters/shared/describe-exit.js +4 -0
  280. package/dist/adapters/shared/environment-slot.d.ts +5 -0
  281. package/dist/adapters/shared/environment-slot.js +2 -0
  282. package/dist/adapters/shared/get-error-message.d.ts +9 -0
  283. package/dist/adapters/shared/get-error-message.js +10 -0
  284. package/dist/adapters/shared/get-test-id.d.ts +19 -0
  285. package/dist/adapters/shared/get-test-id.js +11 -0
  286. package/dist/adapters/shared/hash-environment.d.ts +9 -0
  287. package/dist/adapters/shared/hash-environment.js +6 -0
  288. package/dist/adapters/shared/index-environment-hashes.d.ts +13 -0
  289. package/dist/adapters/shared/index-environment-hashes.js +19 -0
  290. package/dist/adapters/shared/list-package-files.d.ts +11 -0
  291. package/dist/adapters/shared/list-package-files.js +9 -0
  292. package/dist/adapters/shared/list-tsconfig-files.d.ts +12 -0
  293. package/dist/adapters/shared/list-tsconfig-files.js +15 -0
  294. package/dist/adapters/shared/live-process-groups.d.ts +5 -0
  295. package/dist/adapters/shared/live-process-groups.js +2 -0
  296. package/dist/adapters/shared/parse-command.d.ts +16 -0
  297. package/dist/adapters/shared/parse-command.js +27 -0
  298. package/dist/adapters/shared/read-command-prefix.d.ts +16 -0
  299. package/dist/adapters/shared/read-command-prefix.js +33 -0
  300. package/dist/adapters/shared/read-out-file.d.ts +8 -0
  301. package/dist/adapters/shared/read-out-file.js +11 -0
  302. package/dist/adapters/shared/read-package-type.d.ts +8 -0
  303. package/dist/adapters/shared/read-package-type.js +12 -0
  304. package/dist/adapters/shared/read-test-scripts.d.ts +14 -0
  305. package/dist/adapters/shared/read-test-scripts.js +55 -0
  306. package/dist/adapters/shared/read-tsconfig-extends.d.ts +12 -0
  307. package/dist/adapters/shared/read-tsconfig-extends.js +39 -0
  308. package/dist/adapters/shared/run-in-pool.d.ts +16 -0
  309. package/dist/adapters/shared/run-in-pool.js +22 -0
  310. package/dist/adapters/shared/split-node-arguments.d.ts +14 -0
  311. package/dist/adapters/shared/split-node-arguments.js +18 -0
  312. package/dist/adapters/shared/stop-live-process-groups.d.ts +5 -0
  313. package/dist/adapters/shared/stop-live-process-groups.js +7 -0
  314. package/dist/adapters/shared/stop-process-group.d.ts +9 -0
  315. package/dist/adapters/shared/stop-process-group.js +10 -0
  316. package/dist/adapters/shared/track-environment.d.ts +43 -0
  317. package/dist/adapters/shared/track-environment.js +18 -0
  318. package/dist/adapters/shared/track-file-inputs.d.ts +12 -0
  319. package/dist/adapters/shared/track-file-inputs.js +21 -0
  320. package/dist/adapters/shared/track-file-reads.d.ts +38 -0
  321. package/dist/adapters/shared/track-file-reads.js +190 -0
  322. package/dist/adapters/shared/track-inputs.d.ts +16 -0
  323. package/dist/adapters/shared/track-inputs.js +21 -0
  324. package/dist/adapters/shared/track-process-group.d.ts +9 -0
  325. package/dist/adapters/shared/track-process-group.js +20 -0
  326. package/dist/adapters/shared/track-spawners.d.ts +20 -0
  327. package/dist/adapters/shared/track-spawners.js +49 -0
  328. package/dist/adapters/shared/types/environment-proxy-state.d.ts +23 -0
  329. package/dist/adapters/shared/types/file-input-tracking.d.ts +20 -0
  330. package/dist/adapters/shared/types/input-tracking.d.ts +26 -0
  331. package/dist/adapters/shared/types/safe-clock.d.ts +25 -0
  332. package/dist/adapters/shared/types/switch-plan.d.ts +7 -0
  333. package/dist/adapters/shared/verdict-variable-pattern.d.ts +6 -0
  334. package/dist/adapters/shared/verdict-variable-pattern.js +2 -0
  335. package/dist/adapters/shared/write-switch-plan.d.ts +11 -0
  336. package/dist/adapters/shared/write-switch-plan.js +16 -0
  337. package/dist/adapters/vitest/build-isolated-facts.d.ts +19 -0
  338. package/dist/adapters/vitest/build-isolated-facts.js +31 -0
  339. package/dist/adapters/vitest/check-project-config.d.ts +10 -0
  340. package/dist/adapters/vitest/check-project-config.js +6 -0
  341. package/dist/adapters/vitest/check-vitest-copy.d.ts +12 -0
  342. package/dist/adapters/vitest/check-vitest-copy.js +15 -0
  343. package/dist/adapters/vitest/collect-dependencies.d.ts +29 -0
  344. package/dist/adapters/vitest/collect-dependencies.js +38 -0
  345. package/dist/adapters/vitest/configure-project.d.ts +17 -0
  346. package/dist/adapters/vitest/configure-project.js +24 -0
  347. package/dist/adapters/vitest/create-forks-pool.d.ts +22 -0
  348. package/dist/adapters/vitest/create-forks-pool.js +49 -0
  349. package/dist/adapters/vitest/create-interleaved-sequencer.d.ts +13 -0
  350. package/dist/adapters/vitest/create-interleaved-sequencer.js +21 -0
  351. package/dist/adapters/vitest/create-mootant-plugin.d.ts +18 -0
  352. package/dist/adapters/vitest/create-mootant-plugin.js +31 -0
  353. package/dist/adapters/vitest/create-output-reporter.d.ts +28 -0
  354. package/dist/adapters/vitest/create-output-reporter.js +7 -0
  355. package/dist/adapters/vitest/create-output-stream.d.ts +11 -0
  356. package/dist/adapters/vitest/create-output-stream.js +16 -0
  357. package/dist/adapters/vitest/detect-vitest.d.ts +28 -0
  358. package/dist/adapters/vitest/detect-vitest.js +26 -0
  359. package/dist/adapters/vitest/get-cache-inputs.d.ts +16 -0
  360. package/dist/adapters/vitest/get-cache-inputs.js +75 -0
  361. package/dist/adapters/vitest/get-file-key.d.ts +10 -0
  362. package/dist/adapters/vitest/get-file-key.js +15 -0
  363. package/dist/adapters/vitest/get-module-file.d.ts +10 -0
  364. package/dist/adapters/vitest/get-module-file.js +7 -0
  365. package/dist/adapters/vitest/get-project-label.d.ts +8 -0
  366. package/dist/adapters/vitest/get-project-label.js +4 -0
  367. package/dist/adapters/vitest/get-runner-path.d.ts +9 -0
  368. package/dist/adapters/vitest/get-runner-path.js +7 -0
  369. package/dist/adapters/vitest/get-switchable-path.d.ts +12 -0
  370. package/dist/adapters/vitest/get-switchable-path.js +8 -0
  371. package/dist/adapters/vitest/index-switched-files.d.ts +10 -0
  372. package/dist/adapters/vitest/index-switched-files.js +5 -0
  373. package/dist/adapters/vitest/index.d.ts +11 -0
  374. package/dist/adapters/vitest/index.js +11 -0
  375. package/dist/adapters/vitest/read-environment-hashes.d.ts +9 -0
  376. package/dist/adapters/vitest/read-environment-hashes.js +13 -0
  377. package/dist/adapters/vitest/read-out-files.d.ts +9 -0
  378. package/dist/adapters/vitest/read-out-files.js +9 -0
  379. package/dist/adapters/vitest/read-unit-inputs.d.ts +27 -0
  380. package/dist/adapters/vitest/read-unit-inputs.js +15 -0
  381. package/dist/adapters/vitest/reset-run-directory.d.ts +9 -0
  382. package/dist/adapters/vitest/reset-run-directory.js +21 -0
  383. package/dist/adapters/vitest/run-batch.d.ts +16 -0
  384. package/dist/adapters/vitest/run-batch.js +70 -0
  385. package/dist/adapters/vitest/run-dry.d.ts +26 -0
  386. package/dist/adapters/vitest/run-dry.js +136 -0
  387. package/dist/adapters/vitest/run-isolated.d.ts +15 -0
  388. package/dist/adapters/vitest/run-isolated.js +29 -0
  389. package/dist/adapters/vitest/run-plan.d.ts +39 -0
  390. package/dist/adapters/vitest/run-plan.js +60 -0
  391. package/dist/adapters/vitest/run-specifications.d.ts +23 -0
  392. package/dist/adapters/vitest/run-specifications.js +19 -0
  393. package/dist/adapters/vitest/runner.d.ts +449 -0
  394. package/dist/adapters/vitest/runner.js +361 -0
  395. package/dist/adapters/vitest/score-vitest.d.ts +11 -0
  396. package/dist/adapters/vitest/score-vitest.js +7 -0
  397. package/dist/adapters/vitest/start-vitest-session.d.ts +24 -0
  398. package/dist/adapters/vitest/start-vitest-session.js +88 -0
  399. package/dist/adapters/vitest/stop-hung-worker.d.ts +11 -0
  400. package/dist/adapters/vitest/stop-hung-worker.js +29 -0
  401. package/dist/adapters/vitest/types/unit-outcome.d.ts +26 -0
  402. package/dist/adapters/vitest/types/vitest-adapter-options.d.ts +10 -0
  403. package/dist/adapters/vitest/types/vitest-session-state.d.ts +94 -0
  404. package/dist/adapters/vitest/types/vitest-worker.d.ts +246 -0
  405. package/dist/adapters/vitest/wait-for-workers.d.ts +30 -0
  406. package/dist/adapters/vitest/wait-for-workers.js +39 -0
  407. package/dist/adapters/vitest/watch-heartbeats.d.ts +23 -0
  408. package/dist/adapters/vitest/watch-heartbeats.js +25 -0
  409. package/dist/adapters/vitest/watch-unit-ends.d.ts +22 -0
  410. package/dist/adapters/vitest/watch-unit-ends.js +14 -0
  411. package/dist/adapters/vitest/worker/claim-unit.d.ts +16 -0
  412. package/dist/adapters/vitest/worker/claim-unit.js +16 -0
  413. package/dist/adapters/vitest/worker/find-hook-error.d.ts +10 -0
  414. package/dist/adapters/vitest/worker/find-hook-error.js +12 -0
  415. package/dist/adapters/vitest/worker/get-file-hash.d.ts +11 -0
  416. package/dist/adapters/vitest/worker/get-file-hash.js +5 -0
  417. package/dist/adapters/vitest/worker/get-hook-budget.d.ts +16 -0
  418. package/dist/adapters/vitest/worker/get-hook-budget.js +36 -0
  419. package/dist/adapters/vitest/worker/install-try-hook.d.ts +16 -0
  420. package/dist/adapters/vitest/worker/install-try-hook.js +11 -0
  421. package/dist/adapters/vitest/worker/is-process-alive.d.ts +9 -0
  422. package/dist/adapters/vitest/worker/is-process-alive.js +9 -0
  423. package/dist/adapters/vitest/worker/is-timeout-message.d.ts +7 -0
  424. package/dist/adapters/vitest/worker/is-timeout-message.js +5 -0
  425. package/dist/adapters/vitest/worker/list-dependencies.d.ts +35 -0
  426. package/dist/adapters/vitest/worker/list-dependencies.js +10 -0
  427. package/dist/adapters/vitest/worker/list-tests.d.ts +8 -0
  428. package/dist/adapters/vitest/worker/list-tests.js +4 -0
  429. package/dist/adapters/vitest/worker/order-tests.d.ts +14 -0
  430. package/dist/adapters/vitest/worker/order-tests.js +7 -0
  431. package/dist/adapters/vitest/worker/race-try-timeout.d.ts +13 -0
  432. package/dist/adapters/vitest/worker/race-try-timeout.js +17 -0
  433. package/dist/adapters/vitest/worker/read-try-facts.d.ts +36 -0
  434. package/dist/adapters/vitest/worker/read-try-facts.js +19 -0
  435. package/dist/adapters/vitest/worker/read-worker-plan.d.ts +11 -0
  436. package/dist/adapters/vitest/worker/read-worker-plan.js +13 -0
  437. package/dist/adapters/vitest/worker/vitest-variables.d.ts +6 -0
  438. package/dist/adapters/vitest/worker/vitest-variables.js +2 -0
  439. package/dist/adapters/vitest/worker/wait-for-turn.d.ts +24 -0
  440. package/dist/adapters/vitest/worker/wait-for-turn.js +11 -0
  441. package/dist/adapters/vitest/worker/watch-worker-close.d.ts +20 -0
  442. package/dist/adapters/vitest/worker/watch-worker-close.js +32 -0
  443. package/dist/adapters/vitest/worker/write-heartbeat.d.ts +14 -0
  444. package/dist/adapters/vitest/worker/write-heartbeat.js +6 -0
  445. package/dist/adapters/vitest/worker/write-out-record.d.ts +10 -0
  446. package/dist/adapters/vitest/worker/write-out-record.js +5 -0
  447. package/dist/adapters/vitest/write-plan-files.d.ts +12 -0
  448. package/dist/adapters/vitest/write-plan-files.js +14 -0
  449. package/dist/cli/built-in-adapters.d.ts +15 -0
  450. package/dist/cli/built-in-adapters.js +29 -0
  451. package/dist/cli/create-run-progress.d.ts +50 -0
  452. package/dist/cli/create-run-progress.js +218 -0
  453. package/dist/cli/create-time-estimator.d.ts +80 -0
  454. package/dist/cli/create-time-estimator.js +63 -0
  455. package/dist/cli/diff/format-change.d.ts +38 -0
  456. package/dist/cli/diff/format-change.js +101 -0
  457. package/dist/cli/diff/format-diff-groups.d.ts +46 -0
  458. package/dist/cli/diff/format-diff-groups.js +48 -0
  459. package/dist/cli/diff/format-diff.d.ts +20 -0
  460. package/dist/cli/diff/format-diff.js +94 -0
  461. package/dist/cli/diff/get-diff-lines.d.ts +23 -0
  462. package/dist/cli/diff/get-diff-lines.js +24 -0
  463. package/dist/cli/diff/is-joined.d.ts +10 -0
  464. package/dist/cli/diff/is-joined.js +5 -0
  465. package/dist/cli/diff/mark-diff.d.ts +63 -0
  466. package/dist/cli/diff/mark-diff.js +43 -0
  467. package/dist/cli/diff/narrow-change.d.ts +36 -0
  468. package/dist/cli/diff/narrow-change.js +46 -0
  469. package/dist/cli/diff/separate-replacement.d.ts +21 -0
  470. package/dist/cli/diff/separate-replacement.js +6 -0
  471. package/dist/cli/html/build-html-report.d.ts +48 -0
  472. package/dist/cli/html/build-html-report.js +113 -0
  473. package/dist/cli/html/client/copy-text.d.ts +9 -0
  474. package/dist/cli/html/client/describe-status.d.ts +13 -0
  475. package/dist/cli/html/client/download-json.d.ts +8 -0
  476. package/dist/cli/html/client/escape-html.d.ts +7 -0
  477. package/dist/cli/html/client/escape-html.js +4 -0
  478. package/dist/cli/html/client/filter-by-status.d.ts +11 -0
  479. package/dist/cli/html/client/find-search-results.d.ts +30 -0
  480. package/dist/cli/html/client/format-date.d.ts +8 -0
  481. package/dist/cli/html/client/format-score.d.ts +8 -0
  482. package/dist/cli/html/client/format-time.d.ts +8 -0
  483. package/dist/cli/html/client/get-file-href.d.ts +10 -0
  484. package/dist/cli/html/client/get-icon.d.ts +37 -0
  485. package/dist/cli/html/client/get-line-end.d.ts +10 -0
  486. package/dist/cli/html/client/get-table-layout.d.ts +15 -0
  487. package/dist/cli/html/client/get-test-groups.d.ts +11 -0
  488. package/dist/cli/html/client/get-wordmark.d.ts +9 -0
  489. package/dist/cli/html/client/html.d.ts +12 -0
  490. package/dist/cli/html/client/index-report.d.ts +14 -0
  491. package/dist/cli/html/client/is-overlapping.d.ts +10 -0
  492. package/dist/cli/html/client/main.d.ts +1 -0
  493. package/dist/cli/html/client/main.js +2 -0
  494. package/dist/cli/html/client/measure-column.d.ts +10 -0
  495. package/dist/cli/html/client/paint-ranges.d.ts +33 -0
  496. package/dist/cli/html/client/parse-route.d.ts +13 -0
  497. package/dist/cli/html/client/render-attention.d.ts +12 -0
  498. package/dist/cli/html/client/render-change.d.ts +11 -0
  499. package/dist/cli/html/client/render-code.d.ts +50 -0
  500. package/dist/cli/html/client/render-command.d.ts +8 -0
  501. package/dist/cli/html/client/render-count-cells.d.ts +10 -0
  502. package/dist/cli/html/client/render-diff.d.ts +16 -0
  503. package/dist/cli/html/client/render-file-code.d.ts +12 -0
  504. package/dist/cli/html/client/render-file-panel.d.ts +12 -0
  505. package/dist/cli/html/client/render-files-table.d.ts +10 -0
  506. package/dist/cli/html/client/render-files-view.d.ts +14 -0
  507. package/dist/cli/html/client/render-frame.d.ts +12 -0
  508. package/dist/cli/html/client/render-mutant-link.d.ts +11 -0
  509. package/dist/cli/html/client/render-mutant-panel.d.ts +18 -0
  510. package/dist/cli/html/client/render-mutant-row.d.ts +13 -0
  511. package/dist/cli/html/client/render-mutants-table.d.ts +13 -0
  512. package/dist/cli/html/client/render-mutants-view.d.ts +12 -0
  513. package/dist/cli/html/client/render-mutators-view.d.ts +11 -0
  514. package/dist/cli/html/client/render-overview.d.ts +14 -0
  515. package/dist/cli/html/client/render-side-panel.d.ts +12 -0
  516. package/dist/cli/html/client/render-skip-panel.d.ts +14 -0
  517. package/dist/cli/html/client/render-skipped-summary.d.ts +10 -0
  518. package/dist/cli/html/client/render-spotlight.d.ts +12 -0
  519. package/dist/cli/html/client/render-status-bar.d.ts +10 -0
  520. package/dist/cli/html/client/render-status-filter.d.ts +40 -0
  521. package/dist/cli/html/client/render-test-name.d.ts +8 -0
  522. package/dist/cli/html/client/render-tests-view.d.ts +16 -0
  523. package/dist/cli/html/client/render-tree.d.ts +11 -0
  524. package/dist/cli/html/client/set-markup.d.ts +9 -0
  525. package/dist/cli/html/client/start-report.d.ts +14 -0
  526. package/dist/cli/html/client/tokenize-source.d.ts +12 -0
  527. package/dist/cli/html/client/unpack-replacement.d.ts +15 -0
  528. package/dist/cli/html/client/unpack-run-report.d.ts +12 -0
  529. package/dist/cli/html/format-html-report.d.ts +12 -0
  530. package/dist/cli/html/format-html-report.js +52 -0
  531. package/dist/cli/html/pack-replacement.d.ts +15 -0
  532. package/dist/cli/html/pack-replacement.js +11 -0
  533. package/dist/cli/html/read-project-name.d.ts +8 -0
  534. package/dist/cli/html/read-project-name.js +12 -0
  535. package/dist/cli/html/report.js +2 -0
  536. package/dist/cli/html/serialize-report-data.d.ts +11 -0
  537. package/dist/cli/html/serialize-report-data.js +4 -0
  538. package/dist/cli/html/write-html-report.d.ts +7 -0
  539. package/dist/cli/html/write-html-report.js +6 -0
  540. package/dist/cli/index.d.ts +6 -0
  541. package/dist/cli/index.js +14 -0
  542. package/dist/cli/parse-arguments.d.ts +127 -0
  543. package/dist/cli/parse-arguments.js +137 -0
  544. package/dist/cli/report/build-list-report.d.ts +13 -0
  545. package/dist/cli/report/build-list-report.js +131 -0
  546. package/dist/cli/report/build-run-report.d.ts +39 -0
  547. package/dist/cli/report/build-run-report.js +108 -0
  548. package/dist/cli/report/format-command.d.ts +59 -0
  549. package/dist/cli/report/format-command.js +14 -0
  550. package/dist/cli/report/format-duration.d.ts +8 -0
  551. package/dist/cli/report/format-duration.js +9 -0
  552. package/dist/cli/report/format-fields.d.ts +11 -0
  553. package/dist/cli/report/format-fields.js +15 -0
  554. package/dist/cli/report/format-file-groups.d.ts +66 -0
  555. package/dist/cli/report/format-file-groups.js +53 -0
  556. package/dist/cli/report/format-header.d.ts +19 -0
  557. package/dist/cli/report/format-header.js +12 -0
  558. package/dist/cli/report/format-report.d.ts +16 -0
  559. package/dist/cli/report/format-report.js +10 -0
  560. package/dist/cli/report/format-run-report.d.ts +13 -0
  561. package/dist/cli/report/format-run-report.js +10 -0
  562. package/dist/cli/report/format-run-text-report.d.ts +59 -0
  563. package/dist/cli/report/format-run-text-report.js +126 -0
  564. package/dist/cli/report/format-text-report.d.ts +33 -0
  565. package/dist/cli/report/format-text-report.js +57 -0
  566. package/dist/cli/report/format-time-left.d.ts +10 -0
  567. package/dist/cli/report/format-time-left.js +9 -0
  568. package/dist/cli/report/get-file-scores.d.ts +11 -0
  569. package/dist/cli/report/get-file-scores.js +21 -0
  570. package/dist/cli/report/get-short-id-length.d.ts +9 -0
  571. package/dist/cli/report/get-short-id-length.js +11 -0
  572. package/dist/cli/report/print-diagnostics.d.ts +11 -0
  573. package/dist/cli/report/print-diagnostics.js +15 -0
  574. package/dist/cli/report/slim-diff.d.ts +11 -0
  575. package/dist/cli/report/slim-diff.js +9 -0
  576. package/dist/cli/report/slim-focus.d.ts +10 -0
  577. package/dist/cli/report/slim-focus.js +9 -0
  578. package/dist/cli/report/slim-list-mutant.d.ts +17 -0
  579. package/dist/cli/report/slim-list-mutant.js +18 -0
  580. package/dist/cli/report/slim-list-report.d.ts +14 -0
  581. package/dist/cli/report/slim-list-report.js +20 -0
  582. package/dist/cli/report/slim-run-report.d.ts +20 -0
  583. package/dist/cli/report/slim-run-report.js +66 -0
  584. package/dist/cli/report/sort-by-location.d.ts +16 -0
  585. package/dist/cli/report/sort-by-location.js +9 -0
  586. package/dist/cli/run-list.d.ts +9 -0
  587. package/dist/cli/run-list.js +27 -0
  588. package/dist/cli/run-mutation.d.ts +18 -0
  589. package/dist/cli/run-mutation.js +72 -0
  590. package/dist/cli/terminal/colors.d.ts +59 -0
  591. package/dist/cli/terminal/colors.js +26 -0
  592. package/dist/cli/terminal/count-terminal-rows.d.ts +13 -0
  593. package/dist/cli/terminal/count-terminal-rows.js +7 -0
  594. package/dist/cli/terminal/create-spinner.d.ts +37 -0
  595. package/dist/cli/terminal/create-spinner.js +62 -0
  596. package/dist/cli/terminal/cut-to-width.d.ts +17 -0
  597. package/dist/cli/terminal/cut-to-width.js +14 -0
  598. package/dist/cli/terminal/fit-parts.d.ts +12 -0
  599. package/dist/cli/terminal/fit-parts.js +10 -0
  600. package/dist/cli/terminal/format-by-file.d.ts +35 -0
  601. package/dist/cli/terminal/format-by-file.js +15 -0
  602. package/dist/cli/terminal/get-display-width.d.ts +24 -0
  603. package/dist/cli/terminal/get-display-width.js +15 -0
  604. package/dist/cli/terminal/get-max-display-width.d.ts +9 -0
  605. package/dist/cli/terminal/get-max-display-width.js +5 -0
  606. package/dist/cli/terminal/get-symbols.d.ts +37 -0
  607. package/dist/cli/terminal/get-symbols.js +18 -0
  608. package/dist/cli/terminal/get-text-style.d.ts +15 -0
  609. package/dist/cli/terminal/get-text-style.js +16 -0
  610. package/dist/cli/terminal/is-interactive-terminal.d.ts +12 -0
  611. package/dist/cli/terminal/is-interactive-terminal.js +5 -0
  612. package/dist/cli/terminal/is-unicode-supported.d.ts +10 -0
  613. package/dist/cli/terminal/is-unicode-supported.js +5 -0
  614. package/dist/cli/terminal/measure-parts.d.ts +10 -0
  615. package/dist/cli/terminal/measure-parts.js +6 -0
  616. package/dist/cli/terminal/pad-to-width.d.ts +9 -0
  617. package/dist/cli/terminal/pad-to-width.js +5 -0
  618. package/dist/cli/terminal/strip-ansi.d.ts +7 -0
  619. package/dist/cli/terminal/strip-ansi.js +14 -0
  620. package/dist/cli/terminal/wrap-text.d.ts +9 -0
  621. package/dist/cli/terminal/wrap-text.js +10 -0
  622. package/dist/core/cache/apply-cached-batch.d.ts +21 -0
  623. package/dist/core/cache/apply-cached-batch.js +37 -0
  624. package/dist/core/cache/apply-cached-units.d.ts +15 -0
  625. package/dist/core/cache/apply-cached-units.js +19 -0
  626. package/dist/core/cache/cache-version.d.ts +6 -0
  627. package/dist/core/cache/create-digest.d.ts +7 -0
  628. package/dist/core/cache/create-digest.js +5 -0
  629. package/dist/core/cache/create-run-cache.d.ts +93 -0
  630. package/dist/core/cache/create-run-cache.js +126 -0
  631. package/dist/core/cache/find-changed-files.d.ts +10 -0
  632. package/dist/core/cache/find-changed-files.js +11 -0
  633. package/dist/core/cache/find-lockfile.d.ts +8 -0
  634. package/dist/core/cache/find-lockfile.js +23 -0
  635. package/dist/core/cache/get-cache-path.d.ts +9 -0
  636. package/dist/core/cache/get-cache-path.js +5 -0
  637. package/dist/core/cache/get-environment-key.d.ts +63 -0
  638. package/dist/core/cache/get-environment-key.js +25 -0
  639. package/dist/core/cache/get-portable-path.d.ts +11 -0
  640. package/dist/core/cache/get-portable-path.js +5 -0
  641. package/dist/core/cache/get-test-file-keys.d.ts +31 -0
  642. package/dist/core/cache/get-test-file-keys.js +24 -0
  643. package/dist/core/cache/hash-files.d.ts +11 -0
  644. package/dist/core/cache/hash-files.js +24 -0
  645. package/dist/core/cache/list-file-hashes.d.ts +16 -0
  646. package/dist/core/cache/list-file-hashes.js +7 -0
  647. package/dist/core/cache/prepare-run-cache.d.ts +92 -0
  648. package/dist/core/cache/prepare-run-cache.js +71 -0
  649. package/dist/core/cache/prune-cache-entries.d.ts +10 -0
  650. package/dist/core/cache/prune-cache-entries.js +6 -0
  651. package/dist/core/cache/read-run-cache.d.ts +11 -0
  652. package/dist/core/cache/read-run-cache.js +33 -0
  653. package/dist/core/cache/run-in-chunks.d.ts +10 -0
  654. package/dist/core/cache/run-in-chunks.js +6 -0
  655. package/dist/core/cache/save-run-cache.d.ts +33 -0
  656. package/dist/core/cache/save-run-cache.js +54 -0
  657. package/dist/core/cache/write-run-cache.d.ts +22 -0
  658. package/dist/core/cache/write-run-cache.js +20 -0
  659. package/dist/core/compare-code-units.d.ts +10 -0
  660. package/dist/core/compare-code-units.js +4 -0
  661. package/dist/core/config/define-config.d.ts +13 -0
  662. package/dist/core/config/define-config.js +4 -0
  663. package/dist/core/config/import-config.d.ts +9 -0
  664. package/dist/core/config/import-config.js +5 -0
  665. package/dist/core/config/load-config.d.ts +38 -0
  666. package/dist/core/config/load-config.js +55 -0
  667. package/dist/core/config/load-typescript-config.d.ts +11 -0
  668. package/dist/core/config/load-typescript-config.js +13 -0
  669. package/dist/core/config/prepare-run.d.ts +67 -0
  670. package/dist/core/config/prepare-run.js +36 -0
  671. package/dist/core/config/resolve-run-settings.d.ts +15 -0
  672. package/dist/core/config/resolve-run-settings.js +20 -0
  673. package/dist/core/config/validate-config.d.ts +17 -0
  674. package/dist/core/config/validate-config.js +74 -0
  675. package/dist/core/files/expand-paths.d.ts +46 -0
  676. package/dist/core/files/expand-paths.js +106 -0
  677. package/dist/core/files/is-source-file.d.ts +8 -0
  678. package/dist/core/files/is-source-file.js +6 -0
  679. package/dist/core/files/list-file-mutants.d.ts +71 -0
  680. package/dist/core/files/list-file-mutants.js +69 -0
  681. package/dist/core/files/select-changed-mutants.d.ts +15 -0
  682. package/dist/core/files/select-changed-mutants.js +22 -0
  683. package/dist/core/generate/apply-solitary-rule.d.ts +30 -0
  684. package/dist/core/generate/apply-solitary-rule.js +48 -0
  685. package/dist/core/generate/collect-candidates.d.ts +134 -0
  686. package/dist/core/generate/collect-candidates.js +165 -0
  687. package/dist/core/generate/compare-candidates.d.ts +18 -0
  688. package/dist/core/generate/compare-candidates.js +4 -0
  689. package/dist/core/generate/deduplicate-candidates.d.ts +30 -0
  690. package/dist/core/generate/deduplicate-candidates.js +25 -0
  691. package/dist/core/generate/fit-template-text.d.ts +26 -0
  692. package/dist/core/generate/fit-template-text.js +17 -0
  693. package/dist/core/generate/generate-file-mutants.d.ts +77 -0
  694. package/dist/core/generate/generate-file-mutants.js +225 -0
  695. package/dist/core/generate/get-mutant-regions.d.ts +49 -0
  696. package/dist/core/generate/get-mutant-regions.js +69 -0
  697. package/dist/core/generate/get-replacement-kind.d.ts +12 -0
  698. package/dist/core/generate/get-replacement-kind.js +24 -0
  699. package/dist/core/generate/group-replacement.d.ts +40 -0
  700. package/dist/core/generate/group-replacement.js +151 -0
  701. package/dist/core/generate/pick-focus.d.ts +14 -0
  702. package/dist/core/generate/pick-focus.js +4 -0
  703. package/dist/core/generate/validate-replacement.d.ts +17 -0
  704. package/dist/core/generate/validate-replacement.js +29 -0
  705. package/dist/core/git/find-git-root.d.ts +10 -0
  706. package/dist/core/git/find-git-root.js +8 -0
  707. package/dist/core/git/get-merge-base.d.ts +12 -0
  708. package/dist/core/git/get-merge-base.js +32 -0
  709. package/dist/core/git/parse-binary-paths.d.ts +11 -0
  710. package/dist/core/git/parse-binary-paths.js +9 -0
  711. package/dist/core/git/parse-unified-diff.d.ts +15 -0
  712. package/dist/core/git/parse-unified-diff.js +26 -0
  713. package/dist/core/git/read-changed-lines.d.ts +18 -0
  714. package/dist/core/git/read-changed-lines.js +60 -0
  715. package/dist/core/git/run-git.d.ts +30 -0
  716. package/dist/core/git/run-git.js +30 -0
  717. package/dist/core/git/unquote-git-path.d.ts +9 -0
  718. package/dist/core/git/unquote-git-path.js +25 -0
  719. package/dist/core/hints/analyze-scopes.d.ts +15 -0
  720. package/dist/core/hints/analyze-scopes.js +317 -0
  721. package/dist/core/hints/create-inferred-type.d.ts +12 -0
  722. package/dist/core/hints/create-inferred-type.js +5 -0
  723. package/dist/core/hints/create-syntactic-type-provider.d.ts +19 -0
  724. package/dist/core/hints/create-syntactic-type-provider.js +63 -0
  725. package/dist/core/hints/create-type-hints.d.ts +11 -0
  726. package/dist/core/hints/create-type-hints.js +21 -0
  727. package/dist/core/hints/find-this-class.d.ts +25 -0
  728. package/dist/core/hints/find-this-class.js +27 -0
  729. package/dist/core/hints/get-asserted-type.d.ts +9 -0
  730. package/dist/core/hints/get-asserted-type.js +5 -0
  731. package/dist/core/hints/infer-annotation-type.d.ts +14 -0
  732. package/dist/core/hints/infer-annotation-type.js +171 -0
  733. package/dist/core/hints/infer-binding-type.d.ts +13 -0
  734. package/dist/core/hints/infer-binding-type.js +93 -0
  735. package/dist/core/hints/infer-call-type.d.ts +14 -0
  736. package/dist/core/hints/infer-call-type.js +116 -0
  737. package/dist/core/hints/infer-expression-type.d.ts +12 -0
  738. package/dist/core/hints/infer-expression-type.js +104 -0
  739. package/dist/core/hints/infer-member-type.d.ts +13 -0
  740. package/dist/core/hints/infer-member-type.js +131 -0
  741. package/dist/core/hints/infer-operator-type.d.ts +18 -0
  742. package/dist/core/hints/infer-operator-type.js +103 -0
  743. package/dist/core/hints/infer-this-type.d.ts +16 -0
  744. package/dist/core/hints/infer-this-type.js +21 -0
  745. package/dist/core/hints/non-nullish-kinds.d.ts +5 -0
  746. package/dist/core/hints/non-nullish-kinds.js +12 -0
  747. package/dist/core/hints/object-kinds.d.ts +6 -0
  748. package/dist/core/hints/object-kinds.js +7 -0
  749. package/dist/core/hints/remove-nullish.d.ts +9 -0
  750. package/dist/core/hints/remove-nullish.js +5 -0
  751. package/dist/core/hints/union-inferred-types.d.ts +10 -0
  752. package/dist/core/hints/union-inferred-types.js +11 -0
  753. package/dist/core/hints/well-known-calls.d.ts +9 -0
  754. package/dist/core/hints/well-known-calls.js +100 -0
  755. package/dist/core/identity/assert-unique-ids.d.ts +12 -0
  756. package/dist/core/identity/assert-unique-ids.js +21 -0
  757. package/dist/core/identity/assign-mutant-ids.d.ts +16 -0
  758. package/dist/core/identity/assign-mutant-ids.js +26 -0
  759. package/dist/core/identity/create-mutant-id.d.ts +42 -0
  760. package/dist/core/identity/create-mutant-id.js +22 -0
  761. package/dist/core/identity/get-scope-path.d.ts +15 -0
  762. package/dist/core/identity/get-scope-path.js +69 -0
  763. package/dist/core/identity/resolve-mutant-ids.d.ts +15 -0
  764. package/dist/core/identity/resolve-mutant-ids.js +15 -0
  765. package/dist/core/ignore/create-ignore-rules.d.ts +35 -0
  766. package/dist/core/ignore/create-ignore-rules.js +83 -0
  767. package/dist/core/ignore/find-ignore-rule.d.ts +31 -0
  768. package/dist/core/ignore/find-ignore-rule.js +18 -0
  769. package/dist/core/ignore/parse-ignore-directives.d.ts +28 -0
  770. package/dist/core/ignore/parse-ignore-directives.js +72 -0
  771. package/dist/core/index.d.ts +31 -0
  772. package/dist/core/index.js +4 -0
  773. package/dist/core/instrument/check-svelte-compile.d.ts +16 -0
  774. package/dist/core/instrument/check-svelte-compile.js +15 -0
  775. package/dist/core/instrument/check-vue-compile.d.ts +18 -0
  776. package/dist/core/instrument/check-vue-compile.js +28 -0
  777. package/dist/core/instrument/create-switched-files.d.ts +52 -0
  778. package/dist/core/instrument/create-switched-files.js +52 -0
  779. package/dist/core/instrument/find-statement-starts.d.ts +26 -0
  780. package/dist/core/instrument/find-statement-starts.js +46 -0
  781. package/dist/core/instrument/get-site-check.d.ts +9 -0
  782. package/dist/core/instrument/get-site-check.js +5 -0
  783. package/dist/core/instrument/get-template-site-check.d.ts +12 -0
  784. package/dist/core/instrument/get-template-site-check.js +5 -0
  785. package/dist/core/instrument/group-mutant-ranges.d.ts +14 -0
  786. package/dist/core/instrument/group-mutant-ranges.js +24 -0
  787. package/dist/core/instrument/instrument-file.d.ts +39 -0
  788. package/dist/core/instrument/instrument-file.js +21 -0
  789. package/dist/core/instrument/instrumenter-version.d.ts +6 -0
  790. package/dist/core/instrument/render-mutant-range.d.ts +22 -0
  791. package/dist/core/instrument/render-mutant-range.js +18 -0
  792. package/dist/core/instrument/resolve-switched-text.d.ts +13 -0
  793. package/dist/core/instrument/resolve-switched-text.js +5 -0
  794. package/dist/core/list-mutants.d.ts +54 -0
  795. package/dist/core/list-mutants.js +27 -0
  796. package/dist/core/mutators/arithmetic-operator.d.ts +14 -0
  797. package/dist/core/mutators/arithmetic-operator.js +94 -0
  798. package/dist/core/mutators/array-element.d.ts +13 -0
  799. package/dist/core/mutators/array-element.js +35 -0
  800. package/dist/core/mutators/assignment-operator.d.ts +26 -0
  801. package/dist/core/mutators/assignment-operator.js +188 -0
  802. package/dist/core/mutators/bitwise-operator.d.ts +11 -0
  803. package/dist/core/mutators/bitwise-operator.js +48 -0
  804. package/dist/core/mutators/boolean-literal.d.ts +14 -0
  805. package/dist/core/mutators/boolean-literal.js +21 -0
  806. package/dist/core/mutators/comparison-operator.d.ts +6 -0
  807. package/dist/core/mutators/comparison-operator.js +16 -0
  808. package/dist/core/mutators/condition.d.ts +5 -0
  809. package/dist/core/mutators/condition.js +44 -0
  810. package/dist/core/mutators/logical-operator.d.ts +22 -0
  811. package/dist/core/mutators/logical-operator.js +53 -0
  812. package/dist/core/mutators/method-call.d.ts +21 -0
  813. package/dist/core/mutators/method-call.js +265 -0
  814. package/dist/core/mutators/missing-await.d.ts +17 -0
  815. package/dist/core/mutators/missing-await.js +144 -0
  816. package/dist/core/mutators/number-literal.d.ts +23 -0
  817. package/dist/core/mutators/number-literal.js +94 -0
  818. package/dist/core/mutators/object-property.d.ts +9 -0
  819. package/dist/core/mutators/object-property.js +19 -0
  820. package/dist/core/mutators/optional-chaining.d.ts +19 -0
  821. package/dist/core/mutators/optional-chaining.js +95 -0
  822. package/dist/core/mutators/regex-flag.d.ts +20 -0
  823. package/dist/core/mutators/regex-flag.js +86 -0
  824. package/dist/core/mutators/regex-pattern.d.ts +23 -0
  825. package/dist/core/mutators/regex-pattern.js +54 -0
  826. package/dist/core/mutators/return-value.d.ts +16 -0
  827. package/dist/core/mutators/return-value.js +216 -0
  828. package/dist/core/mutators/shared/create-run-context.d.ts +42 -0
  829. package/dist/core/mutators/shared/create-run-context.js +9 -0
  830. package/dist/core/mutators/shared/create-static-run-context.d.ts +12 -0
  831. package/dist/core/mutators/shared/create-static-run-context.js +9 -0
  832. package/dist/core/mutators/shared/distinguishes-nullish-swap.d.ts +32 -0
  833. package/dist/core/mutators/shared/distinguishes-nullish-swap.js +11 -0
  834. package/dist/core/mutators/shared/empties-callback.d.ts +15 -0
  835. package/dist/core/mutators/shared/empties-callback.js +6 -0
  836. package/dist/core/mutators/shared/get-branch-copy-skip.d.ts +24 -0
  837. package/dist/core/mutators/shared/get-branch-copy-skip.js +42 -0
  838. package/dist/core/mutators/shared/get-branch-pair.d.ts +33 -0
  839. package/dist/core/mutators/shared/get-branch-pair.js +33 -0
  840. package/dist/core/mutators/shared/get-call-target.d.ts +13 -0
  841. package/dist/core/mutators/shared/get-call-target.js +5 -0
  842. package/dist/core/mutators/shared/get-call-top.d.ts +12 -0
  843. package/dist/core/mutators/shared/get-call-top.js +5 -0
  844. package/dist/core/mutators/shared/get-callback-owner.d.ts +19 -0
  845. package/dist/core/mutators/shared/get-callback-owner.js +15 -0
  846. package/dist/core/mutators/shared/get-callback-result.d.ts +36 -0
  847. package/dist/core/mutators/shared/get-callback-result.js +15 -0
  848. package/dist/core/mutators/shared/get-canonical-falsy.d.ts +11 -0
  849. package/dist/core/mutators/shared/get-canonical-falsy.js +10 -0
  850. package/dist/core/mutators/shared/get-comparison-plan.d.ts +78 -0
  851. package/dist/core/mutators/shared/get-comparison-plan.js +383 -0
  852. package/dist/core/mutators/shared/get-condition-constants.d.ts +40 -0
  853. package/dist/core/mutators/shared/get-condition-constants.js +150 -0
  854. package/dist/core/mutators/shared/get-default-option-skip.d.ts +25 -0
  855. package/dist/core/mutators/shared/get-default-option-skip.js +89 -0
  856. package/dist/core/mutators/shared/get-fixed-truth.d.ts +15 -0
  857. package/dist/core/mutators/shared/get-fixed-truth.js +23 -0
  858. package/dist/core/mutators/shared/get-function-returns.d.ts +10 -0
  859. package/dist/core/mutators/shared/get-function-returns.js +7 -0
  860. package/dist/core/mutators/shared/get-group-constant.d.ts +32 -0
  861. package/dist/core/mutators/shared/get-group-constant.js +44 -0
  862. package/dist/core/mutators/shared/get-innermost.d.ts +22 -0
  863. package/dist/core/mutators/shared/get-innermost.js +11 -0
  864. package/dist/core/mutators/shared/get-leave-now-value.d.ts +17 -0
  865. package/dist/core/mutators/shared/get-leave-now-value.js +22 -0
  866. package/dist/core/mutators/shared/get-literal-flip.d.ts +18 -0
  867. package/dist/core/mutators/shared/get-literal-flip.js +10 -0
  868. package/dist/core/mutators/shared/get-literal-mutator.d.ts +10 -0
  869. package/dist/core/mutators/shared/get-literal-mutator.js +13 -0
  870. package/dist/core/mutators/shared/get-literal-skip.d.ts +38 -0
  871. package/dist/core/mutators/shared/get-literal-skip.js +61 -0
  872. package/dist/core/mutators/shared/get-literal-truth.d.ts +12 -0
  873. package/dist/core/mutators/shared/get-literal-truth.js +7 -0
  874. package/dist/core/mutators/shared/get-literal-value.d.ts +16 -0
  875. package/dist/core/mutators/shared/get-literal-value.js +23 -0
  876. package/dist/core/mutators/shared/get-logical-drops.d.ts +45 -0
  877. package/dist/core/mutators/shared/get-logical-drops.js +123 -0
  878. package/dist/core/mutators/shared/get-loop-running-skip.d.ts +9 -0
  879. package/dist/core/mutators/shared/get-loop-running-skip.js +7 -0
  880. package/dist/core/mutators/shared/get-negation-top.d.ts +25 -0
  881. package/dist/core/mutators/shared/get-negation-top.js +10 -0
  882. package/dist/core/mutators/shared/get-next-literal-value.d.ts +9 -0
  883. package/dist/core/mutators/shared/get-next-literal-value.js +9 -0
  884. package/dist/core/mutators/shared/get-nullish-directions.d.ts +32 -0
  885. package/dist/core/mutators/shared/get-nullish-directions.js +31 -0
  886. package/dist/core/mutators/shared/get-nullish-plan.d.ts +60 -0
  887. package/dist/core/mutators/shared/get-nullish-plan.js +94 -0
  888. package/dist/core/mutators/shared/get-nullish-swap-skip.d.ts +16 -0
  889. package/dist/core/mutators/shared/get-nullish-swap-skip.js +12 -0
  890. package/dist/core/mutators/shared/get-number-text.d.ts +16 -0
  891. package/dist/core/mutators/shared/get-number-text.js +19 -0
  892. package/dist/core/mutators/shared/get-or-default-skip.d.ts +18 -0
  893. package/dist/core/mutators/shared/get-or-default-skip.js +29 -0
  894. package/dist/core/mutators/shared/get-owned-constants.d.ts +17 -0
  895. package/dist/core/mutators/shared/get-owned-constants.js +39 -0
  896. package/dist/core/mutators/shared/get-owner-constant.d.ts +20 -0
  897. package/dist/core/mutators/shared/get-owner-constant.js +34 -0
  898. package/dist/core/mutators/shared/get-proven-comparison-value.d.ts +13 -0
  899. package/dist/core/mutators/shared/get-proven-comparison-value.js +24 -0
  900. package/dist/core/mutators/shared/get-return-switch.d.ts +33 -0
  901. package/dist/core/mutators/shared/get-return-switch.js +16 -0
  902. package/dist/core/mutators/shared/get-return-value-kind.d.ts +40 -0
  903. package/dist/core/mutators/shared/get-return-value-kind.js +47 -0
  904. package/dist/core/mutators/shared/get-returned-value.d.ts +10 -0
  905. package/dist/core/mutators/shared/get-returned-value.js +7 -0
  906. package/dist/core/mutators/shared/get-running-value.d.ts +31 -0
  907. package/dist/core/mutators/shared/get-running-value.js +25 -0
  908. package/dist/core/mutators/shared/get-shifted-literal.d.ts +25 -0
  909. package/dist/core/mutators/shared/get-shifted-literal.js +19 -0
  910. package/dist/core/mutators/shared/get-toward-mutant.d.ts +18 -0
  911. package/dist/core/mutators/shared/get-toward-mutant.js +66 -0
  912. package/dist/core/mutators/shared/get-type-view.d.ts +29 -0
  913. package/dist/core/mutators/shared/get-type-view.js +31 -0
  914. package/dist/core/mutators/shared/get-typeof-name.d.ts +10 -0
  915. package/dist/core/mutators/shared/get-typeof-name.js +20 -0
  916. package/dist/core/mutators/shared/has-defined-falsy-value.d.ts +10 -0
  917. package/dist/core/mutators/shared/has-defined-falsy-value.js +10 -0
  918. package/dist/core/mutators/shared/has-other-exit.d.ts +19 -0
  919. package/dist/core/mutators/shared/has-other-exit.js +56 -0
  920. package/dist/core/mutators/shared/has-polar-mutant.d.ts +34 -0
  921. package/dist/core/mutators/shared/has-polar-mutant.js +33 -0
  922. package/dist/core/mutators/shared/is-always-nullish.d.ts +9 -0
  923. package/dist/core/mutators/shared/is-always-nullish.js +5 -0
  924. package/dist/core/mutators/shared/is-always-truthy.d.ts +9 -0
  925. package/dist/core/mutators/shared/is-always-truthy.js +10 -0
  926. package/dist/core/mutators/shared/is-and-or.d.ts +11 -0
  927. package/dist/core/mutators/shared/is-and-or.js +4 -0
  928. package/dist/core/mutators/shared/is-boolean-mode-operand.d.ts +12 -0
  929. package/dist/core/mutators/shared/is-boolean-mode-operand.js +8 -0
  930. package/dist/core/mutators/shared/is-boolean-mode.d.ts +13 -0
  931. package/dist/core/mutators/shared/is-boolean-mode.js +10 -0
  932. package/dist/core/mutators/shared/is-boolean-result-source.d.ts +13 -0
  933. package/dist/core/mutators/shared/is-boolean-result-source.js +15 -0
  934. package/dist/core/mutators/shared/is-boolean-result.d.ts +13 -0
  935. package/dist/core/mutators/shared/is-boolean-result.js +5 -0
  936. package/dist/core/mutators/shared/is-boolean-valued.d.ts +13 -0
  937. package/dist/core/mutators/shared/is-boolean-valued.js +19 -0
  938. package/dist/core/mutators/shared/is-canonical-falsy.d.ts +13 -0
  939. package/dist/core/mutators/shared/is-canonical-falsy.js +8 -0
  940. package/dist/core/mutators/shared/is-comparator-result.d.ts +13 -0
  941. package/dist/core/mutators/shared/is-comparator-result.js +8 -0
  942. package/dist/core/mutators/shared/is-comparison-operand.d.ts +13 -0
  943. package/dist/core/mutators/shared/is-comparison-operand.js +7 -0
  944. package/dist/core/mutators/shared/is-comparison.d.ts +13 -0
  945. package/dist/core/mutators/shared/is-comparison.js +5 -0
  946. package/dist/core/mutators/shared/is-constant-eligible-group.d.ts +16 -0
  947. package/dist/core/mutators/shared/is-constant-eligible-group.js +15 -0
  948. package/dist/core/mutators/shared/is-expected-boolean.d.ts +14 -0
  949. package/dist/core/mutators/shared/is-expected-boolean.js +30 -0
  950. package/dist/core/mutators/shared/is-falsy-constant.d.ts +13 -0
  951. package/dist/core/mutators/shared/is-falsy-constant.js +11 -0
  952. package/dist/core/mutators/shared/is-global-identifier.d.ts +14 -0
  953. package/dist/core/mutators/shared/is-global-identifier.js +4 -0
  954. package/dist/core/mutators/shared/is-lookup-position.d.ts +14 -0
  955. package/dist/core/mutators/shared/is-lookup-position.js +10 -0
  956. package/dist/core/mutators/shared/is-negation.d.ts +10 -0
  957. package/dist/core/mutators/shared/is-negation.js +4 -0
  958. package/dist/core/mutators/shared/is-no-op-callback-constant.d.ts +15 -0
  959. package/dist/core/mutators/shared/is-no-op-callback-constant.js +10 -0
  960. package/dist/core/mutators/shared/is-no-op-callback-literal.d.ts +15 -0
  961. package/dist/core/mutators/shared/is-no-op-callback-literal.js +14 -0
  962. package/dist/core/mutators/shared/is-non-nullable.d.ts +10 -0
  963. package/dist/core/mutators/shared/is-non-nullable.js +5 -0
  964. package/dist/core/mutators/shared/is-non-number-type.d.ts +9 -0
  965. package/dist/core/mutators/shared/is-non-number-type.js +5 -0
  966. package/dist/core/mutators/shared/is-nullish-constant.d.ts +12 -0
  967. package/dist/core/mutators/shared/is-nullish-constant.js +12 -0
  968. package/dist/core/mutators/shared/is-number-literal.d.ts +9 -0
  969. package/dist/core/mutators/shared/is-number-literal.js +6 -0
  970. package/dist/core/mutators/shared/is-number-type.d.ts +10 -0
  971. package/dist/core/mutators/shared/is-number-type.js +9 -0
  972. package/dist/core/mutators/shared/is-numeric-pair.d.ts +11 -0
  973. package/dist/core/mutators/shared/is-numeric-pair.js +6 -0
  974. package/dist/core/mutators/shared/is-plain-return-value.d.ts +14 -0
  975. package/dist/core/mutators/shared/is-plain-return-value.js +15 -0
  976. package/dist/core/mutators/shared/is-tail-position.d.ts +16 -0
  977. package/dist/core/mutators/shared/is-tail-position.js +28 -0
  978. package/dist/core/mutators/shared/is-timer-wait.d.ts +15 -0
  979. package/dist/core/mutators/shared/is-timer-wait.js +5 -0
  980. package/dist/core/mutators/shared/is-truth-flipping-literal.d.ts +11 -0
  981. package/dist/core/mutators/shared/is-truth-flipping-literal.js +12 -0
  982. package/dist/core/mutators/shared/is-typed-by-method-name.d.ts +16 -0
  983. package/dist/core/mutators/shared/is-typed-by-method-name.js +26 -0
  984. package/dist/core/mutators/shared/is-void-operand.d.ts +12 -0
  985. package/dist/core/mutators/shared/is-void-operand.js +6 -0
  986. package/dist/core/mutators/shared/is-whole-body.d.ts +12 -0
  987. package/dist/core/mutators/shared/is-whole-body.js +5 -0
  988. package/dist/core/mutators/shared/leave-now-skip.d.ts +6 -0
  989. package/dist/core/mutators/shared/leave-now-skip.js +5 -0
  990. package/dist/core/mutators/shared/may-be-boolean.d.ts +9 -0
  991. package/dist/core/mutators/shared/may-be-boolean.js +6 -0
  992. package/dist/core/mutators/shared/may-be-nullish.d.ts +9 -0
  993. package/dist/core/mutators/shared/may-be-nullish.js +5 -0
  994. package/dist/core/mutators/shared/no-op-callback-skip.d.ts +6 -0
  995. package/dist/core/mutators/shared/no-op-callback-skip.js +5 -0
  996. package/dist/core/mutators/statement-removal.d.ts +23 -0
  997. package/dist/core/mutators/statement-removal.js +186 -0
  998. package/dist/core/mutators/string-literal.d.ts +27 -0
  999. package/dist/core/mutators/string-literal.js +138 -0
  1000. package/dist/core/mutators/unary-operator.d.ts +14 -0
  1001. package/dist/core/mutators/unary-operator.js +51 -0
  1002. package/dist/core/mutators/update-operator.d.ts +13 -0
  1003. package/dist/core/mutators/update-operator.js +29 -0
  1004. package/dist/core/parser/collect-svelte-expressions.d.ts +19 -0
  1005. package/dist/core/parser/collect-svelte-expressions.js +104 -0
  1006. package/dist/core/parser/collect-vue-expressions.d.ts +22 -0
  1007. package/dist/core/parser/collect-vue-expressions.js +69 -0
  1008. package/dist/core/parser/create-comment-program.d.ts +19 -0
  1009. package/dist/core/parser/create-comment-program.js +25 -0
  1010. package/dist/core/parser/create-template-failure.d.ts +19 -0
  1011. package/dist/core/parser/create-template-failure.js +19 -0
  1012. package/dist/core/parser/find-vue-template.d.ts +10 -0
  1013. package/dist/core/parser/find-vue-template.js +9 -0
  1014. package/dist/core/parser/get-component-framework.d.ts +9 -0
  1015. package/dist/core/parser/get-component-framework.js +5 -0
  1016. package/dist/core/parser/get-parser-options.d.ts +9 -0
  1017. package/dist/core/parser/get-parser-options.js +42 -0
  1018. package/dist/core/parser/get-shared-scopes.d.ts +24 -0
  1019. package/dist/core/parser/get-shared-scopes.js +8 -0
  1020. package/dist/core/parser/get-source-blocks.d.ts +13 -0
  1021. package/dist/core/parser/get-source-blocks.js +22 -0
  1022. package/dist/core/parser/get-template-language.d.ts +11 -0
  1023. package/dist/core/parser/get-template-language.js +4 -0
  1024. package/dist/core/parser/is-declaration-file.d.ts +8 -0
  1025. package/dist/core/parser/is-declaration-file.js +5 -0
  1026. package/dist/core/parser/load-svelte-compiler.d.ts +9 -0
  1027. package/dist/core/parser/load-svelte-compiler.js +13 -0
  1028. package/dist/core/parser/load-vue-compiler.d.ts +10 -0
  1029. package/dist/core/parser/load-vue-compiler.js +13 -0
  1030. package/dist/core/parser/parse-component-template.d.ts +14 -0
  1031. package/dist/core/parser/parse-component-template.js +8 -0
  1032. package/dist/core/parser/parse-file.d.ts +34 -0
  1033. package/dist/core/parser/parse-file.js +72 -0
  1034. package/dist/core/parser/parse-svelte-template.d.ts +21 -0
  1035. package/dist/core/parser/parse-svelte-template.js +17 -0
  1036. package/dist/core/parser/parse-template-expressions.d.ts +60 -0
  1037. package/dist/core/parser/parse-template-expressions.js +147 -0
  1038. package/dist/core/parser/parse-vue-template.d.ts +20 -0
  1039. package/dist/core/parser/parse-vue-template.js +20 -0
  1040. package/dist/core/parser/read-template-program.d.ts +19 -0
  1041. package/dist/core/parser/read-template-program.js +28 -0
  1042. package/dist/core/parser/scan-script-blocks.d.ts +19 -0
  1043. package/dist/core/parser/scan-script-blocks.js +267 -0
  1044. package/dist/core/plugins/core-plugin.d.ts +6 -0
  1045. package/dist/core/plugins/core-plugin.js +51 -0
  1046. package/dist/core/plugins/create-mutator-registry.d.ts +17 -0
  1047. package/dist/core/plugins/create-mutator-registry.js +31 -0
  1048. package/dist/core/plugins/get-settings-problem.d.ts +9 -0
  1049. package/dist/core/plugins/get-settings-problem.js +29 -0
  1050. package/dist/core/plugins/is-kebab-case-name.d.ts +8 -0
  1051. package/dist/core/plugins/is-kebab-case-name.js +5 -0
  1052. package/dist/core/plugins/is-mutator-id.d.ts +9 -0
  1053. package/dist/core/plugins/is-mutator-id.js +6 -0
  1054. package/dist/core/plugins/is-mutator-setting.d.ts +9 -0
  1055. package/dist/core/plugins/is-mutator-setting.js +5 -0
  1056. package/dist/core/plugins/is-record.d.ts +8 -0
  1057. package/dist/core/plugins/is-record.js +4 -0
  1058. package/dist/core/plugins/resolve-preset.d.ts +31 -0
  1059. package/dist/core/plugins/resolve-preset.js +60 -0
  1060. package/dist/core/plugins/validate-plugin.d.ts +14 -0
  1061. package/dist/core/plugins/validate-plugin.js +46 -0
  1062. package/dist/core/presets/default-loggers.d.ts +6 -0
  1063. package/dist/core/presets/default-loggers.js +8 -0
  1064. package/dist/core/presets/recommended.d.ts +7 -0
  1065. package/dist/core/presets/recommended.js +32 -0
  1066. package/dist/core/presets/strict.d.ts +7 -0
  1067. package/dist/core/presets/strict.js +28 -0
  1068. package/dist/core/regex/can-match-empty.d.ts +14 -0
  1069. package/dist/core/regex/can-match-empty.js +18 -0
  1070. package/dist/core/regex/collect-pattern-changes.d.ts +24 -0
  1071. package/dist/core/regex/collect-pattern-changes.js +133 -0
  1072. package/dist/core/regex/compiles-regex.d.ts +9 -0
  1073. package/dist/core/regex/compiles-regex.js +8 -0
  1074. package/dist/core/regex/create-regex-replacement.d.ts +42 -0
  1075. package/dist/core/regex/create-regex-replacement.js +36 -0
  1076. package/dist/core/regex/create-regex-visitors.d.ts +15 -0
  1077. package/dist/core/regex/create-regex-visitors.js +19 -0
  1078. package/dist/core/regex/encode-pattern-text.d.ts +20 -0
  1079. package/dist/core/regex/encode-pattern-text.js +25 -0
  1080. package/dist/core/regex/find-open-repeat-scope.d.ts +26 -0
  1081. package/dist/core/regex/find-open-repeat-scope.js +21 -0
  1082. package/dist/core/regex/find-string-match-call.d.ts +15 -0
  1083. package/dist/core/regex/find-string-match-call.js +12 -0
  1084. package/dist/core/regex/get-regex-usage.d.ts +15 -0
  1085. package/dist/core/regex/get-regex-usage.js +8 -0
  1086. package/dist/core/regex/has-backreference.d.ts +10 -0
  1087. package/dist/core/regex/has-backreference.js +8 -0
  1088. package/dist/core/regex/has-capturing-group.d.ts +11 -0
  1089. package/dist/core/regex/has-capturing-group.js +8 -0
  1090. package/dist/core/regex/has-cased-character.d.ts +15 -0
  1091. package/dist/core/regex/has-cased-character.js +29 -0
  1092. package/dist/core/regex/has-named-group.d.ts +10 -0
  1093. package/dist/core/regex/has-named-group.js +8 -0
  1094. package/dist/core/regex/is-edge-wildcard.d.ts +20 -0
  1095. package/dist/core/regex/is-edge-wildcard.js +10 -0
  1096. package/dist/core/regex/is-mandatory-group.d.ts +16 -0
  1097. package/dist/core/regex/is-mandatory-group.js +10 -0
  1098. package/dist/core/regex/is-raw-template-text.d.ts +12 -0
  1099. package/dist/core/regex/is-raw-template-text.js +13 -0
  1100. package/dist/core/regex/is-valid-regex-literal.d.ts +14 -0
  1101. package/dist/core/regex/is-valid-regex-literal.js +20 -0
  1102. package/dist/core/regex/keeps-neighbor-tokens.d.ts +18 -0
  1103. package/dist/core/regex/keeps-neighbor-tokens.js +29 -0
  1104. package/dist/core/regex/load-regexpp.d.ts +15 -0
  1105. package/dist/core/regex/load-regexpp.js +6 -0
  1106. package/dist/core/regex/map-pattern-offsets.d.ts +11 -0
  1107. package/dist/core/regex/map-pattern-offsets.js +9 -0
  1108. package/dist/core/regex/map-string-units.d.ts +33 -0
  1109. package/dist/core/regex/map-string-units.js +82 -0
  1110. package/dist/core/regex/matches-any-character.d.ts +13 -0
  1111. package/dist/core/regex/matches-any-character.js +22 -0
  1112. package/dist/core/regex/parse-regex-pattern.d.ts +12 -0
  1113. package/dist/core/regex/parse-regex-pattern.js +17 -0
  1114. package/dist/core/regex/print-flags-edit.d.ts +33 -0
  1115. package/dist/core/regex/print-flags-edit.js +38 -0
  1116. package/dist/core/regex/print-pattern-edit.d.ts +34 -0
  1117. package/dist/core/regex/print-pattern-edit.js +42 -0
  1118. package/dist/core/regex/print-regex-literal.d.ts +9 -0
  1119. package/dist/core/regex/print-regex-literal.js +4 -0
  1120. package/dist/core/regex/read-regex-argument.d.ts +14 -0
  1121. package/dist/core/regex/read-regex-argument.js +56 -0
  1122. package/dist/core/regex/read-regex-call.d.ts +16 -0
  1123. package/dist/core/regex/read-regex-call.js +27 -0
  1124. package/dist/core/regex/read-regex-literal.d.ts +13 -0
  1125. package/dist/core/regex/read-regex-literal.js +19 -0
  1126. package/dist/core/regex/reads-regex-statics.d.ts +15 -0
  1127. package/dist/core/regex/reads-regex-statics.js +5 -0
  1128. package/dist/core/run/apply-batch-result.d.ts +40 -0
  1129. package/dist/core/run/apply-batch-result.js +119 -0
  1130. package/dist/core/run/apply-isolated-result.d.ts +34 -0
  1131. package/dist/core/run/apply-isolated-result.js +61 -0
  1132. package/dist/core/run/classify-mutants.d.ts +32 -0
  1133. package/dist/core/run/classify-mutants.js +34 -0
  1134. package/dist/core/run/classify-try.d.ts +20 -0
  1135. package/dist/core/run/classify-try.js +28 -0
  1136. package/dist/core/run/compare-dry-entries.d.ts +20 -0
  1137. package/dist/core/run/compare-dry-entries.js +5 -0
  1138. package/dist/core/run/compute-score.d.ts +11 -0
  1139. package/dist/core/run/compute-score.js +11 -0
  1140. package/dist/core/run/compute-static-cost.d.ts +11 -0
  1141. package/dist/core/run/compute-static-cost.js +16 -0
  1142. package/dist/core/run/count-run.d.ts +31 -0
  1143. package/dist/core/run/count-run.js +19 -0
  1144. package/dist/core/run/count-statuses.d.ts +11 -0
  1145. package/dist/core/run/count-statuses.js +13 -0
  1146. package/dist/core/run/count-verdicts.d.ts +16 -0
  1147. package/dist/core/run/count-verdicts.js +32 -0
  1148. package/dist/core/run/create-run-state.d.ts +67 -0
  1149. package/dist/core/run/create-run-state.js +61 -0
  1150. package/dist/core/run/create-work-directory.d.ts +21 -0
  1151. package/dist/core/run/create-work-directory.js +14 -0
  1152. package/dist/core/run/decide-evidence.d.ts +18 -0
  1153. package/dist/core/run/decide-evidence.js +13 -0
  1154. package/dist/core/run/decide-results.d.ts +20 -0
  1155. package/dist/core/run/decide-results.js +45 -0
  1156. package/dist/core/run/get-batch-unit-cost.d.ts +16 -0
  1157. package/dist/core/run/get-batch-unit-cost.js +11 -0
  1158. package/dist/core/run/get-display-path.d.ts +9 -0
  1159. package/dist/core/run/get-display-path.js +5 -0
  1160. package/dist/core/run/get-file-cost.d.ts +12 -0
  1161. package/dist/core/run/get-file-cost.js +6 -0
  1162. package/dist/core/run/get-final-status.d.ts +14 -0
  1163. package/dist/core/run/get-final-status.js +8 -0
  1164. package/dist/core/run/get-html-path.d.ts +19 -0
  1165. package/dist/core/run/get-html-path.js +6 -0
  1166. package/dist/core/run/get-package-directory.d.ts +9 -0
  1167. package/dist/core/run/get-package-directory.js +12 -0
  1168. package/dist/core/run/get-test-file-key.d.ts +15 -0
  1169. package/dist/core/run/get-test-file-key.js +4 -0
  1170. package/dist/core/run/get-try-limits.d.ts +18 -0
  1171. package/dist/core/run/get-try-limits.js +8 -0
  1172. package/dist/core/run/get-unit-evidence.d.ts +14 -0
  1173. package/dist/core/run/get-unit-evidence.js +4 -0
  1174. package/dist/core/run/index-module-tests.d.ts +15 -0
  1175. package/dist/core/run/index-module-tests.js +11 -0
  1176. package/dist/core/run/mark-outside-mutants.d.ts +14 -0
  1177. package/dist/core/run/mark-outside-mutants.js +28 -0
  1178. package/dist/core/run/number-chains.d.ts +8 -0
  1179. package/dist/core/run/number-chains.js +8 -0
  1180. package/dist/core/run/order-covering-tests.d.ts +15 -0
  1181. package/dist/core/run/order-covering-tests.js +15 -0
  1182. package/dist/core/run/plan-batch.d.ts +16 -0
  1183. package/dist/core/run/plan-batch.js +48 -0
  1184. package/dist/core/run/plan-isolated.d.ts +13 -0
  1185. package/dist/core/run/plan-isolated.js +22 -0
  1186. package/dist/core/run/preview-isolated-unit.d.ts +14 -0
  1187. package/dist/core/run/preview-isolated-unit.js +17 -0
  1188. package/dist/core/run/rank-module-files.d.ts +17 -0
  1189. package/dist/core/run/rank-module-files.js +24 -0
  1190. package/dist/core/run/rank-mutant-files.d.ts +21 -0
  1191. package/dist/core/run/rank-mutant-files.js +26 -0
  1192. package/dist/core/run/rank-test-file.d.ts +40 -0
  1193. package/dist/core/run/rank-test-file.js +34 -0
  1194. package/dist/core/run/read-dry-run.d.ts +20 -0
  1195. package/dist/core/run/read-dry-run.js +53 -0
  1196. package/dist/core/run/read-isolated-unit.d.ts +29 -0
  1197. package/dist/core/run/read-isolated-unit.js +70 -0
  1198. package/dist/core/run/read-test-imports.d.ts +12 -0
  1199. package/dist/core/run/read-test-imports.js +26 -0
  1200. package/dist/core/run/resolve-adapter.d.ts +34 -0
  1201. package/dist/core/run/resolve-adapter.js +22 -0
  1202. package/dist/core/run/route-isolated.d.ts +14 -0
  1203. package/dist/core/run/route-isolated.js +6 -0
  1204. package/dist/core/run/run-batch-phases.d.ts +16 -0
  1205. package/dist/core/run/run-batch-phases.js +84 -0
  1206. package/dist/core/run/run-dry-phase.d.ts +91 -0
  1207. package/dist/core/run/run-dry-phase.js +204 -0
  1208. package/dist/core/run/run-isolated-rounds.d.ts +26 -0
  1209. package/dist/core/run/run-isolated-rounds.js +57 -0
  1210. package/dist/core/run/select-run-files.d.ts +28 -0
  1211. package/dist/core/run/select-run-files.js +30 -0
  1212. package/dist/core/run/sort-test-files.d.ts +15 -0
  1213. package/dist/core/run/sort-test-files.js +6 -0
  1214. package/dist/core/run/sort-tests.d.ts +10 -0
  1215. package/dist/core/run/sort-tests.js +5 -0
  1216. package/dist/core/run/validate-adapter.d.ts +12 -0
  1217. package/dist/core/run/validate-adapter.js +11 -0
  1218. package/dist/core/run-mutants.d.ts +108 -0
  1219. package/dist/core/run-mutants.js +326 -0
  1220. package/dist/core/runtime/create-hit-limit-error.d.ts +9 -0
  1221. package/dist/core/runtime/create-hit-limit-error.js +7 -0
  1222. package/dist/core/runtime/index.d.ts +5 -0
  1223. package/dist/core/runtime/index.js +5 -0
  1224. package/dist/core/runtime/install-mutant-runtime.d.ts +13 -0
  1225. package/dist/core/runtime/install-mutant-runtime.js +27 -0
  1226. package/dist/core/runtime/is-hit-limit-error.d.ts +9 -0
  1227. package/dist/core/runtime/is-hit-limit-error.js +4 -0
  1228. package/dist/core/runtime/runtime-global.d.ts +5 -0
  1229. package/dist/core/runtime/runtime-global.js +2 -0
  1230. package/dist/core/runtime/runtime-symbol-key.d.ts +7 -0
  1231. package/dist/core/runtime/runtime-symbol-key.js +2 -0
  1232. package/dist/core/runtime/runtime-version.d.ts +6 -0
  1233. package/dist/core/skips/skip-rules.d.ts +388 -0
  1234. package/dist/core/skips/skip-rules.js +383 -0
  1235. package/dist/core/syntax/advances-loop.d.ts +19 -0
  1236. package/dist/core/syntax/advances-loop.js +62 -0
  1237. package/dist/core/syntax/create-syntax-helpers.d.ts +49 -0
  1238. package/dist/core/syntax/create-syntax-helpers.js +100 -0
  1239. package/dist/core/syntax/find-compiler-pins.d.ts +18 -0
  1240. package/dist/core/syntax/find-compiler-pins.js +79 -0
  1241. package/dist/core/syntax/find-logging-calls.d.ts +21 -0
  1242. package/dist/core/syntax/find-logging-calls.js +74 -0
  1243. package/dist/core/syntax/find-message-texts.d.ts +13 -0
  1244. package/dist/core/syntax/find-message-texts.js +10 -0
  1245. package/dist/core/syntax/get-binding-closure.d.ts +36 -0
  1246. package/dist/core/syntax/get-binding-closure.js +20 -0
  1247. package/dist/core/syntax/get-chain-end.d.ts +12 -0
  1248. package/dist/core/syntax/get-chain-end.js +6 -0
  1249. package/dist/core/syntax/get-chain-root.d.ts +16 -0
  1250. package/dist/core/syntax/get-chain-root.js +17 -0
  1251. package/dist/core/syntax/get-checked-name.d.ts +19 -0
  1252. package/dist/core/syntax/get-checked-name.js +9 -0
  1253. package/dist/core/syntax/get-closed-initializer.d.ts +20 -0
  1254. package/dist/core/syntax/get-closed-initializer.js +14 -0
  1255. package/dist/core/syntax/get-collection-class.d.ts +28 -0
  1256. package/dist/core/syntax/get-collection-class.js +34 -0
  1257. package/dist/core/syntax/get-count-map.d.ts +18 -0
  1258. package/dist/core/syntax/get-count-map.js +35 -0
  1259. package/dist/core/syntax/get-enclosing-function.d.ts +12 -0
  1260. package/dist/core/syntax/get-enclosing-function.js +8 -0
  1261. package/dist/core/syntax/get-exited-loops.d.ts +25 -0
  1262. package/dist/core/syntax/get-exited-loops.js +38 -0
  1263. package/dist/core/syntax/get-fixed-initializer.d.ts +16 -0
  1264. package/dist/core/syntax/get-fixed-initializer.js +7 -0
  1265. package/dist/core/syntax/get-guard-bound.d.ts +28 -0
  1266. package/dist/core/syntax/get-guard-bound.js +79 -0
  1267. package/dist/core/syntax/get-logical-chain.d.ts +13 -0
  1268. package/dist/core/syntax/get-logical-chain.js +10 -0
  1269. package/dist/core/syntax/get-lower-bound.d.ts +12 -0
  1270. package/dist/core/syntax/get-lower-bound.js +6 -0
  1271. package/dist/core/syntax/get-match-regex.d.ts +26 -0
  1272. package/dist/core/syntax/get-match-regex.js +48 -0
  1273. package/dist/core/syntax/get-match-result-use.d.ts +29 -0
  1274. package/dist/core/syntax/get-match-result-use.js +40 -0
  1275. package/dist/core/syntax/get-member-path.d.ts +14 -0
  1276. package/dist/core/syntax/get-member-path.js +30 -0
  1277. package/dist/core/syntax/get-member-root.d.ts +12 -0
  1278. package/dist/core/syntax/get-member-root.js +7 -0
  1279. package/dist/core/syntax/get-named-groups-fact.d.ts +34 -0
  1280. package/dist/core/syntax/get-named-groups-fact.js +44 -0
  1281. package/dist/core/syntax/get-never-falsy-fact.d.ts +23 -0
  1282. package/dist/core/syntax/get-never-falsy-fact.js +31 -0
  1283. package/dist/core/syntax/get-result-slot.d.ts +14 -0
  1284. package/dist/core/syntax/get-result-slot.js +7 -0
  1285. package/dist/core/syntax/get-root-name.d.ts +10 -0
  1286. package/dist/core/syntax/get-root-name.js +19 -0
  1287. package/dist/core/syntax/get-statement-list.d.ts +14 -0
  1288. package/dist/core/syntax/get-statement-list.js +13 -0
  1289. package/dist/core/syntax/get-truth-only-name.d.ts +16 -0
  1290. package/dist/core/syntax/get-truth-only-name.js +6 -0
  1291. package/dist/core/syntax/get-value-bound.d.ts +48 -0
  1292. package/dist/core/syntax/get-value-bound.js +192 -0
  1293. package/dist/core/syntax/is-boolean-context.d.ts +20 -0
  1294. package/dist/core/syntax/is-boolean-context.js +43 -0
  1295. package/dist/core/syntax/is-caught-in-loop.d.ts +15 -0
  1296. package/dist/core/syntax/is-caught-in-loop.js +19 -0
  1297. package/dist/core/syntax/is-comparison-operator.d.ts +12 -0
  1298. package/dist/core/syntax/is-comparison-operator.js +16 -0
  1299. package/dist/core/syntax/is-condition-test.d.ts +12 -0
  1300. package/dist/core/syntax/is-condition-test.js +7 -0
  1301. package/dist/core/syntax/is-console-path.d.ts +11 -0
  1302. package/dist/core/syntax/is-console-path.js +5 -0
  1303. package/dist/core/syntax/is-effect-free.d.ts +11 -0
  1304. package/dist/core/syntax/is-effect-free.js +20 -0
  1305. package/dist/core/syntax/is-error-message.d.ts +17 -0
  1306. package/dist/core/syntax/is-error-message.js +31 -0
  1307. package/dist/core/syntax/is-for-each-result.d.ts +18 -0
  1308. package/dist/core/syntax/is-for-each-result.js +12 -0
  1309. package/dist/core/syntax/is-format-free.d.ts +14 -0
  1310. package/dist/core/syntax/is-format-free.js +9 -0
  1311. package/dist/core/syntax/is-function.d.ts +10 -0
  1312. package/dist/core/syntax/is-function.js +9 -0
  1313. package/dist/core/syntax/is-global-name.d.ts +20 -0
  1314. package/dist/core/syntax/is-global-name.js +8 -0
  1315. package/dist/core/syntax/is-global-type-name.d.ts +17 -0
  1316. package/dist/core/syntax/is-global-type-name.js +13 -0
  1317. package/dist/core/syntax/is-inside-try-block.d.ts +14 -0
  1318. package/dist/core/syntax/is-inside-try-block.js +18 -0
  1319. package/dist/core/syntax/is-joined-array.d.ts +21 -0
  1320. package/dist/core/syntax/is-joined-array.js +27 -0
  1321. package/dist/core/syntax/is-log-message.d.ts +18 -0
  1322. package/dist/core/syntax/is-log-message.js +7 -0
  1323. package/dist/core/syntax/is-logger-factory-call.d.ts +13 -0
  1324. package/dist/core/syntax/is-logger-factory-call.js +21 -0
  1325. package/dist/core/syntax/is-logger-label.d.ts +13 -0
  1326. package/dist/core/syntax/is-logger-label.js +15 -0
  1327. package/dist/core/syntax/is-logger-name.d.ts +11 -0
  1328. package/dist/core/syntax/is-logger-name.js +8 -0
  1329. package/dist/core/syntax/is-logging-call.d.ts +15 -0
  1330. package/dist/core/syntax/is-logging-call.js +31 -0
  1331. package/dist/core/syntax/is-logical-operand.d.ts +12 -0
  1332. package/dist/core/syntax/is-logical-operand.js +5 -0
  1333. package/dist/core/syntax/is-loop-advance-value.d.ts +20 -0
  1334. package/dist/core/syntax/is-loop-advance-value.js +16 -0
  1335. package/dist/core/syntax/is-loop-test.d.ts +12 -0
  1336. package/dist/core/syntax/is-loop-test.js +7 -0
  1337. package/dist/core/syntax/is-module-call.d.ts +12 -0
  1338. package/dist/core/syntax/is-module-call.js +12 -0
  1339. package/dist/core/syntax/is-non-thenable.d.ts +17 -0
  1340. package/dist/core/syntax/is-non-thenable.js +18 -0
  1341. package/dist/core/syntax/is-plain-message.d.ts +13 -0
  1342. package/dist/core/syntax/is-plain-message.js +11 -0
  1343. package/dist/core/syntax/is-presence-test.d.ts +16 -0
  1344. package/dist/core/syntax/is-presence-test.js +19 -0
  1345. package/dist/core/syntax/is-property-key.d.ts +13 -0
  1346. package/dist/core/syntax/is-property-key.js +12 -0
  1347. package/dist/core/syntax/is-read-chain.d.ts +12 -0
  1348. package/dist/core/syntax/is-read-chain.js +13 -0
  1349. package/dist/core/syntax/is-regex-only-tested.d.ts +23 -0
  1350. package/dist/core/syntax/is-regex-only-tested.js +18 -0
  1351. package/dist/core/syntax/is-result-unused.d.ts +19 -0
  1352. package/dist/core/syntax/is-result-unused.js +13 -0
  1353. package/dist/core/syntax/is-rune-call.d.ts +15 -0
  1354. package/dist/core/syntax/is-rune-call.js +34 -0
  1355. package/dist/core/syntax/is-statement.d.ts +9 -0
  1356. package/dist/core/syntax/is-statement.js +5 -0
  1357. package/dist/core/syntax/is-tested-loop.d.ts +9 -0
  1358. package/dist/core/syntax/is-tested-loop.js +9 -0
  1359. package/dist/core/syntax/is-timer-delay.d.ts +23 -0
  1360. package/dist/core/syntax/is-timer-delay.js +39 -0
  1361. package/dist/core/syntax/is-truth-test.d.ts +17 -0
  1362. package/dist/core/syntax/is-truth-test.js +17 -0
  1363. package/dist/core/syntax/is-value-position.d.ts +18 -0
  1364. package/dist/core/syntax/is-value-position.js +83 -0
  1365. package/dist/core/syntax/is-vue-macro-call.d.ts +11 -0
  1366. package/dist/core/syntax/is-vue-macro-call.js +13 -0
  1367. package/dist/core/syntax/is-write-target.d.ts +11 -0
  1368. package/dist/core/syntax/is-write-target.js +15 -0
  1369. package/dist/core/syntax/is-written-member.d.ts +13 -0
  1370. package/dist/core/syntax/is-written-member.js +8 -0
  1371. package/dist/core/syntax/never-empty-methods.d.ts +9 -0
  1372. package/dist/core/syntax/never-empty-methods.js +8 -0
  1373. package/dist/core/syntax/passes-truthiness.d.ts +13 -0
  1374. package/dist/core/syntax/passes-truthiness.js +10 -0
  1375. package/dist/core/syntax/read-import.d.ts +13 -0
  1376. package/dist/core/syntax/read-import.js +19 -0
  1377. package/dist/core/syntax/read-literal-type.d.ts +15 -0
  1378. package/dist/core/syntax/read-literal-type.js +27 -0
  1379. package/dist/core/syntax/read-number-literal.d.ts +9 -0
  1380. package/dist/core/syntax/read-number-literal.js +6 -0
  1381. package/dist/core/syntax/read-timer-call.d.ts +27 -0
  1382. package/dist/core/syntax/read-timer-call.js +70 -0
  1383. package/dist/core/syntax/resolve-closed-expression.d.ts +18 -0
  1384. package/dist/core/syntax/resolve-closed-expression.js +9 -0
  1385. package/dist/core/syntax/solve-value-bounds.d.ts +41 -0
  1386. package/dist/core/syntax/solve-value-bounds.js +168 -0
  1387. package/dist/core/text/blank-outside.d.ts +12 -0
  1388. package/dist/core/text/blank-outside.js +10 -0
  1389. package/dist/core/text/create-source-code.d.ts +16 -0
  1390. package/dist/core/text/create-source-code.js +33 -0
  1391. package/dist/core/text/edit-text.d.ts +17 -0
  1392. package/dist/core/text/edit-text.js +12 -0
  1393. package/dist/core/text/find-closest-name.d.ts +12 -0
  1394. package/dist/core/text/find-closest-name.js +21 -0
  1395. package/dist/core/text/find-last-start.d.ts +11 -0
  1396. package/dist/core/text/find-last-start.js +9 -0
  1397. package/dist/core/text/find-token-start.d.ts +14 -0
  1398. package/dist/core/text/find-token-start.js +12 -0
  1399. package/dist/core/text/get-line-starts.d.ts +8 -0
  1400. package/dist/core/text/get-line-starts.js +7 -0
  1401. package/dist/core/text/get-operator-range.d.ts +15 -0
  1402. package/dist/core/text/get-operator-range.js +21 -0
  1403. package/dist/core/text/get-source-position.d.ts +11 -0
  1404. package/dist/core/text/get-source-position.js +9 -0
  1405. package/dist/core/text/needs-grouping.d.ts +30 -0
  1406. package/dist/core/text/needs-grouping.js +54 -0
  1407. package/dist/core/text/needs-separator.d.ts +11 -0
  1408. package/dist/core/text/needs-separator.js +15 -0
  1409. package/dist/core/text/parse-expression.d.ts +16 -0
  1410. package/dist/core/text/parse-expression.js +23 -0
  1411. package/dist/core/text/pluralize.d.ts +8 -0
  1412. package/dist/core/text/pluralize.js +4 -0
  1413. package/dist/core/text/remove-list-element.d.ts +16 -0
  1414. package/dist/core/text/remove-list-element.js +47 -0
  1415. package/dist/core/text/replace-operator.d.ts +16 -0
  1416. package/dist/core/text/replace-operator.js +82 -0
  1417. package/dist/core/text/swap-string-quotes.d.ts +13 -0
  1418. package/dist/core/text/swap-string-quotes.js +24 -0
  1419. package/dist/core/tree/get-callee-name.d.ts +10 -0
  1420. package/dist/core/tree/get-callee-name.js +6 -0
  1421. package/dist/core/tree/get-context-slot.d.ts +14 -0
  1422. package/dist/core/tree/get-context-slot.js +8 -0
  1423. package/dist/core/tree/get-raw-slot.d.ts +13 -0
  1424. package/dist/core/tree/get-raw-slot.js +6 -0
  1425. package/dist/core/tree/get-slot.d.ts +14 -0
  1426. package/dist/core/tree/get-slot.js +7 -0
  1427. package/dist/core/tree/index-tree.d.ts +17 -0
  1428. package/dist/core/tree/index-tree.js +56 -0
  1429. package/dist/core/tree/is-expression-wrapper.d.ts +15 -0
  1430. package/dist/core/tree/is-expression-wrapper.js +12 -0
  1431. package/dist/core/tree/is-name-position.d.ts +10 -0
  1432. package/dist/core/tree/is-name-position.js +17 -0
  1433. package/dist/core/tree/unwrap-expression.d.ts +9 -0
  1434. package/dist/core/tree/unwrap-expression.js +7 -0
  1435. package/dist/core/tree/unwrap-parentheses.d.ts +9 -0
  1436. package/dist/core/tree/unwrap-parentheses.js +6 -0
  1437. package/dist/core/tree/walk-tree.d.ts +12 -0
  1438. package/dist/core/tree/walk-tree.js +44 -0
  1439. package/dist/docs/public/fonts/jetbrains-mono.js +2 -0
  1440. package/dist/docs/public/fonts/sora-bold.js +2 -0
  1441. package/dist/docs/public/fonts/sora-regular.js +2 -0
  1442. package/dist/docs/styles/base.js +2 -0
  1443. package/dist/docs/styles/colors.js +2 -0
  1444. package/dist/docs/styles/fonts.js +2 -0
  1445. package/dist/docs/styles/sizes.js +2 -0
  1446. package/dist/docs/styles/spaces.js +2 -0
  1447. package/dist/package.js +2 -0
  1448. package/dist/types/adapter/adapter-context.d.ts +51 -0
  1449. package/dist/types/adapter/adapter-session.d.ts +71 -0
  1450. package/dist/types/adapter/batch-plan.d.ts +63 -0
  1451. package/dist/types/adapter/batch-result.d.ts +80 -0
  1452. package/dist/types/adapter/built-in-adapters.d.ts +31 -0
  1453. package/dist/types/adapter/cache-inputs.d.ts +29 -0
  1454. package/dist/types/adapter/dry-file.d.ts +83 -0
  1455. package/dist/types/adapter/dry-run-request.d.ts +40 -0
  1456. package/dist/types/adapter/dry-run-result.d.ts +53 -0
  1457. package/dist/types/adapter/dry-test.d.ts +35 -0
  1458. package/dist/types/adapter/isolated-plan.d.ts +42 -0
  1459. package/dist/types/adapter/isolated-result.d.ts +84 -0
  1460. package/dist/types/adapter/mutant-runtime.d.ts +40 -0
  1461. package/dist/types/adapter/run-inputs.d.ts +20 -0
  1462. package/dist/types/adapter/switched-file.d.ts +20 -0
  1463. package/dist/types/adapter/test-adapter.d.ts +34 -0
  1464. package/dist/types/adapter/try-facts.d.ts +63 -0
  1465. package/dist/types/adapter/try-limits.d.ts +14 -0
  1466. package/dist/types/adapter/unit-end.d.ts +25 -0
  1467. package/dist/types/cache/cache-entry.d.ts +66 -0
  1468. package/dist/types/cache/cached-inputs.d.ts +18 -0
  1469. package/dist/types/cache/run-cache-file.d.ts +23 -0
  1470. package/dist/types/cache/run-cache.d.ts +130 -0
  1471. package/dist/types/cache/stored-cache.d.ts +16 -0
  1472. package/dist/types/cli/line-part.d.ts +22 -0
  1473. package/dist/types/cli/text-style.d.ts +21 -0
  1474. package/dist/types/config/config.d.ts +36 -0
  1475. package/dist/types/config/plugin.d.ts +17 -0
  1476. package/dist/types/config/preset-settings.d.ts +43 -0
  1477. package/dist/types/config/preset.d.ts +28 -0
  1478. package/dist/types/config/run-config.d.ts +72 -0
  1479. package/dist/types/config/run-settings.d.ts +38 -0
  1480. package/dist/types/git/changed-lines.d.ts +15 -0
  1481. package/dist/types/git/since-revision.d.ts +15 -0
  1482. package/dist/types/hints/inferred-type.d.ts +19 -0
  1483. package/dist/types/hints/type-hint-provider.d.ts +18 -0
  1484. package/dist/types/hints/type-hints.d.ts +34 -0
  1485. package/dist/types/hints/type-inference.d.ts +28 -0
  1486. package/dist/types/hints/value-kind.d.ts +16 -0
  1487. package/dist/types/html/file-view.d.ts +39 -0
  1488. package/dist/types/html/indexed-file.d.ts +73 -0
  1489. package/dist/types/html/indexed-mutant.d.ts +30 -0
  1490. package/dist/types/html/indexed-mutator.d.ts +21 -0
  1491. package/dist/types/html/indexed-skip.d.ts +31 -0
  1492. package/dist/types/html/inline-script.d.ts +9 -0
  1493. package/dist/types/html/mutants-filter.d.ts +26 -0
  1494. package/dist/types/html/report-index.d.ts +49 -0
  1495. package/dist/types/html/report-route.d.ts +48 -0
  1496. package/dist/types/html/shown-change.d.ts +26 -0
  1497. package/dist/types/html/tests-filter.d.ts +20 -0
  1498. package/dist/types/mutant/diagnostic.d.ts +64 -0
  1499. package/dist/types/mutant/file-mutants.d.ts +54 -0
  1500. package/dist/types/mutant/ignore-directive.d.ts +46 -0
  1501. package/dist/types/mutant/ignore-rule.d.ts +46 -0
  1502. package/dist/types/mutant/ignore-source.d.ts +20 -0
  1503. package/dist/types/mutant/mutant-candidate.d.ts +61 -0
  1504. package/dist/types/mutant/mutant-range.d.ts +31 -0
  1505. package/dist/types/mutant/mutant-status.d.ts +5 -0
  1506. package/dist/types/mutant/mutant.d.ts +75 -0
  1507. package/dist/types/mutant/skip-category.d.ts +16 -0
  1508. package/dist/types/mutant/skip-justifier.d.ts +21 -0
  1509. package/dist/types/mutant/skip-note.d.ts +30 -0
  1510. package/dist/types/mutant/skip-rule-id.d.ts +6 -0
  1511. package/dist/types/mutant/skip-rule.d.ts +17 -0
  1512. package/dist/types/mutant/skipped-candidate.d.ts +65 -0
  1513. package/dist/types/mutant/skipped-mutant.d.ts +71 -0
  1514. package/dist/types/mutator/active-mutator.d.ts +10 -0
  1515. package/dist/types/mutator/mutator-context.d.ts +58 -0
  1516. package/dist/types/mutator/mutator-meta.d.ts +24 -0
  1517. package/dist/types/mutator/mutator-registry.d.ts +16 -0
  1518. package/dist/types/mutator/mutator-setting.d.ts +5 -0
  1519. package/dist/types/mutator/mutator-visitors.d.ts +24 -0
  1520. package/dist/types/mutator/mutator.d.ts +19 -0
  1521. package/dist/types/mutator/regex-flag-options.d.ts +10 -0
  1522. package/dist/types/mutator/regex-pattern-options.d.ts +28 -0
  1523. package/dist/types/mutator/registered-mutator.d.ts +21 -0
  1524. package/dist/types/mutator/replacement.d.ts +42 -0
  1525. package/dist/types/regex/regex-call.d.ts +28 -0
  1526. package/dist/types/regex/regex-change.d.ts +26 -0
  1527. package/dist/types/regex/regex-source.d.ts +67 -0
  1528. package/dist/types/report/file-score.d.ts +24 -0
  1529. package/dist/types/report/html-report.d.ts +381 -0
  1530. package/dist/types/report/list-report-diff.d.ts +28 -0
  1531. package/dist/types/report/list-report-file.d.ts +20 -0
  1532. package/dist/types/report/list-report-focus.d.ts +36 -0
  1533. package/dist/types/report/list-report-justifier.d.ts +26 -0
  1534. package/dist/types/report/list-report-mutant.d.ts +97 -0
  1535. package/dist/types/report/list-report-mutator.d.ts +19 -0
  1536. package/dist/types/report/list-report-skipped.d.ts +81 -0
  1537. package/dist/types/report/list-report-summary.d.ts +46 -0
  1538. package/dist/types/report/list-report.d.ts +66 -0
  1539. package/dist/types/report/list-result.d.ts +39 -0
  1540. package/dist/types/report/run-report.d.ts +336 -0
  1541. package/dist/types/report/slim-list-report.d.ts +110 -0
  1542. package/dist/types/report/slim-run-report.d.ts +196 -0
  1543. package/dist/types/run/dry-analysis.d.ts +68 -0
  1544. package/dist/types/run/isolated-evidence.d.ts +9 -0
  1545. package/dist/types/run/isolated-reason.d.ts +25 -0
  1546. package/dist/types/run/live-verdicts.d.ts +42 -0
  1547. package/dist/types/run/module-cost.d.ts +25 -0
  1548. package/dist/types/run/mutant-class.d.ts +28 -0
  1549. package/dist/types/run/mutant-result.d.ts +82 -0
  1550. package/dist/types/run/mutant-state.d.ts +131 -0
  1551. package/dist/types/run/run-durations.d.ts +30 -0
  1552. package/dist/types/run/run-event.d.ts +227 -0
  1553. package/dist/types/run/run-kind.d.ts +10 -0
  1554. package/dist/types/run/run-mode.d.ts +13 -0
  1555. package/dist/types/run/run-result.d.ts +117 -0
  1556. package/dist/types/run/run-score.d.ts +15 -0
  1557. package/dist/types/run/run-state.d.ts +133 -0
  1558. package/dist/types/run/run-status.d.ts +14 -0
  1559. package/dist/types/run/status-counts.d.ts +5 -0
  1560. package/dist/types/run/try-cause.d.ts +26 -0
  1561. package/dist/types/run/try-verdict.d.ts +20 -0
  1562. package/dist/types/source/component-framework.d.ts +4 -0
  1563. package/dist/types/source/parse-settings.d.ts +23 -0
  1564. package/dist/types/source/parsed-file.d.ts +49 -0
  1565. package/dist/types/source/script-block.d.ts +26 -0
  1566. package/dist/types/source/source-block.d.ts +12 -0
  1567. package/dist/types/source/source-code.d.ts +101 -0
  1568. package/dist/types/source/source-position.d.ts +14 -0
  1569. package/dist/types/source/source-range.d.ts +14 -0
  1570. package/dist/types/source/svelte-compiler.d.ts +7 -0
  1571. package/dist/types/source/template-compilers.d.ts +17 -0
  1572. package/dist/types/source/template-expression.d.ts +27 -0
  1573. package/dist/types/source/template-outcome.d.ts +46 -0
  1574. package/dist/types/source/template-parts.d.ts +17 -0
  1575. package/dist/types/source/template-source.d.ts +20 -0
  1576. package/dist/types/source/text-edit.d.ts +11 -0
  1577. package/dist/types/source/vue-compiler.d.ts +7 -0
  1578. package/dist/types/syntax/analyzed-program.d.ts +24 -0
  1579. package/dist/types/syntax/binding-closure.d.ts +11 -0
  1580. package/dist/types/syntax/binding.d.ts +53 -0
  1581. package/dist/types/syntax/bound-evaluation.d.ts +33 -0
  1582. package/dist/types/syntax/compiler-pin.d.ts +18 -0
  1583. package/dist/types/syntax/count-map.d.ts +18 -0
  1584. package/dist/types/syntax/imported-name.d.ts +15 -0
  1585. package/dist/types/syntax/list-expression.d.ts +6 -0
  1586. package/dist/types/syntax/literal-change.d.ts +27 -0
  1587. package/dist/types/syntax/logging-call.d.ts +23 -0
  1588. package/dist/types/syntax/match-regex.d.ts +18 -0
  1589. package/dist/types/syntax/node-slot.d.ts +20 -0
  1590. package/dist/types/syntax/operator-expression.d.ts +11 -0
  1591. package/dist/types/syntax/read-check.d.ts +7 -0
  1592. package/dist/types/syntax/scope-analysis.d.ts +42 -0
  1593. package/dist/types/syntax/syntax-helpers.d.ts +292 -0
  1594. package/dist/types/syntax/timer-call.d.ts +18 -0
  1595. package/dist/types/syntax/timer-kind.d.ts +15 -0
  1596. package/dist/types/syntax/tree-index.d.ts +18 -0
  1597. package/dist/types/syntax/value-bound.d.ts +37 -0
  1598. package/dist/types/syntax/value-bounds.d.ts +47 -0
  1599. package/license.md +20 -0
  1600. package/package.json +83 -6
  1601. package/readme.md +132 -0
  1602. package/skills/mootant/SKILL.md +232 -0
  1603. package/skills/mootant/references/mutators.md +43 -0
  1604. package/skills/readme.md +11 -0
  1605. package/README.md +0 -45
@@ -0,0 +1,449 @@
1
+ import { SerializedConfig, RunnerTestSuite, RunnerTestCase, RunnerTestFile, RunnerTask, TestRunner } from 'vitest';
2
+ /**
3
+ * Vitest runner of mootant's workers. In a dry run it runs every test once, or
4
+ * twice in a row with `repeat`, and records which mutant sites each try
5
+ * evaluated. In a batch run it claims one unit of the test file and tries the
6
+ * planned mutants test by test, switching the active mutant between tries, with
7
+ * a control try without a mutant before and after every mutant try. In an
8
+ * isolated run it claims one unit and keeps its mutant active from the start of
9
+ * loading through the whole file, its teardown included; once a try fails after
10
+ * the mutant was reached, which kills the mutant whatever runs next, the tests
11
+ * and suites that have not started are skipped, while hooks of started suites,
12
+ * the cleanup of fixtures and the teardown still run. A unit ends only after
13
+ * the worker's teardown: Vitest cleans up the worker-scoped fixtures, then
14
+ * tears the test environment down; errors of both count as a failed suite hook,
15
+ * and the heartbeat covers both, so a hang there stops the worker. What the
16
+ * code reads is recorded until the unit ends, so files and environment
17
+ * variables read in that teardown are inputs of the unit like those its tests
18
+ * read; a teardown step that runs after the unit ended, as the test
19
+ * environment's when the worker's teardown cannot be watched, counts for
20
+ * neither. A test environment other than Vitest's own loads and sets up before
21
+ * the runner exists, out of sight, so its units report no dependencies and are
22
+ * never cached. A unit waits until the worker of the unit before it of the same
23
+ * test file is gone, so a test file never runs twice at once.
24
+ *
25
+ * Tests the user marked concurrent stay concurrent in isolated units and in a
26
+ * dry run that tries each test once, as in a plain run; a batch run and a dry
27
+ * run that repeats tests run them one at a time, as one active mutant must not
28
+ * overlap another and batch plans follow the dry run's order. Where tries
29
+ * overlap, the runner keeps them per test: sites evaluated, unhandled errors
30
+ * and, in an isolated unit, whether the mutant was reached count for every try
31
+ * that runs at that moment.
32
+ *
33
+ * A try is one run of the test as a plain Vitest run makes it: the runner
34
+ * multiplies the test's own `repeats` and keeps its `retry`, so a try is every
35
+ * repetition of the test, and a repetition passes when an attempt passes. Each
36
+ * attempt starts in an `aroundEach` hook the runner puts outside every other
37
+ * hook, and a try's facts are read once Vitest finished it: when the next try
38
+ * of the test starts, when the test ends, or, after a skip, at the next test or
39
+ * suite. So errors of `aroundEach` teardown and fixture cleanup count, and the
40
+ * try's mutant stays active until then. The active mutant is a global of the
41
+ * worker process that the runner switches between tries (an environment
42
+ * variable cannot change inside a running worker); switched code reads it on
43
+ * every evaluation. Facts go to out files in the work directory, one line per
44
+ * test; heartbeats let the main process stop a worker that hangs, dry runs
45
+ * included.
46
+ */
47
+ export default class MootantRunner extends TestRunner {
48
+ /**
49
+ * Coverage the runtime writes to while several tries of a dry run overlap:
50
+ * each site counts for every one of them.
51
+ */
52
+ private readonly coverSink;
53
+ /**
54
+ * Mutant runtime the switched code calls.
55
+ */
56
+ private readonly runtime;
57
+ /**
58
+ * Tests that started and whose tries are not yet written; several at once
59
+ * when the user's tests run concurrently.
60
+ */
61
+ private readonly records;
62
+ /**
63
+ * Milliseconds the hooks around each test may take by Vitest's own hook
64
+ * timeouts, by test id; filled in a dry run.
65
+ */
66
+ private readonly hookBudgets;
67
+ /**
68
+ * Planned tests of the batch unit, by id.
69
+ */
70
+ private readonly planned;
71
+ /**
72
+ * Mutant sites evaluated outside tries in a dry run.
73
+ */
74
+ private readonly loadCovers;
75
+ /**
76
+ * Site evaluations while tries of a dry run ran, and the count when the
77
+ * current stretch of tries began.
78
+ */
79
+ private readonly inside;
80
+ /**
81
+ * Options the main process provided for this run.
82
+ */
83
+ private readonly options;
84
+ /**
85
+ * What the test file depended on (`listDependencies`) when its file suite
86
+ * ended, its snapshot files included, read before Vitest drops its snapshot
87
+ * state, or null before.
88
+ */
89
+ private dependencies;
90
+ /**
91
+ * Descriptor of the heartbeat file, or null until the first beat.
92
+ */
93
+ private beatDescriptor;
94
+ /**
95
+ * What the test code reads while the unit runs, its teardown included
96
+ * (`trackInputs`); null while nothing records.
97
+ */
98
+ private inputs;
99
+ /**
100
+ * Mutants a try of this unit already failed with; they are not tried again.
101
+ */
102
+ private readonly killed;
103
+ /**
104
+ * Ids of the tests that run, or null to run every test.
105
+ */
106
+ private runnable;
107
+ /**
108
+ * Unhandled errors outside tries.
109
+ */
110
+ private readonly loadStrays;
111
+ /**
112
+ * Coverage sets of the tries that run now, in a dry run.
113
+ */
114
+ private activeCovers;
115
+ /**
116
+ * Id of the mutant active in the last try, or null.
117
+ */
118
+ private lastMutant;
119
+ /**
120
+ * Message of the first failed suite hook or of the failed cleanup of the
121
+ * worker-scoped fixtures, or null.
122
+ */
123
+ private hookError;
124
+ /**
125
+ * Message of the load failure, or null.
126
+ */
127
+ private loadError;
128
+ /**
129
+ * Unit of a batch run, or null.
130
+ */
131
+ private batch;
132
+ /**
133
+ * Id of the test of the last try, or null before the first one.
134
+ */
135
+ private lastTest;
136
+ /**
137
+ * Whether suites and tests run one at a time even where the user marked them
138
+ * concurrent: in a batch run and in a dry run that tries each test twice.
139
+ */
140
+ private readonly sequential;
141
+ /**
142
+ * Descriptor of the out file of this unit, open for appending, or null when
143
+ * the worker claimed no unit.
144
+ */
145
+ private out;
146
+ /**
147
+ * Heartbeat file of this worker.
148
+ */
149
+ private readonly beatFile;
150
+ /**
151
+ * Whether the unit ends in the worker's teardown, after Vitest cleaned up the
152
+ * worker-scoped fixtures; false when Vitest offers no teardown hook.
153
+ */
154
+ private endsInTeardown;
155
+ /**
156
+ * Whether the unit ends only once the worker's teardown finished, the test
157
+ * environment's teardown included; false when the worker's teardown cannot be
158
+ * watched, so the unit ends after the cleanup of the worker-scoped fixtures.
159
+ */
160
+ private endsOnClose;
161
+ /**
162
+ * Whether every test file ran and only the teardown is left.
163
+ */
164
+ private filesEnded;
165
+ /**
166
+ * Whether a collected suite or test was marked concurrent.
167
+ */
168
+ private concurrent;
169
+ /**
170
+ * Whether a try ran out of time, so the rest of the unit is skipped.
171
+ */
172
+ private abandoned;
173
+ /**
174
+ * Milliseconds the work outside tries of a dry run may take after loading:
175
+ * the file budget plus the time Vitest allows the file's suite hooks.
176
+ */
177
+ private outsideBudget;
178
+ /**
179
+ * Milliseconds from the start of loading to the end of collection.
180
+ */
181
+ private loadDuration;
182
+ /**
183
+ * Site evaluations outside tries of a batch run, which resets the counter at
184
+ * every try.
185
+ */
186
+ private outsideHits;
187
+ /**
188
+ * Whether a try of an isolated unit failed after the mutant was reached, so
189
+ * the tests and suites that have not started yet are skipped.
190
+ */
191
+ private bailed;
192
+ /**
193
+ * Length of the text in the heartbeat file.
194
+ */
195
+ private beatLength;
196
+ /**
197
+ * Index of the unit in the run's plan.
198
+ */
199
+ private unitIndex;
200
+ /**
201
+ * Name of the out file without its extension, which also names the file that
202
+ * marks the unit as finished; empty when the worker claimed no unit.
203
+ */
204
+ private outName;
205
+ /**
206
+ * Number of the last heartbeat.
207
+ */
208
+ private sequence;
209
+ /**
210
+ * Start of loading on the captured clock.
211
+ */
212
+ private started;
213
+ /**
214
+ * Epoch milliseconds at which the worker began the unit, before it waited for
215
+ * its turn.
216
+ */
217
+ private booted;
218
+ /**
219
+ * Milliseconds the whole unit may take.
220
+ */
221
+ private budget;
222
+ /**
223
+ * Absolute path of the test file.
224
+ */
225
+ private file;
226
+ /**
227
+ * Creates the runner of one test file, installs the mutant runtime, records
228
+ * the worker's process id, so the main process waits until the worker is
229
+ * gone, and moves the end of the unit to the end of the worker's teardown,
230
+ * after the test environment's teardown, whose error fails the unit like a
231
+ * failed suite hook.
232
+ *
233
+ * @param config - Serialized configuration of the project.
234
+ */
235
+ constructor(config: SerializedConfig);
236
+ /**
237
+ * Claims a unit, waits for the unit before it of the same test file, and
238
+ * prepares the runtime before the test file and its setup files load. Vitest
239
+ * awaits this hook once per test file.
240
+ *
241
+ * @param paths - Absolute path of the test file.
242
+ */
243
+ onBeforeCollect(paths: string[]): Promise<void>;
244
+ /**
245
+ * Makes the collected tests run in file order, one at a time in a batch run
246
+ * and in a dry run that tries each test twice, starts every attempt in an
247
+ * outermost `aroundEach` hook, and selects the tests of a batch unit: every
248
+ * test up to the last planned one. An isolated unit runs every test of the
249
+ * file, concurrent tests concurrently. A dry run reads the hook timeouts of
250
+ * every test and of the file's suite hooks first, for the watchdog.
251
+ *
252
+ * @param files - Collected test files.
253
+ */
254
+ onCollected(files: RunnerTestFile[]): void;
255
+ /**
256
+ * Prepares a test before its tries, after recording a test that ended with a
257
+ * skip: a dry run tries it twice, or once without `repeat`; a batch run tries
258
+ * each planned mutant not yet failed between two control tries, and runs an
259
+ * unplanned test before the last planned one once without a mutant; tests
260
+ * after the last planned one are skipped, and so is every test after a
261
+ * timed-out try or, in an isolated unit, after a try that failed once the
262
+ * mutant was reached. Each try repeats the test as often as its own `repeats`
263
+ * asks, so Vitest's repeats are multiplied; its `retry` is kept.
264
+ *
265
+ * @param test - Test or suite about to run.
266
+ */
267
+ onBeforeRunTask(test: RunnerTask): Promise<void>;
268
+ /**
269
+ * Records an unhandled error of the process: in every try that runs now, as a
270
+ * late error of the last try in a batch run, or else as an error outside
271
+ * tries.
272
+ *
273
+ * @param error - Unhandled error or rejection reason.
274
+ */
275
+ onStray(error: unknown): void;
276
+ /**
277
+ * Records a test that ended with a skip before a suite ends. Once the file
278
+ * suite ends, reads what the test file depended on so far, its snapshot files
279
+ * included, before Vitest saves and drops its snapshot state; recording what
280
+ * the code reads goes on until the unit ends, so the worker-scoped fixtures'
281
+ * cleanup and the test environment's teardown count too.
282
+ *
283
+ * @param suite - Suite that ran.
284
+ */
285
+ onAfterRunSuite(suite: RunnerTestSuite): Promise<void>;
286
+ /**
287
+ * Runs the planned test function, against mootant's timer when the try has a
288
+ * deadline. After a timed-out try the rest of the test is skipped.
289
+ *
290
+ * @param test - Vitest task of the attempt.
291
+ */
292
+ runTask(test: RunnerTestCase): Promise<void>;
293
+ /**
294
+ * Notes the first failed suite hook of a file that loaded once every test
295
+ * file ran. The unit ends in the worker's teardown, after Vitest cleaned up
296
+ * the worker-scoped fixtures and tore the test environment down, which
297
+ * happens after this hook; without a teardown hook it ends here.
298
+ *
299
+ * @param files - Test files that ran.
300
+ */
301
+ onAfterRunFiles(files: RunnerTestFile[]): void;
302
+ /**
303
+ * Records a test that ended with a skip before a suite's hooks run. After an
304
+ * isolated unit bailed, a suite that has not started is skipped with its
305
+ * hooks.
306
+ *
307
+ * @param suite - Suite about to run.
308
+ */
309
+ onBeforeRunSuite(suite: RunnerTestSuite): Promise<void>;
310
+ /**
311
+ * Notes the state of the test after its `afterEach` hooks; the try's facts
312
+ * are read once its teardown finished.
313
+ *
314
+ * @param test - Vitest task of the try.
315
+ */
316
+ onAfterRetryTask(test: RunnerTestCase): void;
317
+ /**
318
+ * Records the try of a test that ended with its last repeat.
319
+ *
320
+ * @param test - Test that ended.
321
+ */
322
+ onAfterRunTask(test: RunnerTask): void;
323
+ /**
324
+ * Starts a try of a test after its previous try finished: in a batch run,
325
+ * resets the counters and activates the try's mutant with the test's bounds;
326
+ * in a dry run, collects the sites the try evaluates. After a timed-out try
327
+ * no try starts, so the test skips itself.
328
+ *
329
+ * @param record - Test whose try begins.
330
+ */
331
+ private startTry;
332
+ /**
333
+ * Reads the facts of a test's try that ended, once Vitest finished it, so
334
+ * errors of its teardown count; then the runtime goes back to the state
335
+ * between tries.
336
+ *
337
+ * @param record - Test whose try ended.
338
+ */
339
+ private finishTry;
340
+ /**
341
+ * Writes the end record of the unit once its test files ran and marks the
342
+ * unit as finished for the progress of the main process, removes the
343
+ * heartbeat file, and returns the runtime to its idle state.
344
+ */
345
+ private finishUnit;
346
+ /**
347
+ * Runs one attempt from the outermost `aroundEach` hook. A retry continues
348
+ * the repetition its failed attempt belonged to, and drops that attempt's
349
+ * errors, as Vitest only counts the last attempt. Otherwise the attempt ends
350
+ * a repetition, and a new try starts after the try's last repetition, or
351
+ * after a try that timed out. A dry run beats with the attempt's budget: the
352
+ * dry test budget plus the test's own timeout and its hooks' timeouts. Then
353
+ * the inner hooks and the test run, and the attempt waits for the next turn
354
+ * of the event loop, so an unhandled rejection of the attempt lands in its
355
+ * try. A try's facts are read when the next try starts or the test ends.
356
+ *
357
+ * @param test - Test whose attempt begins.
358
+ * @param runTest - Runs the inner hooks and the test.
359
+ */
360
+ private aroundTry;
361
+ /**
362
+ * Starts recording the project files the test code reads through `node:fs`
363
+ * and the environment variables it reads, before the test file and its setup
364
+ * files load. The first worker of a project in a dry run also writes the
365
+ * hashes of the worker's environment variables, as Vitest set them up, to
366
+ * `env/<hash>.json` of the work directory, for the main process to tell what
367
+ * the variables read were.
368
+ *
369
+ * @param snapshot - Whether to write the environment of the project.
370
+ */
371
+ private startTracking;
372
+ /**
373
+ * Stops recording what the code reads once the unit ended and lists what it
374
+ * depended on: what the test file depended on when its file suite ended, with
375
+ * what the worker evaluated, required and read through `node:fs` until now,
376
+ * the environment variables it read, and the files it read and changed
377
+ * itself. A test environment other than Vitest's own loads and sets up before
378
+ * the runner exists, so what its module and `setup` read, and the references
379
+ * to `process.env` and `node:fs` they keep, are out of sight: such a unit
380
+ * reports no dependencies, so it is never cached.
381
+ *
382
+ * @returns What the unit depended on, sorted, or null when it cannot tell,
383
+ * with the names of the environment variables it read, `*` for all of them,
384
+ * and the files and directories it read and changed itself, both sorted.
385
+ */
386
+ private stopTracking;
387
+ /**
388
+ * Writes a heartbeat: the main process stops the worker when no newer beat
389
+ * comes within the budget and the grace period. The heartbeat file stays
390
+ * open, so a beat costs one write.
391
+ *
392
+ * @param budget - Milliseconds the work from now may take, or `Infinity`.
393
+ * @param test - Running test, or null outside tests.
394
+ */
395
+ private beat;
396
+ /**
397
+ * Finishes the last try of a test and writes the test's tries to the out
398
+ * file, then beats with the time left.
399
+ *
400
+ * @param record - Test that ended.
401
+ */
402
+ private finishTest;
403
+ /**
404
+ * Points the runtime's coverage at the tries of a dry run that run now: the
405
+ * set of the only one, every one of them through `coverSink`, or the file's
406
+ * set outside tries.
407
+ */
408
+ private routeCoverage;
409
+ /**
410
+ * Beats in a dry run with the latest end any running attempt may reach,
411
+ * naming its test, or with the budget of the work outside tries when no try
412
+ * runs.
413
+ *
414
+ * @param now - Time on the captured clock.
415
+ */
416
+ private beatDry;
417
+ /**
418
+ * Lists what the test file depended on so far (`listDependencies`), the files
419
+ * it read through `node:fs` included.
420
+ *
421
+ * @param snapshot - Snapshot state of the test file, or undefined.
422
+ * @returns Module ids and absolute paths, sorted.
423
+ */
424
+ private listDependencies;
425
+ /**
426
+ * Runs Vitest's cleanup of the worker-scoped fixtures with the unit's mutant
427
+ * still active. The unit ends when the worker's teardown finished, after the
428
+ * test environment's teardown, or right after the cleanup when the teardown
429
+ * cannot be watched. An error of the cleanup is the unit's hook error unless
430
+ * a suite hook failed first, and is thrown on, so Vitest reports it as it
431
+ * does in a plain run.
432
+ *
433
+ * @param cleanup - Vitest's cleanup of the worker-scoped fixtures.
434
+ * @returns Resolves when the cleanup finished.
435
+ */
436
+ private tearDown;
437
+ /**
438
+ * Lists the tries that run now or wait for their teardown.
439
+ *
440
+ * @returns Tries of the started tests.
441
+ */
442
+ private listActive;
443
+ /**
444
+ * Records the tests that ended: every started test when tests run one at a
445
+ * time, else those that ended with a skip, which Vitest ends without
446
+ * `onAfterRunTask`.
447
+ */
448
+ private finishEnded;
449
+ }