@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
@@ -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
 
3
3
  /**
4
4
  * A {@link https://en.wikipedia.org/wiki/Behavior-driven_development | BDD} interface
@@ -19,10 +19,10 @@
19
19
  * the test case passes. The *All hooks will be called once for the whole group
20
20
  * while the *Each hooks will be called for each individual test case.
21
21
  *
22
- * - `beforeAll`: Runs before all of the tests in the test suite.
23
- * - `afterAll`: Runs after all of the tests in the test suite finish.
24
- * - `beforeEach`: Runs before each of the individual test cases in the test suite.
25
- * - `afterEach`: Runs after each of the individual test cases in the test suite.
22
+ * - `beforeAll`: Runs before all of the tests in the group.
23
+ * - `afterAll`: Runs after all of the tests in the group finish.
24
+ * - `beforeEach`: Runs before each of the individual test cases in the group.
25
+ * - `afterEach`: Runs after each of the individual test cases in the group.
26
26
  *
27
27
  * If a hook is registered at the top level, a global test suite will be registered
28
28
  * and all tests will belong to it. Hooks registered at the top level must be
@@ -404,10 +404,11 @@
404
404
  import * as dntShim from "../../../../../_dnt.test_shims.js";
405
405
 
406
406
 
407
- import { getAssertionState } from "../../internal/1.0.4/assertion_state.js";
408
- import { AssertionError } from "../../assert/1.0.6/assertion_error.js";
407
+ import { getAssertionState } from "../../internal/1.0.5/assertion_state.js";
408
+ import { AssertionError } from "../../assert/1.0.11/assertion_error.js";
409
409
  import {
410
410
  type DescribeDefinition,
411
+ globalSanitizersState,
411
412
  type HookNames,
412
413
  type ItDefinition,
413
414
  type TestSuite,
@@ -586,9 +587,9 @@ export function it<T>(...args: ItArgs<T>) {
586
587
  ignore,
587
588
  only,
588
589
  permissions,
589
- sanitizeExit,
590
- sanitizeOps,
591
- sanitizeResources,
590
+ sanitizeExit = globalSanitizersState.sanitizeExit,
591
+ sanitizeOps = globalSanitizersState.sanitizeOps,
592
+ sanitizeResources = globalSanitizersState.sanitizeResources,
592
593
  } = options;
593
594
  const opts: dntShim.Deno.TestDefinition = {
594
595
  name,
@@ -600,11 +601,20 @@ export function it<T>(...args: ItArgs<T>) {
600
601
  TestSuiteInternal.runningCount--;
601
602
  }
602
603
 
603
- if (assertionState.checkAssertionErrorStateAndReset()) {
604
+ if (assertionState.checkAssertionErrorState()) {
604
605
  throw new AssertionError(
605
606
  "Expected at least one assertion to be called but received none",
606
607
  );
607
608
  }
609
+
610
+ if (assertionState.checkAssertionCountSatisfied()) {
611
+ throw new AssertionError(
612
+ `Expected at least ${assertionState.assertionCount} assertion to be called, ` +
613
+ `but received ${assertionState.assertionTriggeredCount}`,
614
+ );
615
+ }
616
+
617
+ assertionState.resetAssertionState();
608
618
  },
609
619
  };
610
620
  if (ignore !== undefined) {
@@ -734,6 +744,80 @@ export function test<T>(...args: ItArgs<T>) {
734
744
  it(...args);
735
745
  }
736
746
 
747
+ /**
748
+ * Only execute this test case.
749
+ *
750
+ * @example Usage
751
+ * ```ts
752
+ * import { describe, test } from "@std/testing/bdd";
753
+ * import { assertEquals } from "@std/assert";
754
+ *
755
+ * describe("example", () => {
756
+ * test("should pass", () => {
757
+ * assertEquals(2 + 2, 4);
758
+ * });
759
+ *
760
+ * test.only("should pass too", () => {
761
+ * assertEquals(3 + 4, 7);
762
+ * });
763
+ * });
764
+ * ```
765
+ *
766
+ * @param args The test case
767
+ */
768
+ test.only = function itOnly<T>(...args: ItArgs<T>): void {
769
+ it.only(...args);
770
+ };
771
+
772
+ /**
773
+ * Ignore this test case.
774
+ *
775
+ * @example Usage
776
+ * ```ts
777
+ * import { describe, test } from "@std/testing/bdd";
778
+ * import { assertEquals } from "@std/assert";
779
+ *
780
+ * describe("example", () => {
781
+ * test("should pass", () => {
782
+ * assertEquals(2 + 2, 4);
783
+ * });
784
+ *
785
+ * test.ignore("should pass too", () => {
786
+ * assertEquals(3 + 4, 7);
787
+ * });
788
+ * });
789
+ * ```
790
+ *
791
+ * @param args The test case
792
+ */
793
+ test.ignore = function itIgnore<T>(...args: ItArgs<T>): void {
794
+ it.ignore(...args);
795
+ };
796
+
797
+ /** Skip this test case.
798
+ *
799
+ * @example Usage
800
+ * ```ts
801
+ * import { describe, test } from "@std/testing/bdd";
802
+ * import { assertEquals } from "@std/assert";
803
+ *
804
+ * describe("example", () => {
805
+ * test("should pass", () => {
806
+ * assertEquals(2 + 2, 4);
807
+ * });
808
+ *
809
+ * test.skip("should pass too", () => {
810
+ * assertEquals(3 + 4, 7);
811
+ * });
812
+ * });
813
+ * ```
814
+ *
815
+ * @param args The test case
816
+ */
817
+ test.skip = function itSkip<T>(...args: ItArgs<T>): void {
818
+ it.ignore(...args);
819
+ };
820
+
737
821
  function addHook<T>(
738
822
  name: HookNames,
739
823
  fn: (this: T) => void | Promise<void>,
@@ -754,7 +838,9 @@ function addHook<T>(
754
838
  }
755
839
 
756
840
  /**
757
- * Run some shared setup before all of the tests in the suite.
841
+ * Run some shared setup before all of the tests in the group.
842
+ * Useful for async setup in `describe` blocks. Outside them,
843
+ * top-level initialization code should be used instead.
758
844
  *
759
845
  * @example Usage
760
846
  * ```ts
@@ -1,8 +1,8 @@
1
1
  // deno-lint-ignore-file no-explicit-any
2
2
  import "../../_dnt.test_polyfills.js";
3
3
 
4
- import { expect, fn } from '../../deps/jsr.io/@std/expect/1.0.5/mod.js';
5
- import { beforeEach, describe, it, test } from '../../deps/jsr.io/@std/testing/1.0.3/bdd.js';
4
+ import { expect, fn } from '../../deps/jsr.io/@std/expect/1.0.12/mod.js';
5
+ import { beforeEach, describe, it, test } from '../../deps/jsr.io/@std/testing/1.0.9/bdd.js';
6
6
  import { collect, collectRecord } from './helpers.js';
7
7
  import type { OpenApiCollectorData } from './types.js';
8
8
 
@@ -1,6 +1,6 @@
1
1
  import "../../_dnt.test_polyfills.js";
2
- import { expect, fn } from '../../deps/jsr.io/@std/expect/1.0.5/mod.js';
3
- import { describe, test } from '../../deps/jsr.io/@std/testing/1.0.3/bdd.js';
2
+ import { expect, fn } from '../../deps/jsr.io/@std/expect/1.0.12/mod.js';
3
+ import { describe, test } from '../../deps/jsr.io/@std/testing/1.0.9/bdd.js';
4
4
  import type { OpenApiDocument } from '../parse/openapi-types.js';
5
5
  import type { Deref } from '../parse/types.js';
6
6
  import type { ApiSchema } from './api-types.js';
@@ -1,6 +1,6 @@
1
1
  import "../../_dnt.test_polyfills.js";
2
- import { expect } from '../../deps/jsr.io/@std/expect/1.0.5/mod.js';
3
- import { describe, it } from '../../deps/jsr.io/@std/testing/1.0.3/bdd.js';
2
+ import { expect } from '../../deps/jsr.io/@std/expect/1.0.12/mod.js';
3
+ import { describe, it } from '../../deps/jsr.io/@std/testing/1.0.9/bdd.js';
4
4
 
5
5
  import { ActionProvider } from './action-provider.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import * as dntShim from "../../_dnt.shims.js";
2
2
  import { basename, resolve } from 'node:path';
3
- import { fileURLToPath } from 'node:url';
3
+ import { fileURLToPath, URL } from 'node:url';
4
4
 
5
5
 
6
6
  import fs from 'fs-extra';
@@ -1,6 +1,6 @@
1
1
  import "../../_dnt.test_polyfills.js";
2
- import { expect } from '../../deps/jsr.io/@std/expect/1.0.5/mod.js';
3
- import { describe, test } from '../../deps/jsr.io/@std/testing/1.0.3/bdd.js';
2
+ import { expect } from '../../deps/jsr.io/@std/expect/1.0.12/mod.js';
3
+ import { describe, test } from '../../deps/jsr.io/@std/testing/1.0.9/bdd.js';
4
4
 
5
5
  import { isNullish } from './common.utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import "../../_dnt.test_polyfills.js";
2
- import { expect, fn } from '../../deps/jsr.io/@std/expect/1.0.5/mod.js';
3
- import { describe, it } from '../../deps/jsr.io/@std/testing/1.0.3/bdd.js';
2
+ import { expect, fn } from '../../deps/jsr.io/@std/expect/1.0.12/mod.js';
3
+ import { describe, it } from '../../deps/jsr.io/@std/testing/1.0.9/bdd.js';
4
4
 
5
5
  import { type Condition, evalCondition } from './condition.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import "../../_dnt.test_polyfills.js";
2
- import { expect } from '../../deps/jsr.io/@std/expect/1.0.5/mod.js';
3
- import { describe, it } from '../../deps/jsr.io/@std/testing/1.0.3/bdd.js';
2
+ import { expect } from '../../deps/jsr.io/@std/expect/1.0.12/mod.js';
3
+ import { describe, it } from '../../deps/jsr.io/@std/testing/1.0.9/bdd.js';
4
4
 
5
5
  import type { ApiEndpoint } from '../transform/api-types.js';
6
6
  import { getEndpointUrlPreview } from './endpoint.utils.js';
@@ -1,6 +1,6 @@
1
1
  import "../../_dnt.test_polyfills.js";
2
- import { expect } from '../../deps/jsr.io/@std/expect/1.0.5/mod.js';
3
- import { describe, it } from '../../deps/jsr.io/@std/testing/1.0.3/bdd.js';
2
+ import { expect } from '../../deps/jsr.io/@std/expect/1.0.12/mod.js';
3
+ import { describe, it } from '../../deps/jsr.io/@std/testing/1.0.9/bdd.js';
4
4
 
5
5
  import { Factory } from './factory.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import "../../_dnt.test_polyfills.js";
2
- import { expect } from '../../deps/jsr.io/@std/expect/1.0.5/mod.js';
3
- import { describe, it } from '../../deps/jsr.io/@std/testing/1.0.3/bdd.js';
2
+ import { expect } from '../../deps/jsr.io/@std/expect/1.0.12/mod.js';
3
+ import { describe, it } from '../../deps/jsr.io/@std/testing/1.0.9/bdd.js';
4
4
 
5
5
  import { getInitializedValue } from './generator.utils.js';
6
6
 
@@ -1,6 +1,6 @@
1
1
  import "../../_dnt.test_polyfills.js";
2
- import { expect } from '../../deps/jsr.io/@std/expect/1.0.5/mod.js';
3
- import { describe, it } from '../../deps/jsr.io/@std/testing/1.0.3/bdd.js';
2
+ import { expect } from '../../deps/jsr.io/@std/expect/1.0.12/mod.js';
3
+ import { describe, it } from '../../deps/jsr.io/@std/testing/1.0.9/bdd.js';
4
4
 
5
5
  import { createOverwriteProxy } from './object.utils.js';
6
6
 
@@ -1,8 +1,13 @@
1
1
  import "../../_dnt.test_polyfills.js";
2
- import { expect } from '../../deps/jsr.io/@std/expect/1.0.5/mod.js';
3
- import { describe, it } from '../../deps/jsr.io/@std/testing/1.0.3/bdd.js';
2
+ import { expect } from '../../deps/jsr.io/@std/expect/1.0.12/mod.js';
3
+ import { describe, it } from '../../deps/jsr.io/@std/testing/1.0.9/bdd.js';
4
4
 
5
- import { createCombinedSchema, createStringSchema } from '../../tests/schema-factory.js';
5
+ import {
6
+ createCombinedSchema,
7
+ createObjectSchema,
8
+ createStringSchema,
9
+ createUnknownProperty,
10
+ } from '../../tests/schema-factory.js';
6
11
  import { resolveAnyOfAndAllOf } from './schema.utils.js';
7
12
 
8
13
  describe('resolveAnyOfAndAllOf', () => {
@@ -15,73 +20,69 @@ describe('resolveAnyOfAndAllOf', () => {
15
20
  expect(result).toBeUndefined();
16
21
  });
17
22
 
18
- // TODO: Uncomment as soon as @std/expect has new version (https://github.com/denoland/std/pull/6065)
19
- // it('should resolve schema from allOf and anyOf', () => {
20
- // const schema = createObjectSchema({
21
- // name: 'root',
22
- // properties: [createUnknownProperty('prop0')],
23
- // required: ['prop0'],
24
- // allOf: [createObjectSchema({ properties: [createUnknownProperty('prop1')], required: ['prop1'] })],
25
- // anyOf: [createObjectSchema({ properties: [createUnknownProperty('prop2')], required: ['prop2'] })],
26
- // });
23
+ it('should resolve schema from allOf and anyOf', () => {
24
+ const prop0 = createUnknownProperty('prop0');
25
+ const prop1 = createUnknownProperty('prop1');
26
+ const prop2 = createUnknownProperty('prop2');
27
+ const schema = createObjectSchema({
28
+ name: 'root',
29
+ properties: [prop0],
30
+ required: ['prop0'],
31
+ allOf: [createObjectSchema({ properties: [prop1], required: ['prop1'] })],
32
+ anyOf: [createObjectSchema({ properties: [prop2], required: ['prop2'] })],
33
+ });
27
34
 
28
- // const expectedResult = expect.objectContaining(
29
- // createObjectSchema({
30
- // name: 'root',
31
- // properties: [
32
- // expect.objectContaining(createUnknownProperty('prop0')),
33
- // expect.objectContaining(createUnknownProperty('prop1')),
34
- // expect.objectContaining(createUnknownProperty('prop2')),
35
- // ],
36
- // required: ['prop0', 'prop1', 'prop2'],
37
- // }),
38
- // );
35
+ const expectedResult = expect.objectContaining(
36
+ createObjectSchema({
37
+ name: 'root',
38
+ properties: [prop0, prop1, prop2],
39
+ required: ['prop0', 'prop1'],
40
+ }),
41
+ );
39
42
 
40
- // const result = resolveAnyOfAndAllOf(schema, true);
41
- // expect(result).toEqual(expectedResult);
42
- // });
43
+ const result = resolveAnyOfAndAllOf(schema, true);
44
+ expect(result).toEqual(expectedResult);
45
+ });
43
46
 
44
- // TODO: Uncomment as soon as @std/expect has new version (https://github.com/denoland/std/pull/6065)
45
- // it('should merge properties from allOf and anyOf recursively', () => {
46
- // const schema = createCombinedSchema({
47
- // name: 'root',
48
- // allOf: [
49
- // createObjectSchema({
50
- // properties: [createUnknownProperty('prop1')],
51
- // required: ['prop1'],
52
- // }),
53
- // ],
54
- // anyOf: [
55
- // createCombinedSchema({
56
- // allOf: [
57
- // createObjectSchema({
58
- // properties: [createUnknownProperty('prop2')],
59
- // required: ['prop2'],
60
- // }),
61
- // ],
62
- // anyOf: [
63
- // createObjectSchema({
64
- // properties: [createUnknownProperty('prop3')],
65
- // required: ['prop3'],
66
- // }),
67
- // ],
68
- // }),
69
- // ],
70
- // });
47
+ it('should merge properties from allOf and anyOf recursively', () => {
48
+ const prop1 = createUnknownProperty('prop1');
49
+ const prop2 = createUnknownProperty('prop2');
50
+ const prop3 = createUnknownProperty('prop3');
51
+ const schema = createCombinedSchema({
52
+ name: 'root',
53
+ allOf: [
54
+ createObjectSchema({
55
+ properties: [prop1],
56
+ required: ['prop1'],
57
+ }),
58
+ ],
59
+ anyOf: [
60
+ createCombinedSchema({
61
+ allOf: [
62
+ createObjectSchema({
63
+ properties: [prop2],
64
+ required: ['prop2'],
65
+ }),
66
+ ],
67
+ anyOf: [
68
+ createObjectSchema({
69
+ properties: [prop3],
70
+ required: ['prop3'],
71
+ }),
72
+ ],
73
+ }),
74
+ ],
75
+ });
71
76
 
72
- // const expectedResult = expect.objectContaining(
73
- // createObjectSchema({
74
- // name: 'root',
75
- // properties: [
76
- // expect.objectContaining(createUnknownProperty('prop1')),
77
- // expect.objectContaining(createUnknownProperty('prop2')),
78
- // expect.objectContaining(createUnknownProperty('prop3')),
79
- // ],
80
- // required: ['prop1'],
81
- // }),
82
- // );
77
+ const expectedResult = expect.objectContaining(
78
+ createObjectSchema({
79
+ name: 'root',
80
+ properties: [prop1, prop2, prop3],
81
+ required: ['prop1'],
82
+ }),
83
+ );
83
84
 
84
- // const result = resolveAnyOfAndAllOf(schema, true);
85
- // expect(result).toEqual(expectedResult);
86
- // });
85
+ const result = resolveAnyOfAndAllOf(schema, true);
86
+ expect(result).toEqual(expectedResult);
87
+ });
87
88
  });
@@ -1,8 +1,8 @@
1
1
  import "../../_dnt.test_polyfills.js";
2
2
  import { EOL } from 'node:os';
3
3
 
4
- import { expect } from '../../deps/jsr.io/@std/expect/1.0.5/mod.js';
5
- import { beforeEach, describe, it } from '../../deps/jsr.io/@std/testing/1.0.3/bdd.js';
4
+ import { expect } from '../../deps/jsr.io/@std/expect/1.0.12/mod.js';
5
+ import { beforeEach, describe, it } from '../../deps/jsr.io/@std/testing/1.0.9/bdd.js';
6
6
 
7
7
  import { builderTemplate, SourceBuilder, type SourceBuilderOptions } from './source-builder.js';
8
8
  import { appendValueGroup } from './string-builder/utils.js';
@@ -37,8 +37,7 @@ describe('SourceBuilder', () => {
37
37
  };
38
38
  const sb = SourceBuilder.fromString(str, options);
39
39
  expect(sb.toString()).toEqual(str);
40
- // TODO: Uncomment as soon as @std/expect has new version (https://github.com/denoland/std/pull/6065)
41
- // expect(sb.options).toEqual(expect.objectContaining(options));
40
+ expect(sb.options).toEqual(expect.objectContaining(options));
42
41
  });
43
42
  });
44
43
 
@@ -1,8 +1,8 @@
1
1
  import "../../../_dnt.test_polyfills.js";
2
2
  import { EOL } from 'node:os';
3
3
 
4
- import { expect } from '../../../deps/jsr.io/@std/expect/1.0.5/mod.js';
5
- import { describe, it } from '../../../deps/jsr.io/@std/testing/1.0.3/bdd.js';
4
+ import { expect } from '../../../deps/jsr.io/@std/expect/1.0.12/mod.js';
5
+ import { describe, it } from '../../../deps/jsr.io/@std/testing/1.0.9/bdd.js';
6
6
 
7
7
  import type { StringBuilderOptions } from './options.js';
8
8
  import { StringBuilder } from './string-builder.js';
@@ -14,16 +14,15 @@ describe('fromString', () => {
14
14
  expect(sb.toString()).toEqual(str);
15
15
  });
16
16
 
17
- // TODO: Uncomment as soon as @std/expect has new version (https://github.com/denoland/std/pull/6065)
18
- // it('should create a StringBuilder instance with the given string and options', () => {
19
- // const str = 'test string';
20
- // const options: Partial<StringBuilderOptions> = {
21
- // newLine: '\r\n',
22
- // };
23
- // const sb = StringBuilder.fromString(str, options);
24
- // expect(sb.toString()).toEqual(str);
25
- // expect(sb.options).toEqual(expect.objectContaining(options));
26
- // });
17
+ it('should create a StringBuilder instance with the given string and options', () => {
18
+ const str = 'test string';
19
+ const options: Partial<StringBuilderOptions> = {
20
+ newLine: '\r\n',
21
+ };
22
+ const sb = StringBuilder.fromString(str, options);
23
+ expect(sb.toString()).toEqual(str);
24
+ expect(sb.options).toEqual(expect.objectContaining(options));
25
+ });
27
26
  });
28
27
 
29
28
  describe('build', () => {
@@ -1,6 +1,6 @@
1
1
  import "../../_dnt.test_polyfills.js";
2
- import { expect } from '../../deps/jsr.io/@std/expect/1.0.5/mod.js';
3
- import { describe, it } from '../../deps/jsr.io/@std/testing/1.0.3/bdd.js';
2
+ import { expect } from '../../deps/jsr.io/@std/expect/1.0.12/mod.js';
3
+ import { describe, it } from '../../deps/jsr.io/@std/testing/1.0.9/bdd.js';
4
4
 
5
5
  import {
6
6
  getWords,
@@ -10,7 +10,7 @@ import {
10
10
  verify,
11
11
  } from '@goast/test-utils';
12
12
 
13
- import { describe, it } from '../deps/jsr.io/@std/testing/1.0.3/bdd.js';
13
+ import { describe, it } from '../deps/jsr.io/@std/testing/1.0.9/bdd.js';
14
14
  import { OpenApiParser, toCustomCase } from '../mod.js';
15
15
 
16
16
  const filePaths: { [P in OpenApiVersion]: string } = {
@@ -1 +0,0 @@
1
- {"version":3,"file":"assertion_error.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.6/assertion_error.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;GAgBG;AACH,qBAAa,cAAe,SAAQ,KAAK;IACvC;;;;OAIG;gBACS,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY;CAIpD"}
@@ -1,17 +0,0 @@
1
- /**
2
- * Deep equality comparison used in assertions.
3
- *
4
- * @param c The actual value
5
- * @param d The expected value
6
- * @returns `true` if the values are deeply equal, `false` otherwise
7
- *
8
- * @example Usage
9
- * ```ts
10
- * import { equal } from "@std/assert/equal";
11
- *
12
- * equal({ foo: "bar" }, { foo: "bar" }); // Returns `true`
13
- * equal({ foo: "bar" }, { foo: "baz" }); // Returns `false
14
- * ```
15
- */
16
- export declare function equal(c: unknown, d: unknown): boolean;
17
- //# sourceMappingURL=equal.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"equal.d.ts","sourceRoot":"","sources":["../../../../../../src/deps/jsr.io/@std/assert/1.0.6/equal.ts"],"names":[],"mappings":"AAcA;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,KAAK,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,GAAG,OAAO,CA0HrD"}