@overkill-dev/run 0.0.84 → 0.0.86

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 (618) hide show
  1. package/attachments/failure-artifact-stream.js +2 -2
  2. package/attachments/failure-artifact-stream.js.map +1 -1
  3. package/attachments/run-json-artifact.js +1 -1
  4. package/attachments/run-json-artifact.js.map +1 -1
  5. package/baselines/calibration-store.js +2 -2
  6. package/baselines/calibration-store.js.map +1 -1
  7. package/baselines/performance-adapter.d.ts +2 -2
  8. package/baselines/performance-adapter.d.ts.map +1 -1
  9. package/baselines/performance-baseline.d.ts +2 -2
  10. package/baselines/performance-baseline.d.ts.map +1 -1
  11. package/baselines/performance-baseline.js +1 -1
  12. package/baselines/performance-baseline.js.map +1 -1
  13. package/baselines/performance-check.js +2 -2
  14. package/baselines/performance-check.js.map +1 -1
  15. package/baselines/performance-evaluation.js +1 -1
  16. package/baselines/performance-evaluation.js.map +1 -1
  17. package/baselines/performance-observation.js +1 -1
  18. package/baselines/performance-observation.js.map +1 -1
  19. package/baselines/performance-plan.js +3 -3
  20. package/baselines/performance-plan.js.map +1 -1
  21. package/baselines/performance-store.js +2 -2
  22. package/baselines/performance-store.js.map +1 -1
  23. package/baselines/performance-workflow.js +2 -2
  24. package/baselines/performance-workflow.js.map +1 -1
  25. package/bench/benchmark-statistics-schema.d.ts +1 -1
  26. package/bench/benchmark-statistics-schema.d.ts.map +1 -1
  27. package/bench/calibration-evidence.js +1 -1
  28. package/bench/calibration-evidence.js.map +1 -1
  29. package/bench/calibration-report.d.ts +1 -1
  30. package/bench/calibration-report.d.ts.map +1 -1
  31. package/bench/timeline-schema.js +1 -1
  32. package/bench/timeline-schema.js.map +1 -1
  33. package/config/config.js +1 -1
  34. package/config/config.js.map +1 -1
  35. package/config/execution.d.ts +1 -1
  36. package/config/execution.d.ts.map +1 -1
  37. package/config/property-policy.js +1 -1
  38. package/config/property-policy.js.map +1 -1
  39. package/config/schema.d.ts +4 -4
  40. package/config/schema.d.ts.map +1 -1
  41. package/config/schema.js +2 -2
  42. package/config/schema.js.map +1 -1
  43. package/config/types.d.ts +6 -6
  44. package/config/types.d.ts.map +1 -1
  45. package/package.json +4 -28
  46. package/packages/run/run.entry-point.d.ts +3 -3
  47. package/packages/run/run.entry-point.d.ts.map +1 -1
  48. package/packages/run/run.entry-point.js +1 -1
  49. package/packages/run/run.entry-point.js.map +1 -1
  50. package/reporters/human-reporter-rendering.js +2 -2
  51. package/reporters/human-reporter-rendering.js.map +1 -1
  52. package/reporters/line-failure-rendering.js +1 -1
  53. package/reporters/line-failure-rendering.js.map +1 -1
  54. package/reporters/line-reporter.js +2 -2
  55. package/reporters/line-reporter.js.map +1 -1
  56. package/reporters/progress-reporter.js +1 -1
  57. package/reporters/progress-reporter.js.map +1 -1
  58. package/reporters/tree-reporter.js +1 -1
  59. package/reporters/tree-reporter.js.map +1 -1
  60. package/resources/resource-definition-shape.d.ts +1 -1
  61. package/resources/resource-definition-shape.d.ts.map +1 -1
  62. package/resources/resource-workload-binding.js +2 -2
  63. package/resources/resource-workload-binding.js.map +1 -1
  64. package/run/attachment-connection.js +1 -0
  65. package/run/attachment-connection.js.map +1 -1
  66. package/run/attachment-eligibility.js +1 -1
  67. package/run/attachment-eligibility.js.map +1 -1
  68. package/run/attachment-execution.js +2 -2
  69. package/run/attachment-execution.js.map +1 -1
  70. package/run/attachment-failure.js +1 -1
  71. package/run/attachment-failure.js.map +1 -1
  72. package/run/attachment-protocol.js +1 -1
  73. package/run/attachment-protocol.js.map +1 -1
  74. package/run/attachment-reporter.js +2 -2
  75. package/run/attachment-reporter.js.map +1 -1
  76. package/run/attachment-results.js +3 -3
  77. package/run/attachment-results.js.map +1 -1
  78. package/run/attachment-retention.js +1 -1
  79. package/run/attachment-retention.js.map +1 -1
  80. package/run/attachment-server.js +1 -0
  81. package/run/attachment-server.js.map +1 -1
  82. package/run/attachment-store.js +1 -1
  83. package/run/attachment-store.js.map +1 -1
  84. package/run/benchmark-baseline-commands.js +1 -1
  85. package/run/benchmark-baseline-commands.js.map +1 -1
  86. package/run/benchmark-baseline-finalization.js +1 -1
  87. package/run/benchmark-baseline-finalization.js.map +1 -1
  88. package/run/benchmark-garbage-collection.js +1 -1
  89. package/run/benchmark-garbage-collection.js.map +1 -1
  90. package/run/benchmark-policy-schema.js +1 -1
  91. package/run/benchmark-policy-schema.js.map +1 -1
  92. package/run/benchmark-report-metadata.js +1 -1
  93. package/run/benchmark-report-metadata.js.map +1 -1
  94. package/run/benchmark-result-schema.js +1 -1
  95. package/run/benchmark-result-schema.js.map +1 -1
  96. package/run/calibration-capture-session.js +2 -2
  97. package/run/calibration-capture-session.js.map +1 -1
  98. package/run/calibration-inventory.js +2 -2
  99. package/run/calibration-inventory.js.map +1 -1
  100. package/run/calibration-maintenance.js +1 -1
  101. package/run/calibration-maintenance.js.map +1 -1
  102. package/run/capability-policy-snapshots.d.ts +1 -1
  103. package/run/capability-policy-snapshots.d.ts.map +1 -1
  104. package/run/capability-policy.js +3 -3
  105. package/run/capability-policy.js.map +1 -1
  106. package/run/collected-run-execution.js +1 -1
  107. package/run/collected-run-execution.js.map +1 -1
  108. package/run/collected-run-plan-schema.js +2 -2
  109. package/run/collected-run-plan-schema.js.map +1 -1
  110. package/run/collected-run-plan.js +4 -4
  111. package/run/collected-run-plan.js.map +1 -1
  112. package/run/command-line-command.d.ts +1 -1
  113. package/run/command-line-command.d.ts.map +1 -1
  114. package/run/command-line-command.js +1 -1
  115. package/run/command-line-command.js.map +1 -1
  116. package/run/command-line-config.d.ts +1 -1
  117. package/run/command-line-config.d.ts.map +1 -1
  118. package/run/default-direct-reporter.js +1 -1
  119. package/run/default-direct-reporter.js.map +1 -1
  120. package/run/default-run-engine.js +7 -7
  121. package/run/default-run-engine.js.map +1 -1
  122. package/run/direct-entrypoint-collection.js +3 -3
  123. package/run/direct-entrypoint-collection.js.map +1 -1
  124. package/run/execution-plan-resolution.js +1 -1
  125. package/run/execution-plan-resolution.js.map +1 -1
  126. package/run/execution-session-child.js +1 -1
  127. package/run/execution-session-child.js.map +1 -1
  128. package/run/execution-session-collected.js +1 -1
  129. package/run/execution-session-collected.js.map +1 -1
  130. package/run/execution-session-host.js +1 -1
  131. package/run/execution-session-host.js.map +1 -1
  132. package/run/execution-session-lifecycle.js +2 -2
  133. package/run/execution-session-lifecycle.js.map +1 -1
  134. package/run/execution-session-observation.js +1 -1
  135. package/run/execution-session-observation.js.map +1 -1
  136. package/run/execution-session-schema.js +1 -1
  137. package/run/execution-session-schema.js.map +1 -1
  138. package/run/execution-session-types.d.ts +1 -1
  139. package/run/execution-session-types.d.ts.map +1 -1
  140. package/run/execution-session.js +1 -1
  141. package/run/execution-session.js.map +1 -1
  142. package/run/failure-artifact-retention.js +2 -2
  143. package/run/failure-artifact-retention.js.map +1 -1
  144. package/run/frozen-run-policy.js +1 -1
  145. package/run/frozen-run-policy.js.map +1 -1
  146. package/run/initialized-run-collection.js +1 -1
  147. package/run/initialized-run-collection.js.map +1 -1
  148. package/run/node-command-line-runner.d.ts +1 -1
  149. package/run/node-command-line-runner.d.ts.map +1 -1
  150. package/run/node-process-policy-observation.js +1 -1
  151. package/run/node-process-policy-observation.js.map +1 -1
  152. package/run/node-run-execution.js +1 -1
  153. package/run/node-run-execution.js.map +1 -1
  154. package/run/node-run-orchestrator-dependencies.js +1 -1
  155. package/run/node-run-orchestrator-dependencies.js.map +1 -1
  156. package/run/permission-denial-runtime-policy.js +3 -3
  157. package/run/permission-denial-runtime-policy.js.map +1 -1
  158. package/run/placement-trace.d.ts +2 -2
  159. package/run/placement-trace.d.ts.map +1 -1
  160. package/run/property-collection.js +1 -1
  161. package/run/property-collection.js.map +1 -1
  162. package/run/recorded-coverage-session.js +1 -1
  163. package/run/recorded-coverage-session.js.map +1 -1
  164. package/run/reporter-event-schema.js +1 -1
  165. package/run/reporter-event-schema.js.map +1 -1
  166. package/run/resource-lifecycle-boundaries.js +1 -1
  167. package/run/resource-lifecycle-boundaries.js.map +1 -1
  168. package/run/resource-lifecycle-cache-identity.js +2 -2
  169. package/run/resource-lifecycle-cache-identity.js.map +1 -1
  170. package/run/resource-lifecycle-composition.d.ts +1 -1
  171. package/run/resource-lifecycle-composition.d.ts.map +1 -1
  172. package/run/resource-lifecycle-error.d.ts +1 -1
  173. package/run/resource-lifecycle-error.d.ts.map +1 -1
  174. package/run/resource-lifecycle-error.js +1 -1
  175. package/run/resource-lifecycle-error.js.map +1 -1
  176. package/run/resource-lifecycle-session-acquirer.js +1 -1
  177. package/run/resource-lifecycle-session-acquirer.js.map +1 -1
  178. package/run/resource-lifecycle-state.d.ts +3 -3
  179. package/run/resource-lifecycle-state.d.ts.map +1 -1
  180. package/run/resource-lifecycle-state.js +2 -2
  181. package/run/resource-lifecycle-state.js.map +1 -1
  182. package/run/resource-ownership-plan.d.ts +2 -2
  183. package/run/resource-ownership-plan.d.ts.map +1 -1
  184. package/run/retry-artifact-retention.js +1 -1
  185. package/run/retry-artifact-retention.js.map +1 -1
  186. package/run/run-artifact-schema.d.ts +1 -1
  187. package/run/run-artifact-schema.d.ts.map +1 -1
  188. package/run/run-case-facts.js +1 -1
  189. package/run/run-case-facts.js.map +1 -1
  190. package/run/run-collection-error-result.js +2 -2
  191. package/run/run-collection-error-result.js.map +1 -1
  192. package/run/run-discovery-types.d.ts +1 -1
  193. package/run/run-discovery-types.d.ts.map +1 -1
  194. package/run/run-engine-primitives.d.ts +8 -8
  195. package/run/run-engine-primitives.d.ts.map +1 -1
  196. package/run/run-engine-selection.d.ts +1 -1
  197. package/run/run-engine-selection.d.ts.map +1 -1
  198. package/run/run-errors.d.ts +2 -2
  199. package/run/run-errors.d.ts.map +1 -1
  200. package/run/run-errors.js +1 -1
  201. package/run/run-errors.js.map +1 -1
  202. package/run/run-if-main-options.d.ts +3 -3
  203. package/run/run-if-main-options.d.ts.map +1 -1
  204. package/run/run-if-main.d.ts +1 -1
  205. package/run/run-if-main.d.ts.map +1 -1
  206. package/run/run-list-renderer.js +2 -2
  207. package/run/run-list-renderer.js.map +1 -1
  208. package/run/run-local-sharding.js +1 -1
  209. package/run/run-local-sharding.js.map +1 -1
  210. package/run/run-local-test-plan.js +21 -17
  211. package/run/run-local-test-plan.js.map +1 -1
  212. package/run/run-record-outcomes.d.ts +5 -5
  213. package/run/run-record-outcomes.d.ts.map +1 -1
  214. package/run/run-record-result.d.ts +1 -1
  215. package/run/run-record-result.d.ts.map +1 -1
  216. package/run/run-record-result.js +2 -2
  217. package/run/run-record-result.js.map +1 -1
  218. package/run/run-record-storage.js +1 -1
  219. package/run/run-record-storage.js.map +1 -1
  220. package/run/run-record-types.d.ts +3 -3
  221. package/run/run-record-types.d.ts.map +1 -1
  222. package/run/run-request-types.d.ts +3 -3
  223. package/run/run-request-types.d.ts.map +1 -1
  224. package/run/run-result-reporting.js +1 -1
  225. package/run/run-result-reporting.js.map +1 -1
  226. package/run/run-result-schema.d.ts +1 -1
  227. package/run/run-result-schema.d.ts.map +1 -1
  228. package/run/run-runtime-schema.js +1 -1
  229. package/run/run-runtime-schema.js.map +1 -1
  230. package/run/run-selection-filters.d.ts +2 -2
  231. package/run/run-selection-filters.d.ts.map +1 -1
  232. package/run/run-selection-filters.js +1 -1
  233. package/run/run-selection-filters.js.map +1 -1
  234. package/run/run-selection.js +2 -2
  235. package/run/run-selection.js.map +1 -1
  236. package/run/run-sharding.js +1 -1
  237. package/run/run-sharding.js.map +1 -1
  238. package/run/run-test-modules.d.ts +3 -3
  239. package/run/run-test-modules.d.ts.map +1 -1
  240. package/run/run-timing-collection.d.ts +2 -2
  241. package/run/run-timing-collection.d.ts.map +1 -1
  242. package/run/run-timing-collection.js +1 -1
  243. package/run/run-timing-collection.js.map +1 -1
  244. package/run/run-types.d.ts +1 -1
  245. package/run/run-types.d.ts.map +1 -1
  246. package/run/run-validation.js +1 -1
  247. package/run/run-validation.js.map +1 -1
  248. package/run/simulation-witness.js +1 -1
  249. package/run/simulation-witness.js.map +1 -1
  250. package/run/supervised-child-execution.js +5 -4
  251. package/run/supervised-child-execution.js.map +1 -1
  252. package/run/supervised-child-test-plan.js +1 -1
  253. package/run/supervised-child-test-plan.js.map +1 -1
  254. package/run/supervised-child.js +3 -3
  255. package/run/supervised-child.js.map +1 -1
  256. package/run/supervised-output-capture.js +1 -1
  257. package/run/supervised-output-capture.js.map +1 -1
  258. package/run/supervised-protocol.js +1 -1
  259. package/run/supervised-protocol.js.map +1 -1
  260. package/run/supervised-run-process-policy.js +2 -2
  261. package/run/supervised-run-process-policy.js.map +1 -1
  262. package/run/supervised-run-runtime.js +1 -1
  263. package/run/supervised-run-runtime.js.map +1 -1
  264. package/run/supervised-run-state.js +3 -3
  265. package/run/supervised-run-state.js.map +1 -1
  266. package/run/work-unit-identity.js +1 -1
  267. package/run/work-unit-identity.js.map +1 -1
  268. package/run/work-unit-planning.js +1 -1
  269. package/run/work-unit-planning.js.map +1 -1
  270. package/run/work-unit-resource-constraints.js +2 -2
  271. package/run/work-unit-resource-constraints.js.map +1 -1
  272. package/run/worker-execution-engine.js +2 -2
  273. package/run/worker-execution-engine.js.map +1 -1
  274. package/run/worker-pool-hedge-dispatch.js +1 -1
  275. package/run/worker-pool-hedge-dispatch.js.map +1 -1
  276. package/run/worker-pool-hedged-arbitration.js +1 -1
  277. package/run/worker-pool-hedged-arbitration.js.map +1 -1
  278. package/run/worker-pool-host.entry-point.js +1 -1
  279. package/run/worker-pool-host.entry-point.js.map +1 -1
  280. package/run/worker-pool-output.js +1 -1
  281. package/run/worker-pool-output.js.map +1 -1
  282. package/run/worker-pool-pending-splitting.js +1 -1
  283. package/run/worker-pool-pending-splitting.js.map +1 -1
  284. package/run/worker-pool-placement-planning.js +1 -1
  285. package/run/worker-pool-placement-planning.js.map +1 -1
  286. package/run/worker-pool-protocol.js +1 -0
  287. package/run/worker-pool-protocol.js.map +1 -1
  288. package/run/worker-pool-resource-lifecycle-execution.js +1 -1
  289. package/run/worker-pool-resource-lifecycle-execution.js.map +1 -1
  290. package/run/worker-pool-results.js +1 -1
  291. package/run/worker-pool-results.js.map +1 -1
  292. package/run/worker-pool-task-events.js +2 -2
  293. package/run/worker-pool-task-events.js.map +1 -1
  294. package/run/worker-pool-warm-lane-affinity.js +1 -1
  295. package/run/worker-pool-warm-lane-affinity.js.map +1 -1
  296. package/run/worker-pool-work-load.js +1 -1
  297. package/run/worker-pool-work-load.js.map +1 -1
  298. package/run/worker-pool-worker-plan.js +2 -2
  299. package/run/worker-pool-worker-plan.js.map +1 -1
  300. package/run/worker-pool-worker-resources.js +1 -1
  301. package/run/worker-pool-worker-resources.js.map +1 -1
  302. package/run/worker-pool-worker.js +1 -1
  303. package/run/worker-pool-worker.js.map +1 -1
  304. package/run/workload-input-validation.js +1 -1
  305. package/run/workload-input-validation.js.map +1 -1
  306. package/software-bill-of-materials.cyclonedx.json +21 -38
  307. package/transcript/http-transcript-artifact.js +1 -1
  308. package/transcript/http-transcript-artifact.js.map +1 -1
  309. package/assertion-protocol/assertion-evaluation.js +0 -6
  310. package/assertion-protocol/assertion-evaluation.js.map +0 -1
  311. package/assertion-protocol/assertion-node-shape.d.ts +0 -81
  312. package/assertion-protocol/assertion-node-shape.d.ts.map +0 -1
  313. package/assertion-protocol/assertion-node.d.ts +0 -82
  314. package/assertion-protocol/assertion-node.d.ts.map +0 -1
  315. package/assertion-protocol/assertion-node.js +0 -33
  316. package/assertion-protocol/assertion-node.js.map +0 -1
  317. package/assertion-protocol/assertion-reference.d.ts +0 -50
  318. package/assertion-protocol/assertion-reference.d.ts.map +0 -1
  319. package/assertion-protocol/assertion-reference.js +0 -22
  320. package/assertion-protocol/assertion-reference.js.map +0 -1
  321. package/assertion-protocol/assertions/boolean.d.ts +0 -4
  322. package/assertion-protocol/assertions/boolean.d.ts.map +0 -1
  323. package/assertion-protocol/assertions/boolean.js +0 -12
  324. package/assertion-protocol/assertions/boolean.js.map +0 -1
  325. package/assertion-protocol/assertions/collection.d.ts +0 -13
  326. package/assertion-protocol/assertions/collection.d.ts.map +0 -1
  327. package/assertion-protocol/assertions/collection.js +0 -21
  328. package/assertion-protocol/assertions/collection.js.map +0 -1
  329. package/assertion-protocol/assertions/dispatch.js +0 -47
  330. package/assertion-protocol/assertions/dispatch.js.map +0 -1
  331. package/assertion-protocol/assertions/equality.d.ts +0 -6
  332. package/assertion-protocol/assertions/equality.d.ts.map +0 -1
  333. package/assertion-protocol/assertions/equality.js +0 -24
  334. package/assertion-protocol/assertions/equality.js.map +0 -1
  335. package/assertion-protocol/assertions/fail.d.ts +0 -8
  336. package/assertion-protocol/assertions/fail.d.ts.map +0 -1
  337. package/assertion-protocol/assertions/fail.js +0 -8
  338. package/assertion-protocol/assertions/fail.js.map +0 -1
  339. package/assertion-protocol/assertions/numeric.d.ts +0 -16
  340. package/assertion-protocol/assertions/numeric.d.ts.map +0 -1
  341. package/assertion-protocol/assertions/numeric.js +0 -43
  342. package/assertion-protocol/assertions/numeric.js.map +0 -1
  343. package/assertion-protocol/assertions/partial.d.ts +0 -5
  344. package/assertion-protocol/assertions/partial.d.ts.map +0 -1
  345. package/assertion-protocol/assertions/partial.js +0 -17
  346. package/assertion-protocol/assertions/partial.js.map +0 -1
  347. package/assertion-protocol/assertions/presence.d.ts +0 -6
  348. package/assertion-protocol/assertions/presence.d.ts.map +0 -1
  349. package/assertion-protocol/assertions/presence.js +0 -20
  350. package/assertion-protocol/assertions/presence.js.map +0 -1
  351. package/assertion-protocol/assertions/string.d.ts +0 -15
  352. package/assertion-protocol/assertions/string.d.ts.map +0 -1
  353. package/assertion-protocol/assertions/string.js +0 -33
  354. package/assertion-protocol/assertions/string.js.map +0 -1
  355. package/assertion-protocol/assertions/type-shape.d.ts +0 -23
  356. package/assertion-protocol/assertions/type-shape.d.ts.map +0 -1
  357. package/assertion-protocol/assertions/type-shape.js +0 -43
  358. package/assertion-protocol/assertions/type-shape.js.map +0 -1
  359. package/assertion-protocol/collection-count.js +0 -42
  360. package/assertion-protocol/collection-count.js.map +0 -1
  361. package/assertion-protocol/evaluation.js +0 -175
  362. package/assertion-protocol/evaluation.js.map +0 -1
  363. package/assertion-protocol/partial-matching.js +0 -13
  364. package/assertion-protocol/partial-matching.js.map +0 -1
  365. package/assertion-protocol/source-location-forwarding.js +0 -32
  366. package/assertion-protocol/source-location-forwarding.js.map +0 -1
  367. package/assertion-protocol/source-location.js +0 -119
  368. package/assertion-protocol/source-location.js.map +0 -1
  369. package/assertion-protocol/thrown-error-record.d.ts +0 -7
  370. package/assertion-protocol/thrown-error-record.d.ts.map +0 -1
  371. package/assertion-protocol/thrown-error-record.js +0 -17
  372. package/assertion-protocol/thrown-error-record.js.map +0 -1
  373. package/assertion-protocol/thrown-matcher.d.ts +0 -34
  374. package/assertion-protocol/thrown-matcher.d.ts.map +0 -1
  375. package/assertion-protocol/thrown-matcher.js +0 -201
  376. package/assertion-protocol/thrown-matcher.js.map +0 -1
  377. package/attachments/json-snapshot.js +0 -125
  378. package/attachments/json-snapshot.js.map +0 -1
  379. package/canonical-identity.js +0 -54
  380. package/canonical-identity.js.map +0 -1
  381. package/compare/comparison-result.js +0 -47
  382. package/compare/comparison-result.js.map +0 -1
  383. package/compare/comparison-state.js +0 -20
  384. package/compare/comparison-state.js.map +0 -1
  385. package/compare/comparison.js +0 -78
  386. package/compare/comparison.js.map +0 -1
  387. package/compare/diff-path.js +0 -37
  388. package/compare/diff-path.js.map +0 -1
  389. package/compare/raw-comparison.js +0 -285
  390. package/compare/raw-comparison.js.map +0 -1
  391. package/compare/serialized-value-classification.js +0 -99
  392. package/compare/serialized-value-classification.js.map +0 -1
  393. package/compare/serialized-value-shape.d.ts +0 -134
  394. package/compare/serialized-value-shape.d.ts.map +0 -1
  395. package/compare/serialized-value-shape.js +0 -12
  396. package/compare/serialized-value-shape.js.map +0 -1
  397. package/compare/serialized-value-state.js +0 -55
  398. package/compare/serialized-value-state.js.map +0 -1
  399. package/compare/serialized-value.d.ts +0 -4
  400. package/compare/serialized-value.d.ts.map +0 -1
  401. package/compare/serialized-value.js +0 -389
  402. package/compare/serialized-value.js.map +0 -1
  403. package/compare/structured-diff.js +0 -382
  404. package/compare/structured-diff.js.map +0 -1
  405. package/compare/value-classification.js +0 -112
  406. package/compare/value-classification.js.map +0 -1
  407. package/diff/binary-diff.js +0 -49
  408. package/diff/binary-diff.js.map +0 -1
  409. package/diff/diff-shape.d.ts +0 -122
  410. package/diff/diff-shape.d.ts.map +0 -1
  411. package/diff/string-diff.js +0 -22
  412. package/diff/string-diff.js.map +0 -1
  413. package/engine/assertion-facade.d.ts +0 -47
  414. package/engine/assertion-facade.d.ts.map +0 -1
  415. package/engine/assertion-facade.js +0 -362
  416. package/engine/assertion-facade.js.map +0 -1
  417. package/engine/assertion-recorder.d.ts +0 -12
  418. package/engine/assertion-recorder.d.ts.map +0 -1
  419. package/engine/assertion-recorder.js +0 -251
  420. package/engine/assertion-recorder.js.map +0 -1
  421. package/engine/async-control.d.ts +0 -7
  422. package/engine/async-control.d.ts.map +0 -1
  423. package/engine/async-control.js +0 -162
  424. package/engine/async-control.js.map +0 -1
  425. package/engine/async-leak-diagnostics.js +0 -188
  426. package/engine/async-leak-diagnostics.js.map +0 -1
  427. package/engine/benchmark-environment.d.ts +0 -8
  428. package/engine/benchmark-environment.d.ts.map +0 -1
  429. package/engine/benchmark-garbage-collection.d.ts +0 -8
  430. package/engine/benchmark-garbage-collection.d.ts.map +0 -1
  431. package/engine/benchmark-garbage-collection.js +0 -4
  432. package/engine/benchmark-garbage-collection.js.map +0 -1
  433. package/engine/benchmark-limits.js +0 -3
  434. package/engine/benchmark-limits.js.map +0 -1
  435. package/engine/benchmark-node.d.ts +0 -37
  436. package/engine/benchmark-node.d.ts.map +0 -1
  437. package/engine/benchmark-node.js +0 -9
  438. package/engine/benchmark-node.js.map +0 -1
  439. package/engine/benchmark-result.d.ts +0 -247
  440. package/engine/benchmark-result.d.ts.map +0 -1
  441. package/engine/benchmark-result.js +0 -2
  442. package/engine/benchmark-result.js.map +0 -1
  443. package/engine/benchmark-timeline.d.ts +0 -12
  444. package/engine/benchmark-timeline.d.ts.map +0 -1
  445. package/engine/case-attempt-execution.js +0 -234
  446. package/engine/case-attempt-execution.js.map +0 -1
  447. package/engine/case-body-execution.js +0 -232
  448. package/engine/case-body-execution.js.map +0 -1
  449. package/engine/case-execution-lifecycle.js +0 -22
  450. package/engine/case-execution-lifecycle.js.map +0 -1
  451. package/engine/case-execution.d.ts +0 -14
  452. package/engine/case-execution.d.ts.map +0 -1
  453. package/engine/case-execution.js +0 -225
  454. package/engine/case-execution.js.map +0 -1
  455. package/engine/case-interruption.js +0 -26
  456. package/engine/case-interruption.js.map +0 -1
  457. package/engine/coverage-artifact.d.ts +0 -36
  458. package/engine/coverage-artifact.d.ts.map +0 -1
  459. package/engine/custom-assertion-recording.js +0 -175
  460. package/engine/custom-assertion-recording.js.map +0 -1
  461. package/engine/engine.d.ts +0 -21
  462. package/engine/engine.d.ts.map +0 -1
  463. package/engine/engine.js +0 -35
  464. package/engine/engine.js.map +0 -1
  465. package/engine/execution-async-leak-policy.d.ts +0 -3
  466. package/engine/execution-async-leak-policy.d.ts.map +0 -1
  467. package/engine/execution-async-leak-policy.js +0 -95
  468. package/engine/execution-async-leak-policy.js.map +0 -1
  469. package/engine/execution-error-ownership.d.ts +0 -6
  470. package/engine/execution-error-ownership.d.ts.map +0 -1
  471. package/engine/execution-error-ownership.js +0 -83
  472. package/engine/execution-error-ownership.js.map +0 -1
  473. package/engine/execution-global-error-observer.d.ts +0 -15
  474. package/engine/execution-global-error-observer.d.ts.map +0 -1
  475. package/engine/execution-global-error-observer.js +0 -276
  476. package/engine/execution-global-error-observer.js.map +0 -1
  477. package/engine/execution-observation.js +0 -212
  478. package/engine/execution-observation.js.map +0 -1
  479. package/engine/execution-options.d.ts +0 -39
  480. package/engine/execution-options.d.ts.map +0 -1
  481. package/engine/execution-options.js +0 -42
  482. package/engine/execution-options.js.map +0 -1
  483. package/engine/execution-preparation.d.ts +0 -13
  484. package/engine/execution-preparation.d.ts.map +0 -1
  485. package/engine/execution-preparation.js +0 -34
  486. package/engine/execution-preparation.js.map +0 -1
  487. package/engine/execution-process-budget-breach.d.ts +0 -8
  488. package/engine/execution-process-budget-breach.d.ts.map +0 -1
  489. package/engine/execution-process-budget-breach.js +0 -30
  490. package/engine/execution-process-budget-breach.js.map +0 -1
  491. package/engine/execution-process-budget-tracking.js +0 -33
  492. package/engine/execution-process-budget-tracking.js.map +0 -1
  493. package/engine/execution-process-tracked-cases.js +0 -40
  494. package/engine/execution-process-tracked-cases.js.map +0 -1
  495. package/engine/execution-result.js +0 -120
  496. package/engine/execution-result.js.map +0 -1
  497. package/engine/execution-supervision-state.js +0 -54
  498. package/engine/execution-supervision-state.js.map +0 -1
  499. package/engine/execution-supervision.d.ts +0 -16
  500. package/engine/execution-supervision.d.ts.map +0 -1
  501. package/engine/execution-supervision.js +0 -345
  502. package/engine/execution-supervision.js.map +0 -1
  503. package/engine/execution-test-plan-cases.js +0 -216
  504. package/engine/execution-test-plan-cases.js.map +0 -1
  505. package/engine/execution-test-plan-process-usage.js +0 -14
  506. package/engine/execution-test-plan-process-usage.js.map +0 -1
  507. package/engine/execution.d.ts +0 -8
  508. package/engine/execution.d.ts.map +0 -1
  509. package/engine/execution.js +0 -71
  510. package/engine/execution.js.map +0 -1
  511. package/engine/identity.d.ts +0 -31
  512. package/engine/identity.d.ts.map +0 -1
  513. package/engine/identity.js +0 -68
  514. package/engine/identity.js.map +0 -1
  515. package/engine/native-resource-observation.js +0 -70
  516. package/engine/native-resource-observation.js.map +0 -1
  517. package/engine/node-assertion-error.js +0 -47
  518. package/engine/node-assertion-error.js.map +0 -1
  519. package/engine/process-usage-growth.js +0 -12
  520. package/engine/process-usage-growth.js.map +0 -1
  521. package/engine/process-usage.d.ts +0 -22
  522. package/engine/process-usage.d.ts.map +0 -1
  523. package/engine/property-node.d.ts +0 -30
  524. package/engine/property-node.d.ts.map +0 -1
  525. package/engine/property-node.js +0 -9
  526. package/engine/property-node.js.map +0 -1
  527. package/engine/recorded-assertion-failure.js +0 -30
  528. package/engine/recorded-assertion-failure.js.map +0 -1
  529. package/engine/reporter-dispatcher.d.ts +0 -17
  530. package/engine/reporter-dispatcher.d.ts.map +0 -1
  531. package/engine/reporter-dispatcher.js +0 -316
  532. package/engine/reporter-dispatcher.js.map +0 -1
  533. package/engine/reporter-disposal.js +0 -13
  534. package/engine/reporter-disposal.js.map +0 -1
  535. package/engine/reporter-error-delivery-tracking.js +0 -33
  536. package/engine/reporter-error-delivery-tracking.js.map +0 -1
  537. package/engine/reporter-event-queue.js +0 -55
  538. package/engine/reporter-event-queue.js.map +0 -1
  539. package/engine/reporter-managed-output.js +0 -105
  540. package/engine/reporter-managed-output.js.map +0 -1
  541. package/engine/reporter-output-scope.js +0 -65
  542. package/engine/reporter-output-scope.js.map +0 -1
  543. package/engine/reporter-output.d.ts +0 -28
  544. package/engine/reporter-output.d.ts.map +0 -1
  545. package/engine/reporter-output.js +0 -17
  546. package/engine/reporter-output.js.map +0 -1
  547. package/engine/reporter.d.ts +0 -197
  548. package/engine/reporter.d.ts.map +0 -1
  549. package/engine/reporter.js +0 -111
  550. package/engine/reporter.js.map +0 -1
  551. package/engine/reporting-context.d.ts +0 -6
  552. package/engine/reporting-context.d.ts.map +0 -1
  553. package/engine/reporting-context.js +0 -74
  554. package/engine/reporting-context.js.map +0 -1
  555. package/engine/require-assertion-facade.d.ts +0 -18
  556. package/engine/require-assertion-facade.d.ts.map +0 -1
  557. package/engine/require-assertion-facade.js +0 -128
  558. package/engine/require-assertion-facade.js.map +0 -1
  559. package/engine/resource-owner-observation.js +0 -143
  560. package/engine/resource-owner-observation.js.map +0 -1
  561. package/engine/retry-policy.d.ts +0 -4
  562. package/engine/retry-policy.d.ts.map +0 -1
  563. package/engine/retry-policy.js +0 -22
  564. package/engine/retry-policy.js.map +0 -1
  565. package/engine/run-artifact.d.ts +0 -45
  566. package/engine/run-artifact.d.ts.map +0 -1
  567. package/engine/run-result.d.ts +0 -215
  568. package/engine/run-result.d.ts.map +0 -1
  569. package/engine/run-result.js +0 -202
  570. package/engine/run-result.js.map +0 -1
  571. package/engine/run-timings.d.ts +0 -57
  572. package/engine/run-timings.d.ts.map +0 -1
  573. package/engine/run-timings.js +0 -120
  574. package/engine/run-timings.js.map +0 -1
  575. package/engine/runner-error-reporting.js +0 -29
  576. package/engine/runner-error-reporting.js.map +0 -1
  577. package/engine/runtime-attachment.d.ts +0 -82
  578. package/engine/runtime-attachment.d.ts.map +0 -1
  579. package/engine/test-attempt-history.js +0 -25
  580. package/engine/test-attempt-history.js.map +0 -1
  581. package/engine/test-body-resource-attachment.d.ts +0 -53
  582. package/engine/test-body-resource-attachment.d.ts.map +0 -1
  583. package/engine/test-body-resource-attachment.js +0 -30
  584. package/engine/test-body-resource-attachment.js.map +0 -1
  585. package/engine/test-body.d.ts +0 -16
  586. package/engine/test-body.d.ts.map +0 -1
  587. package/engine/test-body.js +0 -51
  588. package/engine/test-body.js.map +0 -1
  589. package/engine/test-data.d.ts +0 -25
  590. package/engine/test-data.d.ts.map +0 -1
  591. package/engine/test-data.js +0 -126
  592. package/engine/test-data.js.map +0 -1
  593. package/engine/test-node.d.ts +0 -178
  594. package/engine/test-node.d.ts.map +0 -1
  595. package/engine/test-node.js +0 -226
  596. package/engine/test-node.js.map +0 -1
  597. package/engine/test-plan.d.ts +0 -52
  598. package/engine/test-plan.d.ts.map +0 -1
  599. package/engine/test-plan.js +0 -315
  600. package/engine/test-plan.js.map +0 -1
  601. package/engine/test-scope-lifecycle.js +0 -65
  602. package/engine/test-scope-lifecycle.js.map +0 -1
  603. package/engine/throwing-test-scope.js +0 -27
  604. package/engine/throwing-test-scope.js.map +0 -1
  605. package/engine/workload-input.d.ts +0 -3
  606. package/engine/workload-input.d.ts.map +0 -1
  607. package/engine/workload-input.js +0 -54
  608. package/engine/workload-input.js.map +0 -1
  609. package/engine/workload-parameters.d.ts +0 -3
  610. package/engine/workload-parameters.d.ts.map +0 -1
  611. package/engine/workload-parameters.js +0 -67
  612. package/engine/workload-parameters.js.map +0 -1
  613. package/engine/workload-test-case.d.ts +0 -8
  614. package/engine/workload-test-case.d.ts.map +0 -1
  615. package/engine/workload-test-case.js +0 -33
  616. package/engine/workload-test-case.js.map +0 -1
  617. package/stored-value.js +0 -12
  618. package/stored-value.js.map +0 -1
