@sentry/mcp-server 0.10.0 → 0.12.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 (271) hide show
  1. package/dist/api-client/client.cjs +4 -4
  2. package/dist/api-client/client.d.cts +3 -3
  3. package/dist/api-client/client.d.ts +3 -3
  4. package/dist/api-client/client.js +2 -2
  5. package/dist/api-client/client.test.cjs +8 -9
  6. package/dist/api-client/client.test.cjs.map +1 -1
  7. package/dist/api-client/client.test.js +4 -4
  8. package/dist/api-client/index.cjs +41 -38
  9. package/dist/api-client/index.d.cts +4 -4
  10. package/dist/api-client/index.d.ts +4 -4
  11. package/dist/api-client/index.js +5 -5
  12. package/dist/api-client/schema.cjs +36 -33
  13. package/dist/api-client/schema.d.cts +2 -2
  14. package/dist/api-client/schema.d.ts +2 -2
  15. package/dist/api-client/schema.js +2 -2
  16. package/dist/api-client/types.cjs +1 -1
  17. package/dist/api-client/types.d.cts +3 -3
  18. package/dist/api-client/types.d.ts +3 -3
  19. package/dist/api-client/types.js +1 -1
  20. package/dist/{chunk-CsIcISPO.js → chunk-BLXvPPr8.js} +1 -1
  21. package/dist/{chunk-BtT13l48.cjs → chunk-DWy1uDak.cjs} +0 -1
  22. package/dist/client-4jq_wVgn.d.ts +522 -0
  23. package/dist/client-4jq_wVgn.d.ts.map +1 -0
  24. package/dist/client-B7vZ6JMk.cjs +572 -0
  25. package/dist/client-B7vZ6JMk.cjs.map +1 -0
  26. package/dist/client-CAoHZbyK.js +561 -0
  27. package/dist/client-CAoHZbyK.js.map +1 -0
  28. package/dist/client-DkY0ifZf.d.cts +522 -0
  29. package/dist/client-DkY0ifZf.d.cts.map +1 -0
  30. package/dist/{dist-wiyJYfAH.cjs → dist-BlIWGSIM.cjs} +318 -164
  31. package/dist/dist-BlIWGSIM.cjs.map +1 -0
  32. package/dist/{dist-BKh-M1A1.js → dist-DDpQABxe.js} +318 -163
  33. package/dist/dist-DDpQABxe.js.map +1 -0
  34. package/dist/errors-B9fwS-aP.cjs +21 -0
  35. package/dist/errors-B9fwS-aP.cjs.map +1 -0
  36. package/dist/errors-BJSrT6Ou.js +15 -0
  37. package/dist/errors-BJSrT6Ou.js.map +1 -0
  38. package/dist/errors.cjs +3 -0
  39. package/dist/errors.d.cts +12 -0
  40. package/dist/errors.d.cts.map +1 -0
  41. package/dist/errors.d.ts +12 -0
  42. package/dist/errors.d.ts.map +1 -0
  43. package/dist/errors.js +3 -0
  44. package/dist/errors.test.cjs +24 -0
  45. package/dist/errors.test.cjs.map +1 -0
  46. package/dist/errors.test.d.cts +1 -0
  47. package/dist/errors.test.d.ts +1 -0
  48. package/dist/errors.test.js +24 -0
  49. package/dist/errors.test.js.map +1 -0
  50. package/dist/{formatting-ggD6YRYR.js → formatting-BaARL2gT.js} +1 -1
  51. package/dist/formatting-BaARL2gT.js.map +1 -0
  52. package/dist/{formatting-B0SJqiqX.cjs → formatting-C2kN0ok6.cjs} +1 -2
  53. package/dist/formatting-C2kN0ok6.cjs.map +1 -0
  54. package/dist/index.cjs +19 -19
  55. package/dist/index.cjs.map +1 -1
  56. package/dist/index.js +18 -17
  57. package/dist/index.js.map +1 -1
  58. package/dist/internal/formatting.cjs +4 -4
  59. package/dist/internal/formatting.d.cts +5 -5
  60. package/dist/internal/formatting.d.cts.map +1 -1
  61. package/dist/internal/formatting.d.ts +5 -5
  62. package/dist/internal/formatting.d.ts.map +1 -1
  63. package/dist/internal/formatting.js +1 -1
  64. package/dist/internal/issue-helpers.cjs +4 -4
  65. package/dist/internal/issue-helpers.d.cts +10 -2
  66. package/dist/internal/issue-helpers.d.cts.map +1 -1
  67. package/dist/internal/issue-helpers.d.ts +10 -2
  68. package/dist/internal/issue-helpers.d.ts.map +1 -1
  69. package/dist/internal/issue-helpers.js +1 -1
  70. package/dist/internal/issue-helpers.test.cjs +21 -25
  71. package/dist/internal/issue-helpers.test.cjs.map +1 -1
  72. package/dist/internal/issue-helpers.test.js +5 -8
  73. package/dist/internal/issue-helpers.test.js.map +1 -1
  74. package/dist/{issue-helpers-CyoHu5j4.js → issue-helpers-BMVLc3mR.js} +16 -2
  75. package/dist/issue-helpers-BMVLc3mR.js.map +1 -0
  76. package/dist/{issue-helpers-DbsECZFq.cjs → issue-helpers-D712fGT2.cjs} +16 -3
  77. package/dist/issue-helpers-D712fGT2.cjs.map +1 -0
  78. package/dist/{logging-BEMgC5SA.cjs → logging-ByvSjT6V.cjs} +2 -3
  79. package/dist/logging-ByvSjT6V.cjs.map +1 -0
  80. package/dist/{logging-Cxm8lQvg.js → logging-CXLD0FFB.js} +1 -1
  81. package/dist/logging-CXLD0FFB.js.map +1 -0
  82. package/dist/logging.cjs +2 -2
  83. package/dist/logging.d.cts +31 -3
  84. package/dist/logging.d.cts.map +1 -1
  85. package/dist/logging.d.ts +31 -3
  86. package/dist/logging.d.ts.map +1 -1
  87. package/dist/logging.js +1 -1
  88. package/dist/{magic-string.es-m-ldRjOa.cjs → magic-string.es-CybcVAw7.cjs} +2 -3
  89. package/dist/{magic-string.es-m-ldRjOa.cjs.map → magic-string.es-CybcVAw7.cjs.map} +1 -1
  90. package/dist/{promptDefinitions-pHRpPOpJ.cjs → promptDefinitions-BTLIBcGt.cjs} +10 -4
  91. package/dist/promptDefinitions-BTLIBcGt.cjs.map +1 -0
  92. package/dist/{promptDefinitions-tpKruPny.d.ts → promptDefinitions-CF2VWdQ6.d.cts} +12 -4
  93. package/dist/promptDefinitions-CF2VWdQ6.d.cts.map +1 -0
  94. package/dist/{promptDefinitions-BR7PxWcH.d.cts → promptDefinitions-D5FSQckL.d.ts} +11 -3
  95. package/dist/promptDefinitions-D5FSQckL.d.ts.map +1 -0
  96. package/dist/{promptDefinitions-DBNOeSg-.js → promptDefinitions-D8yow1m0.js} +9 -2
  97. package/dist/promptDefinitions-D8yow1m0.js.map +1 -0
  98. package/dist/promptDefinitions.cjs +3 -3
  99. package/dist/promptDefinitions.d.cts +1 -1
  100. package/dist/promptDefinitions.d.ts +1 -1
  101. package/dist/promptDefinitions.js +2 -2
  102. package/dist/{prompts-nfFU-zY-.cjs → prompts-CDbQrutV.cjs} +3 -3
  103. package/dist/prompts-CDbQrutV.cjs.map +1 -0
  104. package/dist/{prompts-DgWOD2rU.js → prompts-Dt3A8Qfl.js} +4 -2
  105. package/dist/prompts-Dt3A8Qfl.js.map +1 -0
  106. package/dist/prompts.cjs +3 -2
  107. package/dist/prompts.d.cts +4 -5
  108. package/dist/prompts.d.cts.map +1 -1
  109. package/dist/prompts.d.ts +4 -5
  110. package/dist/prompts.d.ts.map +1 -1
  111. package/dist/prompts.js +2 -1
  112. package/dist/{resources-OM3EAnnj.js → resources-Bol20Xuo.js} +13 -1
  113. package/dist/resources-Bol20Xuo.js.map +1 -0
  114. package/dist/{resources-BAE7VVZZ.cjs → resources-DNyoutxH.cjs} +13 -2
  115. package/dist/resources-DNyoutxH.cjs.map +1 -0
  116. package/dist/resources.cjs +2 -2
  117. package/dist/resources.d.cts +9 -1
  118. package/dist/resources.d.cts.map +1 -1
  119. package/dist/resources.d.ts +9 -1
  120. package/dist/resources.d.ts.map +1 -1
  121. package/dist/resources.js +1 -1
  122. package/dist/{schema-B7A-FyIi.d.ts → schema-BJv7kREf.d.cts} +215 -68
  123. package/dist/schema-BJv7kREf.d.cts.map +1 -0
  124. package/dist/{schema-jk88gqOu.cjs → schema-BTfISwFu.cjs} +30 -4
  125. package/dist/schema-BTfISwFu.cjs.map +1 -0
  126. package/dist/{schema-PvgLrC1b.d.cts → schema-BnxGHL_i.d.ts} +215 -68
  127. package/dist/schema-BnxGHL_i.d.ts.map +1 -0
  128. package/dist/{schema-3VLYcf4D.cjs → schema-BsvGMALe.cjs} +59 -8
  129. package/dist/schema-BsvGMALe.cjs.map +1 -0
  130. package/dist/{schema-Dltbjui7.js → schema-C_hp0BR7.js} +41 -7
  131. package/dist/schema-C_hp0BR7.js.map +1 -0
  132. package/dist/schema-Dv6aLZgz.js +32 -0
  133. package/dist/schema-Dv6aLZgz.js.map +1 -0
  134. package/dist/schema.cjs +13 -11
  135. package/dist/schema.d.cts +14 -5
  136. package/dist/schema.d.cts.map +1 -1
  137. package/dist/schema.d.ts +14 -5
  138. package/dist/schema.d.ts.map +1 -1
  139. package/dist/schema.js +2 -2
  140. package/dist/{server-yb4PkNyo.js → server-C7cHq_pc.js} +82 -27
  141. package/dist/server-C7cHq_pc.js.map +1 -0
  142. package/dist/{server-VwFSUPQn.cjs → server-DeutbO8v.cjs} +83 -29
  143. package/dist/server-DeutbO8v.cjs.map +1 -0
  144. package/dist/server.cjs +16 -15
  145. package/dist/server.d.cts +24 -6
  146. package/dist/server.d.cts.map +1 -1
  147. package/dist/server.d.ts +24 -6
  148. package/dist/server.d.ts.map +1 -1
  149. package/dist/server.js +15 -14
  150. package/dist/stdio-B73CCTly.cjs +47 -0
  151. package/dist/stdio-B73CCTly.cjs.map +1 -0
  152. package/dist/stdio-ZQLC-i5Q.js +41 -0
  153. package/dist/stdio-ZQLC-i5Q.js.map +1 -0
  154. package/dist/test-setup.cjs +653 -438
  155. package/dist/test-setup.cjs.map +1 -1
  156. package/dist/test-setup.js +653 -438
  157. package/dist/test-setup.js.map +1 -1
  158. package/dist/{toolDefinitions-B94CNDbt.d.cts → toolDefinitions-BOMF-zIC.d.ts} +148 -18
  159. package/dist/toolDefinitions-BOMF-zIC.d.ts.map +1 -0
  160. package/dist/{toolDefinitions-DIhvw3vk.cjs → toolDefinitions-CUegGcWU.cjs} +128 -7
  161. package/dist/toolDefinitions-CUegGcWU.cjs.map +1 -0
  162. package/dist/{toolDefinitions-Bb_1ejkl.js → toolDefinitions-DFAxp3nr.js} +127 -5
  163. package/dist/toolDefinitions-DFAxp3nr.js.map +1 -0
  164. package/dist/{toolDefinitions-q_1-70fG.d.ts → toolDefinitions-Ipvr4Acw.d.cts} +149 -19
  165. package/dist/toolDefinitions-Ipvr4Acw.d.cts.map +1 -0
  166. package/dist/toolDefinitions.cjs +3 -3
  167. package/dist/toolDefinitions.d.cts +1 -1
  168. package/dist/toolDefinitions.d.ts +1 -1
  169. package/dist/toolDefinitions.js +2 -2
  170. package/dist/toolDefinitions.test.cjs +3 -4
  171. package/dist/toolDefinitions.test.cjs.map +1 -1
  172. package/dist/toolDefinitions.test.js +3 -3
  173. package/dist/{tools-CMFpMPpD.js → tools-DpiQwSTY.js} +156 -13
  174. package/dist/tools-DpiQwSTY.js.map +1 -0
  175. package/dist/{tools-BdkmyaZo.cjs → tools-DyOqlsCW.cjs} +157 -15
  176. package/dist/tools-DyOqlsCW.cjs.map +1 -0
  177. package/dist/tools.cjs +10 -9
  178. package/dist/tools.d.cts +121 -8
  179. package/dist/tools.d.cts.map +1 -1
  180. package/dist/tools.d.ts +121 -8
  181. package/dist/tools.d.ts.map +1 -1
  182. package/dist/tools.js +9 -8
  183. package/dist/tools.test.cjs +330 -35
  184. package/dist/tools.test.cjs.map +1 -1
  185. package/dist/tools.test.js +311 -15
  186. package/dist/tools.test.js.map +1 -1
  187. package/dist/transports/stdio.cjs +17 -16
  188. package/dist/transports/stdio.d.cts +27 -6
  189. package/dist/transports/stdio.d.cts.map +1 -1
  190. package/dist/transports/stdio.d.ts +27 -6
  191. package/dist/transports/stdio.d.ts.map +1 -1
  192. package/dist/transports/stdio.js +16 -15
  193. package/dist/{types-jftb-CP9.d.ts → types-D5TPcOfv.d.ts} +4 -4
  194. package/dist/types-D5TPcOfv.d.ts.map +1 -0
  195. package/dist/{types-OeoNXRm-.d.cts → types-DRF2IoP_.d.cts} +4 -4
  196. package/dist/types-DRF2IoP_.d.cts.map +1 -0
  197. package/dist/{types-B03G337q.d.cts → types-Daq2fm0E.d.ts} +7 -5
  198. package/dist/types-Daq2fm0E.d.ts.map +1 -0
  199. package/dist/{types-CN4NEway.d.ts → types-NIQW7KyF.d.cts} +7 -5
  200. package/dist/types-NIQW7KyF.d.cts.map +1 -0
  201. package/dist/types.d.cts +3 -3
  202. package/dist/types.d.ts +3 -3
  203. package/dist/{version-CDnh7DyW.cjs → version-BNmubeQI.cjs} +2 -3
  204. package/dist/{version-CDnh7DyW.cjs.map → version-BNmubeQI.cjs.map} +1 -1
  205. package/dist/version-CRto5Sn_.js +6 -0
  206. package/dist/{version-TjO7fHpC.js.map → version-CRto5Sn_.js.map} +1 -1
  207. package/dist/version.cjs +2 -2
  208. package/dist/version.d.cts +1 -2
  209. package/dist/version.d.cts.map +1 -1
  210. package/dist/version.d.ts +1 -2
  211. package/dist/version.d.ts.map +1 -1
  212. package/dist/version.js +1 -1
  213. package/dist/{vi.ClIskdbk-De9q3829.js → vi.bdSIJ99Y-BfJr7I2s.js} +241 -171
  214. package/dist/vi.bdSIJ99Y-BfJr7I2s.js.map +1 -0
  215. package/dist/{vi.ClIskdbk-Bs263gvI.cjs → vi.bdSIJ99Y-Dft_B_Ta.cjs} +243 -182
  216. package/dist/vi.bdSIJ99Y-Dft_B_Ta.cjs.map +1 -0
  217. package/package.json +8 -8
  218. package/dist/client-B4Ux5Zdg.cjs +0 -227
  219. package/dist/client-B4Ux5Zdg.cjs.map +0 -1
  220. package/dist/client-Bz_PNC8o.js +0 -215
  221. package/dist/client-Bz_PNC8o.js.map +0 -1
  222. package/dist/client-J6VSRmQS.d.ts +0 -177
  223. package/dist/client-J6VSRmQS.d.ts.map +0 -1
  224. package/dist/client-tE6FD__9.d.cts +0 -177
  225. package/dist/client-tE6FD__9.d.cts.map +0 -1
  226. package/dist/dist-BKh-M1A1.js.map +0 -1
  227. package/dist/dist-wiyJYfAH.cjs.map +0 -1
  228. package/dist/formatting-B0SJqiqX.cjs.map +0 -1
  229. package/dist/formatting-ggD6YRYR.js.map +0 -1
  230. package/dist/issue-helpers-CyoHu5j4.js.map +0 -1
  231. package/dist/issue-helpers-DbsECZFq.cjs.map +0 -1
  232. package/dist/logging-BEMgC5SA.cjs.map +0 -1
  233. package/dist/logging-Cxm8lQvg.js.map +0 -1
  234. package/dist/promptDefinitions-BR7PxWcH.d.cts.map +0 -1
  235. package/dist/promptDefinitions-DBNOeSg-.js.map +0 -1
  236. package/dist/promptDefinitions-pHRpPOpJ.cjs.map +0 -1
  237. package/dist/promptDefinitions-tpKruPny.d.ts.map +0 -1
  238. package/dist/prompts-DgWOD2rU.js.map +0 -1
  239. package/dist/prompts-nfFU-zY-.cjs.map +0 -1
  240. package/dist/resources-BAE7VVZZ.cjs.map +0 -1
  241. package/dist/resources-OM3EAnnj.js.map +0 -1
  242. package/dist/schema-3VLYcf4D.cjs.map +0 -1
  243. package/dist/schema-B7A-FyIi.d.ts.map +0 -1
  244. package/dist/schema-BKa41TQ4.js +0 -17
  245. package/dist/schema-BKa41TQ4.js.map +0 -1
  246. package/dist/schema-Dltbjui7.js.map +0 -1
  247. package/dist/schema-PvgLrC1b.d.cts.map +0 -1
  248. package/dist/schema-jk88gqOu.cjs.map +0 -1
  249. package/dist/server-VwFSUPQn.cjs.map +0 -1
  250. package/dist/server-yb4PkNyo.js.map +0 -1
  251. package/dist/stdio-65sYKLOk.cjs +0 -26
  252. package/dist/stdio-65sYKLOk.cjs.map +0 -1
  253. package/dist/stdio-DkU2-spy.js +0 -19
  254. package/dist/stdio-DkU2-spy.js.map +0 -1
  255. package/dist/toolDefinitions-B94CNDbt.d.cts.map +0 -1
  256. package/dist/toolDefinitions-Bb_1ejkl.js.map +0 -1
  257. package/dist/toolDefinitions-DIhvw3vk.cjs.map +0 -1
  258. package/dist/toolDefinitions-q_1-70fG.d.ts.map +0 -1
  259. package/dist/tools-BdkmyaZo.cjs.map +0 -1
  260. package/dist/tools-CMFpMPpD.js.map +0 -1
  261. package/dist/types-B03G337q.d.cts.map +0 -1
  262. package/dist/types-CN4NEway.d.ts.map +0 -1
  263. package/dist/types-OeoNXRm-.d.cts.map +0 -1
  264. package/dist/types-jftb-CP9.d.ts.map +0 -1
  265. package/dist/version-TjO7fHpC.js +0 -6
  266. package/dist/vi.ClIskdbk-Bs263gvI.cjs.map +0 -1
  267. package/dist/vi.ClIskdbk-De9q3829.js.map +0 -1
  268. /package/dist/{api-client-9mzrj2HY.js → api-client-CL1WDkw9.cjs} +0 -0
  269. /package/dist/{api-client-CEBuz3Zu.cjs → api-client-CNv_hbPO.js} +0 -0
  270. /package/dist/{types-H-TSmRpm.js → types-6zHoEWAx.js} +0 -0
  271. /package/dist/{types-o3zWarRp.cjs → types-MYBaygjr.cjs} +0 -0
