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,292 @@
1
+ import { Function as FunctionNode, ArrowFunctionExpression, IdentifierReference, LogicalExpression, DoWhileStatement, ChainExpression, WhileStatement, CallExpression, ForStatement, IfStatement, Node } from 'oxc-parser';
2
+ import { ValueBound } from './value-bound.js';
3
+ import { TimerCall } from './timer-call.js';
4
+ import { NodeSlot } from './node-slot.js';
5
+ /**
6
+ * Questions about the syntactic position of a node. Unless stated otherwise,
7
+ * every predicate looks through parentheses and TypeScript expression
8
+ * wrappers.
9
+ */
10
+ export interface SyntaxHelpers {
11
+ /**
12
+ * Loops that run forever and that the `break` or `return` ending the
13
+ * consequent of the statement leaves, innermost first; empty when the
14
+ * statement is not an exit test of such a loop.
15
+ */
16
+ getExitedLoops(
17
+ node: IfStatement,
18
+ ): (DoWhileStatement | WhileStatement | ForStatement)[]
19
+
20
+ /**
21
+ * Nearest function whose parameters or body contain the node, or null at the
22
+ * top level.
23
+ */
24
+ getEnclosingFunction(
25
+ node: Node,
26
+ ): ArrowFunctionExpression | FunctionNode | null
27
+
28
+ /**
29
+ * What code reads of the result of a `match` call whose regular expression
30
+ * has the `g` flag, when the flag does not show in it (see
31
+ * `getMatchResultUse`): `first` for whether there is a match and the whole of
32
+ * the first one, `length` for these and the `length`; null for anything else.
33
+ * The result is followed through a `const` or a never-written `let` that this
34
+ * program alone reads.
35
+ */
36
+ getMatchResultUse(node: Node): 'length' | 'first' | null
37
+
38
+ /**
39
+ * Known timer call with the index of its delay argument and whether awaiting
40
+ * it only waits, or null: `setTimeout` and `setInterval` (global, imported
41
+ * from `node:timers` or a method), or the promise timers of
42
+ * `node:timers/promises` and `scheduler.wait`.
43
+ */
44
+ readTimerCall(node: CallExpression): TimerCall | null
45
+
46
+ /**
47
+ * Whether code asks the regular expression, a literal or a `RegExp` call with
48
+ * these flags, only whether it matches (see `isRegexOnlyTested`), as the
49
+ * receiver of `test`, or of `exec` whose result only counts as present or
50
+ * not. It is followed through a `const` or a never-written `let` that this
51
+ * program alone reads.
52
+ */
53
+ isRegexOnlyTested(node: Node, flags: string): boolean
54
+
55
+ /**
56
+ * Whether the name of a type reference surely refers to a type from outside
57
+ * the file: no same-file type alias, interface, class or enum in scope, no
58
+ * type parameter and no import of the file, type-only ones included, has it,
59
+ * and the program is neither opaque nor shares a scope (see `isGlobalName`).
60
+ */
61
+ isGlobalTypeName(node: IdentifierReference): boolean
62
+
63
+ /**
64
+ * Operands of the same-operator chain below the node, left to right. Operands
65
+ * that are, through parentheses, logical expressions with the same operator
66
+ * are expanded: `a && (b && c)` gives `a`, `b`, `c`.
67
+ */
68
+ getLogicalChain(node: LogicalExpression): Node[]
69
+
70
+ /**
71
+ * ChainExpression whose optional chain the node is part of, or the node
72
+ * itself when it is a ChainExpression.
73
+ */
74
+ getChainRoot(node: Node): ChainExpression | null
75
+
76
+ /**
77
+ * Why the object or callee that an optional link guards is never nullish once
78
+ * the chain reaches the link, worded as a clause, or null when nothing tells
79
+ * it: the `groups` of an `exec` or `match` result whose regex literal has a
80
+ * named group, or such a group that takes part in every match (catalog 4.13).
81
+ * The result is followed through a `const` or a never-written `let` that this
82
+ * program alone reads, only to test it or read its groups, and the regex
83
+ * literal through one that it only runs; `match` is recognized by name.
84
+ */
85
+ getNamedGroupsFact(node: Node): string | null
86
+
87
+ /**
88
+ * Whether the node is a logging call of the `loggers` setting: a `console`
89
+ * method, a log method of another logger receiver, or a bare logger function
90
+ * called with a string or template literal first. The mutants that can only
91
+ * change the text it writes are skipped (see `isLogMessage`).
92
+ */
93
+ isLoggingCall(node: CallExpression): boolean
94
+
95
+ /**
96
+ * Smallest number the expression can be, with whether it may also be nullish,
97
+ * why the bound holds and the guards it rests on, when the syntax of the
98
+ * program tells it: lengths, positions, sizes of a proven Map or Set,
99
+ * counters, guarded decrements and count maps (catalog 3.4), also through a
100
+ * `const` or a never-written `let` binding, unless the binding is open (see
101
+ * `getBindingClosure`). A value that number literals alone make has none.
102
+ */
103
+ getValueBound(node: Node): ValueBound | null
104
+
105
+ /**
106
+ * Why the expression is never falsy when it is not nullish, worded as a
107
+ * clause such as "`toISOString` never returns an empty string", or null when
108
+ * nothing tells it: a call of a date or number formatter by name, the whole
109
+ * match of a regex literal that cannot match an empty string, or a value with
110
+ * a lower bound above 0 (catalog 4.8). A name is followed only for a bound,
111
+ * or to a regex literal that this program alone reads and only runs.
112
+ */
113
+ getNeverFalsyFact(node: Node): string | null
114
+
115
+ /**
116
+ * Statements of the list that holds the statement (a Program, block, static
117
+ * block, namespace body or switch case), or null when the statement is the
118
+ * single body of an `if`, a loop, a label or `with`.
119
+ */
120
+ getStatementList(node: Node): Node[] | null
121
+
122
+ /**
123
+ * Name that the expression initializes, a `const` or a never-written `let`
124
+ * that this program alone reads, at least once and only for its truth: as the
125
+ * test of a condition or a loop or the operand of `!`; null for any other
126
+ * expression.
127
+ */
128
+ getTruthOnlyName(node: Node): string | null
129
+
130
+ /**
131
+ * Names of an identifier, `this` and non-computed member chain, such as
132
+ * `['this', 'logger', 'info']`, or null when a part has no static name.
133
+ */
134
+ getMemberPath(node: Node): string[] | null
135
+
136
+ /**
137
+ * Smallest value the expression can have, when syntax alone tells it and the
138
+ * value is never nullish (see `getValueBound`).
139
+ */
140
+ getLowerBound(node: Node): number | null
141
+
142
+ /**
143
+ * Whether the node is the whole right-hand side of an `=` assignment to a
144
+ * name that a loop around it reads to decide whether to go on, or the
145
+ * initializer that always gives a variable its value when the variable is
146
+ * such a right-hand side (see `isLoopAdvanceValue`).
147
+ */
148
+ isLoopAdvanceValue(node: Node): boolean
149
+
150
+ /**
151
+ * Whether only the truthiness of the value is used.
152
+ */
153
+ isBooleanContext(node: Node): boolean
154
+
155
+ /**
156
+ * Whether the node is an operand of `&&`, `||` or `??`.
157
+ */
158
+ isLogicalOperand(node: Node): boolean
159
+
160
+ /**
161
+ * Whether `return await` would differ from `return` at the node: inside the
162
+ * `try` block of a try statement, or inside its `catch` block when it has a
163
+ * `finally` block, without crossing a function boundary.
164
+ */
165
+ isInsideTryBlock(node: Node): boolean
166
+
167
+ /**
168
+ * Where the node sits once parentheses and TypeScript expression wrappers
169
+ * around it are skipped.
170
+ */
171
+ getContextSlot(node: Node): NodeSlot
172
+
173
+ /**
174
+ * Whether the node is the test of an `if` statement or a conditional
175
+ * expression.
176
+ */
177
+ isConditionTest(node: Node): boolean
178
+
179
+ /**
180
+ * Whether a replacement may stand in place of the node: an expression whose
181
+ * value is read and that the mutant switch can wrap.
182
+ */
183
+ isValuePosition(node: Node): boolean
184
+
185
+ /**
186
+ * Whether the value of the expression is what a callback of `forEach`
187
+ * returns, which `forEach` ignores (see `isForEachResult`).
188
+ */
189
+ isForEachResult(node: Node): boolean
190
+
191
+ /**
192
+ * Whether the code around the node only tells null or undefined from an
193
+ * object (see `isPresenceTest`): a test of its truth, a comparison with
194
+ * `null` or the left operand of `&&`.
195
+ */
196
+ isPresenceTest(node: Node): boolean
197
+
198
+ /**
199
+ * Whether the node is part of the message of an error.
200
+ */
201
+ isErrorMessage(node: Node): boolean
202
+
203
+ /**
204
+ * Whether the value of the expression is discarded.
205
+ */
206
+ isResultUnused(node: Node): boolean
207
+
208
+ /**
209
+ * Whether an error thrown at the node may be caught without leaving a loop
210
+ * around it (see `isCaughtInLoop`).
211
+ */
212
+ isCaughtInLoop(node: Node): boolean
213
+
214
+ /**
215
+ * Strips ParenthesizedExpression wrappers.
216
+ */
217
+ unwrapParentheses(node: Node): Node
218
+
219
+ /**
220
+ * Whether the name surely refers to the global wherever a mutant writes it
221
+ * into the program: no declaration of the program binds it, and the program
222
+ * is not opaque (see `ScopeAnalysis.opaque`: a direct `eval`, a `with` or a
223
+ * TypeScript namespace that is not ambient) and is not part of a component,
224
+ * whose other script blocks may declare it.
225
+ */
226
+ isGlobalName(name: string): boolean
227
+
228
+ /**
229
+ * Whether the value of the expression is known from its syntax never to be a
230
+ * thenable, so that a promise resolved with it does not take on its state
231
+ * (see `isNonThenable`).
232
+ */
233
+ isNonThenable(node: Node): boolean
234
+
235
+ /**
236
+ * Whether the array literal initializes a `const` or a never-written `let`
237
+ * that this program alone reads, only to push to, with the result unused, and
238
+ * to join with an empty separator, at least once (catalog 4.2).
239
+ */
240
+ isJoinedArray(node: Node): boolean
241
+
242
+ /**
243
+ * Whether the node is the key of a property, method or class member, computed
244
+ * or not.
245
+ */
246
+ isPropertyKey(node: Node): boolean
247
+
248
+ /**
249
+ * Strips ParenthesizedExpression and TypeScript expression wrappers.
250
+ */
251
+ unwrapExpression(node: Node): Node
252
+
253
+ /**
254
+ * Whether the node is part of the runtime tree of the file. Scope analysis
255
+ * also sees nodes outside it, such as ambient declarations and the arguments
256
+ * of logging calls, which the tree-bound helpers do not accept.
257
+ */
258
+ isRuntimeNode(node: Node): boolean
259
+
260
+ /**
261
+ * Whether a mutant of the node can only change the text a logging call
262
+ * writes, so it is skipped: the node is a literal text of the call, or the
263
+ * statement of a call whose removal can only remove that text (see
264
+ * `isLogMessage`).
265
+ */
266
+ isLogMessage(node: Node): boolean
267
+
268
+ /**
269
+ * Whether the value of the node only reaches the delay argument of a known
270
+ * timer call, through arithmetic, conditional branches and right operands of
271
+ * logical expressions.
272
+ */
273
+ isTimerDelay(node: Node): boolean
274
+
275
+ /**
276
+ * Whether the update, assignment or statement changes a name that a loop
277
+ * around it reads to decide whether to go on.
278
+ */
279
+ advancesLoop(node: Node): boolean
280
+
281
+ /**
282
+ * Whether the node is the test of a `for`, `while` or `do...while` loop.
283
+ */
284
+ isLoopTest(node: Node): boolean
285
+
286
+ /**
287
+ * Whether the text of the file, every block of a component included, may read
288
+ * what the last match took through the legacy properties of `RegExp` (see
289
+ * `readsRegexStatics`). The text is read once per program.
290
+ */
291
+ readsRegexStatics(): boolean
292
+ }
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Call of a timer that the delay rule knows: a callback timer such as
3
+ * `setTimeout(run, 100)`, or a promise timer of `node:timers/promises` such as
4
+ * `setTimeout(100)` and `scheduler.wait(100)`.
5
+ */
6
+ export interface TimerCall {
7
+ /**
8
+ * Whether the call returns a promise that settles after the delay with a
9
+ * value that is not a thenable, so that awaiting it only waits.
10
+ */
11
+ waits: boolean
12
+
13
+ /**
14
+ * Index of the argument that is the delay: 1 for a callback timer, 0 for a
15
+ * promise timer.
16
+ */
17
+ delay: number
18
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Timer that a call resolves to, before its arguments are read.
3
+ */
4
+ export interface TimerKind {
5
+ /**
6
+ * Whether the timer returns a promise or an async iterator of
7
+ * `node:timers/promises`, rather than calling a callback.
8
+ */
9
+ promise: boolean
10
+
11
+ /**
12
+ * Name of the timer: `setTimeout`, `setInterval` or `wait` of the scheduler.
13
+ */
14
+ name: string
15
+ }
@@ -0,0 +1,18 @@
1
+ import { Node } from 'oxc-parser';
2
+ import { NodeSlot } from './node-slot.js';
3
+ /**
4
+ * Runtime nodes of a file and the raw slot of each one.
5
+ */
6
+ export interface TreeIndex {
7
+ /**
8
+ * Raw slot of every runtime node. Unlike `getSlot`, the parent may be a
9
+ * ParenthesizedExpression.
10
+ */
11
+ slots: Map<Node, NodeSlot>
12
+
13
+ /**
14
+ * Nodes dispatched to visitors, in pre-order with children in `visitorKeys`
15
+ * order. Names that are never values are indexed but not dispatched.
16
+ */
17
+ order: Node[]
18
+ }
@@ -0,0 +1,37 @@
1
+ import { Node } from 'oxc-parser';
2
+ /**
3
+ * Smallest number an expression can be, as the syntax of its program proves it:
4
+ * every value of the expression that is not null or undefined is a number of at
5
+ * least `lower`.
6
+ */
7
+ export interface ValueBound {
8
+ /**
9
+ * Comparisons that the bound rests on when the value is that of a counter
10
+ * which goes down right after them (see `getGuardBound`): a mutant of such a
11
+ * guard may let the counter go below the bound. Omitted when the bound rests
12
+ * on no guard.
13
+ */
14
+ guards?: ReadonlySet<Node>
15
+
16
+ /**
17
+ * Whether the expression may also be null or undefined.
18
+ */
19
+ nullable: boolean
20
+
21
+ /**
22
+ * Whether every number the expression can be is an integer.
23
+ */
24
+ integer: boolean
25
+
26
+ /**
27
+ * Why the bound holds, worded to follow a skip reason, such as "`row` starts
28
+ * at 0 and only grows"; empty only for a start or written value made of
29
+ * number literals alone.
30
+ */
31
+ because: string
32
+
33
+ /**
34
+ * Smallest number the expression can be.
35
+ */
36
+ lower: number
37
+ }
@@ -0,0 +1,47 @@
1
+ import { BoundEvaluation } from './bound-evaluation.js';
2
+ import { AnalyzedProgram } from './analyzed-program.js';
3
+ import { ValueBound } from './value-bound.js';
4
+ import { Binding } from './binding.js';
5
+ /**
6
+ * Bounds of the names of a program whose values change, as the fixed point of
7
+ * `solveValueBounds` finds them, with the program that `getValueBound` reads to
8
+ * bound any of its expressions.
9
+ */
10
+ export interface ValueBounds extends AnalyzedProgram {
11
+ /**
12
+ * Bound of the initializer of every name read so far through the initializer
13
+ * that always gives its value, cleared each round of the fixed point: null
14
+ * for a name without a bound, and for one whose value number literals alone
15
+ * make, since constants are configuration. A name read too deep to reach the
16
+ * end of its initializer is left out, since a read closer to the start may
17
+ * bound it (see `cut`).
18
+ */
19
+ fixed: Map<Binding, BoundEvaluation | null>
20
+
21
+ /**
22
+ * Bound of every counter, or null when it has none.
23
+ */
24
+ counters: Map<Binding, ValueBound | null>
25
+
26
+ /**
27
+ * Count map whose values each value name of a `for...of` loop over a count
28
+ * map takes.
29
+ */
30
+ entries: ReadonlyMap<Binding, Binding>
31
+
32
+ /**
33
+ * Bound of the values of every count map, or null when they have none.
34
+ */
35
+ maps: Map<Binding, ValueBound | null>
36
+
37
+ /**
38
+ * Shallowest level below the start of an evaluation at which each name that
39
+ * `fixed` leaves out was read, cleared with it: a part of the initializer of
40
+ * the name sat too deep from there, or the initializer is being read now. A
41
+ * read of the name at that level or deeper has no bound either, so the
42
+ * initializer is read again only from a shallower level, and a read of a name
43
+ * inside its own initializer stops at once, as a fresh evaluation of a cycle
44
+ * of initializers always ends at the depth limit.
45
+ */
46
+ cut: Map<Binding, number>
47
+ }
package/license.md ADDED
@@ -0,0 +1,20 @@
1
+ # The MIT License (MIT)
2
+
3
+ Copyright 2026 Azat S. <to@azat.io>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
package/package.json CHANGED
@@ -1,10 +1,87 @@
1
1
  {
2
2
  "name": "mootant",
3
- "version": "0.0.0",
4
- "description": "OIDC trusted publishing setup package for mootant",
3
+ "version": "0.1.0",
4
+ "description": "Mutation testing tool that ships with an agent skill for finding and fixing weak tests",
5
5
  "keywords": [
6
- "oidc",
7
- "trusted-publishing",
8
- "setup"
9
- ]
6
+ "mutation-testing",
7
+ "mutation",
8
+ "testing",
9
+ "test-quality",
10
+ "typescript",
11
+ "javascript",
12
+ "cli",
13
+ "agent-skills",
14
+ "ai-agents",
15
+ "vitest",
16
+ "jest",
17
+ "node-test"
18
+ ],
19
+ "homepage": "https://github.com/azat-io/mootant",
20
+ "repository": "azat-io/mootant",
21
+ "license": "MIT",
22
+ "author": "Azat S. <to@azat.io>",
23
+ "type": "module",
24
+ "exports": {
25
+ ".": {
26
+ "types": "./dist/core/index.d.ts",
27
+ "default": "./dist/core/index.js"
28
+ },
29
+ "./jest": {
30
+ "types": "./dist/adapters/jest/index.d.ts",
31
+ "default": "./dist/adapters/jest/index.js"
32
+ },
33
+ "./node-test": {
34
+ "types": "./dist/adapters/node-test/index.d.ts",
35
+ "default": "./dist/adapters/node-test/index.js"
36
+ },
37
+ "./package.json": "./package.json",
38
+ "./runtime": {
39
+ "types": "./dist/core/runtime/index.d.ts",
40
+ "default": "./dist/core/runtime/index.js"
41
+ },
42
+ "./vitest": {
43
+ "types": "./dist/adapters/vitest/index.d.ts",
44
+ "default": "./dist/adapters/vitest/index.js"
45
+ }
46
+ },
47
+ "bin": {
48
+ "mootant": "./bin/mootant.js"
49
+ },
50
+ "files": [
51
+ "./bin",
52
+ "./dist",
53
+ "./skills"
54
+ ],
55
+ "dependencies": {
56
+ "@eslint-community/regexpp": "^4.12.2",
57
+ "lilconfig": "^3.1.4",
58
+ "oxc-parser": "^0.156.0"
59
+ },
60
+ "peerDependencies": {
61
+ "@vue/compiler-dom": "^3.5.0",
62
+ "jest": "^29.7.0 || ^30.0.0",
63
+ "jiti": "^2.0.0",
64
+ "svelte": "^5.0.0",
65
+ "vitest": "^5.0.0"
66
+ },
67
+ "peerDependenciesMeta": {
68
+ "@vue/compiler-dom": {
69
+ "optional": true
70
+ },
71
+ "jest": {
72
+ "optional": true
73
+ },
74
+ "jiti": {
75
+ "optional": true
76
+ },
77
+ "svelte": {
78
+ "optional": true
79
+ },
80
+ "vitest": {
81
+ "optional": true
82
+ }
83
+ },
84
+ "engines": {
85
+ "node": "^20.19.0 || >=22.12.0"
86
+ }
10
87
  }
