@goast/core 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (387) hide show
  1. package/esm/_dnt.test_polyfills.d.ts +11 -0
  2. package/esm/_dnt.test_polyfills.d.ts.map +1 -1
  3. package/esm/_dnt.test_polyfills.js +14 -0
  4. package/esm/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts.map +1 -0
  5. package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/assertion_error.js +1 -1
  6. package/esm/deps/jsr.io/@std/assert/1.0.11/false.d.ts.map +1 -0
  7. package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/false.js +1 -1
  8. package/esm/deps/jsr.io/@std/assert/1.0.11/instance_of.d.ts.map +1 -0
  9. package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/instance_of.js +1 -1
  10. package/esm/deps/jsr.io/@std/assert/1.0.11/match.d.ts.map +1 -0
  11. package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/match.js +1 -1
  12. package/esm/deps/jsr.io/@std/assert/1.0.11/not_instance_of.d.ts.map +1 -0
  13. package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_instance_of.js +1 -1
  14. package/esm/deps/jsr.io/@std/assert/1.0.11/not_match.d.ts.map +1 -0
  15. package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_match.js +1 -1
  16. package/esm/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.d.ts.map +1 -0
  17. package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_strict_equals.js +2 -2
  18. package/esm/deps/jsr.io/@std/assert/1.0.11/strict_equals.d.ts.map +1 -0
  19. package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/strict_equals.js +6 -6
  20. package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_equals.d.ts.map +1 -0
  21. package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_assert_equals.js +2 -2
  22. package/{script/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts → esm/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts} +1 -12
  23. package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts.map +1 -0
  24. package/esm/deps/jsr.io/@std/{assert/1.0.6/is_error.js → expect/1.0.12/_assert_is_error.js} +8 -19
  25. package/esm/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.d.ts.map +1 -0
  26. package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_assert_not_equals.js +3 -3
  27. package/esm/deps/jsr.io/@std/expect/{1.0.5/_assertion.d.ts → 1.0.12/_assertions.d.ts} +2 -1
  28. package/esm/deps/jsr.io/@std/expect/1.0.12/_assertions.d.ts.map +1 -0
  29. package/esm/deps/jsr.io/@std/expect/1.0.12/_assertions.js +13 -0
  30. package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_asymmetric_matchers.d.ts +14 -4
  31. package/esm/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.d.ts.map +1 -0
  32. package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_asymmetric_matchers.js +54 -17
  33. package/esm/deps/jsr.io/@std/expect/1.0.12/_build_message.d.ts.map +1 -0
  34. package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_build_message.js +9 -9
  35. package/esm/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.d.ts.map +1 -0
  36. package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_custom_equality_tester.js +1 -1
  37. package/esm/deps/jsr.io/@std/expect/1.0.12/_equal.d.ts.map +1 -0
  38. package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_equal.js +8 -8
  39. package/esm/deps/jsr.io/@std/expect/1.0.12/_extend.d.ts.map +1 -0
  40. package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_extend.js +1 -1
  41. package/esm/deps/jsr.io/@std/expect/1.0.12/_inspect_args.d.ts.map +1 -0
  42. package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_inspect_args.js +1 -1
  43. package/esm/deps/jsr.io/@std/expect/1.0.12/_matchers.d.ts.map +1 -0
  44. package/esm/deps/jsr.io/@std/expect/1.0.12/_matchers.js +714 -0
  45. package/esm/deps/jsr.io/@std/expect/1.0.12/_mock_util.d.ts.map +1 -0
  46. package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_mock_util.js +1 -1
  47. package/esm/deps/jsr.io/@std/expect/1.0.12/_serializer.d.ts +4 -0
  48. package/esm/deps/jsr.io/@std/expect/1.0.12/_serializer.d.ts.map +1 -0
  49. package/esm/deps/jsr.io/@std/expect/1.0.12/_serializer.js +10 -0
  50. package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_types.d.ts +7 -2
  51. package/esm/deps/jsr.io/@std/expect/1.0.12/_types.d.ts.map +1 -0
  52. package/esm/deps/jsr.io/@std/expect/1.0.12/_types.js +3 -0
  53. package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_utils.d.ts +1 -0
  54. package/esm/deps/jsr.io/@std/expect/1.0.12/_utils.d.ts.map +1 -0
  55. package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_utils.js +60 -1
  56. package/{script/deps/jsr.io/@std/expect/1.0.5 → esm/deps/jsr.io/@std/expect/1.0.12}/expect.d.ts +10 -1
  57. package/esm/deps/jsr.io/@std/expect/1.0.12/expect.d.ts.map +1 -0
  58. package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/expect.js +101 -3
  59. package/esm/deps/jsr.io/@std/expect/1.0.12/fn.d.ts.map +1 -0
  60. package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/fn.js +1 -1
  61. package/{script/deps/jsr.io/@std/expect/1.0.5 → esm/deps/jsr.io/@std/expect/1.0.12}/mod.d.ts +8 -7
  62. package/esm/deps/jsr.io/@std/expect/1.0.12/mod.d.ts.map +1 -0
  63. package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/mod.js +9 -8
  64. package/esm/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts +160 -0
  65. package/esm/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts.map +1 -0
  66. package/esm/deps/jsr.io/@std/internal/1.0.5/assertion_state.js +199 -0
  67. package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/build_message.d.ts.map +1 -1
  68. package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.d.ts.map +1 -1
  69. package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.d.ts.map +1 -1
  70. package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.d.ts.map +1 -1
  71. package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.d.ts.map +1 -1
  72. package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.d.ts.map +1 -1
  73. package/esm/deps/jsr.io/@std/testing/{1.0.3 → 1.0.9}/_test_suite.d.ts +6 -1
  74. package/esm/deps/jsr.io/@std/testing/1.0.9/_test_suite.d.ts.map +1 -0
  75. package/esm/deps/jsr.io/@std/testing/{1.0.3 → 1.0.9}/_test_suite.js +45 -5
  76. package/esm/deps/jsr.io/@std/testing/{1.0.3 → 1.0.9}/bdd.d.ts +12 -5
  77. package/{script/deps/jsr.io/@std/testing/1.0.3 → esm/deps/jsr.io/@std/testing/1.0.9}/bdd.d.ts.map +1 -1
  78. package/esm/deps/jsr.io/@std/testing/{1.0.3 → 1.0.9}/bdd.js +85 -7
  79. package/esm/src/collect/helpers.test.js +2 -2
  80. package/esm/src/transform/helpers.test.js +2 -2
  81. package/esm/src/utils/action-provider.test.js +2 -2
  82. package/esm/src/utils/asset-manager.d.ts +1 -0
  83. package/esm/src/utils/asset-manager.d.ts.map +1 -1
  84. package/esm/src/utils/asset-manager.js +1 -1
  85. package/esm/src/utils/common.utils.test.js +2 -2
  86. package/esm/src/utils/condition.test.js +2 -2
  87. package/esm/src/utils/endpoint.utils.test.js +2 -2
  88. package/esm/src/utils/factory.test.js +2 -2
  89. package/esm/src/utils/generator.utils.test.js +2 -2
  90. package/esm/src/utils/object.utils.test.js +2 -2
  91. package/esm/src/utils/schema.utils.test.js +59 -67
  92. package/esm/src/utils/source-builder.test.js +3 -4
  93. package/esm/src/utils/string-builder/string-builder.test.js +11 -12
  94. package/esm/src/utils/string.utils.test.js +2 -2
  95. package/esm/tests/openapi.test.js +1 -1
  96. package/package.json +2 -2
  97. package/script/_dnt.test_polyfills.d.ts +11 -0
  98. package/script/_dnt.test_polyfills.d.ts.map +1 -1
  99. package/script/_dnt.test_polyfills.js +14 -0
  100. package/script/deps/jsr.io/@std/assert/1.0.11/assertion_error.d.ts.map +1 -0
  101. package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/assertion_error.js +1 -1
  102. package/script/deps/jsr.io/@std/assert/1.0.11/false.d.ts.map +1 -0
  103. package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/false.js +1 -1
  104. package/script/deps/jsr.io/@std/assert/1.0.11/instance_of.d.ts.map +1 -0
  105. package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/instance_of.js +1 -1
  106. package/script/deps/jsr.io/@std/assert/1.0.11/match.d.ts.map +1 -0
  107. package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/match.js +1 -1
  108. package/script/deps/jsr.io/@std/assert/1.0.11/not_instance_of.d.ts.map +1 -0
  109. package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_instance_of.js +1 -1
  110. package/script/deps/jsr.io/@std/assert/1.0.11/not_match.d.ts.map +1 -0
  111. package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_match.js +1 -1
  112. package/script/deps/jsr.io/@std/assert/1.0.11/not_strict_equals.d.ts.map +1 -0
  113. package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_strict_equals.js +2 -2
  114. package/script/deps/jsr.io/@std/assert/1.0.11/strict_equals.d.ts.map +1 -0
  115. package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/strict_equals.js +6 -6
  116. package/script/deps/jsr.io/@std/expect/1.0.12/_assert_equals.d.ts.map +1 -0
  117. package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_assert_equals.js +2 -2
  118. package/{esm/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts → script/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts} +1 -12
  119. package/script/deps/jsr.io/@std/expect/1.0.12/_assert_is_error.d.ts.map +1 -0
  120. package/script/deps/jsr.io/@std/{assert/1.0.6/is_error.js → expect/1.0.12/_assert_is_error.js} +8 -19
  121. package/script/deps/jsr.io/@std/expect/1.0.12/_assert_not_equals.d.ts.map +1 -0
  122. package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_assert_not_equals.js +3 -3
  123. package/script/deps/jsr.io/@std/expect/{1.0.5/_assertion.d.ts → 1.0.12/_assertions.d.ts} +2 -1
  124. package/script/deps/jsr.io/@std/expect/1.0.12/_assertions.d.ts.map +1 -0
  125. package/script/deps/jsr.io/@std/expect/{1.0.5/_assertion.js → 1.0.12/_assertions.js} +7 -2
  126. package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_asymmetric_matchers.d.ts +14 -4
  127. package/script/deps/jsr.io/@std/expect/1.0.12/_asymmetric_matchers.d.ts.map +1 -0
  128. package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_asymmetric_matchers.js +61 -18
  129. package/script/deps/jsr.io/@std/expect/1.0.12/_build_message.d.ts.map +1 -0
  130. package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_build_message.js +9 -9
  131. package/script/deps/jsr.io/@std/expect/1.0.12/_custom_equality_tester.d.ts.map +1 -0
  132. package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_custom_equality_tester.js +1 -1
  133. package/script/deps/jsr.io/@std/expect/1.0.12/_equal.d.ts.map +1 -0
  134. package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_equal.js +8 -8
  135. package/script/deps/jsr.io/@std/expect/1.0.12/_extend.d.ts.map +1 -0
  136. package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_extend.js +1 -1
  137. package/script/deps/jsr.io/@std/expect/1.0.12/_inspect_args.d.ts.map +1 -0
  138. package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_inspect_args.js +1 -1
  139. package/script/deps/jsr.io/@std/expect/1.0.12/_matchers.d.ts.map +1 -0
  140. package/script/deps/jsr.io/@std/expect/1.0.12/_matchers.js +748 -0
  141. package/script/deps/jsr.io/@std/expect/1.0.12/_mock_util.d.ts.map +1 -0
  142. package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_mock_util.js +1 -1
  143. package/script/deps/jsr.io/@std/expect/1.0.12/_serializer.d.ts +4 -0
  144. package/script/deps/jsr.io/@std/expect/1.0.12/_serializer.d.ts.map +1 -0
  145. package/script/deps/jsr.io/@std/expect/1.0.12/_serializer.js +14 -0
  146. package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_types.d.ts +7 -2
  147. package/script/deps/jsr.io/@std/expect/1.0.12/_types.d.ts.map +1 -0
  148. package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_types.js +1 -1
  149. package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_utils.d.ts +1 -0
  150. package/script/deps/jsr.io/@std/expect/1.0.12/_utils.d.ts.map +1 -0
  151. package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_utils.js +61 -1
  152. package/{esm/deps/jsr.io/@std/expect/1.0.5 → script/deps/jsr.io/@std/expect/1.0.12}/expect.d.ts +10 -1
  153. package/script/deps/jsr.io/@std/expect/1.0.12/expect.d.ts.map +1 -0
  154. package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/expect.js +103 -5
  155. package/script/deps/jsr.io/@std/expect/1.0.12/fn.d.ts.map +1 -0
  156. package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/fn.js +1 -1
  157. package/{esm/deps/jsr.io/@std/expect/1.0.5 → script/deps/jsr.io/@std/expect/1.0.12}/mod.d.ts +8 -7
  158. package/script/deps/jsr.io/@std/expect/1.0.12/mod.d.ts.map +1 -0
  159. package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/mod.js +9 -8
  160. package/script/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts +160 -0
  161. package/script/deps/jsr.io/@std/internal/1.0.5/assertion_state.d.ts.map +1 -0
  162. package/script/deps/jsr.io/@std/internal/1.0.5/assertion_state.js +204 -0
  163. package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/build_message.d.ts.map +1 -1
  164. package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.d.ts.map +1 -1
  165. package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.d.ts.map +1 -1
  166. package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.d.ts.map +1 -1
  167. package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.d.ts.map +1 -1
  168. package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.d.ts.map +1 -1
  169. package/script/deps/jsr.io/@std/testing/{1.0.3 → 1.0.9}/_test_suite.d.ts +6 -1
  170. package/script/deps/jsr.io/@std/testing/1.0.9/_test_suite.d.ts.map +1 -0
  171. package/script/deps/jsr.io/@std/testing/{1.0.3 → 1.0.9}/_test_suite.js +46 -6
  172. package/script/deps/jsr.io/@std/testing/{1.0.3 → 1.0.9}/bdd.d.ts +12 -5
  173. package/{esm/deps/jsr.io/@std/testing/1.0.3 → script/deps/jsr.io/@std/testing/1.0.9}/bdd.d.ts.map +1 -1
  174. package/script/deps/jsr.io/@std/testing/{1.0.3 → 1.0.9}/bdd.js +84 -6
  175. package/script/src/collect/helpers.test.js +2 -2
  176. package/script/src/transform/helpers.test.js +2 -2
  177. package/script/src/utils/action-provider.test.js +2 -2
  178. package/script/src/utils/asset-manager.d.ts +1 -0
  179. package/script/src/utils/asset-manager.d.ts.map +1 -1
  180. package/script/src/utils/asset-manager.js +1 -1
  181. package/script/src/utils/common.utils.test.js +2 -2
  182. package/script/src/utils/condition.test.js +2 -2
  183. package/script/src/utils/endpoint.utils.test.js +2 -2
  184. package/script/src/utils/factory.test.js +2 -2
  185. package/script/src/utils/generator.utils.test.js +2 -2
  186. package/script/src/utils/object.utils.test.js +2 -2
  187. package/script/src/utils/schema.utils.test.js +58 -66
  188. package/script/src/utils/source-builder.test.js +3 -4
  189. package/script/src/utils/string-builder/string-builder.test.js +11 -12
  190. package/script/src/utils/string.utils.test.js +2 -2
  191. package/script/tests/openapi.test.js +1 -1
  192. package/src/_dnt.test_polyfills.ts +27 -0
  193. package/src/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/assertion_error.ts +1 -1
  194. package/src/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/false.ts +1 -1
  195. package/src/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/instance_of.ts +1 -1
  196. package/src/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/match.ts +1 -1
  197. package/src/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_instance_of.ts +1 -1
  198. package/src/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_match.ts +1 -1
  199. package/src/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_strict_equals.ts +2 -2
  200. package/src/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/strict_equals.ts +6 -6
  201. package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_assert_equals.ts +2 -2
  202. package/src/deps/jsr.io/@std/{assert/1.0.6/is_error.ts → expect/1.0.12/_assert_is_error.ts} +8 -19
  203. package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_assert_not_equals.ts +3 -3
  204. package/src/deps/jsr.io/@std/expect/1.0.12/_assertions.ts +18 -0
  205. package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_asymmetric_matchers.ts +69 -18
  206. package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_build_message.ts +9 -9
  207. package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_custom_equality_tester.ts +1 -1
  208. package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_equal.ts +10 -9
  209. package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_extend.ts +1 -1
  210. package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_inspect_args.ts +1 -1
  211. package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_matchers.ts +308 -108
  212. package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_mock_util.ts +1 -1
  213. package/src/deps/jsr.io/@std/expect/1.0.12/_serializer.ts +15 -0
  214. package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_types.ts +9 -3
  215. package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_utils.ts +83 -1
  216. package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/expect.ts +113 -4
  217. package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/fn.ts +1 -1
  218. package/src/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/mod.ts +9 -8
  219. package/src/deps/jsr.io/@std/internal/1.0.5/assertion_state.ts +214 -0
  220. package/src/deps/jsr.io/@std/testing/{1.0.3 → 1.0.9}/_test_suite.ts +68 -9
  221. package/src/deps/jsr.io/@std/testing/{1.0.3 → 1.0.9}/bdd.ts +98 -12
  222. package/src/src/collect/helpers.test.ts +2 -2
  223. package/src/src/transform/helpers.test.ts +2 -2
  224. package/src/src/utils/action-provider.test.ts +2 -2
  225. package/src/src/utils/asset-manager.ts +1 -1
  226. package/src/src/utils/common.utils.test.ts +2 -2
  227. package/src/src/utils/condition.test.ts +2 -2
  228. package/src/src/utils/endpoint.utils.test.ts +2 -2
  229. package/src/src/utils/factory.test.ts +2 -2
  230. package/src/src/utils/generator.utils.test.ts +2 -2
  231. package/src/src/utils/object.utils.test.ts +2 -2
  232. package/src/src/utils/schema.utils.test.ts +68 -67
  233. package/src/src/utils/source-builder.test.ts +3 -4
  234. package/src/src/utils/string-builder/string-builder.test.ts +11 -12
  235. package/src/src/utils/string.utils.test.ts +2 -2
  236. package/src/tests/openapi.test.ts +1 -1
  237. package/esm/deps/jsr.io/@std/assert/1.0.6/assertion_error.d.ts.map +0 -1
  238. package/esm/deps/jsr.io/@std/assert/1.0.6/equal.d.ts +0 -17
  239. package/esm/deps/jsr.io/@std/assert/1.0.6/equal.d.ts.map +0 -1
  240. package/esm/deps/jsr.io/@std/assert/1.0.6/equal.js +0 -136
  241. package/esm/deps/jsr.io/@std/assert/1.0.6/equals.d.ts +0 -22
  242. package/esm/deps/jsr.io/@std/assert/1.0.6/equals.d.ts.map +0 -1
  243. package/esm/deps/jsr.io/@std/assert/1.0.6/equals.js +0 -45
  244. package/esm/deps/jsr.io/@std/assert/1.0.6/false.d.ts.map +0 -1
  245. package/esm/deps/jsr.io/@std/assert/1.0.6/instance_of.d.ts.map +0 -1
  246. package/esm/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts.map +0 -1
  247. package/esm/deps/jsr.io/@std/assert/1.0.6/match.d.ts.map +0 -1
  248. package/esm/deps/jsr.io/@std/assert/1.0.6/not_instance_of.d.ts.map +0 -1
  249. package/esm/deps/jsr.io/@std/assert/1.0.6/not_match.d.ts.map +0 -1
  250. package/esm/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.d.ts.map +0 -1
  251. package/esm/deps/jsr.io/@std/assert/1.0.6/object_match.d.ts +0 -28
  252. package/esm/deps/jsr.io/@std/assert/1.0.6/object_match.d.ts.map +0 -1
  253. package/esm/deps/jsr.io/@std/assert/1.0.6/object_match.js +0 -159
  254. package/esm/deps/jsr.io/@std/assert/1.0.6/strict_equals.d.ts.map +0 -1
  255. package/esm/deps/jsr.io/@std/expect/1.0.5/_assert_equals.d.ts.map +0 -1
  256. package/esm/deps/jsr.io/@std/expect/1.0.5/_assert_not_equals.d.ts.map +0 -1
  257. package/esm/deps/jsr.io/@std/expect/1.0.5/_assertion.d.ts.map +0 -1
  258. package/esm/deps/jsr.io/@std/expect/1.0.5/_assertion.js +0 -9
  259. package/esm/deps/jsr.io/@std/expect/1.0.5/_asymmetric_matchers.d.ts.map +0 -1
  260. package/esm/deps/jsr.io/@std/expect/1.0.5/_build_message.d.ts.map +0 -1
  261. package/esm/deps/jsr.io/@std/expect/1.0.5/_custom_equality_tester.d.ts.map +0 -1
  262. package/esm/deps/jsr.io/@std/expect/1.0.5/_equal.d.ts.map +0 -1
  263. package/esm/deps/jsr.io/@std/expect/1.0.5/_extend.d.ts.map +0 -1
  264. package/esm/deps/jsr.io/@std/expect/1.0.5/_inspect_args.d.ts.map +0 -1
  265. package/esm/deps/jsr.io/@std/expect/1.0.5/_matchers.d.ts.map +0 -1
  266. package/esm/deps/jsr.io/@std/expect/1.0.5/_matchers.js +0 -564
  267. package/esm/deps/jsr.io/@std/expect/1.0.5/_mock_util.d.ts.map +0 -1
  268. package/esm/deps/jsr.io/@std/expect/1.0.5/_types.d.ts.map +0 -1
  269. package/esm/deps/jsr.io/@std/expect/1.0.5/_types.js +0 -3
  270. package/esm/deps/jsr.io/@std/expect/1.0.5/_utils.d.ts.map +0 -1
  271. package/esm/deps/jsr.io/@std/expect/1.0.5/expect.d.ts.map +0 -1
  272. package/esm/deps/jsr.io/@std/expect/1.0.5/fn.d.ts.map +0 -1
  273. package/esm/deps/jsr.io/@std/expect/1.0.5/mod.d.ts.map +0 -1
  274. package/esm/deps/jsr.io/@std/internal/1.0.4/assertion_state.d.ts +0 -75
  275. package/esm/deps/jsr.io/@std/internal/1.0.4/assertion_state.d.ts.map +0 -1
  276. package/esm/deps/jsr.io/@std/internal/1.0.4/assertion_state.js +0 -101
  277. package/esm/deps/jsr.io/@std/testing/1.0.3/_test_suite.d.ts.map +0 -1
  278. package/script/deps/jsr.io/@std/assert/1.0.6/assertion_error.d.ts.map +0 -1
  279. package/script/deps/jsr.io/@std/assert/1.0.6/equal.d.ts +0 -17
  280. package/script/deps/jsr.io/@std/assert/1.0.6/equal.d.ts.map +0 -1
  281. package/script/deps/jsr.io/@std/assert/1.0.6/equal.js +0 -139
  282. package/script/deps/jsr.io/@std/assert/1.0.6/equals.d.ts +0 -22
  283. package/script/deps/jsr.io/@std/assert/1.0.6/equals.d.ts.map +0 -1
  284. package/script/deps/jsr.io/@std/assert/1.0.6/equals.js +0 -48
  285. package/script/deps/jsr.io/@std/assert/1.0.6/false.d.ts.map +0 -1
  286. package/script/deps/jsr.io/@std/assert/1.0.6/instance_of.d.ts.map +0 -1
  287. package/script/deps/jsr.io/@std/assert/1.0.6/is_error.d.ts.map +0 -1
  288. package/script/deps/jsr.io/@std/assert/1.0.6/match.d.ts.map +0 -1
  289. package/script/deps/jsr.io/@std/assert/1.0.6/not_instance_of.d.ts.map +0 -1
  290. package/script/deps/jsr.io/@std/assert/1.0.6/not_match.d.ts.map +0 -1
  291. package/script/deps/jsr.io/@std/assert/1.0.6/not_strict_equals.d.ts.map +0 -1
  292. package/script/deps/jsr.io/@std/assert/1.0.6/object_match.d.ts +0 -28
  293. package/script/deps/jsr.io/@std/assert/1.0.6/object_match.d.ts.map +0 -1
  294. package/script/deps/jsr.io/@std/assert/1.0.6/object_match.js +0 -162
  295. package/script/deps/jsr.io/@std/assert/1.0.6/strict_equals.d.ts.map +0 -1
  296. package/script/deps/jsr.io/@std/expect/1.0.5/_assert_equals.d.ts.map +0 -1
  297. package/script/deps/jsr.io/@std/expect/1.0.5/_assert_not_equals.d.ts.map +0 -1
  298. package/script/deps/jsr.io/@std/expect/1.0.5/_assertion.d.ts.map +0 -1
  299. package/script/deps/jsr.io/@std/expect/1.0.5/_asymmetric_matchers.d.ts.map +0 -1
  300. package/script/deps/jsr.io/@std/expect/1.0.5/_build_message.d.ts.map +0 -1
  301. package/script/deps/jsr.io/@std/expect/1.0.5/_custom_equality_tester.d.ts.map +0 -1
  302. package/script/deps/jsr.io/@std/expect/1.0.5/_equal.d.ts.map +0 -1
  303. package/script/deps/jsr.io/@std/expect/1.0.5/_extend.d.ts.map +0 -1
  304. package/script/deps/jsr.io/@std/expect/1.0.5/_inspect_args.d.ts.map +0 -1
  305. package/script/deps/jsr.io/@std/expect/1.0.5/_matchers.d.ts.map +0 -1
  306. package/script/deps/jsr.io/@std/expect/1.0.5/_matchers.js +0 -598
  307. package/script/deps/jsr.io/@std/expect/1.0.5/_mock_util.d.ts.map +0 -1
  308. package/script/deps/jsr.io/@std/expect/1.0.5/_types.d.ts.map +0 -1
  309. package/script/deps/jsr.io/@std/expect/1.0.5/_utils.d.ts.map +0 -1
  310. package/script/deps/jsr.io/@std/expect/1.0.5/expect.d.ts.map +0 -1
  311. package/script/deps/jsr.io/@std/expect/1.0.5/fn.d.ts.map +0 -1
  312. package/script/deps/jsr.io/@std/expect/1.0.5/mod.d.ts.map +0 -1
  313. package/script/deps/jsr.io/@std/internal/1.0.4/assertion_state.d.ts +0 -75
  314. package/script/deps/jsr.io/@std/internal/1.0.4/assertion_state.d.ts.map +0 -1
  315. package/script/deps/jsr.io/@std/internal/1.0.4/assertion_state.js +0 -106
  316. package/script/deps/jsr.io/@std/testing/1.0.3/_test_suite.d.ts.map +0 -1
  317. package/src/deps/jsr.io/@std/assert/1.0.6/equal.ts +0 -152
  318. package/src/deps/jsr.io/@std/assert/1.0.6/equals.ts +0 -52
  319. package/src/deps/jsr.io/@std/assert/1.0.6/object_match.ts +0 -202
  320. package/src/deps/jsr.io/@std/expect/1.0.5/_assertion.ts +0 -13
  321. package/src/deps/jsr.io/@std/internal/1.0.4/assertion_state.ts +0 -111
  322. /package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/assertion_error.d.ts +0 -0
  323. /package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/false.d.ts +0 -0
  324. /package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/instance_of.d.ts +0 -0
  325. /package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/match.d.ts +0 -0
  326. /package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_instance_of.d.ts +0 -0
  327. /package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_match.d.ts +0 -0
  328. /package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_strict_equals.d.ts +0 -0
  329. /package/esm/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/strict_equals.d.ts +0 -0
  330. /package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_assert_equals.d.ts +0 -0
  331. /package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_assert_not_equals.d.ts +0 -0
  332. /package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_build_message.d.ts +0 -0
  333. /package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_custom_equality_tester.d.ts +0 -0
  334. /package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_equal.d.ts +0 -0
  335. /package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_extend.d.ts +0 -0
  336. /package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_inspect_args.d.ts +0 -0
  337. /package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_matchers.d.ts +0 -0
  338. /package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_mock_util.d.ts +0 -0
  339. /package/esm/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/fn.d.ts +0 -0
  340. /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/build_message.d.ts +0 -0
  341. /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/build_message.js +0 -0
  342. /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.d.ts +0 -0
  343. /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.js +0 -0
  344. /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.d.ts +0 -0
  345. /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.js +0 -0
  346. /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.d.ts +0 -0
  347. /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.js +0 -0
  348. /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.d.ts +0 -0
  349. /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.js +0 -0
  350. /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.d.ts +0 -0
  351. /package/esm/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.js +0 -0
  352. /package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/assertion_error.d.ts +0 -0
  353. /package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/false.d.ts +0 -0
  354. /package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/instance_of.d.ts +0 -0
  355. /package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/match.d.ts +0 -0
  356. /package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_instance_of.d.ts +0 -0
  357. /package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_match.d.ts +0 -0
  358. /package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/not_strict_equals.d.ts +0 -0
  359. /package/script/deps/jsr.io/@std/assert/{1.0.6 → 1.0.11}/strict_equals.d.ts +0 -0
  360. /package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_assert_equals.d.ts +0 -0
  361. /package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_assert_not_equals.d.ts +0 -0
  362. /package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_build_message.d.ts +0 -0
  363. /package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_custom_equality_tester.d.ts +0 -0
  364. /package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_equal.d.ts +0 -0
  365. /package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_extend.d.ts +0 -0
  366. /package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_inspect_args.d.ts +0 -0
  367. /package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_matchers.d.ts +0 -0
  368. /package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/_mock_util.d.ts +0 -0
  369. /package/script/deps/jsr.io/@std/expect/{1.0.5 → 1.0.12}/fn.d.ts +0 -0
  370. /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/build_message.d.ts +0 -0
  371. /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/build_message.js +0 -0
  372. /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.d.ts +0 -0
  373. /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.js +0 -0
  374. /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.d.ts +0 -0
  375. /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.js +0 -0
  376. /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.d.ts +0 -0
  377. /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.js +0 -0
  378. /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.d.ts +0 -0
  379. /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.js +0 -0
  380. /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.d.ts +0 -0
  381. /package/script/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.js +0 -0
  382. /package/src/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/build_message.ts +0 -0
  383. /package/src/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff.ts +0 -0
  384. /package/src/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/diff_str.ts +0 -0
  385. /package/src/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/format.ts +0 -0
  386. /package/src/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/styles.ts +0 -0
  387. /package/src/deps/jsr.io/@std/internal/{1.0.4 → 1.0.5}/types.ts +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_mock_util.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/expect/1.0.12/_mock_util.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,eAAsB,CAAC;AAE/C,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,GAAG,EAAE,CAAC;IACZ,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,MAAM,CAAC,EAAE,GAAG,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,wBAAgB,YAAY,CAAC,CAAC,EAAE,GAAG,GAAG,QAAQ,EAAE,CAO/C"}
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // deno-lint-ignore-file no-explicit-any
3
3
  export const MOCK_SYMBOL = Symbol.for("@MOCK");