@@ -1,4 +1,4 @@
1
- import { __require } from "./chunk-CsIcISPO.js";
1
+ import { __require } from "./chunk-BLXvPPr8.js";
2
2
  import { isatty } from "tty";
3
3
 
4
4
  //#region ../../node_modules/.pnpm/tinyrainbow@2.0.0/node_modules/tinyrainbow/dist/chunk-BVHSVHOK.js
@@ -86,9 +86,9 @@ var r = process.env.FORCE_TTY !== void 0 || isatty(1);
86
86
  var u = p(r);
87
87
 
88
88
  //#endregion
89
- //#region ../../node_modules/.pnpm/@vitest+pretty-format@3.1.3/node_modules/@vitest/pretty-format/dist/index.js
90
- function _mergeNamespaces(n, m) {
91
- m.forEach(function(e) {
89
+ //#region ../../node_modules/.pnpm/@vitest+pretty-format@3.2.0/node_modules/@vitest/pretty-format/dist/index.js
90
+ function _mergeNamespaces(n, m$1) {
91
+ m$1.forEach(function(e) {
92
92
  e && typeof e !== "string" && !Array.isArray(e) && Object.keys(e).forEach(function(k) {
93
93
  if (k !== "default" && !(k in n)) {
94
94
  var d = Object.getOwnPropertyDescriptor(e, k);
@@ -628,7 +628,7 @@ var hasRequiredReactIs_production_min;
628
628
  function requireReactIs_production_min() {
629
629
  if (hasRequiredReactIs_production_min) return reactIs_production_min;
630
630
  hasRequiredReactIs_production_min = 1;
631
- var b = Symbol.for("react.element"), c = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), e = Symbol.for("react.strict_mode"), f$1 = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), h$1 = Symbol.for("react.context"), k = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), n = Symbol.for("react.suspense_list"), p$1 = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), t = Symbol.for("react.offscreen"), u$1;
631
+ var b = Symbol.for("react.element"), c = Symbol.for("react.portal"), d = Symbol.for("react.fragment"), e = Symbol.for("react.strict_mode"), f$1 = Symbol.for("react.profiler"), g = Symbol.for("react.provider"), h$1 = Symbol.for("react.context"), k = Symbol.for("react.server_context"), l = Symbol.for("react.forward_ref"), m$1 = Symbol.for("react.suspense"), n = Symbol.for("react.suspense_list"), p$1 = Symbol.for("react.memo"), q = Symbol.for("react.lazy"), t = Symbol.for("react.offscreen"), u$1;
632
632
  u$1 = Symbol.for("react.module.reference");
633
633
  function v(a$1) {
634
634
  if ("object" === typeof a$1 && null !== a$1) {
@@ -638,7 +638,7 @@ function requireReactIs_production_min() {
638
638
  case d:
639
639
  case f$1:
640
640
  case e:
641
- case m:
641
+ case m$1:
642
642
  case n: return a$1;
643
643
  default: switch (a$1 = a$1 && a$1.$$typeof, a$1) {
644
644
  case k:
@@ -664,7 +664,7 @@ function requireReactIs_production_min() {
664
664
  reactIs_production_min.Portal = c;
665
665
  reactIs_production_min.Profiler = f$1;
666
666
  reactIs_production_min.StrictMode = e;
667
- reactIs_production_min.Suspense = m;
667
+ reactIs_production_min.Suspense = m$1;
668
668
  reactIs_production_min.SuspenseList = n;
669
669
  reactIs_production_min.isAsyncMode = function() {
670
670
  return false;
@@ -703,13 +703,13 @@ function requireReactIs_production_min() {
703
703
  return v(a$1) === e;
704
704
  };
705
705
  reactIs_production_min.isSuspense = function(a$1) {
706
- return v(a$1) === m;
706
+ return v(a$1) === m$1;
707
707
  };
708
708
  reactIs_production_min.isSuspenseList = function(a$1) {
709
709
  return v(a$1) === n;
710
710
  };
711
711
  reactIs_production_min.isValidElementType = function(a$1) {
712
- return "string" === typeof a$1 || "function" === typeof a$1 || a$1 === d || a$1 === f$1 || a$1 === e || a$1 === m || a$1 === n || a$1 === t || "object" === typeof a$1 && null !== a$1 && (a$1.$$typeof === q || a$1.$$typeof === p$1 || a$1.$$typeof === g || a$1.$$typeof === h$1 || a$1.$$typeof === l || a$1.$$typeof === u$1 || void 0 !== a$1.getModuleId) ? true : false;
712
+ return "string" === typeof a$1 || "function" === typeof a$1 || a$1 === d || a$1 === f$1 || a$1 === e || a$1 === m$1 || a$1 === n || a$1 === t || "object" === typeof a$1 && null !== a$1 && (a$1.$$typeof === q || a$1.$$typeof === p$1 || a$1.$$typeof === g || a$1.$$typeof === h$1 || a$1.$$typeof === l || a$1.$$typeof === u$1 || void 0 !== a$1.getModuleId) ? true : false;
713
713
  };
714
714
  reactIs_production_min.typeOf = v;
715
715
  return reactIs_production_min;
@@ -913,7 +913,7 @@ const reactIsMethods = [
913
913
  "isSuspenseList",
914
914
  "isValidElementType"
915
915
  ];
916
- const ReactIs = Object.fromEntries(reactIsMethods.map((m) => [m, (v) => ReactIs18[m](v) || ReactIs19[m](v)]));
916
+ const ReactIs = Object.fromEntries(reactIsMethods.map((m$1) => [m$1, (v) => ReactIs18[m$1](v) || ReactIs19[m$1](v)]));
917
917
  function getChildren(arg, children = []) {
918
918
  if (Array.isArray(arg)) for (const item of arg) getChildren(item, children);
919
919
  else if (arg != null && arg !== false && arg !== "") children.push(arg);
@@ -1496,7 +1496,7 @@ var promise_default$1 = getPromiseValue$1;
1496
1496
 
1497
1497
  //#endregion
1498
1498
  //#region ../../node_modules/.pnpm/loupe@3.1.3/node_modules/loupe/lib/object.js
1499
- function inspectObject$2(object, options) {
1499
+ function inspectObject$1(object, options) {
1500
1500
  const properties = Object.getOwnPropertyNames(object);
1501
1501
  const symbols = Object.getOwnPropertySymbols ? Object.getOwnPropertySymbols(object) : [];
1502
1502
  if (properties.length === 0 && symbols.length === 0) return "{}";
@@ -1521,7 +1521,7 @@ function inspectClass$1(value, options) {
1521
1521
  name = name || value.constructor.name;
1522
1522
  if (!name || name === "_class") name = "<Anonymous Class>";
1523
1523
  options.truncate -= name.length;
1524
- return `${name}${inspectObject$2(value, options)}`;
1524
+ return `${name}${inspectObject$1(value, options)}`;
1525
1525
  }
1526
1526
 
1527
1527
  //#endregion
@@ -1547,7 +1547,7 @@ const errorKeys$1 = [
1547
1547
  "description",
1548
1548
  "cause"
1549
1549
  ];
1550
- function inspectObject$1(error, options) {
1550
+ function inspectObject$2(error, options) {
1551
1551
  const properties = Object.getOwnPropertyNames(error).filter((key) => errorKeys$1.indexOf(key) === -1);
1552
1552
  const name = error.name;
1553
1553
  options.truncate -= name.length;
@@ -1603,7 +1603,7 @@ try {
1603
1603
  } catch (noNodeInspect) {
1604
1604
  nodeInspect$1 = false;
1605
1605
  }
1606
- const constructorMap$1 = new WeakMap();
1606
+ const constructorMap$1 = /* @__PURE__ */ new WeakMap();
1607
1607
  const stringTagMap$1 = {};
1608
1608
  const baseTypesMap$1 = {
1609
1609
  undefined: (value, options) => options.stylize("undefined", "undefined"),
@@ -1641,7 +1641,7 @@ const baseTypesMap$1 = {
1641
1641
  Generator: () => "",
1642
1642
  DataView: () => "",
1643
1643
  ArrayBuffer: () => "",
1644
- Error: inspectObject$1,
1644
+ Error: inspectObject$2,
1645
1645
  HTMLCollection: inspectHTMLCollection$1,
1646
1646
  NodeList: inspectHTMLCollection$1
1647
1647
  };
@@ -1668,18 +1668,18 @@ function inspect$2(value, opts = {}) {
1668
1668
  }
1669
1669
  }
1670
1670
  const proto = value ? Object.getPrototypeOf(value) : false;
1671
- if (proto === Object.prototype || proto === null) return inspectObject$2(value, options);
1671
+ if (proto === Object.prototype || proto === null) return inspectObject$1(value, options);
1672
1672
  if (value && typeof HTMLElement === "function" && value instanceof HTMLElement) return inspectHTML$1(value, options);
1673
1673
  if ("constructor" in value) {
1674
1674
  if (value.constructor !== Object) return inspectClass$1(value, options);
1675
- return inspectObject$2(value, options);
1675
+ return inspectObject$1(value, options);
1676
1676
  }
1677
- if (value === Object(value)) return inspectObject$2(value, options);
1677
+ if (value === Object(value)) return inspectObject$1(value, options);
1678
1678
  return options.stylize(String(value), type$1);
1679
1679
  }
1680
1680
 
1681
1681
  //#endregion
1682
- //#region ../../node_modules/.pnpm/@vitest+utils@3.1.3/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js
1682
+ //#region ../../node_modules/.pnpm/@vitest+utils@3.2.0/node_modules/@vitest/utils/dist/chunk-_commonjsHelpers.js
1683
1683
  const { AsymmetricMatcher: AsymmetricMatcher$1, DOMCollection: DOMCollection$1, DOMElement: DOMElement$1, Immutable: Immutable$1, ReactElement: ReactElement$1, ReactTestComponent: ReactTestComponent$1 } = plugins;
1684
1684
  const PLUGINS$1 = [
1685
1685
  ReactTestComponent$1,
@@ -1766,8 +1766,8 @@ function format(...args) {
1766
1766
  case "%j": try {
1767
1767
  return JSON.stringify(args[i++]);
1768
1768
  } catch (err) {
1769
- const m = err.message;
1770
- if (m.includes("circular structure") || m.includes("cyclic structures") || m.includes("cyclic object")) return "[Circular]";
1769
+ const m$1 = err.message;
1770
+ if (m$1.includes("circular structure") || m$1.includes("cyclic structures") || m$1.includes("cyclic object")) return "[Circular]";
1771
1771
  throw err;
1772
1772
  }
1773
1773
  default: return x;
@@ -1781,7 +1781,7 @@ function inspect$1(obj, options = {}) {
1781
1781
  if (options.truncate === 0) options.truncate = Number.POSITIVE_INFINITY;
1782
1782
  return inspect$2(obj, options);
1783
1783
  }
1784
- function objDisplay$1(obj, options = {}) {
1784
+ function objDisplay(obj, options = {}) {
1785
1785
  if (typeof options.truncate === "undefined") options.truncate = 40;
1786
1786
  const str = inspect$1(obj, options);
1787
1787
  const type$1 = Object.prototype.toString.call(obj);
@@ -1801,7 +1801,7 @@ function getDefaultExportFromCjs(x) {
1801
1801
  }
1802
1802
 
1803
1803
  //#endregion
1804
- //#region ../../node_modules/.pnpm/@vitest+utils@3.1.3/node_modules/@vitest/utils/dist/helpers.js
1804
+ //#region ../../node_modules/.pnpm/@vitest+utils@3.2.0/node_modules/@vitest/utils/dist/helpers.js
1805
1805
  /**
1806
1806
  * Get original stacktrace without source map support the most performant way.
1807
1807
  * - Create only 1 stack frame.
@@ -1835,7 +1835,7 @@ function isObject(item) {
1835
1835
  function isFinalObj(obj) {
1836
1836
  return obj === Object.prototype || obj === Function.prototype || obj === RegExp.prototype;
1837
1837
  }
1838
- function getType$1(value) {
1838
+ function getType(value) {
1839
1839
  return Object.prototype.toString.apply(value).slice(8, -1);
1840
1840
  }
1841
1841
  function collectOwnProperties(obj, collector) {
@@ -1844,14 +1844,14 @@ function collectOwnProperties(obj, collector) {
1844
1844
  Object.getOwnPropertySymbols(obj).forEach(collect);
1845
1845
  }
1846
1846
  function getOwnProperties(obj) {
1847
- const ownProps = new Set();
1847
+ const ownProps = /* @__PURE__ */ new Set();
1848
1848
  if (isFinalObj(obj)) return [];
1849
1849
  collectOwnProperties(obj, ownProps);
1850
1850
  return Array.from(ownProps);
1851
1851
  }
1852
1852
  const defaultCloneOptions = { forceWritable: false };
1853
1853
  function deepClone(val, options = defaultCloneOptions) {
1854
- const seen = new WeakMap();
1854
+ const seen = /* @__PURE__ */ new WeakMap();
1855
1855
  return clone(val, seen, options);
1856
1856
  }
1857
1857
  function clone(val, seen, options = defaultCloneOptions) {
@@ -1922,7 +1922,7 @@ function isNegativeNaN(val) {
1922
1922
  }
1923
1923
 
1924
1924
  //#endregion
1925
- //#region ../../node_modules/.pnpm/@vitest+utils@3.1.3/node_modules/@vitest/utils/dist/index.js
1925
+ //#region ../../node_modules/.pnpm/@vitest+utils@3.2.0/node_modules/@vitest/utils/dist/index.js
1926
1926
  var jsTokens_1;
1927
1927
  var hasRequiredJsTokens;
1928
1928
  function requireJsTokens() {
@@ -2373,7 +2373,7 @@ function getSafeTimers() {
2373
2373
  }
2374
2374
 
2375
2375
  //#endregion
2376
- //#region ../../node_modules/.pnpm/@vitest+utils@3.1.3/node_modules/@vitest/utils/dist/diff.js
2376
+ //#region ../../node_modules/.pnpm/@vitest+utils@3.2.0/node_modules/@vitest/utils/dist/diff.js
2377
2377
  /**
2378
2378
  * Diff Match and Patch
2379
2379
  * Copyright 2018 The diff-match-patch Authors.
@@ -3335,7 +3335,7 @@ function diffLinesRaw(aLines, bLines, options) {
3335
3335
  for (; bIndex !== bLength; bIndex += 1) diffs.push(new Diff(DIFF_INSERT, bLines[bIndex]));
3336
3336
  return [diffs, truncated];
3337
3337
  }
3338
- function getType(value) {
3338
+ function getType$1(value) {
3339
3339
  if (value === void 0) return "undefined";
3340
3340
  else if (value === null) return "null";
3341
3341
  else if (Array.isArray(value)) return "array";
@@ -3555,7 +3555,7 @@ const FALLBACK_FORMAT_OPTIONS = {
3555
3555
  */
3556
3556
  function diff(a$1, b, options) {
3557
3557
  if (Object.is(a$1, b)) return "";
3558
- const aType = getType(a$1);
3558
+ const aType = getType$1(a$1);
3559
3559
  let expectedType = aType;
3560
3560
  let omitDifference = false;
3561
3561
  if (aType === "object" && typeof a$1.asymmetricMatch === "function") {
@@ -3564,7 +3564,7 @@ function diff(a$1, b, options) {
3564
3564
  expectedType = a$1.getExpectedType();
3565
3565
  omitDifference = expectedType === "string";
3566
3566
  }
3567
- if (expectedType !== getType(b)) {
3567
+ if (expectedType !== getType$1(b)) {
3568
3568
  const { aAnnotation, aColor, aIndicator, bAnnotation, bColor, bIndicator } = normalizeDiffOptions(options);
3569
3569
  const formatOptions = getFormatOptions(FALLBACK_FORMAT_OPTIONS, options);
3570
3570
  let aDisplay = format$1(a$1, formatOptions);
@@ -3642,12 +3642,12 @@ function getObjectsDifference(a$1, b, formatOptions, options) {
3642
3642
  }
3643
3643
  const MAX_DIFF_STRING_LENGTH = 2e4;
3644
3644
  function isAsymmetricMatcher(data) {
3645
- const type$1 = getType$1(data);
3645
+ const type$1 = getType(data);
3646
3646
  return type$1 === "Object" && typeof data.asymmetricMatch === "function";
3647
3647
  }
3648
3648
  function isReplaceable(obj1, obj2) {
3649
- const obj1Type = getType$1(obj1);
3650
- const obj2Type = getType$1(obj2);
3649
+ const obj1Type = getType(obj1);
3650
+ const obj2Type = getType(obj2);
3651
3651
  return obj1Type === obj2Type && (obj1Type === "Object" || obj1Type === "Array");
3652
3652
  }
3653
3653
  function printDiffOrStringify(received, expected, options) {
@@ -3667,7 +3667,7 @@ function printDiffOrStringify(received, expected, options) {
3667
3667
  const difference = diff(replacedExpected, replacedActual, options);
3668
3668
  return difference;
3669
3669
  }
3670
- function replaceAsymmetricMatcher(actual, expected, actualReplaced = new WeakSet(), expectedReplaced = new WeakSet()) {
3670
+ function replaceAsymmetricMatcher(actual, expected, actualReplaced = /* @__PURE__ */ new WeakSet(), expectedReplaced = /* @__PURE__ */ new WeakSet()) {
3671
3671
  if (actual instanceof Error && expected instanceof Error && typeof actual.cause !== "undefined" && typeof expected.cause === "undefined") {
3672
3672
  delete actual.cause;
3673
3673
  return {
@@ -3722,7 +3722,7 @@ function getCommonAndChangedSubstrings(diffs, op, hasCommonDiff$1) {
3722
3722
  }
3723
3723
 
3724
3724
  //#endregion
3725
- //#region ../../node_modules/.pnpm/@vitest+utils@3.1.3/node_modules/@vitest/utils/dist/error.js
3725
+ //#region ../../node_modules/.pnpm/@vitest+utils@3.2.0/node_modules/@vitest/utils/dist/error.js
3726
3726
  const IS_RECORD_SYMBOL = "@@__IMMUTABLE_RECORD__@@";
3727
3727
  const IS_COLLECTION_SYMBOL = "@@__IMMUTABLE_ITERABLE__@@";
3728
3728
  function isImmutable(v) {
@@ -3734,8 +3734,18 @@ function getUnserializableMessage(err) {
3734
3734
  if (typeof err === "string") return `<unserializable>: ${err}`;
3735
3735
  return "<unserializable>";
3736
3736
  }
3737
- function serializeValue(val, seen = new WeakMap()) {
3737
+ function serializeValue(val, seen = /* @__PURE__ */ new WeakMap()) {
3738
3738
  if (!val || typeof val === "string") return val;
3739
+ if (val instanceof Error && "toJSON" in val && typeof val.toJSON === "function") {
3740
+ const jsonValue = val.toJSON();
3741
+ if (jsonValue && jsonValue !== val && typeof jsonValue === "object") {
3742
+ if (typeof val.message === "string") safe(() => jsonValue.message ?? (jsonValue.message = val.message));
3743
+ if (typeof val.stack === "string") safe(() => jsonValue.stack ?? (jsonValue.stack = val.stack));
3744
+ if (typeof val.name === "string") safe(() => jsonValue.name ?? (jsonValue.name = val.name));
3745
+ if (val.cause != null) safe(() => jsonValue.cause ?? (jsonValue.cause = serializeValue(val.cause, seen)));
3746
+ }
3747
+ return serializeValue(jsonValue, seen);
3748
+ }
3739
3749
  if (typeof val === "function") return `Function<${val.name || "anonymous"}>`;
3740
3750
  if (typeof val === "symbol") return val.toString();
3741
3751
  if (typeof val !== "object") return val;
@@ -3775,20 +3785,23 @@ function serializeValue(val, seen = new WeakMap()) {
3775
3785
  return clone$1;
3776
3786
  }
3777
3787
  }
3788
+ function safe(fn) {
3789
+ try {
3790
+ return fn();
3791
+ } catch {}
3792
+ }
3778
3793
  function normalizeErrorMessage(message) {
3779
3794
  return message.replace(/__(vite_ssr_import|vi_import)_\d+__\./g, "");
3780
3795
  }
3781
- function processError(_err, diffOptions, seen = new WeakSet()) {
3796
+ function processError(_err, diffOptions, seen = /* @__PURE__ */ new WeakSet()) {
3782
3797
  if (!_err || typeof _err !== "object") return { message: String(_err) };
3783
3798
  const err = _err;
3784
- if (err.stack) err.stackStr = String(err.stack);
3785
- if (err.name) err.nameStr = String(err.name);
3786
3799
  if (err.showDiff || err.showDiff === void 0 && err.expected !== void 0 && err.actual !== void 0) err.diff = printDiffOrStringify(err.actual, err.expected, {
3787
3800
  ...diffOptions,
3788
3801
  ...err.diffOptions
3789
3802
  });
3790
- if (typeof err.expected !== "string") err.expected = stringify(err.expected, 10);
3791
- if (typeof err.actual !== "string") err.actual = stringify(err.actual, 10);
3803
+ if ("expected" in err && typeof err.expected !== "string") err.expected = stringify(err.expected, 10);
3804
+ if ("actual" in err && typeof err.actual !== "string") err.actual = stringify(err.actual, 10);
3792
3805
  try {
3793
3806
  if (typeof err.message === "string") err.message = normalizeErrorMessage(err.message);
3794
3807
  } catch {}
@@ -3847,7 +3860,7 @@ __export(utils_exports, {
3847
3860
  isNumeric: () => isNumeric,
3848
3861
  isProxyEnabled: () => isProxyEnabled,
3849
3862
  isRegExp: () => isRegExp2,
3850
- objDisplay: () => objDisplay,
3863
+ objDisplay: () => objDisplay$1,
3851
3864
  overwriteChainableMethod: () => overwriteChainableMethod,
3852
3865
  overwriteMethod: () => overwriteMethod,
3853
3866
  overwriteProperty: () => overwriteProperty,
@@ -4455,7 +4468,7 @@ function inspect2(obj, showHidden, depth, colors) {
4455
4468
  return inspect(obj, options);
4456
4469
  }
4457
4470
  __name(inspect2, "inspect");
4458
- function objDisplay(obj) {
4471
+ function objDisplay$1(obj) {
4459
4472
  var str = inspect2(obj), type3 = Object.prototype.toString.call(obj);
4460
4473
  if (config.truncateThreshold && str.length >= config.truncateThreshold) if (type3 === "[object Function]") return !obj.name || obj.name === "" ? "[Function]" : "[Function: " + obj.name + "]";
4461
4474
  else if (type3 === "[object Array]") return "[ Array(" + obj.length + ") ]";
@@ -4465,17 +4478,17 @@ function objDisplay(obj) {
4465
4478
  } else return str;
4466
4479
  else return str;
4467
4480
  }
4468
- __name(objDisplay, "objDisplay");
4481
+ __name(objDisplay$1, "objDisplay");
4469
4482
  function getMessage2(obj, args) {
4470
4483
  var negate = flag(obj, "negate"), val = flag(obj, "object"), expected = args[3], actual = getActual(obj, args), msg = negate ? args[2] : args[1], flagMsg = flag(obj, "message");
4471
4484
  if (typeof msg === "function") msg = msg();
4472
4485
  msg = msg || "";
4473
4486
  msg = msg.replace(/#\{this\}/g, function() {
4474
- return objDisplay(val);
4487
+ return objDisplay$1(val);
4475
4488
  }).replace(/#\{act\}/g, function() {
4476
- return objDisplay(actual);
4489
+ return objDisplay$1(actual);
4477
4490
  }).replace(/#\{exp\}/g, function() {
4478
- return objDisplay(expected);
4491
+ return objDisplay$1(expected);
4479
4492
  });
4480
4493
  return flagMsg ? flagMsg + ": " + msg : msg;
4481
4494
  }
@@ -5710,7 +5723,7 @@ function satisfy(matcher, msg) {
5710
5723
  if (msg) flag2(this, "message", msg);
5711
5724
  var obj = flag2(this, "object");
5712
5725
  var result = matcher(obj);
5713
- this.assert(result, "expected #{this} to satisfy " + objDisplay(matcher), "expected #{this} to not satisfy" + objDisplay(matcher), flag2(this, "negate") ? false : true, result);
5726
+ this.assert(result, "expected #{this} to satisfy " + objDisplay$1(matcher), "expected #{this} to not satisfy" + objDisplay$1(matcher), flag2(this, "negate") ? false : true, result);
5714
5727
  }
5715
5728
  __name(satisfy, "satisfy");
5716
5729
  Assertion.addMethod("satisfy", satisfy);
@@ -6833,7 +6846,7 @@ references to blow the stack.
6833
6846
  */
6834
6847
 
6835
6848
  //#endregion
6836
- //#region ../../node_modules/.pnpm/@vitest+utils@3.1.3/node_modules/@vitest/utils/dist/source-map.js
6849
+ //#region ../../node_modules/.pnpm/@vitest+utils@3.2.0/node_modules/@vitest/utils/dist/source-map.js
6837
6850
  const comma = ",".charCodeAt(0);
6838
6851
  const chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
6839
6852
  const intToChar = new Uint8Array(64);
@@ -7001,48 +7014,7 @@ function parseSingleV8Stack(raw) {
7001
7014
  }
7002
7015
 
7003
7016
  //#endregion
7004
- //#region ../../node_modules/.pnpm/@vitest+runner@3.1.3/node_modules/@vitest/runner/dist/chunk-tasks.js
7005
- function createChainable(keys, fn) {
7006
- function create(context) {
7007
- const chain$1 = function(...args) {
7008
- return fn.apply(context, args);
7009
- };
7010
- Object.assign(chain$1, fn);
7011
- chain$1.withContext = () => chain$1.bind(context);
7012
- chain$1.setContext = (key, value) => {
7013
- context[key] = value;
7014
- };
7015
- chain$1.mergeContext = (ctx) => {
7016
- Object.assign(context, ctx);
7017
- };
7018
- for (const key of keys) Object.defineProperty(chain$1, key, { get() {
7019
- return create({
7020
- ...context,
7021
- [key]: true
7022
- });
7023
- } });
7024
- return chain$1;
7025
- }
7026
- const chain = create({});
7027
- chain.fn = fn;
7028
- return chain;
7029
- }
7030
- function getNames(task) {
7031
- const names = [task.name];
7032
- let current = task;
7033
- while (current === null || current === void 0 ? void 0 : current.suite) {
7034
- current = current.suite;
7035
- if (current === null || current === void 0 ? void 0 : current.name) names.unshift(current.name);
7036
- }
7037
- if (current !== task.file) names.unshift(task.file.name);
7038
- return names;
7039
- }
7040
- function getTestName(task, separator = " > ") {
7041
- return getNames(task).slice(1).join(separator);
7042
- }
7043
-
7044
- //#endregion
7045
- //#region ../../node_modules/.pnpm/@vitest+runner@3.1.3/node_modules/@vitest/runner/dist/index.js
7017
+ //#region ../../node_modules/.pnpm/@vitest+runner@3.2.0/node_modules/@vitest/runner/dist/chunk-hooks.js
7046
7018
  var PendingError = class extends Error {
7047
7019
  code = "VITEST_PENDING";
7048
7020
  taskId;
@@ -7053,9 +7025,9 @@ var PendingError = class extends Error {
7053
7025
  this.taskId = task.id;
7054
7026
  }
7055
7027
  };
7056
- const fnMap = new WeakMap();
7057
- const testFixtureMap = new WeakMap();
7058
- const hooksMap = new WeakMap();
7028
+ const fnMap = /* @__PURE__ */ new WeakMap();
7029
+ const testFixtureMap = /* @__PURE__ */ new WeakMap();
7030
+ const hooksMap = /* @__PURE__ */ new WeakMap();
7059
7031
  function setFn(key, fn) {
7060
7032
  fnMap.set(key, fn);
7061
7033
  }
@@ -7088,15 +7060,22 @@ function mergeScopedFixtures(testFixtures, scopedFixtures) {
7088
7060
  }
7089
7061
  return Object.values(newFixtures);
7090
7062
  }
7091
- function mergeContextFixtures(fixtures, context, inject) {
7092
- const fixtureOptionKeys = ["auto", "injected"];
7063
+ function mergeContextFixtures(fixtures, context, runner$1) {
7064
+ const fixtureOptionKeys = [
7065
+ "auto",
7066
+ "injected",
7067
+ "scope"
7068
+ ];
7093
7069
  const fixtureArray = Object.entries(fixtures).map(([prop, value]) => {
7094
7070
  const fixtureItem = { value };
7095
7071
  if (Array.isArray(value) && value.length >= 2 && isObject(value[1]) && Object.keys(value[1]).some((key) => fixtureOptionKeys.includes(key))) {
7072
+ var _runner$injectValue;
7096
7073
  Object.assign(fixtureItem, value[1]);
7097
7074
  const userValue = value[0];
7098
- fixtureItem.value = fixtureItem.injected ? inject(prop) ?? userValue : userValue;
7075
+ fixtureItem.value = fixtureItem.injected ? ((_runner$injectValue = runner$1.injectValue) === null || _runner$injectValue === void 0 ? void 0 : _runner$injectValue.call(runner$1, prop)) ?? userValue : userValue;
7099
7076
  }
7077
+ fixtureItem.scope = fixtureItem.scope || "test";
7078
+ if (fixtureItem.scope === "worker" && !runner$1.getWorkerContext) fixtureItem.scope = "file";
7100
7079
  fixtureItem.prop = prop;
7101
7080
  fixtureItem.isFn = typeof fixtureItem.value === "function";
7102
7081
  return fixtureItem;
@@ -7107,13 +7086,22 @@ function mergeContextFixtures(fixtures, context, inject) {
7107
7086
  if (fixture.isFn) {
7108
7087
  const usedProps = getUsedProps(fixture.value);
7109
7088
  if (usedProps.length) fixture.deps = context.fixtures.filter(({ prop }) => prop !== fixture.prop && usedProps.includes(prop));
7089
+ if (fixture.scope !== "test") {
7090
+ var _fixture$deps2;
7091
+ (_fixture$deps2 = fixture.deps) === null || _fixture$deps2 === void 0 || _fixture$deps2.forEach((dep) => {
7092
+ if (!dep.isFn) return;
7093
+ if (fixture.scope === "worker" && dep.scope === "worker") return;
7094
+ if (fixture.scope === "file" && dep.scope !== "test") return;
7095
+ throw new SyntaxError(`cannot use the ${dep.scope} fixture "${dep.prop}" inside the ${fixture.scope} fixture "${fixture.prop}"`);
7096
+ });
7097
+ }
7110
7098
  }
7111
7099
  });
7112
7100
  return context;
7113
7101
  }
7114
- const fixtureValueMaps = new Map();
7115
- const cleanupFnArrayMap = new Map();
7116
- function withFixtures(fn, testContext) {
7102
+ const fixtureValueMaps = /* @__PURE__ */ new Map();
7103
+ const cleanupFnArrayMap = /* @__PURE__ */ new Map();
7104
+ function withFixtures(runner$1, fn, testContext) {
7117
7105
  return (hookContext) => {
7118
7106
  const context = hookContext || testContext;
7119
7107
  if (!context) return fn({});
@@ -7122,7 +7110,7 @@ function withFixtures(fn, testContext) {
7122
7110
  const usedProps = getUsedProps(fn);
7123
7111
  const hasAutoFixture = fixtures.some(({ auto }) => auto);
7124
7112
  if (!usedProps.length && !hasAutoFixture) return fn(context);
7125
- if (!fixtureValueMaps.get(context)) fixtureValueMaps.set(context, new Map());
7113
+ if (!fixtureValueMaps.get(context)) fixtureValueMaps.set(context, /* @__PURE__ */ new Map());
7126
7114
  const fixtureValueMap = fixtureValueMaps.get(context);
7127
7115
  if (!cleanupFnArrayMap.has(context)) cleanupFnArrayMap.set(context, []);
7128
7116
  const cleanupFnArray = cleanupFnArrayMap.get(context);
@@ -7132,10 +7120,10 @@ function withFixtures(fn, testContext) {
7132
7120
  async function resolveFixtures() {
7133
7121
  for (const fixture of pendingFixtures) {
7134
7122
  if (fixtureValueMap.has(fixture)) continue;
7135
- const resolvedValue = fixture.isFn ? await resolveFixtureFunction(fixture.value, context, cleanupFnArray) : fixture.value;
7123
+ const resolvedValue = await resolveFixtureValue(runner$1, fixture, context, cleanupFnArray);
7136
7124
  context[fixture.prop] = resolvedValue;
7137
7125
  fixtureValueMap.set(fixture, resolvedValue);
7138
- cleanupFnArray.unshift(() => {
7126
+ if (fixture.scope === "test") cleanupFnArray.unshift(() => {
7139
7127
  fixtureValueMap.delete(fixture);
7140
7128
  });
7141
7129
  }
@@ -7143,6 +7131,38 @@ function withFixtures(fn, testContext) {
7143
7131
  return resolveFixtures().then(() => fn(context));
7144
7132
  };
7145
7133
  }
7134
+ const globalFixturePromise = /* @__PURE__ */ new WeakMap();
7135
+ function resolveFixtureValue(runner$1, fixture, context, cleanupFnArray) {
7136
+ var _runner$getWorkerCont;
7137
+ const fileContext = getFileContext(context.task.file);
7138
+ const workerContext = (_runner$getWorkerCont = runner$1.getWorkerContext) === null || _runner$getWorkerCont === void 0 ? void 0 : _runner$getWorkerCont.call(runner$1);
7139
+ if (!fixture.isFn) {
7140
+ var _fixture$prop;
7141
+ fileContext[_fixture$prop = fixture.prop] ?? (fileContext[_fixture$prop] = fixture.value);
7142
+ if (workerContext) {
7143
+ var _fixture$prop2;
7144
+ workerContext[_fixture$prop2 = fixture.prop] ?? (workerContext[_fixture$prop2] = fixture.value);
7145
+ }
7146
+ return fixture.value;
7147
+ }
7148
+ if (fixture.scope === "test") return resolveFixtureFunction(fixture.value, context, cleanupFnArray);
7149
+ if (globalFixturePromise.has(fixture)) return globalFixturePromise.get(fixture);
7150
+ let fixtureContext;
7151
+ if (fixture.scope === "worker") {
7152
+ if (!workerContext) throw new TypeError("[@vitest/runner] The worker context is not available in the current test runner. Please, provide the `getWorkerContext` method when initiating the runner.");
7153
+ fixtureContext = workerContext;
7154
+ } else fixtureContext = fileContext;
7155
+ if (fixture.prop in fixtureContext) return fixtureContext[fixture.prop];
7156
+ if (!cleanupFnArrayMap.has(fixtureContext)) cleanupFnArrayMap.set(fixtureContext, []);
7157
+ const cleanupFnFileArray = cleanupFnArrayMap.get(fixtureContext);
7158
+ const promise = resolveFixtureFunction(fixture.value, fixtureContext, cleanupFnFileArray).then((value) => {
7159
+ fixtureContext[fixture.prop] = value;
7160
+ globalFixturePromise.delete(fixture);
7161
+ return value;
7162
+ });
7163
+ globalFixturePromise.set(fixture, promise);
7164
+ return promise;
7165
+ }
7146
7166
  async function resolveFixtureFunction(fixtureFn, context, cleanupFnArray) {
7147
7167
  const useFnArgPromise = createDefer();
7148
7168
  let isUseFnArgResolved = false;
@@ -7164,7 +7184,7 @@ async function resolveFixtureFunction(fixtureFn, context, cleanupFnArray) {
7164
7184
  });
7165
7185
  return useFnArgPromise;
7166
7186
  }
7167
- function resolveDeps(fixtures, depSet = new Set(), pendingFixtures = []) {
7187
+ function resolveDeps(fixtures, depSet = /* @__PURE__ */ new Set(), pendingFixtures = []) {
7168
7188
  fixtures.forEach((fixture) => {
7169
7189
  if (pendingFixtures.includes(fixture)) return;
7170
7190
  if (!fixture.isFn || !fixture.deps) {
@@ -7219,6 +7239,31 @@ let _test;
7219
7239
  function getCurrentTest() {
7220
7240
  return _test;
7221
7241
  }
7242
+ function createChainable(keys, fn) {
7243
+ function create(context) {
7244
+ const chain$1 = function(...args) {
7245
+ return fn.apply(context, args);
7246
+ };
7247
+ Object.assign(chain$1, fn);
7248
+ chain$1.withContext = () => chain$1.bind(context);
7249
+ chain$1.setContext = (key, value) => {
7250
+ context[key] = value;
7251
+ };
7252
+ chain$1.mergeContext = (ctx) => {
7253
+ Object.assign(context, ctx);
7254
+ };
7255
+ for (const key of keys) Object.defineProperty(chain$1, key, { get() {
7256
+ return create({
7257
+ ...context,
7258
+ [key]: true
7259
+ });
7260
+ } });
7261
+ return chain$1;
7262
+ }
7263
+ const chain = create({});
7264
+ chain.fn = fn;
7265
+ return chain;
7266
+ }
7222
7267
  /**
7223
7268
  * Creates a suite of tests, allowing for grouping and hierarchical organization of tests.
7224
7269
  * Suites can contain both tests and other suites, enabling complex test structures.
@@ -7408,7 +7453,8 @@ function createSuiteCollector(name, factory = () => {}, mode, each, suiteOptions
7408
7453
  retry: options.retry ?? runner.config.retry,
7409
7454
  repeats: options.repeats,
7410
7455
  mode: options.only ? "only" : options.skip ? "skip" : options.todo ? "todo" : "run",
7411
- meta: options.meta ?? Object.create(null)
7456
+ meta: options.meta ?? Object.create(null),
7457
+ annotations: []
7412
7458
  };
7413
7459
  const handler = options.handler;
7414
7460
  if (options.concurrent || !options.sequential && runner.config.sequence.concurrent) task$1.concurrent = true;
@@ -7423,7 +7469,7 @@ function createSuiteCollector(name, factory = () => {}, mode, each, suiteOptions
7423
7469
  Error.stackTraceLimit = 15;
7424
7470
  const stackTraceError = new Error("STACK_TRACE_ERROR");
7425
7471
  Error.stackTraceLimit = limit;
7426
- if (handler) setFn(task$1, withTimeout(withAwaitAsyncAssertions(withFixtures(handler, context), task$1), timeout, false, stackTraceError));
7472
+ if (handler) setFn(task$1, withTimeout(withAwaitAsyncAssertions(withFixtures(runner, handler, context), task$1), timeout, false, stackTraceError, (_, error) => abortIfTimeout([context], error)));
7427
7473
  if (runner.config.includeTaskLocation) {
7428
7474
  const error = stackTraceError.stack;
7429
7475
  const stack = findTestFileStackTrace(error, task$1.each ?? false);
@@ -7461,10 +7507,7 @@ function createSuiteCollector(name, factory = () => {}, mode, each, suiteOptions
7461
7507
  return collectorFixtures;
7462
7508
  },
7463
7509
  scoped(fixtures) {
7464
- const parsed = mergeContextFixtures(fixtures, { fixtures: collectorFixtures }, (key) => {
7465
- var _getRunner$injectValu, _getRunner;
7466
- return (_getRunner$injectValu = (_getRunner = getRunner()).injectValue) === null || _getRunner$injectValu === void 0 ? void 0 : _getRunner$injectValu.call(_getRunner, key);
7467
- });
7510
+ const parsed = mergeContextFixtures(fixtures, { fixtures: collectorFixtures }, runner);
7468
7511
  if (parsed.fixtures) collectorFixtures = parsed.fixtures;
7469
7512
  }
7470
7513
  };
@@ -7632,10 +7675,7 @@ function createTaskCollector(fn, context) {
7632
7675
  collector.scoped(fixtures);
7633
7676
  };
7634
7677
  taskFn.extend = function(fixtures) {
7635
- const _context = mergeContextFixtures(fixtures, context || {}, (key) => {
7636
- var _getRunner$injectValu2, _getRunner2;
7637
- return (_getRunner$injectValu2 = (_getRunner2 = getRunner()).injectValue) === null || _getRunner$injectValu2 === void 0 ? void 0 : _getRunner$injectValu2.call(_getRunner2, key);
7638
- });
7678
+ const _context = mergeContextFixtures(fixtures, context || {}, runner);
7639
7679
  return createTest(function fn$1(name, optionsOrFn, optionsOrTest) {
7640
7680
  const collector = getCurrentSuite();
7641
7681
  const scopedFixtures = collector.fixtures();
@@ -7684,7 +7724,7 @@ function formatTitle(template, items, idx) {
7684
7724
  if (!isObjectItem && !isArrayKey) return `$${key}`;
7685
7725
  const arrayElement = isArrayKey ? objectAttr(items, key) : void 0;
7686
7726
  const value = isObjectItem ? objectAttr(items[0], key, arrayElement) : arrayElement;
7687
- return objDisplay$1(value, { truncate: runner === null || runner === void 0 || (_runner$config = runner.config) === null || _runner$config === void 0 || (_runner$config = _runner$config.chaiConfig) === null || _runner$config === void 0 ? void 0 : _runner$config.truncateThreshold });
7727
+ return objDisplay(value, { truncate: runner === null || runner === void 0 || (_runner$config = runner.config) === null || _runner$config === void 0 || (_runner$config = _runner$config.chaiConfig) === null || _runner$config === void 0 ? void 0 : _runner$config.truncateThreshold });
7688
7728
  });
7689
7729
  return formatted;
7690
7730
  }
@@ -7708,7 +7748,60 @@ function findTestFileStackTrace(error, each) {
7708
7748
  };
7709
7749
  }
7710
7750
  }
7711
- const now$2 = Date.now;
7751
+ const now$2 = globalThis.performance ? globalThis.performance.now.bind(globalThis.performance) : Date.now;
7752
+ function getNames(task) {
7753
+ const names = [task.name];
7754
+ let current = task;
7755
+ while (current === null || current === void 0 ? void 0 : current.suite) {
7756
+ current = current.suite;
7757
+ if (current === null || current === void 0 ? void 0 : current.name) names.unshift(current.name);
7758
+ }
7759
+ if (current !== task.file) names.unshift(task.file.name);
7760
+ return names;
7761
+ }
7762
+ function getTestName(task, separator = " > ") {
7763
+ return getNames(task).slice(1).join(separator);
7764
+ }
7765
+ const now$1 = globalThis.performance ? globalThis.performance.now.bind(globalThis.performance) : Date.now;
7766
+ const unixNow = Date.now;
7767
+ const packs = /* @__PURE__ */ new Map();
7768
+ const eventsPacks = [];
7769
+ const pendingTasksUpdates = [];
7770
+ function sendTasksUpdate(runner$1) {
7771
+ if (packs.size) {
7772
+ var _runner$onTaskUpdate;
7773
+ const taskPacks = Array.from(packs).map(([id, task]) => {
7774
+ return [
7775
+ id,
7776
+ task[0],
7777
+ task[1]
7778
+ ];
7779
+ });
7780
+ const p$1 = (_runner$onTaskUpdate = runner$1.onTaskUpdate) === null || _runner$onTaskUpdate === void 0 ? void 0 : _runner$onTaskUpdate.call(runner$1, taskPacks, eventsPacks);
7781
+ if (p$1) {
7782
+ pendingTasksUpdates.push(p$1);
7783
+ p$1.then(() => pendingTasksUpdates.splice(pendingTasksUpdates.indexOf(p$1), 1), () => {});
7784
+ }
7785
+ eventsPacks.length = 0;
7786
+ packs.clear();
7787
+ }
7788
+ }
7789
+ async function finishSendTasksUpdate(runner$1) {
7790
+ sendTasksUpdate(runner$1);
7791
+ await Promise.all(pendingTasksUpdates);
7792
+ }
7793
+ function throttle(fn, ms) {
7794
+ let last = 0;
7795
+ return function(...args) {
7796
+ const now$3 = unixNow();
7797
+ if (now$3 - last > ms) {
7798
+ last = now$3;
7799
+ return fn.apply(this, args);
7800
+ }
7801
+ };
7802
+ }
7803
+ const sendTasksUpdateThrottled = throttle(sendTasksUpdate, 100);
7804
+ const now = Date.now;
7712
7805
  const collectorContext = {
7713
7806
  tasks: [],
7714
7807
  currentSuite: null
@@ -7723,11 +7816,11 @@ async function runWithSuite(suite$1, fn) {
7723
7816
  await fn();
7724
7817
  collectorContext.currentSuite = prev;
7725
7818
  }
7726
- function withTimeout(fn, timeout, isHook = false, stackTraceError) {
7819
+ function withTimeout(fn, timeout, isHook = false, stackTraceError, onTimeout) {
7727
7820
  if (timeout <= 0 || timeout === Number.POSITIVE_INFINITY) return fn;
7728
7821
  const { setTimeout, clearTimeout } = getSafeTimers();
7729
7822
  return function runWithTimeout(...args) {
7730
- const startTime = now$2();
7823
+ const startTime = now();
7731
7824
  const runner$1 = getRunner();
7732
7825
  runner$1._currentTaskStartTime = startTime;
7733
7826
  runner$1._currentTaskTimeout = timeout;
@@ -7739,13 +7832,15 @@ function withTimeout(fn, timeout, isHook = false, stackTraceError) {
7739
7832
  }, timeout);
7740
7833
  (_timer$unref = timer.unref) === null || _timer$unref === void 0 || _timer$unref.call(timer);
7741
7834
  function rejectTimeoutError() {
7742
- reject_(makeTimeoutError(isHook, timeout, stackTraceError));
7835
+ const error = makeTimeoutError(isHook, timeout, stackTraceError);
7836
+ onTimeout === null || onTimeout === void 0 || onTimeout(args, error);
7837
+ reject_(error);
7743
7838
  }
7744
7839
  function resolve$1(result) {
7745
7840
  runner$1._currentTaskStartTime = void 0;
7746
7841
  runner$1._currentTaskTimeout = void 0;
7747
7842
  clearTimeout(timer);
7748
- if (now$2() - startTime >= timeout) {
7843
+ if (now() - startTime >= timeout) {
7749
7844
  rejectTimeoutError();
7750
7845
  return;
7751
7846
  }
@@ -7767,11 +7862,25 @@ function withTimeout(fn, timeout, isHook = false, stackTraceError) {
7767
7862
  });
7768
7863
  };
7769
7864
  }
7865
+ const abortControllers = /* @__PURE__ */ new WeakMap();
7866
+ function abortIfTimeout([context], error) {
7867
+ if (context) abortContextSignal(context, error);
7868
+ }
7869
+ function abortContextSignal(context, error) {
7870
+ const abortController = abortControllers.get(context);
7871
+ abortController === null || abortController === void 0 || abortController.abort(error);
7872
+ }
7770
7873
  function createTestContext(test$7, runner$1) {
7771
7874
  var _runner$extendTaskCon;
7772
7875
  const context = function() {
7773
7876
  throw new Error("done() callback is deprecated, use promise instead");
7774
7877
  };
7878
+ let abortController = abortControllers.get(context);
7879
+ if (!abortController) {
7880
+ abortController = new AbortController();
7881
+ abortControllers.set(context, abortController);
7882
+ }
7883
+ context.signal = abortController.signal;
7775
7884
  context.task = test$7;
7776
7885
  context.skip = (condition, note) => {
7777
7886
  if (condition === false) return void 0;
@@ -7779,13 +7888,46 @@ function createTestContext(test$7, runner$1) {
7779
7888
  test$7.result.pending = true;
7780
7889
  throw new PendingError("test is skipped; abort execution", test$7, typeof condition === "string" ? condition : note);
7781
7890
  };
7891
+ async function annotate(message, location, type$1, attachment) {
7892
+ const annotation = {
7893
+ message,
7894
+ type: type$1 || "notice"
7895
+ };
7896
+ if (attachment) {
7897
+ if (!attachment.body && !attachment.path) throw new TypeError(`Test attachment requires body or path to be set. Both are missing.`);
7898
+ if (attachment.body && attachment.path) throw new TypeError(`Test attachment requires only one of "body" or "path" to be set. Both are specified.`);
7899
+ annotation.attachment = attachment;
7900
+ if (attachment.body instanceof Uint8Array) attachment.body = encodeUint8Array(attachment.body);
7901
+ }
7902
+ if (location) annotation.location = location;
7903
+ if (!runner$1.onTestAnnotate) throw new Error(`Test runner doesn't support test annotations.`);
7904
+ await finishSendTasksUpdate(runner$1);
7905
+ const resolvedAnnotation = await runner$1.onTestAnnotate(test$7, annotation);
7906
+ test$7.annotations.push(resolvedAnnotation);
7907
+ return resolvedAnnotation;
7908
+ }
7909
+ context.annotate = (message, type$1, attachment) => {
7910
+ if (test$7.result && test$7.result.state !== "run") throw new Error(`Cannot annotate tests outside of the test run. The test "${test$7.name}" finished running with the "${test$7.result.state}" state already.`);
7911
+ let location;
7912
+ const stack = new Error("STACK_TRACE").stack;
7913
+ const index$2 = stack.includes("STACK_TRACE") ? 2 : 1;
7914
+ const stackLine = stack.split("\n")[index$2];
7915
+ const parsed = parseSingleStack(stackLine);
7916
+ if (parsed) location = {
7917
+ file: parsed.file,
7918
+ line: parsed.line,
7919
+ column: parsed.column
7920
+ };
7921
+ if (typeof type$1 === "object") return recordAsyncAnnotation(test$7, annotate(message, location, void 0, type$1));
7922
+ else return recordAsyncAnnotation(test$7, annotate(message, location, type$1, attachment));
7923
+ };
7782
7924
  context.onTestFailed = (handler, timeout) => {
7783
7925
  test$7.onFailed || (test$7.onFailed = []);
7784
- test$7.onFailed.push(withTimeout(handler, timeout ?? runner$1.config.hookTimeout, true, new Error("STACK_TRACE_ERROR")));
7926
+ test$7.onFailed.push(withTimeout(handler, timeout ?? runner$1.config.hookTimeout, true, new Error("STACK_TRACE_ERROR"), (_, error) => abortController.abort(error)));
7785
7927
  };
7786
7928
  context.onTestFinished = (handler, timeout) => {
7787
7929
  test$7.onFinished || (test$7.onFinished = []);
7788
- test$7.onFinished.push(withTimeout(handler, timeout ?? runner$1.config.hookTimeout, true, new Error("STACK_TRACE_ERROR")));
7930
+ test$7.onFinished.push(withTimeout(handler, timeout ?? runner$1.config.hookTimeout, true, new Error("STACK_TRACE_ERROR"), (_, error) => abortController.abort(error)));
7789
7931
  };
7790
7932
  return ((_runner$extendTaskCon = runner$1.extendTaskContext) === null || _runner$extendTaskCon === void 0 ? void 0 : _runner$extendTaskCon.call(runner$1, context)) || context;
7791
7933
  }
@@ -7795,6 +7937,55 @@ function makeTimeoutError(isHook, timeout, stackTraceError) {
7795
7937
  if (stackTraceError === null || stackTraceError === void 0 ? void 0 : stackTraceError.stack) error.stack = stackTraceError.stack.replace(error.message, stackTraceError.message);
7796
7938
  return error;
7797
7939
  }
7940
+ const fileContexts = /* @__PURE__ */ new WeakMap();
7941
+ function getFileContext(file) {
7942
+ const context = fileContexts.get(file);
7943
+ if (!context) throw new Error(`Cannot find file context for ${file.name}`);
7944
+ return context;
7945
+ }
7946
+ const table = [];
7947
+ for (let i = 65; i < 91; i++) table.push(String.fromCharCode(i));
7948
+ for (let i = 97; i < 123; i++) table.push(String.fromCharCode(i));
7949
+ for (let i = 0; i < 10; i++) table.push(i.toString(10));
7950
+ function encodeUint8Array(bytes) {
7951
+ let base64 = "";
7952
+ const len = bytes.byteLength;
7953
+ for (let i = 0; i < len; i += 3) if (len === i + 1) {
7954
+ const a$1 = (bytes[i] & 252) >> 2;
7955
+ const b = (bytes[i] & 3) << 4;
7956
+ base64 += table[a$1];
7957
+ base64 += table[b];
7958
+ base64 += "==";
7959
+ } else if (len === i + 2) {
7960
+ const a$1 = (bytes[i] & 252) >> 2;
7961
+ const b = (bytes[i] & 3) << 4 | (bytes[i + 1] & 240) >> 4;
7962
+ const c = (bytes[i + 1] & 15) << 2;
7963
+ base64 += table[a$1];
7964
+ base64 += table[b];
7965
+ base64 += table[c];
7966
+ base64 += "=";
7967
+ } else {
7968
+ const a$1 = (bytes[i] & 252) >> 2;
7969
+ const b = (bytes[i] & 3) << 4 | (bytes[i + 1] & 240) >> 4;
7970
+ const c = (bytes[i + 1] & 15) << 2 | (bytes[i + 2] & 192) >> 6;
7971
+ const d = bytes[i + 2] & 63;
7972
+ base64 += table[a$1];
7973
+ base64 += table[b];
7974
+ base64 += table[c];
7975
+ base64 += table[d];
7976
+ }
7977
+ return base64;
7978
+ }
7979
+ function recordAsyncAnnotation(test$7, promise) {
7980
+ promise = promise.finally(() => {
7981
+ if (!test$7.promises) return;
7982
+ const index$2 = test$7.promises.indexOf(promise);
7983
+ if (index$2 !== -1) test$7.promises.splice(index$2, 1);
7984
+ });
7985
+ if (!test$7.promises) test$7.promises = [];
7986
+ test$7.promises.push(promise);
7987
+ return promise;
7988
+ }
7798
7989
  function getDefaultHookTimeout() {
7799
7990
  return getRunner().config.hookTimeout;
7800
7991
  }
@@ -7820,7 +8011,7 @@ const CLEANUP_STACK_TRACE_KEY = Symbol.for("VITEST_CLEANUP_STACK_TRACE");
7820
8011
  */
7821
8012
  const onTestFailed = createTestHook("onTestFailed", (test$7, handler, timeout) => {
7822
8013
  test$7.onFailed || (test$7.onFailed = []);
7823
- test$7.onFailed.push(withTimeout(handler, timeout ?? getDefaultHookTimeout(), true, new Error("STACK_TRACE_ERROR")));
8014
+ test$7.onFailed.push(withTimeout(handler, timeout ?? getDefaultHookTimeout(), true, new Error("STACK_TRACE_ERROR"), abortIfTimeout));
7824
8015
  });
7825
8016
  /**
7826
8017
  * Registers a callback function to be executed when the current test finishes, regardless of the outcome (pass or fail).
@@ -7847,7 +8038,7 @@ const onTestFailed = createTestHook("onTestFailed", (test$7, handler, timeout) =
7847
8038
  */
7848
8039
  const onTestFinished = createTestHook("onTestFinished", (test$7, handler, timeout) => {
7849
8040
  test$7.onFinished || (test$7.onFinished = []);
7850
- test$7.onFinished.push(withTimeout(handler, timeout ?? getDefaultHookTimeout(), true, new Error("STACK_TRACE_ERROR")));
8041
+ test$7.onFinished.push(withTimeout(handler, timeout ?? getDefaultHookTimeout(), true, new Error("STACK_TRACE_ERROR"), abortIfTimeout));
7851
8042
  });
7852
8043
  function createTestHook(name, handler) {
7853
8044
  return (fn, timeout) => {
@@ -7857,43 +8048,7 @@ function createTestHook(name, handler) {
7857
8048
  return handler(current, fn, timeout);
7858
8049
  };
7859
8050
  }
7860
- const now$1 = globalThis.performance ? globalThis.performance.now.bind(globalThis.performance) : Date.now;
7861
- const now = globalThis.performance ? globalThis.performance.now.bind(globalThis.performance) : Date.now;
7862
- const unixNow = Date.now;
7863
- const packs = new Map();
7864
- const eventsPacks = [];
7865
- const pendingTasksUpdates = [];
7866
- function sendTasksUpdate(runner$1) {
7867
- if (packs.size) {
7868
- var _runner$onTaskUpdate;
7869
- const taskPacks = Array.from(packs).map(([id, task]) => {
7870
- return [
7871
- id,
7872
- task[0],
7873
- task[1]
7874
- ];
7875
- });
7876
- const p$1 = (_runner$onTaskUpdate = runner$1.onTaskUpdate) === null || _runner$onTaskUpdate === void 0 ? void 0 : _runner$onTaskUpdate.call(runner$1, taskPacks, eventsPacks);
7877
- if (p$1) {
7878
- pendingTasksUpdates.push(p$1);
7879
- p$1.then(() => pendingTasksUpdates.splice(pendingTasksUpdates.indexOf(p$1), 1), () => {});
7880
- }
7881
- eventsPacks.length = 0;
7882
- packs.clear();
7883
- }
7884
- }
7885
- function throttle(fn, ms) {
7886
- let last = 0;
7887
- return function(...args) {
7888
- const now$3 = unixNow();
7889
- if (now$3 - last > ms) {
7890
- last = now$3;
7891
- return fn.apply(this, args);
7892
- }
7893
- };
7894
- }
7895
- const sendTasksUpdateThrottled = throttle(sendTasksUpdate, 100);
7896
8051
 
7897
8052
  //#endregion
7898
- export { Assertion, assert$1 as assert, assertTypes, createSimpleStackTrace, describe, diff, expect, format$1 as format, getCurrentTest, getNames, getSafeTimers, getTestName, getType$1 as getType, isObject, it, parseSingleStack, plugins, printDiffOrStringify, processError, stringify, test, u, use, utils_exports };
7899
- //# sourceMappingURL=dist-BKh-M1A1.js.map
8053
+ export { Assertion, assert$1 as assert, assertTypes, createSimpleStackTrace, describe, diff, expect, format$1 as format, getCurrentTest, getNames, getSafeTimers, getTestName, getType, isObject, it, parseSingleStack, plugins, printDiffOrStringify, processError, stringify, test, u, use, utils_exports };
8054
+ //# sourceMappingURL=dist-DDpQABxe.js.map