package/readme.md ADDED
@@ -0,0 +1,132 @@
1
+ # Mootant
2
+
3
+ <picture>
4
+ <source
5
+ srcset="https://raw.githubusercontent.com/azat-io/mootant/main/assets/logo-light.svg"
6
+ media="(prefers-color-scheme: light)"
7
+ />
8
+ <source
9
+ srcset="https://raw.githubusercontent.com/azat-io/mootant/main/assets/logo-dark.svg"
10
+ media="(prefers-color-scheme: dark)"
11
+ />
12
+ <img
13
+ src="https://raw.githubusercontent.com/azat-io/mootant/main/assets/logo-light.svg"
14
+ alt="Mootant Logo"
15
+ align="right"
16
+ height="160"
17
+ width="160"
18
+ />
19
+ </picture>
20
+
21
+ [![Version](https://img.shields.io/npm/v/mootant.svg?color=b8f12a&labelColor=f4f2ec)](https://npmjs.com/package/mootant)
22
+ [![Code Coverage](https://img.shields.io/codecov/c/github/azat-io/mootant.svg?color=b8f12a&labelColor=f4f2ec)](https://codecov.io/gh/azat-io/mootant)
23
+ [![GitHub License](https://img.shields.io/badge/license-MIT-232428.svg?color=b8f12a&labelColor=f4f2ec)](https://github.com/azat-io/mootant/blob/main/license.md)
24
+
25
+ Find the gaps in your tests.
26
+
27
+ Mutation testing for JavaScript and TypeScript. Mootant makes small changes to
28
+ your code, called mutants, and runs your tests. If they still pass, the mutant
29
+ survives, which points to a test that is missing or too weak.
30
+
31
+ ## See what your tests miss
32
+
33
+ Coverage shows that a line ran, not that a test would notice it change. In the
34
+ [sample shop](https://github.com/azat-io/mootant/tree/main/docs/demo), the tests
35
+ run every line and branch of `src/discount.ts`, yet all of them still pass after
36
+ Mootant makes this change:
37
+
38
+ ```diff
39
+ - if (total >= 100 || isMember) {
40
+ + if (total > 100 || isMember) {
41
+ ```
42
+
43
+ The tests cover small orders, large orders and members. None checks a
44
+ non-member's order of exactly 100, where this change removes the discount. That
45
+ is why this mutant survives.
46
+
47
+ Mootant shows the change, suggests `test/discount.test.ts` as the file to extend
48
+ and prints the mutant's id, so `--mutant q31p` re-checks it after you add the
49
+ missing test.
50
+
51
+ ## Why Mootant
52
+
53
+ - **Use your existing tests.** Mootant works with Vitest 5, Jest 29.7+ and Node
54
+ Test, using your project's test configuration. With Vitest, it also tests Vue
55
+ and Svelte components.
56
+ - **Find hidden gaps.** Mootant mutates numbers, return values, `await`s and
57
+ regular expressions, not just operators.
58
+ - **Filter out noise.** Mootant skips duplicate and likely equivalent mutants,
59
+ and by default leaves out loop changes it expects to hang.
60
+ - **Follow each finding.** Reports show the code change and a suggested test
61
+ file. Re-check one mutant as you improve the tests, or export JSON for tools
62
+ and agents.
63
+ - **Check your next change.** Mootant caches verdicts between runs. In CI, check
64
+ changed lines with `--since` and set a passing score with `--threshold`.
65
+
66
+ ## Getting started
67
+
68
+ > **Early development.** Expect breaking changes.
69
+
70
+ You need passing tests on **Vitest 5** (Node.js 22.12+, no browser mode), **Jest
71
+ 29.7+** or **Node Test** (Node.js 20.19+ or 22.12+). See
72
+ [compatibility](https://mootant.org/guide/compatibility) for other limits.
73
+
74
+ Install Mootant and point it at your source code:
75
+
76
+ ```sh
77
+ npm install -D mootant
78
+ npx mootant run src
79
+ ```
80
+
81
+ Mootant never writes to your source files. The report lists the mutants that
82
+ survived, those no test reached and any errors. To see the mutants without
83
+ running any test, use `npx mootant list src`.
84
+
85
+ Follow the [getting started guide](https://mootant.org/guide/getting-started) to
86
+ turn a surviving mutant into a test that catches it.
87
+
88
+ ## HTML report
89
+
90
+ Browse each mutant in its code, see what your tests reach and find the files
91
+ with the lowest scores. Add `--html` to write `.mootant/report.html`, a single
92
+ file that opens offline:
93
+
94
+ ```sh
95
+ npx mootant run src --html
96
+ ```
97
+
98
+ Add `.mootant` to `.gitignore`: the report holds your source code.
99
+
100
+ <a href="https://mootant.org/report/demo">
101
+ <picture>
102
+ <source
103
+ srcset="https://raw.githubusercontent.com/azat-io/mootant/main/docs/public/report-overview-dark.webp"
104
+ media="(prefers-color-scheme: dark)"
105
+ />
106
+ <img
107
+ src="https://raw.githubusercontent.com/azat-io/mootant/main/docs/public/report-overview-light.webp"
108
+ alt="Mootant report for a sample shop, showing surviving mutants and the mutators its tests miss."
109
+ width="900"
110
+ />
111
+ </picture>
112
+ </a>
113
+
114
+ [Explore the demo report](https://mootant.org/report/demo) or
115
+ [learn about the HTML report](https://mootant.org/guide/report).
116
+
117
+ ## Documentation
118
+
119
+ - [CLI reference](https://mootant.org/guide/cli)
120
+ - [Configuration](https://mootant.org/guide/configuration)
121
+ - [Mutators](https://mootant.org/mutators) and
122
+ [ignore comments](https://mootant.org/mutators#ignore-mutants)
123
+ - [Supported runners and frameworks](https://mootant.org/guide/compatibility)
124
+
125
+ ## Contributing
126
+
127
+ See
128
+ [Contributing Guide](https://github.com/azat-io/mootant/blob/main/contributing.md).
129
+
130
+ ## License
131
+
132
+ MIT &copy; [Azat S.](https://azat.io)