bupkis 0.18.2 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (390) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/README.md +1 -1
  3. package/dist/assertion/assertion-async.cjs +268 -0
  4. package/dist/assertion/assertion-async.cjs.map +1 -0
  5. package/dist/assertion/assertion-async.d.cts +40 -0
  6. package/dist/assertion/assertion-async.d.cts.map +1 -0
  7. package/dist/assertion/assertion-async.d.ts +40 -0
  8. package/dist/assertion/assertion-async.d.ts.map +1 -0
  9. package/dist/assertion/assertion-async.js +259 -0
  10. package/dist/assertion/assertion-async.js.map +1 -0
  11. package/dist/assertion/assertion-standard-schema-async.cjs +132 -0
  12. package/dist/assertion/assertion-standard-schema-async.cjs.map +1 -0
  13. package/dist/assertion/assertion-standard-schema-async.d.cts +52 -0
  14. package/dist/assertion/assertion-standard-schema-async.d.cts.map +1 -0
  15. package/dist/assertion/assertion-standard-schema-async.d.ts +52 -0
  16. package/dist/assertion/assertion-standard-schema-async.d.ts.map +1 -0
  17. package/dist/assertion/assertion-standard-schema-async.js +128 -0
  18. package/dist/assertion/assertion-standard-schema-async.js.map +1 -0
  19. package/dist/assertion/assertion-standard-schema-sync.cjs +141 -0
  20. package/dist/assertion/assertion-standard-schema-sync.cjs.map +1 -0
  21. package/dist/assertion/assertion-standard-schema-sync.d.cts +52 -0
  22. package/dist/assertion/assertion-standard-schema-sync.d.cts.map +1 -0
  23. package/dist/assertion/assertion-standard-schema-sync.d.ts +52 -0
  24. package/dist/assertion/assertion-standard-schema-sync.d.ts.map +1 -0
  25. package/dist/assertion/assertion-standard-schema-sync.js +137 -0
  26. package/dist/assertion/assertion-standard-schema-sync.js.map +1 -0
  27. package/dist/assertion/assertion-sync.cjs +281 -0
  28. package/dist/assertion/assertion-sync.cjs.map +1 -0
  29. package/dist/assertion/assertion-sync.d.cts +60 -0
  30. package/dist/assertion/assertion-sync.d.cts.map +1 -0
  31. package/dist/assertion/assertion-sync.d.ts +60 -0
  32. package/dist/assertion/assertion-sync.d.ts.map +1 -0
  33. package/dist/assertion/assertion-sync.js +275 -0
  34. package/dist/assertion/assertion-sync.js.map +1 -0
  35. package/dist/assertion/assertion-types.cjs +20 -0
  36. package/dist/assertion/assertion-types.cjs.map +1 -0
  37. package/dist/assertion/assertion-types.d.cts +1086 -0
  38. package/dist/assertion/assertion-types.d.cts.map +1 -0
  39. package/dist/assertion/assertion-types.d.ts +1086 -0
  40. package/dist/assertion/assertion-types.d.ts.map +1 -0
  41. package/dist/assertion/assertion-types.js +19 -0
  42. package/dist/assertion/assertion-types.js.map +1 -0
  43. package/dist/assertion/assertion.cjs +382 -0
  44. package/dist/assertion/assertion.cjs.map +1 -0
  45. package/dist/assertion/assertion.d.cts +109 -0
  46. package/dist/assertion/assertion.d.cts.map +1 -0
  47. package/dist/assertion/assertion.d.ts +109 -0
  48. package/dist/assertion/assertion.d.ts.map +1 -0
  49. package/dist/assertion/assertion.js +375 -0
  50. package/dist/assertion/assertion.js.map +1 -0
  51. package/dist/assertion/create.cjs +148 -0
  52. package/dist/assertion/create.cjs.map +1 -0
  53. package/dist/assertion/create.d.cts +85 -0
  54. package/dist/assertion/create.d.cts.map +1 -0
  55. package/dist/assertion/create.d.ts +85 -0
  56. package/dist/assertion/create.d.ts.map +1 -0
  57. package/dist/assertion/create.js +143 -0
  58. package/dist/assertion/create.js.map +1 -0
  59. package/dist/assertion/format-assertion-failure.cjs +63 -0
  60. package/dist/assertion/format-assertion-failure.cjs.map +1 -0
  61. package/dist/assertion/format-assertion-failure.d.cts +21 -0
  62. package/dist/assertion/format-assertion-failure.d.cts.map +1 -0
  63. package/dist/assertion/format-assertion-failure.d.ts +21 -0
  64. package/dist/assertion/format-assertion-failure.d.ts.map +1 -0
  65. package/dist/assertion/format-assertion-failure.js +59 -0
  66. package/dist/assertion/format-assertion-failure.js.map +1 -0
  67. package/dist/assertion/impl/assertion-util.cjs +68 -0
  68. package/dist/assertion/impl/assertion-util.cjs.map +1 -0
  69. package/dist/assertion/impl/assertion-util.d.cts +36 -0
  70. package/dist/assertion/impl/assertion-util.d.cts.map +1 -0
  71. package/dist/assertion/impl/assertion-util.d.ts +36 -0
  72. package/dist/assertion/impl/assertion-util.d.ts.map +1 -0
  73. package/dist/assertion/impl/assertion-util.js +62 -0
  74. package/dist/assertion/impl/assertion-util.js.map +1 -0
  75. package/dist/assertion/impl/async-iterable.cjs +627 -0
  76. package/dist/assertion/impl/async-iterable.cjs.map +1 -0
  77. package/dist/assertion/impl/async-iterable.d.cts +406 -0
  78. package/dist/assertion/impl/async-iterable.d.cts.map +1 -0
  79. package/dist/assertion/impl/async-iterable.d.ts +406 -0
  80. package/dist/assertion/impl/async-iterable.d.ts.map +1 -0
  81. package/dist/assertion/impl/async-iterable.js +624 -0
  82. package/dist/assertion/impl/async-iterable.js.map +1 -0
  83. package/dist/assertion/impl/async-parametric.cjs +412 -0
  84. package/dist/assertion/impl/async-parametric.cjs.map +1 -0
  85. package/dist/assertion/impl/async-parametric.d.cts +278 -0
  86. package/dist/assertion/impl/async-parametric.d.cts.map +1 -0
  87. package/dist/assertion/impl/async-parametric.d.ts +278 -0
  88. package/dist/assertion/impl/async-parametric.d.ts.map +1 -0
  89. package/dist/assertion/impl/async-parametric.js +409 -0
  90. package/dist/assertion/impl/async-parametric.js.map +1 -0
  91. package/dist/assertion/impl/async.cjs +56 -0
  92. package/dist/assertion/impl/async.cjs.map +1 -0
  93. package/dist/assertion/impl/async.d.cts +179 -0
  94. package/dist/assertion/impl/async.d.cts.map +1 -0
  95. package/dist/assertion/impl/async.d.ts +179 -0
  96. package/dist/assertion/impl/async.d.ts.map +1 -0
  97. package/dist/assertion/impl/async.js +39 -0
  98. package/dist/assertion/impl/async.js.map +1 -0
  99. package/dist/assertion/impl/index.cjs +37 -0
  100. package/dist/assertion/impl/index.cjs.map +1 -0
  101. package/dist/assertion/impl/index.d.cts +21 -0
  102. package/dist/assertion/impl/index.d.cts.map +1 -0
  103. package/dist/assertion/impl/index.d.ts +21 -0
  104. package/dist/assertion/impl/index.d.ts.map +1 -0
  105. package/dist/assertion/impl/index.js +21 -0
  106. package/dist/assertion/impl/index.js.map +1 -0
  107. package/dist/assertion/impl/iteration-util.cjs +297 -0
  108. package/dist/assertion/impl/iteration-util.cjs.map +1 -0
  109. package/dist/assertion/impl/iteration-util.d.cts +12 -0
  110. package/dist/assertion/impl/iteration-util.d.cts.map +1 -0
  111. package/dist/assertion/impl/iteration-util.d.ts +12 -0
  112. package/dist/assertion/impl/iteration-util.d.ts.map +1 -0
  113. package/dist/assertion/impl/iteration-util.js +282 -0
  114. package/dist/assertion/impl/iteration-util.js.map +1 -0
  115. package/dist/assertion/impl/snapshot.cjs +276 -0
  116. package/dist/assertion/impl/snapshot.cjs.map +1 -0
  117. package/dist/assertion/impl/snapshot.d.cts +278 -0
  118. package/dist/assertion/impl/snapshot.d.cts.map +1 -0
  119. package/dist/assertion/impl/snapshot.d.ts +278 -0
  120. package/dist/assertion/impl/snapshot.d.ts.map +1 -0
  121. package/dist/assertion/impl/snapshot.js +273 -0
  122. package/dist/assertion/impl/snapshot.js.map +1 -0
  123. package/dist/assertion/impl/sync-basic.cjs +553 -0
  124. package/dist/assertion/impl/sync-basic.cjs.map +1 -0
  125. package/dist/assertion/impl/sync-basic.d.cts +528 -0
  126. package/dist/assertion/impl/sync-basic.d.cts.map +1 -0
  127. package/dist/assertion/impl/sync-basic.d.ts +528 -0
  128. package/dist/assertion/impl/sync-basic.d.ts.map +1 -0
  129. package/dist/assertion/impl/sync-basic.js +550 -0
  130. package/dist/assertion/impl/sync-basic.js.map +1 -0
  131. package/dist/assertion/impl/sync-collection.cjs +1424 -0
  132. package/dist/assertion/impl/sync-collection.cjs.map +1 -0
  133. package/dist/assertion/impl/sync-collection.d.cts +922 -0
  134. package/dist/assertion/impl/sync-collection.d.cts.map +1 -0
  135. package/dist/assertion/impl/sync-collection.d.ts +922 -0
  136. package/dist/assertion/impl/sync-collection.d.ts.map +1 -0
  137. package/dist/assertion/impl/sync-collection.js +1418 -0
  138. package/dist/assertion/impl/sync-collection.js.map +1 -0
  139. package/dist/assertion/impl/sync-date.cjs +341 -0
  140. package/dist/assertion/impl/sync-date.cjs.map +1 -0
  141. package/dist/assertion/impl/sync-date.d.cts +209 -0
  142. package/dist/assertion/impl/sync-date.d.cts.map +1 -0
  143. package/dist/assertion/impl/sync-date.d.ts +209 -0
  144. package/dist/assertion/impl/sync-date.d.ts.map +1 -0
  145. package/dist/assertion/impl/sync-date.js +338 -0
  146. package/dist/assertion/impl/sync-date.js.map +1 -0
  147. package/dist/assertion/impl/sync-esoteric.cjs +214 -0
  148. package/dist/assertion/impl/sync-esoteric.cjs.map +1 -0
  149. package/dist/assertion/impl/sync-esoteric.d.cts +191 -0
  150. package/dist/assertion/impl/sync-esoteric.d.cts.map +1 -0
  151. package/dist/assertion/impl/sync-esoteric.d.ts +191 -0
  152. package/dist/assertion/impl/sync-esoteric.d.ts.map +1 -0
  153. package/dist/assertion/impl/sync-esoteric.js +211 -0
  154. package/dist/assertion/impl/sync-esoteric.js.map +1 -0
  155. package/dist/assertion/impl/sync-iterable.cjs +512 -0
  156. package/dist/assertion/impl/sync-iterable.cjs.map +1 -0
  157. package/dist/assertion/impl/sync-iterable.d.cts +334 -0
  158. package/dist/assertion/impl/sync-iterable.d.cts.map +1 -0
  159. package/dist/assertion/impl/sync-iterable.d.ts +334 -0
  160. package/dist/assertion/impl/sync-iterable.d.ts.map +1 -0
  161. package/dist/assertion/impl/sync-iterable.js +509 -0
  162. package/dist/assertion/impl/sync-iterable.js.map +1 -0
  163. package/dist/assertion/impl/sync-parametric.cjs +805 -0
  164. package/dist/assertion/impl/sync-parametric.cjs.map +1 -0
  165. package/dist/assertion/impl/sync-parametric.d.cts +560 -0
  166. package/dist/assertion/impl/sync-parametric.d.cts.map +1 -0
  167. package/dist/assertion/impl/sync-parametric.d.ts +560 -0
  168. package/dist/assertion/impl/sync-parametric.d.ts.map +1 -0
  169. package/dist/assertion/impl/sync-parametric.js +802 -0
  170. package/dist/assertion/impl/sync-parametric.js.map +1 -0
  171. package/dist/assertion/impl/sync.cjs +229 -0
  172. package/dist/assertion/impl/sync.cjs.map +1 -0
  173. package/dist/assertion/impl/sync.d.cts +536 -0
  174. package/dist/assertion/impl/sync.d.cts.map +1 -0
  175. package/dist/assertion/impl/sync.d.ts +536 -0
  176. package/dist/assertion/impl/sync.d.ts.map +1 -0
  177. package/dist/assertion/impl/sync.js +212 -0
  178. package/dist/assertion/impl/sync.js.map +1 -0
  179. package/dist/assertion/index.cjs +38 -0
  180. package/dist/assertion/index.cjs.map +1 -0
  181. package/dist/assertion/index.d.cts +18 -0
  182. package/dist/assertion/index.d.cts.map +1 -0
  183. package/dist/assertion/index.d.ts +18 -0
  184. package/dist/assertion/index.d.ts.map +1 -0
  185. package/dist/assertion/index.js +17 -0
  186. package/dist/assertion/index.js.map +1 -0
  187. package/dist/assertion/slotify.cjs +165 -0
  188. package/dist/assertion/slotify.cjs.map +1 -0
  189. package/dist/assertion/slotify.d.cts +11 -0
  190. package/dist/assertion/slotify.d.cts.map +1 -0
  191. package/dist/assertion/slotify.d.ts +11 -0
  192. package/dist/assertion/slotify.d.ts.map +1 -0
  193. package/dist/assertion/slotify.js +161 -0
  194. package/dist/assertion/slotify.js.map +1 -0
  195. package/dist/bootstrap.cjs +43 -0
  196. package/dist/bootstrap.cjs.map +1 -0
  197. package/dist/bootstrap.d.cts +27 -0
  198. package/dist/bootstrap.d.cts.map +1 -0
  199. package/dist/bootstrap.d.ts +27 -0
  200. package/dist/bootstrap.d.ts.map +1 -0
  201. package/dist/bootstrap.js +40 -0
  202. package/dist/bootstrap.js.map +1 -0
  203. package/dist/constant.cjs +82 -0
  204. package/dist/constant.cjs.map +1 -0
  205. package/dist/constant.d.cts +69 -0
  206. package/dist/constant.d.cts.map +1 -0
  207. package/dist/constant.d.ts +69 -0
  208. package/dist/constant.d.ts.map +1 -0
  209. package/dist/constant.js +79 -0
  210. package/dist/constant.js.map +1 -0
  211. package/dist/diff.cjs +340 -0
  212. package/dist/diff.cjs.map +1 -0
  213. package/dist/diff.d.cts +51 -0
  214. package/dist/diff.d.cts.map +1 -0
  215. package/dist/diff.d.ts +51 -0
  216. package/dist/diff.d.ts.map +1 -0
  217. package/dist/diff.js +334 -0
  218. package/dist/diff.js.map +1 -0
  219. package/dist/error.cjs +194 -0
  220. package/dist/error.cjs.map +1 -0
  221. package/dist/error.d.cts +212 -0
  222. package/dist/error.d.cts.map +1 -0
  223. package/dist/error.d.ts +212 -0
  224. package/dist/error.d.ts.map +1 -0
  225. package/dist/error.js +181 -0
  226. package/dist/error.js.map +1 -0
  227. package/dist/expect.cjs +587 -0
  228. package/dist/expect.cjs.map +1 -0
  229. package/dist/expect.d.cts +138 -0
  230. package/dist/expect.d.cts.map +1 -0
  231. package/dist/expect.d.ts +138 -0
  232. package/dist/expect.d.ts.map +1 -0
  233. package/dist/expect.js +582 -0
  234. package/dist/expect.js.map +1 -0
  235. package/dist/guards.cjs +291 -0
  236. package/dist/guards.cjs.map +1 -0
  237. package/dist/guards.d.cts +225 -0
  238. package/dist/guards.d.cts.map +1 -0
  239. package/dist/guards.d.ts +225 -0
  240. package/dist/guards.d.ts.map +1 -0
  241. package/dist/guards.js +273 -0
  242. package/dist/guards.js.map +1 -0
  243. package/dist/index.cjs +111 -0
  244. package/dist/index.cjs.map +1 -0
  245. package/dist/index.d.cts +460 -0
  246. package/dist/index.d.cts.map +1 -0
  247. package/dist/index.d.ts +460 -0
  248. package/dist/index.d.ts.map +1 -0
  249. package/dist/index.js +71 -0
  250. package/dist/index.js.map +1 -0
  251. package/dist/internal-schema.cjs +234 -0
  252. package/dist/internal-schema.cjs.map +1 -0
  253. package/dist/internal-schema.d.cts +8 -0
  254. package/dist/internal-schema.d.cts.map +1 -0
  255. package/dist/internal-schema.d.ts +8 -0
  256. package/dist/internal-schema.d.ts.map +1 -0
  257. package/dist/internal-schema.js +229 -0
  258. package/dist/internal-schema.js.map +1 -0
  259. package/dist/metadata.cjs +57 -0
  260. package/dist/metadata.cjs.map +1 -0
  261. package/dist/metadata.d.cts +27 -0
  262. package/dist/metadata.d.cts.map +1 -0
  263. package/dist/metadata.d.ts +27 -0
  264. package/dist/metadata.d.ts.map +1 -0
  265. package/dist/metadata.js +54 -0
  266. package/dist/metadata.js.map +1 -0
  267. package/dist/schema.cjs +1522 -0
  268. package/dist/schema.cjs.map +1 -0
  269. package/dist/schema.d.cts +1196 -0
  270. package/dist/schema.d.cts.map +1 -0
  271. package/dist/schema.d.ts +1196 -0
  272. package/dist/schema.d.ts.map +1 -0
  273. package/dist/schema.js +1516 -0
  274. package/dist/schema.js.map +1 -0
  275. package/dist/snapshot/adapter.cjs +29 -0
  276. package/dist/snapshot/adapter.cjs.map +1 -0
  277. package/dist/snapshot/adapter.d.cts +258 -0
  278. package/dist/snapshot/adapter.d.cts.map +1 -0
  279. package/dist/snapshot/adapter.d.ts +258 -0
  280. package/dist/snapshot/adapter.d.ts.map +1 -0
  281. package/dist/snapshot/adapter.js +25 -0
  282. package/dist/snapshot/adapter.js.map +1 -0
  283. package/dist/snapshot/adapters/fallback.cjs +452 -0
  284. package/dist/snapshot/adapters/fallback.cjs.map +1 -0
  285. package/dist/snapshot/adapters/fallback.d.cts +185 -0
  286. package/dist/snapshot/adapters/fallback.d.cts.map +1 -0
  287. package/dist/snapshot/adapters/fallback.d.ts +185 -0
  288. package/dist/snapshot/adapters/fallback.d.ts.map +1 -0
  289. package/dist/snapshot/adapters/fallback.js +445 -0
  290. package/dist/snapshot/adapters/fallback.js.map +1 -0
  291. package/dist/snapshot/adapters/node-test.cjs +297 -0
  292. package/dist/snapshot/adapters/node-test.cjs.map +1 -0
  293. package/dist/snapshot/adapters/node-test.d.cts +131 -0
  294. package/dist/snapshot/adapters/node-test.d.cts.map +1 -0
  295. package/dist/snapshot/adapters/node-test.d.ts +131 -0
  296. package/dist/snapshot/adapters/node-test.d.ts.map +1 -0
  297. package/dist/snapshot/adapters/node-test.js +293 -0
  298. package/dist/snapshot/adapters/node-test.js.map +1 -0
  299. package/dist/snapshot/index.cjs +61 -0
  300. package/dist/snapshot/index.cjs.map +1 -0
  301. package/dist/snapshot/index.d.cts +40 -0
  302. package/dist/snapshot/index.d.cts.map +1 -0
  303. package/dist/snapshot/index.d.ts +40 -0
  304. package/dist/snapshot/index.d.ts.map +1 -0
  305. package/dist/snapshot/index.js +44 -0
  306. package/dist/snapshot/index.js.map +1 -0
  307. package/dist/snapshot/node-version.cjs +49 -0
  308. package/dist/snapshot/node-version.cjs.map +1 -0
  309. package/dist/snapshot/node-version.d.cts +34 -0
  310. package/dist/snapshot/node-version.d.cts.map +1 -0
  311. package/dist/snapshot/node-version.d.ts +34 -0
  312. package/dist/snapshot/node-version.d.ts.map +1 -0
  313. package/dist/snapshot/node-version.js +44 -0
  314. package/dist/snapshot/node-version.js.map +1 -0
  315. package/dist/snapshot/select-adapter.cjs +170 -0
  316. package/dist/snapshot/select-adapter.cjs.map +1 -0
  317. package/dist/snapshot/select-adapter.d.cts +128 -0
  318. package/dist/snapshot/select-adapter.d.cts.map +1 -0
  319. package/dist/snapshot/select-adapter.d.ts +128 -0
  320. package/dist/snapshot/select-adapter.d.ts.map +1 -0
  321. package/dist/snapshot/select-adapter.js +164 -0
  322. package/dist/snapshot/select-adapter.js.map +1 -0
  323. package/dist/snapshot/serializer.cjs +245 -0
  324. package/dist/snapshot/serializer.cjs.map +1 -0
  325. package/dist/snapshot/serializer.d.cts +126 -0
  326. package/dist/snapshot/serializer.d.cts.map +1 -0
  327. package/dist/snapshot/serializer.d.ts +126 -0
  328. package/dist/snapshot/serializer.d.ts.map +1 -0
  329. package/dist/snapshot/serializer.js +237 -0
  330. package/dist/snapshot/serializer.js.map +1 -0
  331. package/dist/standard-schema.cjs +13 -0
  332. package/dist/standard-schema.cjs.map +1 -0
  333. package/dist/standard-schema.d.cts +192 -0
  334. package/dist/standard-schema.d.cts.map +1 -0
  335. package/dist/standard-schema.d.ts +192 -0
  336. package/dist/standard-schema.d.ts.map +1 -0
  337. package/dist/standard-schema.js +12 -0
  338. package/dist/standard-schema.js.map +1 -0
  339. package/dist/types.cjs +22 -0
  340. package/dist/types.cjs.map +1 -0
  341. package/dist/types.d.cts +756 -0
  342. package/dist/types.d.cts.map +1 -0
  343. package/dist/types.d.ts +756 -0
  344. package/dist/types.d.ts.map +1 -0
  345. package/dist/types.js +21 -0
  346. package/dist/types.js.map +1 -0
  347. package/dist/use.cjs +240 -0
  348. package/dist/use.cjs.map +1 -0
  349. package/dist/use.d.cts +8 -0
  350. package/dist/use.d.cts.map +1 -0
  351. package/dist/use.d.ts +8 -0
  352. package/dist/use.d.ts.map +1 -0
  353. package/dist/use.js +236 -0
  354. package/dist/use.js.map +1 -0
  355. package/dist/util.cjs +255 -0
  356. package/dist/util.cjs.map +1 -0
  357. package/dist/util.d.cts +141 -0
  358. package/dist/util.d.cts.map +1 -0
  359. package/dist/util.d.ts +141 -0
  360. package/dist/util.d.ts.map +1 -0
  361. package/dist/util.js +234 -0
  362. package/dist/util.js.map +1 -0
  363. package/dist/value-to-schema.cjs +537 -0
  364. package/dist/value-to-schema.cjs.map +1 -0
  365. package/dist/value-to-schema.d.cts +144 -0
  366. package/dist/value-to-schema.d.cts.map +1 -0
  367. package/dist/value-to-schema.d.ts +144 -0
  368. package/dist/value-to-schema.d.ts.map +1 -0
  369. package/dist/value-to-schema.js +533 -0
  370. package/dist/value-to-schema.js.map +1 -0
  371. package/package.json +24 -21
  372. package/src/assertion/assertion-sync.ts +1 -1
  373. package/src/assertion/assertion-types.ts +4 -8
  374. package/src/assertion/assertion.ts +12 -7
  375. package/src/assertion/format-assertion-failure.ts +2 -0
  376. package/src/assertion/impl/assertion-util.ts +1 -2
  377. package/src/assertion/impl/iteration-util.ts +3 -5
  378. package/src/assertion/impl/sync-collection.ts +633 -7
  379. package/src/assertion/impl/sync.ts +27 -0
  380. package/src/error.ts +13 -22
  381. package/src/expect.ts +1 -1
  382. package/src/guards.ts +8 -14
  383. package/src/internal-schema.ts +4 -8
  384. package/src/metadata.ts +1 -2
  385. package/src/snapshot/adapter.ts +2 -3
  386. package/src/snapshot/adapters/fallback.ts +2 -3
  387. package/src/snapshot/adapters/node-test.ts +14 -20
  388. package/src/snapshot/select-adapter.ts +3 -3
  389. package/src/snapshot/serializer.ts +2 -3
  390. package/src/types.ts +2 -162