@@ -1,33 +0,0 @@
1
- import { assertionOutcome } from "../assertion-evaluation.js";
2
- export const stringSummaryByCheck = {
3
- 'ends-with': 'Expected string to end with the value.',
4
- includes: 'Expected string to include the value.',
5
- match: 'Expected string to match the pattern.',
6
- 'not-match': 'Expected string not to match the pattern.',
7
- 'starts-with': 'Expected string to start with the value.'
8
- };
9
- export function evaluateEndsWith(assertion) {
10
- const passed = typeof assertion.actual === 'string' &&
11
- typeof assertion.expected === 'string' &&
12
- assertion.actual.endsWith(assertion.expected);
13
- return assertionOutcome(assertion.actual, assertion.expected, passed);
14
- }
15
- export function evaluateIncludes(assertion) {
16
- const passed = typeof assertion.actual === 'string' &&
17
- typeof assertion.expected === 'string' &&
18
- assertion.actual.includes(assertion.expected);
19
- return assertionOutcome(assertion.actual, assertion.expected, passed);
20
- }
21
- export function evaluateMatch(assertion) {
22
- return assertionOutcome(assertion.actual, assertion.pattern, typeof assertion.actual === 'string' && assertion.pattern.test(assertion.actual));
23
- }
24
- export function evaluateNotMatch(assertion) {
25
- return assertionOutcome(assertion.actual, assertion.pattern, typeof assertion.actual === 'string' && !assertion.pattern.test(assertion.actual));
26
- }
27
- export function evaluateStartsWith(assertion) {
28
- const passed = typeof assertion.actual === 'string' &&
29
- typeof assertion.expected === 'string' &&
30
- assertion.actual.startsWith(assertion.expected);
31
- return assertionOutcome(assertion.actual, assertion.expected, passed);
32
- }
33
- //# sourceMappingURL=string.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"string.js","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/string.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAyB,MAAM,4BAA4B,CAAC;AAkBrF,MAAM,CAAC,MAAM,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AO,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CACpF,CAAC;AACN,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,SAAsC;IACrE,MAAM,MAAM,GAAG,OAAO,SAAS,CAAC,MAAM,KAAK,QAAQ;QAC/C,OAAO,SAAS,CAAC,QAAQ,KAAK,QAAQ;QACtC,SAAS,CAAC,MAAM,CAAC,UAAU,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;IAEpD,OAAO,gBAAgB,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;AAC1E,CAAC"}
@@ -1,23 +0,0 @@
1
- import type { ActualAssertionNode, AssertionSource, InstanceConstructor, ResolvableSourceLocations } from '../assertion-node-shape.ts';
2
- type TypeAssertionCheck = 'array' | 'boolean' | 'function' | 'number' | 'object' | 'string';
3
- export type TypeAssertionNode<Source extends AssertionSource = AssertionSource> = {
4
- readonly [Check in TypeAssertionCheck]: ActualAssertionNode<Source, Check>;
5
- }[TypeAssertionCheck];
6
- export type InstanceOfAssertionNode<Source extends AssertionSource = AssertionSource> = {
7
- readonly actual: unknown;
8
- readonly check: 'instance-of';
9
- readonly expected: InstanceConstructor;
10
- readonly message: string | null;
11
- readonly source: Source;
12
- readonly sourceLocations: ResolvableSourceLocations;
13
- };
14
- export type HasPropertyAssertionNode<Source extends AssertionSource = AssertionSource> = {
15
- readonly actual: unknown;
16
- readonly check: 'has-property';
17
- readonly key: PropertyKey;
18
- readonly message: string | null;
19
- readonly source: Source;
20
- readonly sourceLocations: ResolvableSourceLocations;
21
- };
22
- export {};
23
- //# sourceMappingURL=type-shape.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"type-shape.d.ts","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/type-shape.ts"],"names":[],"mappings":"AAAA,OAA2B,KACf,EACR,mBAAmB,EACnB,eAAe,EACf,mBAAmB,EACnB,yBAAyB,EAC5B,MAAM,4BAA4B,CAAC;AAGpC,KAAK,kBAAkB,GAAG,OAAO,GAAG,SAAS,GAAG,UAAU,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE5F,MAAM,MAAM,iBAAiB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI;IAC9E,QAAQ,EAAE,KAAK,IAAI,kBAAkB,GAAG,mBAAmB,CAAC,MAAM,EAAE,KAAK,CAAC;CAC7E,CAAC,kBAAkB,CAAC,CAAC;AAEtB,MAAM,MAAM,uBAAuB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI;IACpF,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAC;IAC9B,QAAQ,CAAC,QAAQ,EAAE,mBAAmB,CAAC;IACvC,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,eAAe,EAAE,yBAAyB,CAAC;CACvD,CAAC;AAEF,MAAM,MAAM,wBAAwB,CAAC,MAAM,SAAS,eAAe,GAAG,eAAe,IAAI;IACrF,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;IACzB,QAAQ,CAAC,KAAK,EAAE,cAAc,CAAC;IAC/B,QAAQ,CAAC,GAAG,EAAE,WAAW,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,eAAe,EAAE,yBAAyB,CAAC;CACvD,CAAC;AAEF,SASU,CAAC"}
@@ -1,43 +0,0 @@
1
- import { assertionOutcome } from "../assertion-evaluation.js";
2
- import { isPlainObject } from "../partial-matching.js";
3
- export const typeShapeSummaryByCheck = {
4
- array: 'Expected value to be an array.',
5
- boolean: 'Expected value to be a boolean.',
6
- function: 'Expected value to be a function.',
7
- 'has-property': 'Expected object to have the own property.',
8
- 'instance-of': 'Expected value to be an instance of the constructor.',
9
- number: 'Expected value to be a number.',
10
- object: 'Expected value to be an object.',
11
- string: 'Expected value to be a string.'
12
- };
13
- function isFiniteNumber(value) {
14
- return typeof value === 'number' && Number.isFinite(value);
15
- }
16
- function isSupportedObject(value) {
17
- return typeof value === 'object' && value !== null;
18
- }
19
- export function evaluateArray(assertion) {
20
- return assertionOutcome(assertion.actual, 'array', Array.isArray(assertion.actual));
21
- }
22
- export function evaluateBoolean(assertion) {
23
- return assertionOutcome(assertion.actual, 'boolean', typeof assertion.actual === 'boolean');
24
- }
25
- export function evaluateFunction(assertion) {
26
- return assertionOutcome(assertion.actual, 'function', typeof assertion.actual === 'function');
27
- }
28
- export function evaluateHasProperty(assertion) {
29
- return assertionOutcome(assertion.actual, `own property ${String(assertion.key)}`, isSupportedObject(assertion.actual) && Object.hasOwn(assertion.actual, assertion.key));
30
- }
31
- export function evaluateInstanceOf(assertion) {
32
- return assertionOutcome(assertion.actual, assertion.expected, assertion.actual instanceof assertion.expected);
33
- }
34
- export function evaluateNumber(assertion) {
35
- return assertionOutcome(assertion.actual, 'finite number', isFiniteNumber(assertion.actual));
36
- }
37
- export function evaluateObject(assertion) {
38
- return assertionOutcome(assertion.actual, 'plain object', isPlainObject(assertion.actual));
39
- }
40
- export function evaluateString(assertion) {
41
- return assertionOutcome(assertion.actual, 'string', typeof assertion.actual === 'string');
42
- }
43
- //# sourceMappingURL=type-shape.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"type-shape.js","sourceRoot":"","sources":["../../../../../source/assertion-protocol/assertions/type-shape.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAyB,MAAM,4BAA4B,CAAC;AAOrF,OAAO,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AA0BvD,MAAM,CAAC,MAAM,uBAAuB,GAAG;IACnC,KAAK,EAAE,gCAAgC;IACvC,OAAO,EAAE,iCAAiC;IAC1C,QAAQ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BAAgB,CAAC,SAAS,CAAC,MAAM,EAAE,SAAS,CAAC,QAAQ,EAAE,SAAS,CAAC,MAAM,YAAY,SAAS,CAAC,QAAQ,CAAC,CAAC;AAClH,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,SAA4B;IACvD,OAAO,gBAAgB,CAAC,SAAS,CAAC,MAAM,EAAE,eAAe,EAAE,cAAc,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;AACjG,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,SAA4B;IACvD,OAAO,gBAAgB,CAAC,SAAS,CAAC,MAAM,EAAE,cAAc,EAAE,aAAa,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;AAC/F,CAAC;AAED,MAAM,UAAU,cAAc,CAAC,SAA4B;IACvD,OAAO,gBAAgB,CAAC,SAAS,CAAC,MAAM,EAAE,QAAQ,EAAE,OAAO,SAAS,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC;AAC9F,CAAC"}
@@ -1,42 +0,0 @@
1
- import { isPlainObject, ownKeys } from "./partial-matching.js";
2
- function isObject(value) {
3
- return typeof value === 'object' && value !== null;
4
- }
5
- function hasIteratorProvider(value) {
6
- return typeof Reflect.get(value, Symbol.iterator) === 'function';
7
- }
8
- function iterableItems(value) {
9
- if (!isObject(value) || !hasIteratorProvider(value)) {
10
- return null;
11
- }
12
- return value[Symbol.iterator]();
13
- }
14
- function countIterator(iterator, limit) {
15
- let count = 0;
16
- let item = iterator.next();
17
- while (item.done !== true && count < limit) {
18
- count += 1;
19
- item = iterator.next();
20
- }
21
- return count;
22
- }
23
- function knownCollectionCount(value) {
24
- if (typeof value === 'string' || Array.isArray(value)) {
25
- return value.length;
26
- }
27
- if (value instanceof Map || value instanceof Set) {
28
- return value.size;
29
- }
30
- return isPlainObject(value) ? ownKeys(value).length : null;
31
- }
32
- export function collectionCount(value, limit) {
33
- const knownCount = knownCollectionCount(value);
34
- if (knownCount !== null) {
35
- return { count: knownCount, supported: true };
36
- }
37
- const iterator = iterableItems(value);
38
- return iterator === null
39
- ? { count: 0, supported: false }
40
- : { count: countIterator(iterator, limit), supported: true };
41
- }
42
- //# sourceMappingURL=collection-count.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"collection-count.js","sourceRoot":"","sources":["../../../../source/assertion-protocol/collection-count.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAO/D,SAAS,QAAQ,CAAC,KAAc;IAC5B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,CAAC;AACvD,CAAC;AAMD,SAAS,mBAAmB,CAAC,KAA8B;IACvD,OAAO,OAAO,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,KAAK,UAAU,CAAC;AACrE,CAAC;AAED,SAAS,aAAa,CAAC,KAAc;IACjC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,mBAAmB,CAAC,KAAK,CAAC,EAAE,CAAC;QAClD,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,OAAO,KAAK,CAAC,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC;AACpC,CAAC;AAED,SAAS,aAAa,CAAC,QAA2B,EAAE,KAAa;IAC7D,IAAI,KAAK,GAAG,CAAC,CAAC;IACd,IAAI,IAAI,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC;IAE3B,OAAO,IAAI,CAAC,IAAI,KAAK,IAAI,IAAI,KAAK,GAAG,KAAK,EAAE,CAAC;QACzC,KAAK,IAAI,CAAC,CAAC;QACX,IAAI,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC;IAC3B,CAAC;IAED,OAAO,KAAK,CAAC;AACjB,CAAC;AAED,SAAS,oBAAoB,CAAC,KAAc;IACxC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACpD,OAAO,KAAK,CAAC,MAAM,CAAC;IACxB,CAAC;IAED,IAAI,KAAK,YAAY,GAAG,IAAI,KAAK,YAAY,GAAG,EAAE,CAAC;QAC/C,OAAO,KAAK,CAAC,IAAI,CAAC;IACtB,CAAC;IAED,OAAO,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;AAC/D,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,KAAc,EAAE,KAAa;IACzD,MAAM,UAAU,GAAG,oBAAoB,CAAC,KAAK,CAAC,CAAC;IAE/C,IAAI,UAAU,KAAK,IAAI,EAAE,CAAC;QACtB,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;IAClD,CAAC;IAED,MAAM,QAAQ,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;IAEtC,OAAO,QAAQ,KAAK,IAAI;QACpB,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE;QAChC,CAAC,CAAC,EAAE,KAAK,EAAE,aAAa,CAAC,QAAQ,EAAE,KAAK,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;AACrE,CAAC"}
@@ -1,175 +0,0 @@
1
- import { serializeValue } from "../compare/serialized-value.js";
2
- import { assertionSummary } from "./assertion-node.js";
3
- import { assertionEvaluatorByCheck } from "./assertions/dispatch.js";
4
- import { resolveSourceLocation } from "./source-location.js";
5
- function primitiveValueType(value) {
6
- if (value === null) {
7
- return 'null';
8
- }
9
- const valueType = typeof value;
10
- return valueType === 'object' || valueType === 'function' ? null : valueType;
11
- }
12
- function invalidOperand(check, role, value, index) {
13
- const type = primitiveValueType(value);
14
- return type === null
15
- ? null
16
- : {
17
- check,
18
- index,
19
- role,
20
- type
21
- };
22
- }
23
- function invalidMember(check, role, values) {
24
- for (const [index, value] of values.entries()) {
25
- const invalid = invalidOperand(check, role, value, index);
26
- if (invalid !== null) {
27
- return invalid;
28
- }
29
- }
30
- return null;
31
- }
32
- function invalidExactDeepAssertionOperand(check, assertion) {
33
- return invalidOperand(check, 'actual', assertion.actual, null) ??
34
- invalidOperand(check, 'expected', assertion.expected, null);
35
- }
36
- function invalidArrayContainsPartialOperand(check, assertion) {
37
- const invalidActualMember = Array.isArray(assertion.actual)
38
- ? invalidMember(check, 'actual', assertion.actual)
39
- : null;
40
- return invalidOperand(check, 'actual', assertion.actual, null) ??
41
- invalidActualMember ??
42
- invalidOperand(check, 'expected', assertion.expected, null);
43
- }
44
- function invalidMembersPartialDeepEqualOperand(check, assertion) {
45
- const invalidActualMember = Array.isArray(assertion.actual)
46
- ? invalidMember(check, 'actual', assertion.actual)
47
- : null;
48
- const invalidExpectedMember = Array.isArray(assertion.expected)
49
- ? invalidMember(check, 'expected', assertion.expected)
50
- : null;
51
- return invalidOperand(check, 'actual', assertion.actual, null) ??
52
- invalidOperand(check, 'expected', assertion.expected, null) ??
53
- invalidActualMember ??
54
- invalidExpectedMember;
55
- }
56
- const deepOperandFinders = {
57
- 'array-contains-partial': invalidArrayContainsPartialOperand,
58
- 'deep-equal': invalidExactDeepAssertionOperand,
59
- 'members-partial-deep-equal': invalidMembersPartialDeepEqualOperand,
60
- 'not-deep-equal': invalidExactDeepAssertionOperand,
61
- 'partial-deep-equal': invalidExactDeepAssertionOperand
62
- };
63
- function isDeepAssertionCheck(check) {
64
- return Object.hasOwn(deepOperandFinders, check);
65
- }
66
- function isDeepAssertion(assertion) {
67
- return isDeepAssertionCheck(assertion.check) && Object.hasOwn(assertion, 'expected');
68
- }
69
- export function invalidDeepAssertionOperand(assertion) {
70
- if (assertion.check === 'composite') {
71
- for (const child of assertion.children) {
72
- const invalid = invalidDeepAssertionOperand(child);
73
- if (invalid !== null) {
74
- return invalid;
75
- }
76
- }
77
- return null;
78
- }
79
- return isDeepAssertion(assertion)
80
- ? deepOperandFinders[assertion.check](assertion.check, assertion)
81
- : null;
82
- }
83
- function evaluateAssertionNode(check, assertion) {
84
- return assertionEvaluatorByCheck[check](assertion);
85
- }
86
- function assertNonEmptyItems(items, message) {
87
- if (items.length === 0) {
88
- throw new TypeError(message);
89
- }
90
- }
91
- function resolveSourceLocations(sourceLocations) {
92
- const resolved = sourceLocations.map(resolveSourceLocation);
93
- assertNonEmptyItems(resolved, 'Expected resolved assertion source locations to be non-empty.');
94
- return resolved;
95
- }
96
- function evaluateForeignAssertion(assertion, id) {
97
- if (assertion.result.passed) {
98
- return null;
99
- }
100
- return {
101
- actual: serializeValue(assertion.label),
102
- diff: null,
103
- error: assertion.result.error,
104
- expected: serializeValue('foreign assertion pass'),
105
- id,
106
- kind: 'foreign',
107
- label: assertion.label,
108
- path: [],
109
- source: assertion.source,
110
- sourceLocations: resolveSourceLocations(assertion.sourceLocations),
111
- summary: assertion.message ?? assertion.summary
112
- };
113
- }
114
- function evaluateLeafAssertion(assertion, id) {
115
- const evaluation = {
116
- ...evaluateAssertionNode(assertion.check, assertion),
117
- summary: assertionSummary(assertion)
118
- };
119
- if (evaluation.passed) {
120
- return null;
121
- }
122
- return {
123
- actual: evaluation.actual,
124
- diff: evaluation.diff,
125
- expected: evaluation.expected,
126
- id,
127
- kind: 'leaf',
128
- path: evaluation.path,
129
- source: assertion.source,
130
- sourceLocations: resolveSourceLocations(assertion.sourceLocations),
131
- summary: evaluation.summary
132
- };
133
- }
134
- function evaluateCompositeChild(assertion, id) {
135
- if (assertion.check === 'foreign') {
136
- return evaluateForeignAssertion(assertion, id);
137
- }
138
- return evaluateLeafAssertion(assertion, id);
139
- }
140
- function evaluateCompositeAssertion(assertion, id) {
141
- const children = assertion.children.flatMap(function evaluateChild(child, index) {
142
- const failedCheck = evaluateCompositeChild(child, `${id}.${index + 1}`);
143
- return failedCheck === null ? [] : [failedCheck];
144
- });
145
- if (children.length === 0) {
146
- return null;
147
- }
148
- assertNonEmptyItems(children, 'Expected composite assertion failure to contain failed children.');
149
- return {
150
- actual: serializeValue(assertion.actual),
151
- children,
152
- diff: null,
153
- expected: serializeValue(assertion.expected),
154
- id,
155
- kind: 'composite',
156
- path: [],
157
- source: assertion.source,
158
- sourceLocations: resolveSourceLocations(assertion.sourceLocations),
159
- summary: assertionSummary(assertion)
160
- };
161
- }
162
- export function evaluateAssertion(assertion, id) {
163
- const checkId = String(id);
164
- if (assertion.check === 'composite') {
165
- return evaluateCompositeAssertion(assertion, checkId);
166
- }
167
- if (assertion.check === 'foreign') {
168
- return evaluateForeignAssertion(assertion, checkId);
169
- }
170
- return evaluateLeafAssertion(assertion, checkId);
171
- }
172
- export function assertionPasses(assertion) {
173
- return evaluateAssertion(assertion, 1) === null;
174
- }
175
- //# sourceMappingURL=evaluation.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"evaluation.js","sourceRoot":"","sources":["../../../../source/assertion-protocol/evaluation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAEhE,OAAO,EACH,gBAAgB,EAMnB,MAAM,qBAAqB,CAAC;AAQ7B,OAAO,EAAE,yBAAyB,EAA6B,MAAM,0BAA0B,CAAC;AAChG,OAAO,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AA4C7D,SAAS,kBAAkB,CAAC,KAAc;IACtC,IAAI,KAAK,KAAK,IAAI,EAAE,CAAC;QACjB,OAAO,MAAM,CAAC;IAClB,CAAC;IAED,MAAM,SAAS,GAAG,OAAO,KAAK,CAAC;IAE/B,OAAO,SAAS,KAAK,QAAQ,IAAI,SAAS,KAAK,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;AACjF,CAAC;AAED,SAAS,cAAc,CACnB,KAAyB,EACzB,IAA8B,EAC9B,KAAc,EACd,KAAoB;IAEpB,MAAM,IAAI,GAAG,kBAAkB,CAAC,KAAK,CAAC,CAAC;IAEvC,OAAO,IAAI,KAAK,IAAI;QAChB,CAAC,CAAC,IAAI;QAC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E,CAAC,CAAC,CAAC,CAAE,WAAW,CAAE,CAAC;IACvD,CAAC,CAAC,CAAC;IAEH,IAAI,QAAQ,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACxB,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,mBAAmB,CAAC,QAAQ,EAAE,kEAAkE,CAAC,CAAC;IAElG,OAAO;QACH,MAAM,EAAE,cAAc,CAAC,SAAS,CAAC,MAAM,CAAC;QACxC,QAAQ;QACR,IAAI,EAAE,IAAI;QACV,QAAQ,EAAE,cAAc,CAAC,SAAS,CAAC,QAAQ,CAAC;QAC5C,EAAE;QACF,IAAI,EAAE,WAAW;QACjB,IAAI,EAAE,EAAE;QACR,MAAM,EAAE,SAAS,CAAC,MAAM;QACxB,eAAe,EAAE,sBAAsB,CAAC,SAAS,CAAC,eAAe,CAAC;QAClE,OAAO,EAAE,gBAAgB,CAAC,SAAS,CAAC;KACvC,CAAC;AACN,CAAC;AAED,MAAM,UAAU,iBAAiB,CAC7B,SAAsD,EACtD,EAAmB;IAEnB,MAAM,OAAO,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC;IAE3B,IAAI,SAAS,CAAC,KAAK,KAAK,WAAW,EAAE,CAAC;QAClC,OAAO,0BAA0B,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IAC1D,CAAC;IAED,IAAI,SAAS,CAAC,KAAK,KAAK,SAAS,EAAE,CAAC;QAChC,OAAO,wBAAwB,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IACxD,CAAC;IAED,OAAO,qBAAqB,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;AACrD,CAAC;AAED,MAAM,UAAU,eAAe,CAAC,SAAwB;IACpD,OAAO,iBAAiB,CAAC,SAAS,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC;AACpD,CAAC"}
@@ -1,13 +0,0 @@
1
- import "../compare/comparison.js";
2
- export function isPlainObject(value) {
3
- if (typeof value !== 'object' || value === null || Array.isArray(value)) {
4
- return false;
5
- }
6
- const prototype = Object.getPrototypeOf(value);
7
- return prototype === Object.prototype || prototype === null;
8
- }
9
- export function ownKeys(value) {
10
- return Reflect.ownKeys(value);
11
- }
12
-
13
- //# sourceMappingURL=partial-matching.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"partial-matching.js","sourceRoot":"","sources":["../../../../source/assertion-protocol/partial-matching.ts"],"names":[],"mappings":"AAAA,OAAkC,0BAA0B,CAAC;AAE7D,MAAM,UAAU,aAAa,CAAC,KAAc;IACxC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,CAAC;QACtE,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,MAAM,SAAS,GAAY,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;IAExD,OAAO,SAAS,KAAK,MAAM,CAAC,SAAS,IAAI,SAAS,KAAK,IAAI,CAAC;AAChE,CAAC;AAED,MAAM,UAAU,OAAO,CAAC,KAA6C;IACjE,OAAO,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAClC,CAAC"}
@@ -1,32 +0,0 @@
1
- import { AsyncLocalStorage } from 'node:async_hooks';
2
- const assertionSourceLocationStorageKey = Symbol.for('@overkill-dev/assertion-source-location-storage');
3
- function isAssertionSourceLocationStorage(value) {
4
- return value instanceof AsyncLocalStorage;
5
- }
6
- function assertionSourceLocationStorage() {
7
- const existing = Reflect.get(globalThis, assertionSourceLocationStorageKey);
8
- if (isAssertionSourceLocationStorage(existing)) {
9
- return existing;
10
- }
11
- const storage = new AsyncLocalStorage();
12
- Reflect.set(globalThis, assertionSourceLocationStorageKey, storage);
13
- return storage;
14
- }
15
- function readActiveSourceLocations() {
16
- return assertionSourceLocationStorage().getStore() ?? [];
17
- }
18
- function assertNonEmptySourceLocations(sourceLocations) {
19
- if (sourceLocations.length === 0) {
20
- throw new TypeError('Assertion source location forwarding requires at least one location.');
21
- }
22
- }
23
- export function sourceLocationsWithCurrentForwarding(captureLocation) {
24
- const sourceLocations = [
25
- ...readActiveSourceLocations(),
26
- captureLocation()
27
- ];
28
- assertNonEmptySourceLocations(sourceLocations);
29
- return sourceLocations;
30
- }
31
-
32
- //# sourceMappingURL=source-location-forwarding.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"source-location-forwarding.js","sourceRoot":"","sources":["../../../../source/assertion-protocol/source-location-forwarding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAMrD,MAAM,iCAAiC,GAAG,MAAM,CAAC,GAAG,CAAC,iDAAiD,CAAC,CAAC;AAExG,SAAS,gCAAgC,CACrC,KAAc;IAEd,OAAO,KAAK,YAAY,iBAAiB,CAAC;AAC9C,CAAC;AAED,SAAS,8BAA8B;IACnC,MAAM,QAAQ,GAAY,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,iCAAiC,CAAC,CAAC;IAErF,IAAI,gCAAgC,CAAC,QAAQ,CAAC,EAAE,CAAC;QAC7C,OAAO,QAAQ,CAAC;IACpB,CAAC;IAED,MAAM,OAAO,GAAG,IAAI,iBAAiB,EAAuC,CAAC;IAC7E,OAAO,CAAC,GAAG,CAAC,UAAU,EAAE,iCAAiC,EAAE,OAAO,CAAC,CAAC;IAEpE,OAAO,OAAO,CAAC;AACnB,CAAC;AAED,SAAS,yBAAyB;IAC9B,OAAO,8BAA8B,EAAE,CAAC,QAAQ,EAAE,IAAI,EAAE,CAAC;AAC7D,CAAC;AAED,SAAS,6BAA6B,CAClC,eAAoD;IAEpD,IAAI,eAAe,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAC/B,MAAM,IAAI,SAAS,CAAC,sEAAsE,CAAC,CAAC;IAChG,CAAC;AACL,CAAC;AAED,MAAM,UAAU,oCAAoC,CAChD,eAA+C;IAE/C,MAAM,eAAe,GAAG;QACpB,GAAG,yBAAyB,EAAE;QAC9B,eAAe,EAAE;KACpB,CAAC;IAEF,6BAA6B,CAAC,eAAe,CAAC,CAAC;IAE/C,OAAO,eAAe,CAAC;AAC3B,CAAC"}
@@ -1,119 +0,0 @@
1
- import { fileURLToPath } from 'node:url';
2
- export const unknownSourceLocation = {
3
- kind: 'unknown'
4
- };
5
- const stackFramePattern = /^\s*at (?:.+? \()?(?<file>.+):(?<line>\d+):(?<column>\d+)\)?$/u;
6
- const internalModulePatterns = [
7
- /\/property\/property-authoring\.[cm]?[jt]s$/u,
8
- /\/authoring\/test-node-authoring\.[cm]?[jt]s$/u,
9
- /\/assertion-protocol\/source-location\.[cm]?[jt]s$/u,
10
- /\/assertion-protocol\/source-location-forwarding\.[cm]?[jt]s$/u,
11
- /\/assertion-protocol\/assertion-reference\.[cm]?[jt]s$/u,
12
- /\/engine\/assertion-facade\.[cm]?[jt]s$/u,
13
- /\/engine\/custom-assertion-recording\.[cm]?[jt]s$/u,
14
- /\/engine\/require-assertion-facade\.[cm]?[jt]s$/u,
15
- /\/packages\/test\/authoring-source-locations\.[cm]?[jt]s$/u,
16
- /\/packages\/test\/table-authoring\.[cm]?[jt]s$/u,
17
- /\/packages\/test\/test-authoring\.[cm]?[jt]s$/u,
18
- /\/packages\/test\/test\.entry-point\.[cm]?[jt]s$/u
19
- ];
20
- function normalizeStackFile(file) {
21
- if (!file.startsWith('file:')) {
22
- return file;
23
- }
24
- try {
25
- return fileURLToPath(file);
26
- }
27
- catch {
28
- return file;
29
- }
30
- }
31
- function stackFileIsInternal(file) {
32
- if (file.length === 0 || file.startsWith('node:')) {
33
- return true;
34
- }
35
- const normalizedFile = file.replaceAll('\\', '/');
36
- return internalModulePatterns.some(function patternMatches(pattern) {
37
- return pattern.test(normalizedFile);
38
- });
39
- }
40
- function knownSourceLocation(file, line, column) {
41
- if (file.length === 0) {
42
- throw new TypeError('Known source location file must not be empty.');
43
- }
44
- return { column, file, kind: 'known', line };
45
- }
46
- export function ensureValidSourceLocation(location) {
47
- if (location.kind === 'known' && location.file.length === 0) {
48
- throw new TypeError('Known source location file must not be empty.');
49
- }
50
- }
51
- export function ensureKnownSourceLocation(location) {
52
- ensureValidSourceLocation(location);
53
- return location.kind === 'known' ? location : null;
54
- }
55
- function sourceLocationFromStackGroups(groups) {
56
- const file = normalizeStackFile(groups.file);
57
- return stackFileIsInternal(file)
58
- ? null
59
- : knownSourceLocation(file, Number(groups.line), Number(groups.column));
60
- }
61
- function isStackFrameGroups(groups) {
62
- return groups.file !== undefined && groups.line !== undefined && groups.column !== undefined;
63
- }
64
- function sourceLocationFromStackLine(line) {
65
- const groups = stackFramePattern.exec(line)?.groups;
66
- return groups !== undefined && isStackFrameGroups(groups)
67
- ? sourceLocationFromStackGroups(groups)
68
- : null;
69
- }
70
- export function sourceLocationFromStack(stack) {
71
- return stack.split('\n').reduce(function findLocation(found, line) {
72
- return found ?? sourceLocationFromStackLine(line);
73
- }, null) ?? unknownSourceLocation;
74
- }
75
- export function captureSourceLocation() {
76
- const stackCarrier = new Error('Overkill source location');
77
- let location = null;
78
- return function capturedSourceLocation() {
79
- if (location === null) {
80
- location = sourceLocationFromStack(stackCarrier.stack ?? '');
81
- }
82
- return location;
83
- };
84
- }
85
- function resolveProviderSourceLocation(location) {
86
- try {
87
- return location();
88
- }
89
- catch {
90
- return null;
91
- }
92
- }
93
- export function resolveSourceLocation(location) {
94
- if (typeof location !== 'function') {
95
- ensureValidSourceLocation(location);
96
- return location;
97
- }
98
- const resolvedLocation = resolveProviderSourceLocation(location);
99
- if (resolvedLocation === null) {
100
- return unknownSourceLocation;
101
- }
102
- ensureValidSourceLocation(resolvedLocation);
103
- return resolvedLocation;
104
- }
105
- export function resolveSourceLocations(locations) {
106
- const [first, ...remaining] = locations;
107
- return [resolveSourceLocation(first), ...remaining.map(resolveSourceLocation)];
108
- }
109
- export function ensureDefinitionLocations(definitionLocations) {
110
- if (definitionLocations.length === 0) {
111
- throw new TypeError('Test node definition locations must contain at least one location.');
112
- }
113
- for (const location of definitionLocations) {
114
- if (typeof location !== 'function') {
115
- ensureValidSourceLocation(location);
116
- }
117
- }
118
- }
119
- //# sourceMappingURL=source-location.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"source-location.js","sourceRoot":"","sources":["../../../../source/assertion-protocol/source-location.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AASzC,MAAM,CAAC,MAAM,qBAAqB,GAAmB;IACjD,IAAI,EAAE,SAAS;CAClB,CAAC;AAEF,MAAM,iBAAiB,GAAG,gEAAgE,CAAC;AAE3F,MAAM,sBAAsB,GAAG;IAC3B,8CAA8C;IAC9C,gDAAgD;IAChD,qDAAqD;IACrD,gEAAgE;IAChE,yDAAyD;IACzD,0CAA0C;IAC1C,oDAAoD;IACpD,kDAAkD;IAClD,4DAA4D;IAC5D,iDAAiD;IACjD,gDAAgD;IAChD,mDAAmD;CAC7C,CAAC;AAEX,SAAS,kBAAkB,CAAC,IAAY;IACpC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;QAC5B,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,IAAI,CAAC;QACD,OAAO,aAAa,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;IAAC,MAAM,CAAC;QACL,OAAO,IAAI,CAAC;IAChB,CAAC;AACL,CAAC;AAED,SAAS,mBAAmB,CAAC,IAAY;IACrC,IAAI,IAAI,CAAC,MAAM,KAAK,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;QAChD,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,MAAM,cAAc,GAAG,IAAI,CAAC,UAAU,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAElD,OAAO,sBAAsB,CAAC,IAAI,CAAC,SAAS,cAAc,CAAC,OAAO;QAC9D,OAAO,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC;IACxC,CAAC,CAAC,CAAC;AACP,CAAC;AAQD,SAAS,mBA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C,CAAC;IAED,yBAAyB,CAAC,gBAAgB,CAAC,CAAC;IAE5C,OAAO,gBAAgB,CAAC;AAC5B,CAAC;AAED,MAAM,UAAU,sBAAsB,CAClC,SAA0D;IAE1D,MAAM,CAAE,KAAK,EAAE,GAAG,SAAS,CAAE,GAAG,SAAS,CAAC;IAC1C,OAAO,CAAE,qBAAqB,CAAC,KAAK,CAAC,EAAE,GAAG,SAAS,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAE,CAAC;AACrF,CAAC;AAED,MAAM,UAAU,yBAAyB,CAAC,mBAAwD;IAC9F,IAAI,mBAAmB,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QACnC,MAAM,IAAI,SAAS,CAAC,oEAAoE,CAAC,CAAC;IAC9F,CAAC;IAED,KAAK,MAAM,QAAQ,IAAI,mBAAmB,EAAE,CAAC;QACzC,IAAI,OAAO,QAAQ,KAAK,UAAU,EAAE,CAAC;YACjC,yBAAyB,CAAC,QAAQ,CAAC,CAAC;QACxC,CAAC;IACL,CAAC;AACL,CAAC"}
@@ -1,7 +0,0 @@
1
- export type ThrownErrorRecord = {
2
- readonly message: string;
3
- readonly name: string;
4
- readonly stack: string | null;
5
- readonly thrown: unknown;
6
- };
7
- //# sourceMappingURL=thrown-error-record.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"thrown-error-record.d.ts","sourceRoot":"","sources":["../../../../source/assertion-protocol/thrown-error-record.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG;IAC5B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;CAC5B,CAAC"}
@@ -1,17 +0,0 @@
1
- export function createThrownErrorRecord(thrown) {
2
- if (thrown instanceof Error) {
3
- return {
4
- message: thrown.message,
5
- name: thrown.name,
6
- stack: thrown.stack ?? null,
7
- thrown
8
- };
9
- }
10
- return {
11
- message: 'Test body threw a non-error value.',
12
- name: typeof thrown,
13
- stack: null,
14
- thrown
15
- };
16
- }
17
- //# sourceMappingURL=thrown-error-record.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"thrown-error-record.js","sourceRoot":"","sources":["../../../../source/assertion-protocol/thrown-error-record.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,uBAAuB,CAAC,MAAe;IACnD,IAAI,MAAM,YAAY,KAAK,EAAE,CAAC;QAC1B,OAAO;YACH,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,KAAK,EAAE,MAAM,CAAC,KAAK,IAAI,IAAI;YAC3B,MAAM;SACT,CAAC;IACN,CAAC;IAED,OAAO;QACH,OAAO,EAAE,oCAAoC;QAC7C,IAAI,EAAE,OAAO,MAAM;QACnB,KAAK,EAAE,IAAI;QACX,MAAM;KACT,CAAC;AACN,CAAC"}
@@ -1,34 +0,0 @@
1
- import type { InstanceConstructor } from './assertion-node-shape.ts';
2
- type OptionalFields<Shape, RequiredKey extends keyof Shape> = {
3
- readonly [ShapeKey in keyof Shape as ShapeKey extends RequiredKey ? never : ShapeKey]?: Shape[ShapeKey];
4
- };
5
- type RequiredField<Shape, RequiredKey extends keyof Shape> = {
6
- readonly [ShapeKey in RequiredKey]-?: Shape[ShapeKey];
7
- };
8
- type RequireAtLeastOne<Shape, Key extends keyof Shape = keyof Shape> = {
9
- readonly [RequiredKey in Key]: OptionalFields<Shape, RequiredKey> & RequiredField<Shape, RequiredKey>;
10
- }[Key];
11
- type ErrorConstructor = InstanceConstructor & (abstract new (...args: never[]) => Error);
12
- type ErrorMatcherFields = {
13
- readonly cause: ThrownMatcher;
14
- readonly code: string;
15
- readonly message: RegExp | string;
16
- readonly name: string;
17
- readonly type: ErrorConstructor;
18
- };
19
- export type ExactThrownMatcher = {
20
- readonly cause?: never;
21
- readonly code?: never;
22
- readonly exact: unknown;
23
- readonly message?: never;
24
- readonly name?: never;
25
- readonly type?: never;
26
- };
27
- export type ErrorMatcher = RequireAtLeastOne<ErrorMatcherFields> & {
28
- readonly exact?: never;
29
- };
30
- export type ThrownMatcher = ErrorMatcher | ExactThrownMatcher;
31
- type NonPromise<Body extends () => unknown> = ReturnType<Body> extends PromiseLike<unknown> ? never : Body;
32
- export type SynchronousCallback<Body extends () => unknown> = [ReturnType<Body>] extends [never] ? Body : NonPromise<Body>;
33
- export {};
34
- //# sourceMappingURL=thrown-matcher.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"thrown-matcher.d.ts","sourceRoot":"","sources":["../../../../source/assertion-protocol/thrown-matcher.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAMR,qBAGH,MAAM,2BAA2B,CAAC;AAEnC,KAAK,cAAc,CAAC,KAAK,EAAE,WAAW,SAAS,MAAM,KAAK,IAAI;IAC1D,QAAQ,EAAE,QAAQ,IAAI,MAAM,KAAK,IAAI,QAAQ,SAAS,WAAW,GAAG,KAAK,GAAG,QAAQ,CAAC,CAAC,EAAE,KAAK,CAAC,QAAQ,CAAC;CAC1G,CAAC;AAEF,KAAK,aAAa,CAAC,KAAK,EAAE,WAAW,SAAS,MAAM,KAAK,IAAI;IACzD,QAAQ,EAAE,QAAQ,IAAI,WAAW,CAAC,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC;CACxD,CAAC;AAEF,KAAK,iBAAiB,CAAC,KAAK,EAAE,GAAG,SAAS,MAAM,KAAK,GAAG,MAAM,KAAK,IAAI;IACnE,QAAQ,EAAE,WAAW,IAAI,GAAG,GAAG,cAAc,CAAC,KAAK,EAAE,WAAW,CAAC,GAAG,aAAa,CAAC,KAAK,EAAE,WAAW,CAAC;CACxG,CAAC,GAAG,CAAC,CAAC;AAEP,KAAK,gBAAgB,GAAG,mBAAmB,GAAG,CAAC,QAAQ,MAAM,GAAG,IAAI,EAAE,KAAK,EAAE,K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