4
4
  export function getMockCalls(f) {
@@ -0,0 +1,4 @@
1
+ import type { SnapshotPlugin } from "./_types.js";
2
+ export declare function addSerializer(plugin: SnapshotPlugin): void;
3
+ export declare function getSerializer(): SnapshotPlugin[];
4
+ //# sourceMappingURL=_serializer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_serializer.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/expect/1.0.12/_serializer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAMlD,wBAAgB,aAAa,CAAC,MAAM,EAAE,cAAc,QAEnD;AAED,wBAAgB,aAAa,qBAE5B"}
@@ -0,0 +1,10 @@
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
+ const INTERNAL_PLUGINS = [
3
+ // TODO(eryue0220): support internal snapshot serializer plugins
4
+ ];
5
+ export function addSerializer(plugin) {
6
+ INTERNAL_PLUGINS.unshift(plugin);
7
+ }
8
+ export function getSerializer() {
9
+ return INTERNAL_PLUGINS;
10
+ }
@@ -156,7 +156,10 @@ export interface Expected<IsAsync = false> {
156
156
  */
157
157
  toBeCalledWith(...expected: unknown[]): void;
158
158
  /**
159
- * Asserts that the value is close to the specified number within a tolerance.
159
+ * Asserts that a given numerical value is approximately equal to an
160
+ * expected number within a certain margin of error
161
+ * (tolerance). Useful when comparing floating-point numbers, which
162
+ * may be represented internally with precision errors.
160
163
  *
161
164
  * @example Usage
162
165
  * ```ts
@@ -168,7 +171,8 @@ export interface Expected<IsAsync = false> {
168
171
  * ```
169
172
  *
170
173
  * @param candidate The candidate number.
171
- * @param tolerance The tolerance value (optional).
174
+ * @param tolerance The number of significant decimal digits to
175
+ * consider when comparing the values (optional, default 2).
172
176
  */
173
177
  toBeCloseTo(candidate: number, tolerance?: number): void;
174
178
  /**
@@ -834,5 +838,6 @@ export interface OldSnapshotPlugin {
834
838
  print: (val: unknown, print: Print, indent: Indent, options: PluginOptions, colors: Colors) => string;
835
839
  test: Test;
836
840
  }
841
+ export type SnapshotPlugin = NewSnapshotPlugin | OldSnapshotPlugin;
837
842
  export {};
838
843
  //# sourceMappingURL=_types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_types.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/expect/1.0.12/_types.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,OAAO,CAAC;IACf,KAAK,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,YAAY,KAAK,OAAO,CAAC;IACnE,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;CACnC;AAED,MAAM,MAAM,OAAO,GAAG,CACpB,OAAO,EAAE,cAAc,EACvB,GAAG,IAAI,EAAE,GAAG,EAAE,KACX,WAAW,GAAG,iBAAiB,CAAC;AAErC,MAAM,MAAM,QAAQ,GAAG;IACrB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB,CAAC;AACF,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC;AACzD,MAAM,MAAM,iBAAiB,GAAG;IAC9B,OAAO,EAAE,MAAM,MAAM,CAAC;IACtB,IAAI,EAAE,OAAO,CAAC;CACf,CAAC;AAEF,gEAAgE;AAChE,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,GAAG,CAAC;AAEzD,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,aAAa,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;AAEvE,qEAAqE;AACrE,MAAM,MAAM,KAAK,CAAC,CAAC,IAAI;KACpB,CAAC,IAAI,M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ACtB;AAED,MAAM,MAAM,OAAO,GAAG,CACpB,GAAG,EAAE,OAAO,EACZ,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,IAAI,EACV,eAAe,CAAC,EAAE,OAAO,KACtB,MAAM,CAAC;AAEZ,UAAU,aAAa;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,OAAO,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,KAAK,IAAI,GAAG,CAAC,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC;AAEnC,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,CACT,GAAG,EAAE,GAAG,EACR,MAAM,EAAE,MAAM,EACd,WAAW,EAAE,MAAM,EACnB,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,OAAO,KACb,MAAM,CAAC;IACZ,IAAI,EAAE,IAAI,CAAC;CACZ;AAED,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,CACL,GAAG,EAAE,OAAO,EACZ,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,aAAa,EACtB,MAAM,EAAE,MAAM,KACX,MAAM,CAAC;IACZ,IAAI,EAAE,IAAI,CAAC;CACZ;AAED,MAAM,MAAM,cAAc,GAAG,iBAAiB,GAAG,iBAAiB,CAAC"}
@@ -0,0 +1,3 @@
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
+ // deno-lint-ignore-file no-explicit-any
3
+ export {};
@@ -5,4 +5,5 @@ export declare function isPromiseLike(value: unknown): value is PromiseLike<unkn
5
5
  export declare function hasIterator(object: any): boolean;
6
6
  export declare function isA<T>(typeName: string, value: unknown): value is T;
7
7
  export declare function iterableEquality(a: any, b: any, customTesters?: Tester[], aStack?: unknown[], bStack?: unknown[]): boolean | undefined;
8
+ export declare function subsetEquality(object: unknown, subset: unknown, customTesters?: Tester[]): boolean | undefined;
8
9
  //# sourceMappingURL=_utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_utils.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/expect/1.0.12/_utils.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAG1C,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,eAAe,GAAG,YAAY,CAYxE;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,WAAW,CAAC,OAAO,CAAC,CAM3E;AAGD,wBAAgB,WAAW,CAAC,MAAM,EAAE,GAAG,WAEtC;AAED,wBAAgB,GAAG,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,CAAC,CAEnE;AAmDD,wBAAgB,gBAAgB,CAE9B,CAAC,EAAE,GAAG,EAEN,CAAC,EAAE,GAAG,EACN,aAAa,GAAE,MAAM,EAAO,EAC5B,MAAM,GAAE,OAAO,EAAO,EACtB,MAAM,GAAE,OAAO,EAAO,GACrB,OAAO,GAAG,SAAS,CA2IrB;AAGD,wBAAgB,cAAc,CAC5B,MAAM,EAAE,OAAO,EACf,MAAM,EAAE,OAAO,EACf,aAAa,GAAE,MAAM,EAAO,GAC3B,OAAO,GAAG,SAAS,CAyCrB"}
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved. MIT license.
3
3
  import { equal } from "./_equal.js";
4
4
  export function buildEqualOptions(options) {
@@ -32,6 +32,29 @@ export function isA(typeName, value) {
32
32
  function isObject(a) {
33
33
  return a !== null && typeof a === "object";
34
34
  }
35
+ function isObjectWithKeys(a) {
36
+ return (isObject(a) &&
37
+ !(a instanceof Error) &&
38
+ !Array.isArray(a) &&
39
+ !(a instanceof Date) &&
40
+ !(a instanceof Set) &&
41
+ !(a instanceof Map));
42
+ }
43
+ function getObjectKeys(object) {
44
+ return [
45
+ ...Object.keys(object),
46
+ ...Object.getOwnPropertySymbols(object).filter((s) => { var _a; return (_a = Object.getOwnPropertyDescriptor(object, s)) === null || _a === void 0 ? void 0 : _a.enumerable; }),
47
+ ];
48
+ }
49
+ function hasPropertyInObject(object, key) {
50
+ const shouldTerminate = !object || typeof object !== "object" ||
51
+ object === Object.prototype;
52
+ if (shouldTerminate) {
53
+ return false;
54
+ }
55
+ return (Object.prototype.hasOwnProperty.call(object, key) ||
56
+ hasPropertyInObject(Object.getPrototypeOf(object), key));
57
+ }
35
58
  // deno-lint-ignore no-explicit-any
36
59
  function entries(obj) {
37
60
  if (!isObject(obj))
@@ -157,3 +180,39 @@ b, customTesters = [], aStack = [], bStack = []) {
157
180
  bStack.pop();
158
181
  return true;
159
182
  }
183
+ // Ported from https://github.com/jestjs/jest/blob/442c7f692e3a92f14a2fb56c1737b26fc663a0ef/packages/expect-utils/src/utils.ts#L341
184
+ export function subsetEquality(object, subset, customTesters = []) {
185
+ const filteredCustomTesters = customTesters.filter((t) => t !== subsetEquality);
186
+ const subsetEqualityWithContext = (seenReferences = new WeakMap()) =>
187
+ // deno-lint-ignore no-explicit-any
188
+ (object, subset) => {
189
+ if (!isObjectWithKeys(subset)) {
190
+ return undefined;
191
+ }
192
+ if (seenReferences.has(subset))
193
+ return undefined;
194
+ seenReferences.set(subset, true);
195
+ const matchResult = getObjectKeys(subset).every((key) => {
196
+ if (isObjectWithKeys(subset[key])) {
197
+ if (seenReferences.has(subset[key])) {
198
+ return equal(object[key], subset[key], {
199
+ customTesters: filteredCustomTesters,
200
+ });
201
+ }
202
+ }
203
+ const result = object != null &&
204
+ hasPropertyInObject(object, key) &&
205
+ equal(object[key], subset[key], {
206
+ customTesters: [
207
+ ...filteredCustomTesters,
208
+ subsetEqualityWithContext(seenReferences),
209
+ ],
210
+ });
211
+ seenReferences.delete(subset[key]);
212
+ return result;
213
+ });
214
+ seenReferences.delete(subset);
215
+ return matchResult;
216
+ };
217
+ return subsetEqualityWithContext()(object, subset);
218
+ }
@@ -1,6 +1,6 @@
1
1
  import type { Expected, Matchers } from "./_types.js";
2
2
  import * as asymmetricMatchers from "./_asymmetric_matchers.js";
3
- import type { Tester } from "./_types.js";
3
+ import type { SnapshotPlugin, Tester } from "./_types.js";
4
4
  export type { AnyConstructor, Async, Expected } from "./_types.js";
5
5
  /**
6
6
  * **Note:** the documentation for this module is taken from [Jest](https://github.com/jestjs/jest/blob/main/website/versioned_docs/version-29.7/ExpectAPI.md)
@@ -47,5 +47,14 @@ export declare namespace expect {
47
47
  var stringContaining: (str: string) => ReturnType<typeof asymmetricMatchers.stringContaining>;
48
48
  var stringMatching: (pattern: string | RegExp) => ReturnType<typeof asymmetricMatchers.stringMatching>;
49
49
  var hasAssertions: () => void;
50
+ var assertions: (num: number) => void;
51
+ var objectContaining: (obj: Record<string, unknown>) => ReturnType<typeof asymmetricMatchers.objectContaining>;
52
+ var not: {
53
+ arrayContaining: typeof asymmetricMatchers.arrayNotContaining;
54
+ objectContaining: typeof asymmetricMatchers.objectNotContaining;
55
+ stringContaining: typeof asymmetricMatchers.stringNotContaining;
56
+ stringMatching: typeof asymmetricMatchers.stringNotMatching;
57
+ };
58
+ var addSnapshotSerializer: (plugin: SnapshotPlugin) => void;
50
59
  }
51
60
  //# sourceMappingURL=expect.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"expect.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/expect/1.0.12/expect.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,QAAQ,EAKR,QAAQ,EACT,MAAM,aAAa,CAAC;AAiDrB,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1D,YAAY,EAAE,cAAc,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AA+CnE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAgB,MAAM,CAAC,CAAC,SAAS,QAAQ,GAAG,QAAQ,EAClD,KAAK,EAAE,OAAO,EACd,aAAa,CAAC,EAAE,MAAM,GACrB,CAAC,CAwFH;yBA3Fe,MAAM;yCAsJR,MAAM,EAAE,KACjB,IAAI;oCAyDgD,QAAQ,KAAK,IAAI;wBAgBnB,UAAU,CAC/D,OAAO,kBAAkB,CAAC,QAAQ,CACnC;iBAuBI,OAAO,KACP,UAAU,CAAC,OAAO,kBAAkB,CAAC,GAAG,CAAC;6BA0BzC,GAAG,EAAE,KACL,UAAU,CAAC,OAAO,kBAAkB,CAAC,eAAe,CAAC;uBA0BnD,MAAM,cACC,MAAM,KACf,UAAU,CAAC,OAAO,kBAAkB,CAAC,OAAO,CAAC;gCAmB3C,MAAM,KACR,UAAU,CAAC,OAAO,kBAAkB,CAAC,gBAAgB,CAAC;kCAwBhD,MAAM,GAAG,MAAM,KACrB,UAAU,CAAC,OAAO,kBAAkB,CAAC,cAAc,CAAC;6BAmBX,IAAI;0BAmBV,MAAM,KAAK,IAAI;gCAkBhD,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KACzB,UAAU,CAAC,OAAO,kBAAkB,CAAC,gBAAgB,CAAC;;;;;;;wCAgEjD,cAAc,KACnB,IAAI"}
@@ -1,15 +1,16 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  // Copyright 2019 Allain Lalonde. All rights reserved. ISC License.
4
4
  // Copyright (c) Meta Platforms, Inc. and affiliates.
5
5
  // The documentation is extracted from https://github.com/jestjs/jest/blob/main/website/versioned_docs/version-29.7/ExpectAPI.md
6
6
  // and updated for the Deno ecosystem.
7
- import { AssertionError } from "../../assert/1.0.6/assertion_error.js";
8
- import { emitAssertionTrigger, hasAssertions } from "./_assertion.js";
7
+ import { AssertionError } from "../../assert/1.0.11/assertion_error.js";
8
+ import { assertions, emitAssertionTrigger, hasAssertions, } from "./_assertions.js";
9
9
  import { addCustomEqualityTesters, getCustomEqualityTesters, } from "./_custom_equality_tester.js";
10
10
  import { equal } from "./_equal.js";
11
11
  import { getExtendMatchers, setExtendMatchers } from "./_extend.js";
12
12
  import { toBe, toBeCloseTo, toBeDefined, toBeFalsy, toBeGreaterThan, toBeGreaterThanOrEqual, toBeInstanceOf, toBeLessThan, toBeLessThanOrEqual, toBeNaN, toBeNull, toBeTruthy, toBeUndefined, toContain, toContainEqual, toEqual, toHaveBeenCalled, toHaveBeenCalledTimes, toHaveBeenCalledWith, toHaveBeenLastCalledWith, toHaveBeenNthCalledWith, toHaveLastReturnedWith, toHaveLength, toHaveNthReturnedWith, toHaveProperty, toHaveReturned, toHaveReturnedTimes, toHaveReturnedWith, toMatch, toMatchObject, toStrictEqual, toThrow, } from "./_matchers.js";
13
+ import { addSerializer } from "./_serializer.js";
13
14
  import { isPromiseLike } from "./_utils.js";
14
15
  import * as asymmetricMatchers from "./_asymmetric_matchers.js";
15
16
  const matchers = {
@@ -423,3 +424,100 @@ expect.stringMatching = asymmetricMatchers.stringMatching;
423
424
  * ```
424
425
  */
425
426
  expect.hasAssertions = hasAssertions;
427
+ /**
428
+ * `expect.assertions` verifies that a certain number of assertions are called during a test.
429
+ *
430
+ * Note: expect.assertions only can use in bdd function test suite, such as `test` or `it`.
431
+ *
432
+ * @example
433
+ * ```ts
434
+ *
435
+ * import { test } from "@std/testing/bdd";
436
+ * import { expect } from "@std/expect";
437
+ *
438
+ * test("it works", () => {
439
+ * expect.assertions(1);
440
+ * expect("a").not.toBe("b");
441
+ * });
442
+ * ```
443
+ */
444
+ expect.assertions = assertions;
445
+ /**
446
+ * `expect.objectContaining(object)` matches any received object that recursively matches the expected properties.
447
+ * That is, the expected object is not a subset of the received object. Therefore, it matches a received object
448
+ * which contains properties that are not in the expected object.
449
+ *
450
+ * @example
451
+ * ```ts
452
+ * import { expect } from "@std/expect";
453
+ *
454
+ * Deno.test("example", () => {
455
+ * expect({ bar: 'baz' }).toEqual(expect.objectContaining({ bar: 'baz'}));
456
+ * expect({ bar: 'baz' }).not.toEqual(expect.objectContaining({ foo: 'bar'}));
457
+ * });
458
+ * ```
459
+ */
460
+ expect.objectContaining = asymmetricMatchers.objectContaining;
461
+ /**
462
+ * `expect.not.arrayContaining` matches a received array which does not contain
463
+ * all of the elements in the expected array. That is, the expected array is not
464
+ * a subset of the received array.
465
+ *
466
+ * `expect.not.objectContaining` matches any received object that does not recursively
467
+ * match the expected properties. That is, the expected object is not a subset of the
468
+ * received object. Therefore, it matches a received object which contains properties
469
+ * that are not in the expected object.
470
+ *
471
+ * `expect.not.stringContaining` matches the received value if it is not a string
472
+ * or if it is a string that does not contain the exact expected string.
473
+ *
474
+ * `expect.not.stringMatching` matches the received value if it is not a string
475
+ * or if it is a string that does not match the expected string or regular expression.
476
+ *
477
+ * @example
478
+ * ```ts
479
+ * import { expect } from "@std/expect";
480
+ *
481
+ * Deno.test("expect.not.arrayContaining", () => {
482
+ * const expected = ["Samantha"];
483
+ * expect(["Alice", "Bob", "Eve"]).toEqual(expect.not.arrayContaining(expected));
484
+ * });
485
+ *
486
+ * Deno.test("expect.not.objectContaining", () => {
487
+ * const expected = { foo: "bar" };
488
+ * expect({ bar: "baz" }).toEqual(expect.not.objectContaining(expected));
489
+ * });
490
+ *
491
+ * Deno.test("expect.not.stringContaining", () => {
492
+ * const expected = "Hello world!";
493
+ * expect("How are you?").toEqual(expect.not.stringContaining(expected));
494
+ * });
495
+ *
496
+ * Deno.test("expect.not.stringMatching", () => {
497
+ * const expected = /Hello world!/;
498
+ * expect("How are you?").toEqual(expect.not.stringMatching(expected));
499
+ * });
500
+ * ```
501
+ */
502
+ expect.not = {
503
+ arrayContaining: asymmetricMatchers.arrayNotContaining,
504
+ objectContaining: asymmetricMatchers.objectNotContaining,
505
+ stringContaining: asymmetricMatchers.stringNotContaining,
506
+ stringMatching: asymmetricMatchers.stringNotMatching,
507
+ };
508
+ /**
509
+ * `expect.addSnapshotSerializer` adds a module that formats application-specific data structures.
510
+ *
511
+ * For an individual test file, an added module precedes any modules from snapshotSerializers configuration,
512
+ * which precede the default snapshot serializers for built-in JavaScript types.
513
+ * The last module added is the first module tested.
514
+ *
515
+ * @example
516
+ * ```ts
517
+ * import { expect } from "@std/expect";
518
+ * import serializerAnsi from "npm:jest-snapshot-serializer-ansi";
519
+ *
520
+ * expect.addSnapshotSerializer(serializerAnsi);
521
+ * ```
522
+ */
523
+ expect.addSnapshotSerializer = addSerializer;
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fn.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/expect/1.0.12/fn.ts"],"names":[],"mappings":"AAyBA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,EAAE,CAAC,GAAG,KAAK,EAAE,QAAQ,EAAE,GAAG,QAAQ,CAsCjD"}
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // This module is browser compatible.
3
3
  // Copyright 2019 Allain Lalonde. All rights reserved. ISC License.
4
4
  // deno-lint-ignore-file no-explicit-any ban-types
@@ -50,26 +50,27 @@
50
50
  * - {@linkcode expect.anything}
51
51
  * - {@linkcode expect.any}
52
52
  * - {@linkcode expect.arrayContaining}
53
+ * - {@linkcode expect.not.arrayContaining}
54
+ * - {@linkcode expect.objectContaining}
55
+ * - {@linkcode expect.not.objectContaining}
53
56
  * - {@linkcode expect.closeTo}
54
57
  * - {@linkcode expect.stringContaining}
58
+ * - {@linkcode expect.not.stringContaining}
55
59
  * - {@linkcode expect.stringMatching}
60
+ * - {@linkcode expect.not.stringMatching}
56
61
  * - Utilities:
62
+ * - {@linkcode expect.addSnapshotSerializer}
63
+ * - {@linkcode expect.assertions}
57
64
  * - {@linkcode expect.addEqualityTester}
58
65
  * - {@linkcode expect.extend}
59
66
  * - {@linkcode expect.hasAssertions}
60
67
  *
61
68
  * Only these functions are still not available:
62
69
  * - Matchers:
63
- * - `toMatchSnapShot`
70
+ * - `toMatchSnapshot`
64
71
  * - `toMatchInlineSnapshot`
65
72
  * - `toThrowErrorMatchingSnapshot`
66
73
  * - `toThrowErrorMatchingInlineSnapshot`
67
- * - Asymmetric matchers:
68
- * - `expect.objectContaining`
69
- * - `expect.not.objectContaining`
70
- * - Utilities:
71
- * - `expect.assertions`
72
- * - `expect.addSnapshotSerializer`
73
74
  *
74
75
  * The tracking issue to add support for unsupported parts of the API is
75
76
  * {@link https://github.com/denoland/std/issues/3964}.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/expect/1.0.12/mod.ts"],"names":[],"mappings":"AAIA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkFG;AACH,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC"}
@@ -1,4 +1,4 @@
1
- // Copyright 2018-2024 the Deno authors. All rights reserved. MIT license.
1
+ // Copyright 2018-2025 the Deno authors. MIT license.
2
2
  // Copyright 2019 Allain Lalonde. All rights reserved. ISC License.
3
3
  // This module is browser compatible.
4
4
  /**
@@ -53,26 +53,27 @@
53
53
  * - {@linkcode expect.anything}
54
54
  * - {@linkcode expect.any}
55
55
  * - {@linkcode expect.arrayContaining}
56
+ * - {@linkcode expect.not.arrayContaining}
57
+ * - {@linkcode expect.objectContaining}
58
+ * - {@linkcode expect.not.objectContaining}
56
59
  * - {@linkcode expect.closeTo}
57
60
  * - {@linkcode expect.stringContaining}
61
+ * - {@linkcode expect.not.stringContaining}
58
62
  * - {@linkcode expect.stringMatching}
63
+ * - {@linkcode expect.not.stringMatching}
59
64
  * - Utilities:
65
+ * - {@linkcode expect.addSnapshotSerializer}
66
+ * - {@linkcode expect.assertions}
60
67
  * - {@linkcode expect.addEqualityTester}
61
68
  * - {@linkcode expect.extend}
62
69
  * - {@linkcode expect.hasAssertions}
63
70
  *
64
71
  * Only these functions are still not available:
65
72
  * - Matchers:
66
- * - `toMatchSnapShot`
73
+ * - `toMatchSnapshot`
67
74
  * - `toMatchInlineSnapshot`
68
75
  * - `toThrowErrorMatchingSnapshot`
69
76
  * - `toThrowErrorMatchingInlineSnapshot`
70
- * - Asymmetric matchers:
71
- * - `expect.objectContaining`
72
- * - `expect.not.objectContaining`
73
- * - Utilities:
74
- * - `expect.assertions`
75
- * - `expect.addSnapshotSerializer`
76
77
  *
77
78
  * The tracking issue to add support for unsupported parts of the API is
78
79
  * {@link https://github.com/denoland/std/issues/3964}.
@@ -0,0 +1,160 @@
1
+ /**
2
+ * Check the test suite internal state
3
+ *
4
+ * @example Usage
5
+ * ```ts ignore
6
+ * import { AssertionState } from "@std/internal";
7
+ *
8
+ * const assertionState = new AssertionState();
9
+ * ```
10
+ */
11
+ export declare class AssertionState {
12
+ #private;
13
+ constructor();
14
+ /**
15
+ * Get the number that through `expect.assertions` api set.
16
+ *
17
+ * @returns the number that through `expect.assertions` api set.
18
+ *
19
+ * @example Usage
20
+ * ```ts ignore
21
+ * import { AssertionState } from "@std/internal";
22
+ *
23
+ * const assertionState = new AssertionState();
24
+ * assertionState.assertionCount;
25
+ * ```
26
+ */
27
+ get assertionCount(): number | undefined;
28
+ /**
29
+ * Get a certain number that assertions were called before.
30
+ *
31
+ * @returns return a certain number that assertions were called before.
32
+ *
33
+ * @example Usage
34
+ * ```ts ignore
35
+ * import { AssertionState } from "@std/internal";
36
+ *
37
+ * const assertionState = new AssertionState();
38
+ * assertionState.assertionTriggeredCount;
39
+ * ```
40
+ */
41
+ get assertionTriggeredCount(): number;
42
+ /**
43
+ * If `expect.hasAssertions` called, then through this method to update #state.assertionCheck value.
44
+ *
45
+ * @param val Set #state.assertionCheck's value
46
+ *
47
+ * @example Usage
48
+ * ```ts ignore
49
+ * import { AssertionState } from "@std/internal";
50
+ *
51
+ * const assertionState = new AssertionState();
52
+ * assertionState.setAssertionCheck(true);
53
+ * ```
54
+ */
55
+ setAssertionCheck(val: boolean): void;
56
+ /**
57
+ * If any matchers was called, `#state.assertionTriggered` will be set through this method.
58
+ *
59
+ * @param val Set #state.assertionTriggered's value
60
+ *
61
+ * @example Usage
62
+ * ```ts ignore
63
+ * import { AssertionState } from "@std/internal";
64
+ *
65
+ * const assertionState = new AssertionState();
66
+ * assertionState.setAssertionTriggered(true);
67
+ * ```
68
+ */
69
+ setAssertionTriggered(val: boolean): void;
70
+ /**
71
+ * If `expect.assertions` called, then through this method to update #state.assertionCheck value.
72
+ *
73
+ * @param num Set #state.assertionCount's value, for example if the value is set 2, that means
74
+ * you must have two assertion matchers call in your test suite.
75
+ *
76
+ * @example Usage
77
+ * ```ts ignore
78
+ * import { AssertionState } from "@std/internal";
79
+ *
80
+ * const assertionState = new AssertionState();
81
+ * assertionState.setAssertionCount(2);
82
+ * ```
83
+ */
84
+ setAssertionCount(num: number): void;
85
+ /**
86
+ * If any matchers was called, `#state.assertionTriggeredCount` value will plus one internally.
87
+ *
88
+ * @example Usage
89
+ * ```ts ignore
90
+ * import { AssertionState } from "@std/internal";
91
+ *
92
+ * const assertionState = new AssertionState();
93
+ * assertionState.updateAssertionTriggerCount();
94
+ * ```
95
+ */
96
+ updateAssertionTriggerCount(): void;
97
+ /**
98
+ * Check Assertion internal state, if `#state.assertionCheck` is set true, but
99
+ * `#state.assertionTriggered` is still false, then should throw an Assertion Error.
100
+ *
101
+ * @returns a boolean value, that the test suite is satisfied with the check. If not,
102
+ * it should throw an AssertionError.
103
+ *
104
+ * @example Usage
105
+ * ```ts ignore
106
+ * import { AssertionState } from "@std/internal";
107
+ *
108
+ * const assertionState = new AssertionState();
109
+ * if (assertionState.checkAssertionErrorState()) {
110
+ * // throw AssertionError("");
111
+ * }
112
+ * ```
113
+ */
114
+ checkAssertionErrorState(): boolean;
115
+ /**
116
+ * Reset all assertion state when every test suite function ran completely.
117
+ *
118
+ * @example Usage
119
+ * ```ts ignore
120
+ * import { AssertionState } from "@std/internal";
121
+ *
122
+ * const assertionState = new AssertionState();
123
+ * assertionState.resetAssertionState();
124
+ * ```
125
+ */
126
+ resetAssertionState(): void;
127
+ /**
128
+ * Check Assertion called state, if `#state.assertionCount` is set to a number value, but
129
+ * `#state.assertionTriggeredCount` is less then it, then should throw an assertion error.
130
+ *
131
+ * @returns a boolean value, that the test suite is satisfied with the check. If not,
132
+ * it should throw an AssertionError.
133
+ *
134
+ * @example Usage
135
+ * ```ts ignore
136
+ * import { AssertionState } from "@std/internal";
137
+ *
138
+ * const assertionState = new AssertionState();
139
+ * if (assertionState.checkAssertionCountSatisfied()) {
140
+ * // throw AssertionError("");
141
+ * }
142
+ * ```
143
+ */
144
+ checkAssertionCountSatisfied(): boolean;
145
+ }
146
+ /**
147
+ * return an instance of AssertionState
148
+ *
149
+ * @returns AssertionState
150
+ *
151
+ * @example Usage
152
+ * ```ts ignore
153
+ * import { getAssertionState } from "@std/internal";
154
+ *
155
+ * const assertionState = getAssertionState();
156
+ * assertionState.setAssertionTriggered(true);
157
+ * ```
158
+ */
159
+ export declare function getAssertionState(): AssertionState;
160
+ //# sourceMappingURL=assertion_state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assertion_state.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/internal/1.0.5/assertion_state.ts"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH,qBAAa,cAAc;;;IAiBzB;;;;;;;;;;;;OAYG;IACH,IAAI,cAAc,IAAI,MAAM,GAAG,SAAS,CAEvC;IAED;;;;;;;;;;;;OAYG;IACH,IAAI,uBAAuB,IAAI,MAAM,CAEpC;IAED;;;;;;;;;;;;OAYG;IACH,iBAAiB,CAAC,GAAG,EAAE,OAAO;IAI9B;;;;;;;;;;;;OAYG;IACH,qBAAqB,CAAC,GAAG,EAAE,OAAO;IAIlC;;;;;;;;;;;;;OAaG;IACH,iBAAiB,CAAC,GAAG,EAAE,MAAM;IAI7B;;;;;;;;;;OAUG;IACH,2BAA2B;IAM3B;;;;;;;;;;;;;;;;OAgBG;IACH,wBAAwB,IAAI,OAAO;IAInC;;;;;;;;;;OAUG;IACH,mBAAmB,IAAI,IAAI;IAS3B;;;;;;;;;;;;;;;;OAgBG;IACH,4BAA4B,IAAI,OAAO;CAIxC;AAID;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,IAAI,cAAc,CAElD"}