@@ -0,0 +1,276 @@
1
+ "use strict";
2
+ /**
3
+ * Snapshot testing assertions for BUPKIS.
4
+ *
5
+ * Provides unified snapshot testing across multiple test frameworks including
6
+ * node:test, Jest, Vitest, Mocha, and others.
7
+ *
8
+ * @packageDocumentation
9
+ * @group Snapshot Assertions
10
+ */
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.SnapshotAssertions = exports.snapshotAssertionWithOptions = exports.snapshotAssertion = void 0;
13
+ const zod_1 = require("zod");
14
+ const schema_js_1 = require("../../schema.cjs");
15
+ const select_adapter_js_1 = require("../../snapshot/select-adapter.cjs");
16
+ const create_js_1 = require("../create.cjs");
17
+ /**
18
+ * Asserts that a value matches a stored snapshot.
19
+ *
20
+ * This assertion provides unified snapshot testing across multiple test
21
+ * frameworks. It automatically detects the test framework from the context
22
+ * parameter and uses the appropriate snapshot mechanism.
23
+ *
24
+ * **Supported Frameworks:**
25
+ *
26
+ * - **node:test**: Native `assert.snapshot()` support
27
+ * - **Jest/Vitest**: Coming in Phase 2
28
+ * - **Mocha**: Custom snapshot storage
29
+ * - **Any framework**: Use explicit string names
30
+ *
31
+ * **Basic Usage:**
32
+ *
33
+ * ```typescript
34
+ * import test from 'node:test';
35
+ * import { expect } from 'bupkis';
36
+ *
37
+ * test('component renders correctly', (t) => {
38
+ * const output = renderComponent();
39
+ * expect(output, 'to match snapshot', t);
40
+ * });
41
+ * ```
42
+ *
43
+ * **With Custom Serializer:**
44
+ *
45
+ * ```typescript
46
+ * test('redacts sensitive data', (t) => {
47
+ * const data = { public: 'visible', secret: 'password123' };
48
+ * expect(data, 'to match snapshot', t, {
49
+ * serializer: (value: any) =>
50
+ * JSON.stringify({ ...value, secret: '[REDACTED]' }, null, 2),
51
+ * });
52
+ * });
53
+ * ```
54
+ *
55
+ * **Multiple Snapshots Per Test:**
56
+ *
57
+ * ```typescript
58
+ * test('multi-step process', (t) => {
59
+ * const step1 = processStep1();
60
+ * expect(step1, 'to match snapshot', t, { hint: 'step-1' });
61
+ *
62
+ * const step2 = processStep2();
63
+ * expect(step2, 'to match snapshot', t, { hint: 'step-2' });
64
+ *
65
+ * const step3 = processStep3();
66
+ * expect(step3, 'to match snapshot', t, { hint: 'step-3' });
67
+ * });
68
+ * ```
69
+ *
70
+ * **Mocha Usage:**
71
+ *
72
+ * ```typescript
73
+ * describe('MyComponent', function () {
74
+ * it('renders correctly', function () {
75
+ * const output = renderComponent();
76
+ * expect(output, 'to match snapshot', this);
77
+ * });
78
+ * });
79
+ * ```
80
+ *
81
+ * **Explicit Snapshot Names:**
82
+ *
83
+ * ```typescript
84
+ * test('any framework', () => {
85
+ * const output = renderComponent();
86
+ * expect(output, 'to match snapshot', 'component-default-state');
87
+ * });
88
+ * ```
89
+ *
90
+ * **Chaining with Other Assertions:**
91
+ *
92
+ * ```typescript
93
+ * test('validates and snapshots', (t) => {
94
+ * const user = getUserData();
95
+ * expect(
96
+ * user,
97
+ * 'to satisfy',
98
+ * { name: 'Alice' },
99
+ * 'and',
100
+ * 'to have property',
101
+ * 'email',
102
+ * 'and',
103
+ * 'to match snapshot',
104
+ * t,
105
+ * );
106
+ * });
107
+ * ```
108
+ *
109
+ * **Updating Snapshots:**
110
+ *
111
+ * ```sh
112
+ * # node:test
113
+ * node --test --test-update-snapshots
114
+ *
115
+ * # Jest/Vitest (Phase 2)
116
+ * vitest -u
117
+ *
118
+ * # Other frameworks
119
+ * BUPKIS_UPDATE_SNAPSHOTS=1 npm test
120
+ * ```
121
+ *
122
+ * @example Basic snapshot assertion
123
+ *
124
+ * ```typescript
125
+ * import test from 'node:test';
126
+ * import { expect } from 'bupkis';
127
+ *
128
+ * test('renders user profile', (t) => {
129
+ * const profile = { name: 'Alice', age: 30, role: 'admin' };
130
+ * expect(profile, 'to match snapshot', t);
131
+ * });
132
+ * ```
133
+ *
134
+ * @example Snapshot with custom serialization
135
+ *
136
+ * ```typescript
137
+ * test('redacts passwords', (t) => {
138
+ * const user = {
139
+ * username: 'alice',
140
+ * password: 'secret123',
141
+ * email: 'alice@example.com',
142
+ * };
143
+ *
144
+ * expect(user, 'to match snapshot', t, {
145
+ * serializer: (value: any) => {
146
+ * return JSON.stringify(
147
+ * {
148
+ * ...value,
149
+ * password: '[REDACTED]',
150
+ * },
151
+ * null,
152
+ * 2,
153
+ * );
154
+ * },
155
+ * });
156
+ * });
157
+ * ```
158
+ *
159
+ * @example Multiple snapshots with hints
160
+ *
161
+ * ```typescript
162
+ * test('captures workflow steps', (t) => {
163
+ * const initial = { status: 'pending' };
164
+ * expect(initial, 'to match snapshot', t, { hint: 'initial-state' });
165
+ *
166
+ * const processing = { status: 'processing', progress: 50 };
167
+ * expect(processing, 'to match snapshot', t, {
168
+ * hint: 'processing-state',
169
+ * });
170
+ *
171
+ * const complete = { status: 'complete', result: 'success' };
172
+ * expect(complete, 'to match snapshot', t, { hint: 'complete-state' });
173
+ * });
174
+ * ```
175
+ *
176
+ * @param subject - The value to snapshot (any type)
177
+ * @param context - Test context object or explicit snapshot name
178
+ * @param options - Optional serialization and naming options
179
+ * @group Snapshot Assertions
180
+ * @bupkisAnchor unknown-to-match-snapshot
181
+ * @bupkisAssertionCategory snapshot
182
+ */
183
+ exports.snapshotAssertion = (0, create_js_1.createAssertion)([
184
+ zod_1.z.unknown(),
185
+ [
186
+ 'to match snapshot',
187
+ 'to match the snapshot',
188
+ 'to equal snapshot',
189
+ 'to equal the snapshot',
190
+ ],
191
+ zod_1.z.unknown().nonoptional(),
192
+ ], (actual, context) => {
193
+ const adapter = (0, select_adapter_js_1.selectAdapter)(context);
194
+ return adapter.validateSnapshot(actual, context);
195
+ });
196
+ /**
197
+ * Asserts that a value matches a stored snapshot with custom options.
198
+ *
199
+ * This is an extended version of {@link snapshotAssertion} that accepts explicit
200
+ * options for serialization and snapshot naming via the `with options` syntax.
201
+ *
202
+ * @example Snapshot with custom serializer using 'with options'
203
+ *
204
+ * ```typescript
205
+ * import test from 'node:test';
206
+ * import { expect } from 'bupkis';
207
+ *
208
+ * test('redacts sensitive fields', (t) => {
209
+ * const data = { username: 'alice', password: 'secret123' };
210
+ *
211
+ * expect(data, 'to match snapshot', t, 'with options', {
212
+ * serializer: (value: any) =>
213
+ * JSON.stringify({ ...value, password: '[REDACTED]' }, null, 2),
214
+ * });
215
+ * });
216
+ * ```
217
+ *
218
+ * @example Multiple snapshots with hints using 'with options'
219
+ *
220
+ * ```typescript
221
+ * test('workflow stages', (t) => {
222
+ * const stage1 = { phase: 'init' };
223
+ * expect(stage1, 'to match snapshot', t, 'with options', {
224
+ * hint: 'stage-1',
225
+ * });
226
+ *
227
+ * const stage2 = { phase: 'processing' };
228
+ * expect(stage2, 'to match snapshot', t, 'with options', {
229
+ * hint: 'stage-2',
230
+ * });
231
+ * });
232
+ * ```
233
+ *
234
+ * @param subject - The value to snapshot (any type)
235
+ * @param context - Test context object or explicit snapshot name
236
+ * @param options - Serialization and naming options
237
+ * @group Snapshot Assertions
238
+ * @bupkisAnchor unknown-to-match-snapshot-with-options
239
+ * @bupkisAssertionCategory snapshot
240
+ */
241
+ exports.snapshotAssertionWithOptions = (0, create_js_1.createAssertion)([
242
+ zod_1.z.unknown(),
243
+ [
244
+ 'to match snapshot',
245
+ 'to match the snapshot',
246
+ 'to equal snapshot',
247
+ 'to equal the snapshot',
248
+ ],
249
+ zod_1.z.unknown().nonoptional(),
250
+ 'with options',
251
+ schema_js_1.SnapshotOptionsSchema,
252
+ ], (actual, context, options) => {
253
+ const adapter = (0, select_adapter_js_1.selectAdapter)(context);
254
+ return adapter.validateSnapshot(actual, context, options);
255
+ });
256
+ /**
257
+ * Collection of all snapshot assertions.
258
+ *
259
+ * Currently contains only the main snapshot assertion, but structured as a
260
+ * collection for consistency with other assertion modules and to allow for
261
+ * future expansion (e.g., inline snapshots, property matchers).
262
+ *
263
+ * @example
264
+ *
265
+ * ```typescript
266
+ * import { SnapshotAssertions } from 'bupkis/assertions';
267
+ *
268
+ * // All snapshot assertions are available
269
+ * const { snapshotAssertion } = SnapshotAssertions;
270
+ * ```
271
+ */
272
+ exports.SnapshotAssertions = {
273
+ snapshotAssertion: exports.snapshotAssertion,
274
+ snapshotAssertionWithOptions: exports.snapshotAssertionWithOptions,
275
+ };
276
+ //# sourceMappingURL=snapshot.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"snapshot.js","sourceRoot":"","sources":["../../../src/assertion/impl/snapshot.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;AAEH,6BAAwB;AAExB,gDAAwD;AACxD,yEAAiE;AACjE,6CAA+C;AAE/C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqKG;AACU,QAAA,iBAAiB,GAAG,IAAA,2BAAe,EAC9C;IACE,OAAC,CAAC,OAAO,EAAE;IACX;QACE,mBAAmB;QACnB,uBAAuB;QACvB,mBAAmB;QACnB,uBAAuB;KACxB;IACD,OAAC,CAAC,OAAO,EAAE,CAAC,WAAW,EAAE;CAC1B,EACD,CAAC,MAAM,EAAE,OAAO,EAAE,EAAE;IAClB,MAAM,OAAO,GAAG,IAAA,iCAAa,EAAC,OAAO,CAAC,CAAC;IACvC,OAAO,OAAO,CAAC,gBAAgB,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;AACnD,CAAC,CACF,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACU,QAAA,4BAA4B,GAAG,IAAA,2BAAe,EACzD;IACE,OAAC,CAAC,OAAO,EAAE;IACX;QACE,mBAAmB;QACnB,uBAAuB;QACvB,mBAAmB;QACnB,uBAAuB;KACxB;IACD,OAAC,CAAC,OAAO,EAAE,CAAC,WAAW,EAAE;IACzB,cAAc;IACd,iCAAqB;CACtB,EACD,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE;IAC3B,MAAM,OAAO,GAAG,IAAA,iCAAa,EAAC,OAAO,CAAC,CAAC;IACvC,OAAO,OAAO,CAAC,gBAAgB,CAAC,MAAM,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;AAC5D,CAAC,CACF,CAAC;AACF;;;;;;;;;;;;;;;GAeG;AACU,QAAA,kBAAkB,GAAG;IAChC,iBAAiB,EAAjB,yBAAiB;IACjB,4BAA4B,EAA5B,oCAA4B;CACpB,CAAC"}
@@ -0,0 +1,278 @@
1
+ /**
2
+ * Snapshot testing assertions for BUPKIS.
3
+ *
4
+ * Provides unified snapshot testing across multiple test frameworks including
5
+ * node:test, Jest, Vitest, Mocha, and others.
6
+ *
7
+ * @packageDocumentation
8
+ * @group Snapshot Assertions
9
+ */
10
+ import { z } from 'zod';
11
+ /**
12
+ * Asserts that a value matches a stored snapshot.
13
+ *
14
+ * This assertion provides unified snapshot testing across multiple test
15
+ * frameworks. It automatically detects the test framework from the context
16
+ * parameter and uses the appropriate snapshot mechanism.
17
+ *
18
+ * **Supported Frameworks:**
19
+ *
20
+ * - **node:test**: Native `assert.snapshot()` support
21
+ * - **Jest/Vitest**: Coming in Phase 2
22
+ * - **Mocha**: Custom snapshot storage
23
+ * - **Any framework**: Use explicit string names
24
+ *
25
+ * **Basic Usage:**
26
+ *
27
+ * ```typescript
28
+ * import test from 'node:test';
29
+ * import { expect } from 'bupkis';
30
+ *
31
+ * test('component renders correctly', (t) => {
32
+ * const output = renderComponent();
33
+ * expect(output, 'to match snapshot', t);
34
+ * });
35
+ * ```
36
+ *
37
+ * **With Custom Serializer:**
38
+ *
39
+ * ```typescript
40
+ * test('redacts sensitive data', (t) => {
41
+ * const data = { public: 'visible', secret: 'password123' };
42
+ * expect(data, 'to match snapshot', t, {
43
+ * serializer: (value: any) =>
44
+ * JSON.stringify({ ...value, secret: '[REDACTED]' }, null, 2),
45
+ * });
46
+ * });
47
+ * ```
48
+ *
49
+ * **Multiple Snapshots Per Test:**
50
+ *
51
+ * ```typescript
52
+ * test('multi-step process', (t) => {
53
+ * const step1 = processStep1();
54
+ * expect(step1, 'to match snapshot', t, { hint: 'step-1' });
55
+ *
56
+ * const step2 = processStep2();
57
+ * expect(step2, 'to match snapshot', t, { hint: 'step-2' });
58
+ *
59
+ * const step3 = processStep3();
60
+ * expect(step3, 'to match snapshot', t, { hint: 'step-3' });
61
+ * });
62
+ * ```
63
+ *
64
+ * **Mocha Usage:**
65
+ *
66
+ * ```typescript
67
+ * describe('MyComponent', function () {
68
+ * it('renders correctly', function () {
69
+ * const output = renderComponent();
70
+ * expect(output, 'to match snapshot', this);
71
+ * });
72
+ * });
73
+ * ```
74
+ *
75
+ * **Explicit Snapshot Names:**
76
+ *
77
+ * ```typescript
78
+ * test('any framework', () => {
79
+ * const output = renderComponent();
80
+ * expect(output, 'to match snapshot', 'component-default-state');
81
+ * });
82
+ * ```
83
+ *
84
+ * **Chaining with Other Assertions:**
85
+ *
86
+ * ```typescript
87
+ * test('validates and snapshots', (t) => {
88
+ * const user = getUserData();
89
+ * expect(
90
+ * user,
91
+ * 'to satisfy',
92
+ * { name: 'Alice' },
93
+ * 'and',
94
+ * 'to have property',
95
+ * 'email',
96
+ * 'and',
97
+ * 'to match snapshot',
98
+ * t,
99
+ * );
100
+ * });
101
+ * ```
102
+ *
103
+ * **Updating Snapshots:**
104
+ *
105
+ * ```sh
106
+ * # node:test
107
+ * node --test --test-update-snapshots
108
+ *
109
+ * # Jest/Vitest (Phase 2)
110
+ * vitest -u
111
+ *
112
+ * # Other frameworks
113
+ * BUPKIS_UPDATE_SNAPSHOTS=1 npm test
114
+ * ```
115
+ *
116
+ * @example Basic snapshot assertion
117
+ *
118
+ * ```typescript
119
+ * import test from 'node:test';
120
+ * import { expect } from 'bupkis';
121
+ *
122
+ * test('renders user profile', (t) => {
123
+ * const profile = { name: 'Alice', age: 30, role: 'admin' };
124
+ * expect(profile, 'to match snapshot', t);
125
+ * });
126
+ * ```
127
+ *
128
+ * @example Snapshot with custom serialization
129
+ *
130
+ * ```typescript
131
+ * test('redacts passwords', (t) => {
132
+ * const user = {
133
+ * username: 'alice',
134
+ * password: 'secret123',
135
+ * email: 'alice@example.com',
136
+ * };
137
+ *
138
+ * expect(user, 'to match snapshot', t, {
139
+ * serializer: (value: any) => {
140
+ * return JSON.stringify(
141
+ * {
142
+ * ...value,
143
+ * password: '[REDACTED]',
144
+ * },
145
+ * null,
146
+ * 2,
147
+ * );
148
+ * },
149
+ * });
150
+ * });
151
+ * ```
152
+ *
153
+ * @example Multiple snapshots with hints
154
+ *
155
+ * ```typescript
156
+ * test('captures workflow steps', (t) => {
157
+ * const initial = { status: 'pending' };
158
+ * expect(initial, 'to match snapshot', t, { hint: 'initial-state' });
159
+ *
160
+ * const processing = { status: 'processing', progress: 50 };
161
+ * expect(processing, 'to match snapshot', t, {
162
+ * hint: 'processing-state',
163
+ * });
164
+ *
165
+ * const complete = { status: 'complete', result: 'success' };
166
+ * expect(complete, 'to match snapshot', t, { hint: 'complete-state' });
167
+ * });
168
+ * ```
169
+ *
170
+ * @param subject - The value to snapshot (any type)
171
+ * @param context - Test context object or explicit snapshot name
172
+ * @param options - Optional serialization and naming options
173
+ * @group Snapshot Assertions
174
+ * @bupkisAnchor unknown-to-match-snapshot
175
+ * @bupkisAssertionCategory snapshot
176
+ */
177
+ export declare const snapshotAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnknown, readonly ["to match snapshot", "to match the snapshot", "to equal snapshot", "to equal the snapshot"], z.ZodNonOptional<z.ZodUnknown>], (actual: unknown, context: unknown) => void | import("../assertion-types.js").AssertionFailure, readonly [z.ZodUnknown, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to match snapshot", "to match the snapshot", "to equal snapshot", "to equal the snapshot"]>, z.ZodNonOptional<z.ZodUnknown>]>;
178
+ /**
179
+ * Asserts that a value matches a stored snapshot with custom options.
180
+ *
181
+ * This is an extended version of {@link snapshotAssertion} that accepts explicit
182
+ * options for serialization and snapshot naming via the `with options` syntax.
183
+ *
184
+ * @example Snapshot with custom serializer using 'with options'
185
+ *
186
+ * ```typescript
187
+ * import test from 'node:test';
188
+ * import { expect } from 'bupkis';
189
+ *
190
+ * test('redacts sensitive fields', (t) => {
191
+ * const data = { username: 'alice', password: 'secret123' };
192
+ *
193
+ * expect(data, 'to match snapshot', t, 'with options', {
194
+ * serializer: (value: any) =>
195
+ * JSON.stringify({ ...value, password: '[REDACTED]' }, null, 2),
196
+ * });
197
+ * });
198
+ * ```
199
+ *
200
+ * @example Multiple snapshots with hints using 'with options'
201
+ *
202
+ * ```typescript
203
+ * test('workflow stages', (t) => {
204
+ * const stage1 = { phase: 'init' };
205
+ * expect(stage1, 'to match snapshot', t, 'with options', {
206
+ * hint: 'stage-1',
207
+ * });
208
+ *
209
+ * const stage2 = { phase: 'processing' };
210
+ * expect(stage2, 'to match snapshot', t, 'with options', {
211
+ * hint: 'stage-2',
212
+ * });
213
+ * });
214
+ * ```
215
+ *
216
+ * @param subject - The value to snapshot (any type)
217
+ * @param context - Test context object or explicit snapshot name
218
+ * @param options - Serialization and naming options
219
+ * @group Snapshot Assertions
220
+ * @bupkisAnchor unknown-to-match-snapshot-with-options
221
+ * @bupkisAssertionCategory snapshot
222
+ */
223
+ export declare const snapshotAssertionWithOptions: import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnknown, readonly ["to match snapshot", "to match the snapshot", "to equal snapshot", "to equal the snapshot"], z.ZodNonOptional<z.ZodUnknown>, "with options", z.ZodObject<{
224
+ hint: z.ZodOptional<z.ZodString>;
225
+ serializer: z.ZodOptional<z.ZodAny>;
226
+ }, z.core.$strip>], (actual: unknown, context: unknown, options: {
227
+ hint?: string | undefined;
228
+ serializer?: any;
229
+ }) => void | import("../assertion-types.js").AssertionFailure, readonly [z.ZodUnknown, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to match snapshot", "to match the snapshot", "to equal snapshot", "to equal the snapshot"]>, z.ZodNonOptional<z.ZodUnknown>, import("../assertion-types.js").PhraseLiteralSlot<"with options">, z.ZodObject<{
230
+ hint: z.ZodOptional<z.ZodString>;
231
+ serializer: z.ZodOptional<z.ZodAny>;
232
+ }, z.core.$strip>]>;
233
+ /**
234
+ * Collection of all snapshot assertions.
235
+ *
236
+ * Currently contains only the main snapshot assertion, but structured as a
237
+ * collection for consistency with other assertion modules and to allow for
238
+ * future expansion (e.g., inline snapshots, property matchers).
239
+ *
240
+ * @example
241
+ *
242
+ * ```typescript
243
+ * import { SnapshotAssertions } from 'bupkis/assertions';
244
+ *
245
+ * // All snapshot assertions are available
246
+ * const { snapshotAssertion } = SnapshotAssertions;
247
+ * ```
248
+ */
249
+ export declare const SnapshotAssertions: {
250
+ readonly snapshotAssertion: import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnknown, readonly ["to match snapshot", "to match the snapshot", "to equal snapshot", "to equal the snapshot"], z.ZodNonOptional<z.ZodUnknown>], (actual: unknown, context: unknown) => void | import("../assertion-types.js").AssertionFailure, readonly [z.ZodUnknown, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to match snapshot", "to match the snapshot", "to equal snapshot", "to equal the snapshot"]>, z.ZodNonOptional<z.ZodUnknown>]>;
251
+ readonly snapshotAssertionWithOptions: import("../assertion-types.js").AssertionFunctionSync<readonly [z.ZodUnknown, readonly ["to match snapshot", "to match the snapshot", "to equal snapshot", "to equal the snapshot"], z.ZodNonOptional<z.ZodUnknown>, "with options", z.ZodObject<{
252
+ hint: z.ZodOptional<z.ZodString>;
253
+ serializer: z.ZodOptional<z.ZodAny>;
254
+ }, z.core.$strip>], (actual: unknown, context: unknown, options: {
255
+ hint?: string | undefined;
256
+ serializer?: any;
257
+ }) => void | import("../assertion-types.js").AssertionFailure, readonly [z.ZodUnknown, import("../assertion-types.js").PhraseLiteralChoiceSlot<readonly ["to match snapshot", "to match the snapshot", "to equal snapshot", "to equal the snapshot"]>, z.ZodNonOptional<z.ZodUnknown>, import("../assertion-types.js").PhraseLiteralSlot<"with options">, z.ZodObject<{
258
+ hint: z.ZodOptional<z.ZodString>;
259
+ serializer: z.ZodOptional<z.ZodAny>;
260
+ }, z.core.$strip>]>;
261
+ };
262
+ /**
263
+ * Type for the snapshot assertions collection.
264
+ *
265
+ * This type can be used for type checking or documentation purposes.
266
+ *
267
+ * @example
268
+ *
269
+ * ```typescript
270
+ * import type { SnapshotAssertions } from 'bupkis/assertions';
271
+ *
272
+ * function useSnapshotAssertions(assertions: SnapshotAssertions) {
273
+ * // assertions has the correct type
274
+ * }
275
+ * ```
276
+ */
277
+ export type SnapshotAssertions = typeof SnapshotAssertions;
278
+ //# sourceMappingURL=snapshot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"snapshot.d.ts","sourceRoot":"","sources":["../../../src/assertion/impl/snapshot.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqKG;AACH,eAAO,MAAM,iBAAiB,ghBAe7B,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,eAAO,MAAM,4BAA4B;;;;;;;;;mBAiBxC,CAAC;AACF;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;CAGrB,CAAC;AAEX;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,kBAAkB,GAAG,OAAO,kBAAkB,CAAC"}