@inluxc/propmaster 0.0.0-stage → 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 (444) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +696 -2
  3. package/dist/src/annotations/index.d.ts +11 -0
  4. package/dist/src/annotations/index.d.ts.map +1 -0
  5. package/dist/src/annotations/index.js +11 -0
  6. package/dist/src/annotations/index.js.map +1 -0
  7. package/dist/src/annotations/recorder.d.ts +57 -0
  8. package/dist/src/annotations/recorder.d.ts.map +1 -0
  9. package/dist/src/annotations/recorder.js +100 -0
  10. package/dist/src/annotations/recorder.js.map +1 -0
  11. package/dist/src/annotations/truncation.d.ts +34 -0
  12. package/dist/src/annotations/truncation.d.ts.map +1 -0
  13. package/dist/src/annotations/truncation.js +54 -0
  14. package/dist/src/annotations/truncation.js.map +1 -0
  15. package/dist/src/auth/apply.d.ts +15 -0
  16. package/dist/src/auth/apply.d.ts.map +1 -0
  17. package/dist/src/auth/apply.js +21 -0
  18. package/dist/src/auth/apply.js.map +1 -0
  19. package/dist/src/auth/setup.d.ts +56 -0
  20. package/dist/src/auth/setup.d.ts.map +1 -0
  21. package/dist/src/auth/setup.js +79 -0
  22. package/dist/src/auth/setup.js.map +1 -0
  23. package/dist/src/auth/state-file.d.ts +8 -0
  24. package/dist/src/auth/state-file.d.ts.map +1 -0
  25. package/dist/src/auth/state-file.js +13 -0
  26. package/dist/src/auth/state-file.js.map +1 -0
  27. package/dist/src/auth/token-manager.d.ts +61 -0
  28. package/dist/src/auth/token-manager.d.ts.map +1 -0
  29. package/dist/src/auth/token-manager.js +200 -0
  30. package/dist/src/auth/token-manager.js.map +1 -0
  31. package/dist/src/cli/banner.d.ts +23 -0
  32. package/dist/src/cli/banner.d.ts.map +1 -0
  33. package/dist/src/cli/banner.js +67 -0
  34. package/dist/src/cli/banner.js.map +1 -0
  35. package/dist/src/cli/check-tests.d.ts +143 -0
  36. package/dist/src/cli/check-tests.d.ts.map +1 -0
  37. package/dist/src/cli/check-tests.js +541 -0
  38. package/dist/src/cli/check-tests.js.map +1 -0
  39. package/dist/src/cli/coverage.d.ts +14 -0
  40. package/dist/src/cli/coverage.d.ts.map +1 -0
  41. package/dist/src/cli/coverage.js +97 -0
  42. package/dist/src/cli/coverage.js.map +1 -0
  43. package/dist/src/cli/doctor.d.ts +82 -0
  44. package/dist/src/cli/doctor.d.ts.map +1 -0
  45. package/dist/src/cli/doctor.js +656 -0
  46. package/dist/src/cli/doctor.js.map +1 -0
  47. package/dist/src/cli/env.d.ts +76 -0
  48. package/dist/src/cli/env.d.ts.map +1 -0
  49. package/dist/src/cli/env.js +344 -0
  50. package/dist/src/cli/env.js.map +1 -0
  51. package/dist/src/cli/failures.d.ts +29 -0
  52. package/dist/src/cli/failures.d.ts.map +1 -0
  53. package/dist/src/cli/failures.js +114 -0
  54. package/dist/src/cli/failures.js.map +1 -0
  55. package/dist/src/cli/fixture-catalog.d.ts +83 -0
  56. package/dist/src/cli/fixture-catalog.d.ts.map +1 -0
  57. package/dist/src/cli/fixture-catalog.js +773 -0
  58. package/dist/src/cli/fixture-catalog.js.map +1 -0
  59. package/dist/src/cli/fixture.d.ts +149 -0
  60. package/dist/src/cli/fixture.d.ts.map +1 -0
  61. package/dist/src/cli/fixture.js +742 -0
  62. package/dist/src/cli/fixture.js.map +1 -0
  63. package/dist/src/cli/flaky.d.ts +25 -0
  64. package/dist/src/cli/flaky.d.ts.map +1 -0
  65. package/dist/src/cli/flaky.js +96 -0
  66. package/dist/src/cli/flaky.js.map +1 -0
  67. package/dist/src/cli/generate.d.ts +37 -0
  68. package/dist/src/cli/generate.d.ts.map +1 -0
  69. package/dist/src/cli/generate.js +230 -0
  70. package/dist/src/cli/generate.js.map +1 -0
  71. package/dist/src/cli/init.d.ts +36 -0
  72. package/dist/src/cli/init.d.ts.map +1 -0
  73. package/dist/src/cli/init.js +1039 -0
  74. package/dist/src/cli/init.js.map +1 -0
  75. package/dist/src/cli/json-edit.d.ts +58 -0
  76. package/dist/src/cli/json-edit.d.ts.map +1 -0
  77. package/dist/src/cli/json-edit.js +250 -0
  78. package/dist/src/cli/json-edit.js.map +1 -0
  79. package/dist/src/cli/layout.d.ts +31 -0
  80. package/dist/src/cli/layout.d.ts.map +1 -0
  81. package/dist/src/cli/layout.js +175 -0
  82. package/dist/src/cli/layout.js.map +1 -0
  83. package/dist/src/cli/mcp-setup.d.ts +141 -0
  84. package/dist/src/cli/mcp-setup.d.ts.map +1 -0
  85. package/dist/src/cli/mcp-setup.js +548 -0
  86. package/dist/src/cli/mcp-setup.js.map +1 -0
  87. package/dist/src/cli/organize.d.ts +136 -0
  88. package/dist/src/cli/organize.d.ts.map +1 -0
  89. package/dist/src/cli/organize.js +467 -0
  90. package/dist/src/cli/organize.js.map +1 -0
  91. package/dist/src/cli/prompts.d.ts +102 -0
  92. package/dist/src/cli/prompts.d.ts.map +1 -0
  93. package/dist/src/cli/prompts.js +346 -0
  94. package/dist/src/cli/prompts.js.map +1 -0
  95. package/dist/src/cli/standards.d.ts +160 -0
  96. package/dist/src/cli/standards.d.ts.map +1 -0
  97. package/dist/src/cli/standards.js +389 -0
  98. package/dist/src/cli/standards.js.map +1 -0
  99. package/dist/src/cli/style.d.ts +28 -0
  100. package/dist/src/cli/style.d.ts.map +1 -0
  101. package/dist/src/cli/style.js +57 -0
  102. package/dist/src/cli/style.js.map +1 -0
  103. package/dist/src/config/env-loader.d.ts +33 -0
  104. package/dist/src/config/env-loader.d.ts.map +1 -0
  105. package/dist/src/config/env-loader.js +72 -0
  106. package/dist/src/config/env-loader.js.map +1 -0
  107. package/dist/src/config/index.d.ts +10 -0
  108. package/dist/src/config/index.d.ts.map +1 -0
  109. package/dist/src/config/index.js +10 -0
  110. package/dist/src/config/index.js.map +1 -0
  111. package/dist/src/config/loader.d.ts +66 -0
  112. package/dist/src/config/loader.d.ts.map +1 -0
  113. package/dist/src/config/loader.js +810 -0
  114. package/dist/src/config/loader.js.map +1 -0
  115. package/dist/src/config/schema.d.ts +596 -0
  116. package/dist/src/config/schema.d.ts.map +1 -0
  117. package/dist/src/config/schema.js +9 -0
  118. package/dist/src/config/schema.js.map +1 -0
  119. package/dist/src/containers/container-manager.d.ts +157 -0
  120. package/dist/src/containers/container-manager.d.ts.map +1 -0
  121. package/dist/src/containers/container-manager.js +627 -0
  122. package/dist/src/containers/container-manager.js.map +1 -0
  123. package/dist/src/coverage/code-coverage.d.ts +89 -0
  124. package/dist/src/coverage/code-coverage.d.ts.map +1 -0
  125. package/dist/src/coverage/code-coverage.js +395 -0
  126. package/dist/src/coverage/code-coverage.js.map +1 -0
  127. package/dist/src/coverage/inventory.d.ts +80 -0
  128. package/dist/src/coverage/inventory.d.ts.map +1 -0
  129. package/dist/src/coverage/inventory.js +417 -0
  130. package/dist/src/coverage/inventory.js.map +1 -0
  131. package/dist/src/coverage/languages.d.ts +34 -0
  132. package/dist/src/coverage/languages.d.ts.map +1 -0
  133. package/dist/src/coverage/languages.js +156 -0
  134. package/dist/src/coverage/languages.js.map +1 -0
  135. package/dist/src/coverage/report.d.ts +128 -0
  136. package/dist/src/coverage/report.d.ts.map +1 -0
  137. package/dist/src/coverage/report.js +472 -0
  138. package/dist/src/coverage/report.js.map +1 -0
  139. package/dist/src/errors.d.ts +164 -0
  140. package/dist/src/errors.d.ts.map +1 -0
  141. package/dist/src/errors.js +267 -0
  142. package/dist/src/errors.js.map +1 -0
  143. package/dist/src/fixtures/amqp.fixture.d.ts +163 -0
  144. package/dist/src/fixtures/amqp.fixture.d.ts.map +1 -0
  145. package/dist/src/fixtures/amqp.fixture.js +494 -0
  146. package/dist/src/fixtures/amqp.fixture.js.map +1 -0
  147. package/dist/src/fixtures/appium.fixture.d.ts +112 -0
  148. package/dist/src/fixtures/appium.fixture.d.ts.map +1 -0
  149. package/dist/src/fixtures/appium.fixture.js +309 -0
  150. package/dist/src/fixtures/appium.fixture.js.map +1 -0
  151. package/dist/src/fixtures/aws.d.ts +44 -0
  152. package/dist/src/fixtures/aws.d.ts.map +1 -0
  153. package/dist/src/fixtures/aws.js +93 -0
  154. package/dist/src/fixtures/aws.js.map +1 -0
  155. package/dist/src/fixtures/cassandra.fixture.d.ts +179 -0
  156. package/dist/src/fixtures/cassandra.fixture.d.ts.map +1 -0
  157. package/dist/src/fixtures/cassandra.fixture.js +489 -0
  158. package/dist/src/fixtures/cassandra.fixture.js.map +1 -0
  159. package/dist/src/fixtures/clickhouse.fixture.d.ts +171 -0
  160. package/dist/src/fixtures/clickhouse.fixture.d.ts.map +1 -0
  161. package/dist/src/fixtures/clickhouse.fixture.js +514 -0
  162. package/dist/src/fixtures/clickhouse.fixture.js.map +1 -0
  163. package/dist/src/fixtures/database.fixture.d.ts +63 -0
  164. package/dist/src/fixtures/database.fixture.d.ts.map +1 -0
  165. package/dist/src/fixtures/database.fixture.js +407 -0
  166. package/dist/src/fixtures/database.fixture.js.map +1 -0
  167. package/dist/src/fixtures/dynamodb.fixture.d.ts +243 -0
  168. package/dist/src/fixtures/dynamodb.fixture.d.ts.map +1 -0
  169. package/dist/src/fixtures/dynamodb.fixture.js +580 -0
  170. package/dist/src/fixtures/dynamodb.fixture.js.map +1 -0
  171. package/dist/src/fixtures/graphql.fixture.d.ts +107 -0
  172. package/dist/src/fixtures/graphql.fixture.d.ts.map +1 -0
  173. package/dist/src/fixtures/graphql.fixture.js +158 -0
  174. package/dist/src/fixtures/graphql.fixture.js.map +1 -0
  175. package/dist/src/fixtures/grpc.fixture.d.ts +167 -0
  176. package/dist/src/fixtures/grpc.fixture.d.ts.map +1 -0
  177. package/dist/src/fixtures/grpc.fixture.js +635 -0
  178. package/dist/src/fixtures/grpc.fixture.js.map +1 -0
  179. package/dist/src/fixtures/inbox.fixture.d.ts +136 -0
  180. package/dist/src/fixtures/inbox.fixture.d.ts.map +1 -0
  181. package/dist/src/fixtures/inbox.fixture.js +239 -0
  182. package/dist/src/fixtures/inbox.fixture.js.map +1 -0
  183. package/dist/src/fixtures/index.d.ts +174 -0
  184. package/dist/src/fixtures/index.d.ts.map +1 -0
  185. package/dist/src/fixtures/index.js +370 -0
  186. package/dist/src/fixtures/index.js.map +1 -0
  187. package/dist/src/fixtures/kafka-driver.d.ts +108 -0
  188. package/dist/src/fixtures/kafka-driver.d.ts.map +1 -0
  189. package/dist/src/fixtures/kafka-driver.js +113 -0
  190. package/dist/src/fixtures/kafka-driver.js.map +1 -0
  191. package/dist/src/fixtures/kafka.fixture.d.ts +75 -0
  192. package/dist/src/fixtures/kafka.fixture.d.ts.map +1 -0
  193. package/dist/src/fixtures/kafka.fixture.js +188 -0
  194. package/dist/src/fixtures/kafka.fixture.js.map +1 -0
  195. package/dist/src/fixtures/mock-server.fixture.d.ts +142 -0
  196. package/dist/src/fixtures/mock-server.fixture.d.ts.map +1 -0
  197. package/dist/src/fixtures/mock-server.fixture.js +271 -0
  198. package/dist/src/fixtures/mock-server.fixture.js.map +1 -0
  199. package/dist/src/fixtures/mongodb.fixture.d.ts +121 -0
  200. package/dist/src/fixtures/mongodb.fixture.d.ts.map +1 -0
  201. package/dist/src/fixtures/mongodb.fixture.js +258 -0
  202. package/dist/src/fixtures/mongodb.fixture.js.map +1 -0
  203. package/dist/src/fixtures/neo4j.fixture.d.ts +72 -0
  204. package/dist/src/fixtures/neo4j.fixture.d.ts.map +1 -0
  205. package/dist/src/fixtures/neo4j.fixture.js +202 -0
  206. package/dist/src/fixtures/neo4j.fixture.js.map +1 -0
  207. package/dist/src/fixtures/openapi.fixture.d.ts +101 -0
  208. package/dist/src/fixtures/openapi.fixture.d.ts.map +1 -0
  209. package/dist/src/fixtures/openapi.fixture.js +266 -0
  210. package/dist/src/fixtures/openapi.fixture.js.map +1 -0
  211. package/dist/src/fixtures/optional-package.d.ts +54 -0
  212. package/dist/src/fixtures/optional-package.d.ts.map +1 -0
  213. package/dist/src/fixtures/optional-package.js +79 -0
  214. package/dist/src/fixtures/optional-package.js.map +1 -0
  215. package/dist/src/fixtures/otp.fixture.d.ts +60 -0
  216. package/dist/src/fixtures/otp.fixture.d.ts.map +1 -0
  217. package/dist/src/fixtures/otp.fixture.js +101 -0
  218. package/dist/src/fixtures/otp.fixture.js.map +1 -0
  219. package/dist/src/fixtures/realtime.fixture.d.ts +205 -0
  220. package/dist/src/fixtures/realtime.fixture.d.ts.map +1 -0
  221. package/dist/src/fixtures/realtime.fixture.js +606 -0
  222. package/dist/src/fixtures/realtime.fixture.js.map +1 -0
  223. package/dist/src/fixtures/redis.fixture.d.ts +55 -0
  224. package/dist/src/fixtures/redis.fixture.d.ts.map +1 -0
  225. package/dist/src/fixtures/redis.fixture.js +209 -0
  226. package/dist/src/fixtures/redis.fixture.js.map +1 -0
  227. package/dist/src/fixtures/s3.fixture.d.ts +126 -0
  228. package/dist/src/fixtures/s3.fixture.d.ts.map +1 -0
  229. package/dist/src/fixtures/s3.fixture.js +296 -0
  230. package/dist/src/fixtures/s3.fixture.js.map +1 -0
  231. package/dist/src/fixtures/search.fixture.d.ts +178 -0
  232. package/dist/src/fixtures/search.fixture.d.ts.map +1 -0
  233. package/dist/src/fixtures/search.fixture.js +472 -0
  234. package/dist/src/fixtures/search.fixture.js.map +1 -0
  235. package/dist/src/fixtures/sqs.fixture.d.ts +172 -0
  236. package/dist/src/fixtures/sqs.fixture.d.ts.map +1 -0
  237. package/dist/src/fixtures/sqs.fixture.js +428 -0
  238. package/dist/src/fixtures/sqs.fixture.js.map +1 -0
  239. package/dist/src/index.d.ts +43 -0
  240. package/dist/src/index.d.ts.map +1 -0
  241. package/dist/src/index.js +48 -0
  242. package/dist/src/index.js.map +1 -0
  243. package/dist/src/mcp/guards.d.ts +21 -0
  244. package/dist/src/mcp/guards.d.ts.map +1 -0
  245. package/dist/src/mcp/guards.js +118 -0
  246. package/dist/src/mcp/guards.js.map +1 -0
  247. package/dist/src/mcp/project-tools.d.ts +14 -0
  248. package/dist/src/mcp/project-tools.d.ts.map +1 -0
  249. package/dist/src/mcp/project-tools.js +252 -0
  250. package/dist/src/mcp/project-tools.js.map +1 -0
  251. package/dist/src/mcp/protocol.d.ts +116 -0
  252. package/dist/src/mcp/protocol.d.ts.map +1 -0
  253. package/dist/src/mcp/protocol.js +199 -0
  254. package/dist/src/mcp/protocol.js.map +1 -0
  255. package/dist/src/mcp/server.d.ts +43 -0
  256. package/dist/src/mcp/server.d.ts.map +1 -0
  257. package/dist/src/mcp/server.js +244 -0
  258. package/dist/src/mcp/server.js.map +1 -0
  259. package/dist/src/mcp/test-tools.d.ts +65 -0
  260. package/dist/src/mcp/test-tools.d.ts.map +1 -0
  261. package/dist/src/mcp/test-tools.js +380 -0
  262. package/dist/src/mcp/test-tools.js.map +1 -0
  263. package/dist/src/mcp/tools.d.ts +49 -0
  264. package/dist/src/mcp/tools.d.ts.map +1 -0
  265. package/dist/src/mcp/tools.js +726 -0
  266. package/dist/src/mcp/tools.js.map +1 -0
  267. package/dist/src/network-error.d.ts +11 -0
  268. package/dist/src/network-error.d.ts.map +1 -0
  269. package/dist/src/network-error.js +34 -0
  270. package/dist/src/network-error.js.map +1 -0
  271. package/dist/src/openapi/contract.d.ts +98 -0
  272. package/dist/src/openapi/contract.d.ts.map +1 -0
  273. package/dist/src/openapi/contract.js +407 -0
  274. package/dist/src/openapi/contract.js.map +1 -0
  275. package/dist/src/openapi/generate.d.ts +89 -0
  276. package/dist/src/openapi/generate.d.ts.map +1 -0
  277. package/dist/src/openapi/generate.js +607 -0
  278. package/dist/src/openapi/generate.js.map +1 -0
  279. package/dist/src/openapi/load.d.ts +8 -0
  280. package/dist/src/openapi/load.d.ts.map +1 -0
  281. package/dist/src/openapi/load.js +26 -0
  282. package/dist/src/openapi/load.js.map +1 -0
  283. package/dist/src/package-manager.d.ts +58 -0
  284. package/dist/src/package-manager.d.ts.map +1 -0
  285. package/dist/src/package-manager.js +137 -0
  286. package/dist/src/package-manager.js.map +1 -0
  287. package/dist/src/reporter/history.d.ts +85 -0
  288. package/dist/src/reporter/history.d.ts.map +1 -0
  289. package/dist/src/reporter/history.js +147 -0
  290. package/dist/src/reporter/history.js.map +1 -0
  291. package/dist/src/reporter/index.d.ts +59 -0
  292. package/dist/src/reporter/index.d.ts.map +1 -0
  293. package/dist/src/reporter/index.js +201 -0
  294. package/dist/src/reporter/index.js.map +1 -0
  295. package/dist/src/reporter/last-run.d.ts +88 -0
  296. package/dist/src/reporter/last-run.d.ts.map +1 -0
  297. package/dist/src/reporter/last-run.js +133 -0
  298. package/dist/src/reporter/last-run.js.map +1 -0
  299. package/dist/src/reporter/quarantine.d.ts +62 -0
  300. package/dist/src/reporter/quarantine.d.ts.map +1 -0
  301. package/dist/src/reporter/quarantine.js +148 -0
  302. package/dist/src/reporter/quarantine.js.map +1 -0
  303. package/dist/src/secrets/index.d.ts +4 -0
  304. package/dist/src/secrets/index.d.ts.map +1 -0
  305. package/dist/src/secrets/index.js +3 -0
  306. package/dist/src/secrets/index.js.map +1 -0
  307. package/dist/src/secrets/provider.interface.d.ts +30 -0
  308. package/dist/src/secrets/provider.interface.d.ts.map +1 -0
  309. package/dist/src/secrets/provider.interface.js +2 -0
  310. package/dist/src/secrets/provider.interface.js.map +1 -0
  311. package/dist/src/secrets/providers/aws.provider.d.ts +33 -0
  312. package/dist/src/secrets/providers/aws.provider.d.ts.map +1 -0
  313. package/dist/src/secrets/providers/aws.provider.js +88 -0
  314. package/dist/src/secrets/providers/aws.provider.js.map +1 -0
  315. package/dist/src/secrets/providers/azure.provider.d.ts +26 -0
  316. package/dist/src/secrets/providers/azure.provider.d.ts.map +1 -0
  317. package/dist/src/secrets/providers/azure.provider.js +71 -0
  318. package/dist/src/secrets/providers/azure.provider.js.map +1 -0
  319. package/dist/src/secrets/providers/env-file.provider.d.ts +29 -0
  320. package/dist/src/secrets/providers/env-file.provider.d.ts.map +1 -0
  321. package/dist/src/secrets/providers/env-file.provider.js +56 -0
  322. package/dist/src/secrets/providers/env-file.provider.js.map +1 -0
  323. package/dist/src/secrets/providers/gitlab.provider.d.ts +26 -0
  324. package/dist/src/secrets/providers/gitlab.provider.d.ts.map +1 -0
  325. package/dist/src/secrets/providers/gitlab.provider.js +67 -0
  326. package/dist/src/secrets/providers/gitlab.provider.js.map +1 -0
  327. package/dist/src/secrets/providers/index.d.ts +52 -0
  328. package/dist/src/secrets/providers/index.d.ts.map +1 -0
  329. package/dist/src/secrets/providers/index.js +81 -0
  330. package/dist/src/secrets/providers/index.js.map +1 -0
  331. package/dist/src/secrets/providers/openbao.provider.d.ts +28 -0
  332. package/dist/src/secrets/providers/openbao.provider.d.ts.map +1 -0
  333. package/dist/src/secrets/providers/openbao.provider.js +29 -0
  334. package/dist/src/secrets/providers/openbao.provider.js.map +1 -0
  335. package/dist/src/secrets/providers/vault-compatible.d.ts +140 -0
  336. package/dist/src/secrets/providers/vault-compatible.d.ts.map +1 -0
  337. package/dist/src/secrets/providers/vault-compatible.js +405 -0
  338. package/dist/src/secrets/providers/vault-compatible.js.map +1 -0
  339. package/dist/src/secrets/providers/vault.provider.d.ts +27 -0
  340. package/dist/src/secrets/providers/vault.provider.d.ts.map +1 -0
  341. package/dist/src/secrets/providers/vault.provider.js +23 -0
  342. package/dist/src/secrets/providers/vault.provider.js.map +1 -0
  343. package/dist/src/secrets/secrets-manager.d.ts +67 -0
  344. package/dist/src/secrets/secrets-manager.d.ts.map +1 -0
  345. package/dist/src/secrets/secrets-manager.js +255 -0
  346. package/dist/src/secrets/secrets-manager.js.map +1 -0
  347. package/dist/src/steps/amqp.steps.d.ts +37 -0
  348. package/dist/src/steps/amqp.steps.d.ts.map +1 -0
  349. package/dist/src/steps/amqp.steps.js +86 -0
  350. package/dist/src/steps/amqp.steps.js.map +1 -0
  351. package/dist/src/steps/appium.steps.d.ts +53 -0
  352. package/dist/src/steps/appium.steps.d.ts.map +1 -0
  353. package/dist/src/steps/appium.steps.js +109 -0
  354. package/dist/src/steps/appium.steps.js.map +1 -0
  355. package/dist/src/steps/aws.steps.d.ts +47 -0
  356. package/dist/src/steps/aws.steps.d.ts.map +1 -0
  357. package/dist/src/steps/aws.steps.js +116 -0
  358. package/dist/src/steps/aws.steps.js.map +1 -0
  359. package/dist/src/steps/browser.steps.d.ts +54 -0
  360. package/dist/src/steps/browser.steps.d.ts.map +1 -0
  361. package/dist/src/steps/browser.steps.js +102 -0
  362. package/dist/src/steps/browser.steps.js.map +1 -0
  363. package/dist/src/steps/cassandra.steps.d.ts +32 -0
  364. package/dist/src/steps/cassandra.steps.d.ts.map +1 -0
  365. package/dist/src/steps/cassandra.steps.js +81 -0
  366. package/dist/src/steps/cassandra.steps.js.map +1 -0
  367. package/dist/src/steps/clickhouse.steps.d.ts +30 -0
  368. package/dist/src/steps/clickhouse.steps.d.ts.map +1 -0
  369. package/dist/src/steps/clickhouse.steps.js +73 -0
  370. package/dist/src/steps/clickhouse.steps.js.map +1 -0
  371. package/dist/src/steps/database.steps.d.ts +43 -0
  372. package/dist/src/steps/database.steps.d.ts.map +1 -0
  373. package/dist/src/steps/database.steps.js +79 -0
  374. package/dist/src/steps/database.steps.js.map +1 -0
  375. package/dist/src/steps/dynamodb.steps.d.ts +32 -0
  376. package/dist/src/steps/dynamodb.steps.d.ts.map +1 -0
  377. package/dist/src/steps/dynamodb.steps.js +89 -0
  378. package/dist/src/steps/dynamodb.steps.js.map +1 -0
  379. package/dist/src/steps/graphql.steps.d.ts +60 -0
  380. package/dist/src/steps/graphql.steps.d.ts.map +1 -0
  381. package/dist/src/steps/graphql.steps.js +76 -0
  382. package/dist/src/steps/graphql.steps.js.map +1 -0
  383. package/dist/src/steps/grpc.steps.d.ts +29 -0
  384. package/dist/src/steps/grpc.steps.d.ts.map +1 -0
  385. package/dist/src/steps/grpc.steps.js +68 -0
  386. package/dist/src/steps/grpc.steps.js.map +1 -0
  387. package/dist/src/steps/inbox.steps.d.ts +30 -0
  388. package/dist/src/steps/inbox.steps.d.ts.map +1 -0
  389. package/dist/src/steps/inbox.steps.js +72 -0
  390. package/dist/src/steps/inbox.steps.js.map +1 -0
  391. package/dist/src/steps/index.d.ts +43 -0
  392. package/dist/src/steps/index.d.ts.map +1 -0
  393. package/dist/src/steps/index.js +26 -0
  394. package/dist/src/steps/index.js.map +1 -0
  395. package/dist/src/steps/kafka.steps.d.ts +56 -0
  396. package/dist/src/steps/kafka.steps.d.ts.map +1 -0
  397. package/dist/src/steps/kafka.steps.js +61 -0
  398. package/dist/src/steps/kafka.steps.js.map +1 -0
  399. package/dist/src/steps/mock-server.steps.d.ts +21 -0
  400. package/dist/src/steps/mock-server.steps.d.ts.map +1 -0
  401. package/dist/src/steps/mock-server.steps.js +45 -0
  402. package/dist/src/steps/mock-server.steps.js.map +1 -0
  403. package/dist/src/steps/mongodb.steps.d.ts +107 -0
  404. package/dist/src/steps/mongodb.steps.d.ts.map +1 -0
  405. package/dist/src/steps/mongodb.steps.js +117 -0
  406. package/dist/src/steps/mongodb.steps.js.map +1 -0
  407. package/dist/src/steps/openapi.steps.d.ts +49 -0
  408. package/dist/src/steps/openapi.steps.d.ts.map +1 -0
  409. package/dist/src/steps/openapi.steps.js +113 -0
  410. package/dist/src/steps/openapi.steps.js.map +1 -0
  411. package/dist/src/steps/otp.steps.d.ts +43 -0
  412. package/dist/src/steps/otp.steps.d.ts.map +1 -0
  413. package/dist/src/steps/otp.steps.js +83 -0
  414. package/dist/src/steps/otp.steps.js.map +1 -0
  415. package/dist/src/steps/realtime.steps.d.ts +40 -0
  416. package/dist/src/steps/realtime.steps.d.ts.map +1 -0
  417. package/dist/src/steps/realtime.steps.js +116 -0
  418. package/dist/src/steps/realtime.steps.js.map +1 -0
  419. package/dist/src/steps/redis.steps.d.ts +54 -0
  420. package/dist/src/steps/redis.steps.d.ts.map +1 -0
  421. package/dist/src/steps/redis.steps.js +89 -0
  422. package/dist/src/steps/redis.steps.js.map +1 -0
  423. package/dist/src/steps/search.steps.d.ts +23 -0
  424. package/dist/src/steps/search.steps.d.ts.map +1 -0
  425. package/dist/src/steps/search.steps.js +54 -0
  426. package/dist/src/steps/search.steps.js.map +1 -0
  427. package/dist/src/test-data/factory.d.ts +82 -0
  428. package/dist/src/test-data/factory.d.ts.map +1 -0
  429. package/dist/src/test-data/factory.js +116 -0
  430. package/dist/src/test-data/factory.js.map +1 -0
  431. package/dist/src/test-data/index.d.ts +4 -0
  432. package/dist/src/test-data/index.d.ts.map +1 -0
  433. package/dist/src/test-data/index.js +4 -0
  434. package/dist/src/test-data/index.js.map +1 -0
  435. package/dist/src/test-data/registry.d.ts +37 -0
  436. package/dist/src/test-data/registry.d.ts.map +1 -0
  437. package/dist/src/test-data/registry.js +51 -0
  438. package/dist/src/test-data/registry.js.map +1 -0
  439. package/dist/src/test-data/tracking.d.ts +47 -0
  440. package/dist/src/test-data/tracking.d.ts.map +1 -0
  441. package/dist/src/test-data/tracking.js +166 -0
  442. package/dist/src/test-data/tracking.js.map +1 -0
  443. package/environments.json +263 -0
  444. package/package.json +299 -5
@@ -0,0 +1 @@
1
+ {"version":3,"file":"openapi.steps.js","sourceRoot":"","sources":["../../../src/steps/openapi.steps.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE3C,OAAO,EAAE,cAAc,EAAuB,MAAM,wBAAwB,CAAC;AAE7E,MAAM,OAAO,YAAY;IACD,aAAa;IAAjC,YAAoB,aAA4B;6BAA5B,aAAa;IAAkB,CAAC;IAEpD,IAAY,MAAM;QACd,OAAO,IAAI,CAAC,aAAa,CAAC,MAAa,CAAC;IAC5C,CAAC;IAED,IAAI,GAAG;QACH,OAAO,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC;IAClC,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,aAAa,CAAC,WAAmB,EAAE,MAAY,EAAE,IAAU,EAAE,MAAY;QAC3E,IAAI,QAAa,CAAC;QAElB,MAAM,IAAI,CAAC,IAAI,CAAC,yBAAyB,WAAW,GAAG,EAAE,KAAK,IAAI,EAAE;YAChE,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC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AAY,CAAC,MAAM,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;QACnD,CAAC,CAAC,CAAC;QAEH,OAAO,YAAY,CAAC;IACxB,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,YAAY;QACd,IAAI,QAAa,CAAC;QAElB,MAAM,IAAI,CAAC,IAAI,CAAC,6CAA6C,EAAE,KAAK,IAAI,EAAE;YACtE,QAAQ,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,IAAI,EAAE;gBAClD,OAAO,EAAE,EAAE,OAAO,EAAE,aAAa,EAAE;aACtC,CAAC,CAAC;YACH,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAClC,MAAM,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC;QACxC,CAAC,CAAC,CAAC;QAEH,OAAO,QAAQ,CAAC;IACpB,CAAC;CACJ"}
@@ -0,0 +1,43 @@
1
+ /**
2
+ * OTP Step Class
3
+ *
4
+ * Reusable step sequences for OTP (TOTP/HOTP) client operations.
5
+ * Wraps common generation and verification patterns for test reuse.
6
+ */
7
+ export interface OtpClient {
8
+ generateSecret(): string;
9
+ generateTotp(secret: string): Promise<string>;
10
+ verifyTotp(token: string, secret: string): Promise<boolean>;
11
+ generateHotp(counter: number, secret: string): Promise<string>;
12
+ verifyHotp(token: string, counter: number, secret: string): Promise<boolean>;
13
+ generateKeyUri(account: string, issuer: string, secret: string): string;
14
+ }
15
+ export declare class OtpSteps {
16
+ private otpClient;
17
+ constructor(otpClient: OtpClient);
18
+ /**
19
+ * Generates a new base32 secret.
20
+ */
21
+ generateSecret(description?: string): Promise<string>;
22
+ /**
23
+ * Generates a TOTP token from a secret.
24
+ */
25
+ generateTotp(description: string, secret: string): Promise<string>;
26
+ /**
27
+ * Verifies a TOTP token against a secret.
28
+ */
29
+ verifyTotp(description: string, token: string, secret: string, expectedValid?: boolean): Promise<boolean>;
30
+ /**
31
+ * Generates an HOTP token for a given counter.
32
+ */
33
+ generateHotp(description: string, counter: number, secret: string): Promise<string>;
34
+ /**
35
+ * Verifies an HOTP token against a counter and secret.
36
+ */
37
+ verifyHotp(description: string, token: string, counter: number, secret: string, expectedValid?: boolean): Promise<boolean>;
38
+ /**
39
+ * Generates an otpauth URI for QR provisioning.
40
+ */
41
+ generateKeyUri(description: string, account: string, issuer: string, secret: string): Promise<string>;
42
+ }
43
+ //# sourceMappingURL=otp.steps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"otp.steps.d.ts","sourceRoot":"","sources":["../../../src/steps/otp.steps.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,MAAM,WAAW,SAAS;IACtB,cAAc,IAAI,MAAM,CAAC;IACzB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC9C,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC5D,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC/D,UAAU,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAC7E,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;CAC3E;AAED,qBAAa,QAAQ;IACL,OAAO,CAAC,SAAS;IAA7B,YAAoB,SAAS,EAAE,SAAS,EAAI;IAE5C;;OAEG;IACG,cAAc,CAAC,WAAW,GAAE,MAAoC,GAAG,OAAO,CAAC,MAAM,CAAC,CAUvF;IAED;;OAEG;IACG,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CASvE;IAED;;OAEG;IACG,UAAU,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,GAAE,OAAc,GAAG,OAAO,CAAC,OAAO,CAAC,CASpH;IAED;;OAEG;IACG,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CASxF;IAED;;OAEG;IACG,UAAU,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,aAAa,GAAE,OAAc,GAAG,OAAO,CAAC,OAAO,CAAC,CASrI;IAED;;OAEG;IACG,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAW1G;CACJ"}
@@ -0,0 +1,83 @@
1
+ /**
2
+ * OTP Step Class
3
+ *
4
+ * Reusable step sequences for OTP (TOTP/HOTP) client operations.
5
+ * Wraps common generation and verification patterns for test reuse.
6
+ */
7
+ import { test, expect } from '../index.js';
8
+ export class OtpSteps {
9
+ otpClient;
10
+ constructor(otpClient) {
11
+ this.otpClient = otpClient;
12
+ }
13
+ /**
14
+ * Generates a new base32 secret.
15
+ */
16
+ async generateSecret(description = 'Generate a new OTP secret') {
17
+ let secret = '';
18
+ await test.step(`Step: ${description}`, async () => {
19
+ secret = this.otpClient.generateSecret();
20
+ expect(secret).toMatch(/^[A-Z2-7]+$/);
21
+ expect(secret.length).toBeGreaterThanOrEqual(16);
22
+ });
23
+ return secret;
24
+ }
25
+ /**
26
+ * Generates a TOTP token from a secret.
27
+ */
28
+ async generateTotp(description, secret) {
29
+ let token = '';
30
+ await test.step(`Step: ${description}`, async () => {
31
+ token = await this.otpClient.generateTotp(secret);
32
+ expect(token).toMatch(/^\d{6}$/);
33
+ });
34
+ return token;
35
+ }
36
+ /**
37
+ * Verifies a TOTP token against a secret.
38
+ */
39
+ async verifyTotp(description, token, secret, expectedValid = true) {
40
+ let isValid = false;
41
+ await test.step(`Step: ${description}`, async () => {
42
+ isValid = await this.otpClient.verifyTotp(token, secret);
43
+ expect(isValid).toBe(expectedValid);
44
+ });
45
+ return isValid;
46
+ }
47
+ /**
48
+ * Generates an HOTP token for a given counter.
49
+ */
50
+ async generateHotp(description, counter, secret) {
51
+ let token = '';
52
+ await test.step(`Step: ${description}`, async () => {
53
+ token = await this.otpClient.generateHotp(counter, secret);
54
+ expect(token).toMatch(/^\d{6}$/);
55
+ });
56
+ return token;
57
+ }
58
+ /**
59
+ * Verifies an HOTP token against a counter and secret.
60
+ */
61
+ async verifyHotp(description, token, counter, secret, expectedValid = true) {
62
+ let isValid = false;
63
+ await test.step(`Step: ${description}`, async () => {
64
+ isValid = await this.otpClient.verifyHotp(token, counter, secret);
65
+ expect(isValid).toBe(expectedValid);
66
+ });
67
+ return isValid;
68
+ }
69
+ /**
70
+ * Generates an otpauth URI for QR provisioning.
71
+ */
72
+ async generateKeyUri(description, account, issuer, secret) {
73
+ let uri = '';
74
+ await test.step(`Step: ${description}`, async () => {
75
+ uri = this.otpClient.generateKeyUri(account, issuer, secret);
76
+ expect(uri).toContain('otpauth://totp/');
77
+ expect(uri).toContain('secret=');
78
+ expect(uri).toContain(`issuer=${issuer}`);
79
+ });
80
+ return uri;
81
+ }
82
+ }
83
+ //# sourceMappingURL=otp.steps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"otp.steps.js","sourceRoot":"","sources":["../../../src/steps/otp.steps.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAW3C,MAAM,OAAO,QAAQ;IACG,SAAS;IAA7B,YAAoB,SA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,GAAG,CAAC,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;YACzC,MAAM,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;YACjC,MAAM,CAAC,GAAG,CAAC,CAAC,SAAS,CAAC,UAAU,MAAM,EAAE,CAAC,CAAC;QAC9C,CAAC,CAAC,CAAC;QAEH,OAAO,GAAG,CAAC;IACf,CAAC;CACJ"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Realtime Step Class
3
+ *
4
+ * Reusable steps for WebSocket and Server-Sent Events APIs: open a
5
+ * connection, send and expect a reply, wait for an event, check that a
6
+ * connection is refused. Each method runs inside `test.step()`, so it shows
7
+ * up as one step in reports and traces.
8
+ */
9
+ import { RealtimeError } from '../fixtures/realtime.fixture.js';
10
+ import type { MessageMatcher, RealtimeClient, RealtimeWaitOptions, SseConnection, SseEvent, SseSubscribeOptions, SseWaitOptions, WebSocketConnectOptions, WebSocketConnection, WebSocketMessage } from '../fixtures/realtime.fixture.js';
11
+ export type { RealtimeClient, WebSocketConnection, WebSocketMessage, SseConnection, SseEvent } from '../fixtures/realtime.fixture.js';
12
+ type Sendable = Parameters<WebSocketConnection['send']>[0];
13
+ export declare class RealtimeSteps {
14
+ private realtimeClient;
15
+ constructor(realtimeClient: RealtimeClient);
16
+ /** Opens a WebSocket. */
17
+ connect(description: string, url?: string, options?: WebSocketConnectOptions): Promise<WebSocketConnection>;
18
+ /** Opens an SSE stream. */
19
+ subscribe(description: string, url?: string, options?: SseSubscribeOptions): Promise<SseConnection>;
20
+ /** Sends a message on a WebSocket. */
21
+ send(description: string, connection: WebSocketConnection, message: Sendable): Promise<void>;
22
+ /** Sends a message and waits for the reply that matches `reply`. */
23
+ sendAndExpect(description: string, connection: WebSocketConnection, message: Sendable, reply: MessageMatcher<WebSocketMessage>, options?: RealtimeWaitOptions): Promise<WebSocketMessage>;
24
+ /**
25
+ * Waits for a matching WebSocket message. Other clients may share the
26
+ * server, so match on something unique to this test (an order ID).
27
+ */
28
+ expectMessage(description: string, connection: WebSocketConnection, matcher?: MessageMatcher<WebSocketMessage>, options?: RealtimeWaitOptions): Promise<WebSocketMessage>;
29
+ /** Waits for a matching SSE event; `options.event` limits it to one event type. */
30
+ expectEvent(description: string, connection: SseConnection, matcher?: MessageMatcher<SseEvent>, options?: SseWaitOptions): Promise<SseEvent>;
31
+ /** Checks that no matching message arrives within `timeout` ms (default 2000). */
32
+ expectNoMessage<M extends WebSocketMessage | SseEvent>(description: string, connection: WebSocketConnection | SseConnection, matcher?: MessageMatcher<M>, timeout?: number): Promise<void>;
33
+ /** Checks that the server closes the WebSocket, optionally with this close code. */
34
+ expectClosed(description: string, connection: WebSocketConnection, code?: number, options?: RealtimeWaitOptions): Promise<void>;
35
+ /** Checks that the server refuses a WebSocket connection with this HTTP status (e.g. 401). Returns the error. */
36
+ expectConnectRejected(description: string, url: string | undefined, status: number, options?: WebSocketConnectOptions): Promise<RealtimeError>;
37
+ /** Checks that the server refuses an SSE stream with this HTTP status. Returns the error. */
38
+ expectSubscribeRejected(description: string, url: string | undefined, status: number, options?: SseSubscribeOptions): Promise<RealtimeError>;
39
+ }
40
+ //# sourceMappingURL=realtime.steps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"realtime.steps.d.ts","sourceRoot":"","sources":["../../../src/steps/realtime.steps.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAGH,OAAO,EAAE,aAAa,EAAe,MAAM,iCAAiC,CAAC;AAC7E,OAAO,KAAK,EACR,cAAc,EACd,cAAc,EACd,mBAAmB,EACnB,aAAa,EACb,QAAQ,EACR,mBAAmB,EACnB,cAAc,EACd,uBAAuB,EACvB,mBAAmB,EACnB,gBAAgB,EACnB,MAAM,iCAAiC,CAAC;AAEzC,YAAY,EAAE,cAAc,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAC;AAEtI,KAAK,QAAQ,GAAG,UAAU,C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AAC,SAAS,gBAAgB,GAAG,QAAQ,EACvD,WAAW,EAAE,MAAM,EACnB,UAAU,EAAE,mBAAmB,GAAG,aAAa,EAC/C,OAAO,CAAC,EAAE,cAAc,CAAC,CAAC,CAAC,EAC3B,OAAO,SAAO,GACf,OAAO,CAAC,IAAI,CAAC,CAQf;IAED,oFAAoF;IAC9E,YAAY,CAAC,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,mBAAmB,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAKpI;IAED,iHAAiH;IAC3G,qBAAqB,CAAC,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,uBAAuB,GAAG,OAAO,CAAC,aAAa,CAAC,CAOnJ;IAED,6FAA6F;IACvF,uBAAuB,CAAC,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,mBAAmB,GAAG,OAAO,CAAC,aAAa,CAAC,CAOjJ;CACJ"}
@@ -0,0 +1,116 @@
1
+ /**
2
+ * Realtime Step Class
3
+ *
4
+ * Reusable steps for WebSocket and Server-Sent Events APIs: open a
5
+ * connection, send and expect a reply, wait for an event, check that a
6
+ * connection is refused. Each method runs inside `test.step()`, so it shows
7
+ * up as one step in reports and traces.
8
+ */
9
+ import { test, expect } from '../index.js';
10
+ import { RealtimeError, toPredicate } from '../fixtures/realtime.fixture.js';
11
+ export class RealtimeSteps {
12
+ realtimeClient;
13
+ constructor(realtimeClient) {
14
+ this.realtimeClient = realtimeClient;
15
+ }
16
+ /** Opens a WebSocket. */
17
+ async connect(description, url, options) {
18
+ let connection;
19
+ await test.step(`Step: ${description}`, async () => {
20
+ connection = await this.realtimeClient.connect(url, options);
21
+ });
22
+ return connection;
23
+ }
24
+ /** Opens an SSE stream. */
25
+ async subscribe(description, url, options) {
26
+ let connection;
27
+ await test.step(`Step: ${description}`, async () => {
28
+ connection = await this.realtimeClient.subscribe(url, options);
29
+ });
30
+ return connection;
31
+ }
32
+ /** Sends a message on a WebSocket. */
33
+ async send(description, connection, message) {
34
+ await test.step(`Step: ${description}`, async () => {
35
+ await connection.send(message);
36
+ });
37
+ }
38
+ /** Sends a message and waits for the reply that matches `reply`. */
39
+ async sendAndExpect(description, connection, message, reply, options) {
40
+ let received;
41
+ await test.step(`Step: ${description}`, async () => {
42
+ await connection.send(message);
43
+ received = await connection.waitForMessage(reply, options);
44
+ });
45
+ return received;
46
+ }
47
+ /**
48
+ * Waits for a matching WebSocket message. Other clients may share the
49
+ * server, so match on something unique to this test (an order ID).
50
+ */
51
+ async expectMessage(description, connection, matcher, options) {
52
+ let message;
53
+ await test.step(`Step: ${description}`, async () => {
54
+ message = await connection.waitForMessage(matcher, options);
55
+ });
56
+ return message;
57
+ }
58
+ /** Waits for a matching SSE event; `options.event` limits it to one event type. */
59
+ async expectEvent(description, connection, matcher, options) {
60
+ let event;
61
+ await test.step(`Step: ${description}`, async () => {
62
+ event = await connection.waitForMessage(matcher, options);
63
+ });
64
+ return event;
65
+ }
66
+ /** Checks that no matching message arrives within `timeout` ms (default 2000). */
67
+ async expectNoMessage(description, connection, matcher, timeout = 2000) {
68
+ await test.step(`Step: ${description}`, async () => {
69
+ const before = connection.messages().length;
70
+ await new Promise((resolve) => setTimeout(resolve, timeout));
71
+ const later = connection.messages().slice(before);
72
+ const unexpected = later.filter(toPredicate(matcher));
73
+ expect(unexpected.map((m) => m.data), 'messages that should not have arrived').toEqual([]);
74
+ });
75
+ }
76
+ /** Checks that the server closes the WebSocket, optionally with this close code. */
77
+ async expectClosed(description, connection, code, options) {
78
+ await test.step(`Step: ${description}`, async () => {
79
+ const info = await connection.waitForClose(options);
80
+ if (code !== undefined)
81
+ expect(info.code, `close code (reason: ${info.reason || 'none'})`).toBe(code);
82
+ });
83
+ }
84
+ /** Checks that the server refuses a WebSocket connection with this HTTP status (e.g. 401). Returns the error. */
85
+ async expectConnectRejected(description, url, status, options) {
86
+ let error;
87
+ await test.step(`Step: ${description}`, async () => {
88
+ error = await expectRejected(() => this.realtimeClient.connect(url, options));
89
+ expect(error.status, error.message).toBe(status);
90
+ });
91
+ return error;
92
+ }
93
+ /** Checks that the server refuses an SSE stream with this HTTP status. Returns the error. */
94
+ async expectSubscribeRejected(description, url, status, options) {
95
+ let error;
96
+ await test.step(`Step: ${description}`, async () => {
97
+ error = await expectRejected(() => this.realtimeClient.subscribe(url, options));
98
+ expect(error.status, error.message).toBe(status);
99
+ });
100
+ return error;
101
+ }
102
+ }
103
+ async function expectRejected(open) {
104
+ let connection;
105
+ const error = await open().then((c) => {
106
+ connection = c;
107
+ return undefined;
108
+ }, (e) => e);
109
+ if (connection) {
110
+ await connection.close();
111
+ throw new Error('expected the server to refuse the connection, but it opened');
112
+ }
113
+ expect(error).toBeInstanceOf(RealtimeError);
114
+ return error;
115
+ }
116
+ //# sourceMappingURL=realtime.steps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"realtime.steps.js","sourceRoot":"","sources":["../../../src/steps/realtime.steps.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAkB7E,MAAM,OAAO,aAAa;IACF,cAAc;IAAlC,YAAoB,cAA8B;8BAA9B,cAAc;IAAmB,CAAC;IAEtD,yBAAyB;IACzB,KAAK,CAAC,OAAO,CAAC,WAAmB,EAAE,GAAY,EAAE,OAAiC;QAC9E,IAAI,UAAgC,CAAC;QACrC,MAAM,IAAI,CAAC,IAAI,CAAC,SAAS,WAAW,EAAE,EAAE,KAAK,IAAI,EAAE;YAC/C,UAAU,GAAG,MAAM,IAAI,CAAC,cAAc,CAAC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AAE,OAAO,CAAC,CAAC,CAAC;YAChF,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACrD,CAAC,CAAC,CAAC;QACH,OAAO,KAAK,CAAC;IACjB,CAAC;CACJ;AAED,KAAK,UAAU,cAAc,CAAC,IAAkD;IAC5E,IAAI,UAAqD,CAAC;IAC1D,MAAM,KAAK,GAAG,MAAM,IAAI,EAAE,CAAC,IAAI,CAC3B,CAAC,CAAC,EAAE,EAAE;QACF,UAAU,GAAG,CAAC,CAAC;QACf,OAAO,SAAS,CAAC;IACrB,CAAC,EACD,CAAC,CAAU,EAAE,EAAE,CAAC,CAAC,CACpB,CAAC;IACF,IAAI,UAAU,EAAE,CAAC;QACb,MAAM,UAAU,CAAC,KAAK,EAAE,CAAC;QACzB,MAAM,IAAI,KAAK,CAAC,6DAA6D,CAAC,CAAC;IACnF,CAAC;IACD,MAAM,CAAC,KAAK,CAAC,CAAC,cAAc,CAAC,aAAa,CAAC,CAAC;IAC5C,OAAO,KAAsB,CAAC;AAClC,CAAC"}
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Redis Step Class
3
+ *
4
+ * Reusable step sequences for Redis client operations.
5
+ * Wraps common key-value and pub/sub patterns for test reuse.
6
+ */
7
+ export interface RedisClient {
8
+ get(key: string): Promise<string | null>;
9
+ set(key: string, value: string, ttl?: number): Promise<void>;
10
+ del(key: string): Promise<number>;
11
+ publish(channel: string, message: string): Promise<number>;
12
+ subscribe(channel: string, options?: {
13
+ timeout?: number;
14
+ }): Promise<string | null>;
15
+ }
16
+ export declare class RedisSteps {
17
+ private redisClient;
18
+ constructor(redisClient: RedisClient);
19
+ /**
20
+ * Sets a key-value pair with optional TTL.
21
+ */
22
+ set(description: string, key: string, value: string, ttl?: number): Promise<void>;
23
+ /**
24
+ * Gets a value by key and returns it.
25
+ */
26
+ get(description: string, key: string): Promise<string | null>;
27
+ /**
28
+ * Gets a value and asserts it equals expected.
29
+ */
30
+ getExpectValue(description: string, key: string, expected: string): Promise<void>;
31
+ /**
32
+ * Gets a value and asserts it is null.
33
+ */
34
+ getExpectNull(description: string, key: string): Promise<void>;
35
+ /**
36
+ * Deletes a key and returns the count of removed keys.
37
+ */
38
+ del(description: string, key: string): Promise<number>;
39
+ /**
40
+ * Deletes a key and asserts exactly one key was removed.
41
+ */
42
+ delExpectRemoved(description: string, key: string): Promise<void>;
43
+ /**
44
+ * Publishes a message to a channel and returns the receiver count.
45
+ */
46
+ publish(description: string, channel: string, message: string): Promise<number>;
47
+ /**
48
+ * Subscribes to a channel and returns the received message.
49
+ */
50
+ subscribe(description: string, channel: string, options?: {
51
+ timeout?: number;
52
+ }): Promise<string | null>;
53
+ }
54
+ //# sourceMappingURL=redis.steps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"redis.steps.d.ts","sourceRoot":"","sources":["../../../src/steps/redis.steps.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,MAAM,WAAW,WAAW;IACxB,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACzC,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7D,GAAG,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAClC,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAC3D,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;CACtF;AAED,qBAAa,UAAU;IACP,OAAO,CAAC,WAAW;IAA/B,YAAoB,WAAW,EAAE,WAAW,EAAI;IAEhD;;OAEG;IACG,GAAG,CAAC,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAItF;IAED;;OAEG;IACG,GAAG,CAAC,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAQlE;IAED;;OAEG;IACG,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAKtF;IAED;;OAEG;IACG,aAAa,CAAC,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAKnE;IAED;;OAEG;IACG,GAAG,CAAC,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAQ3D;IAED;;OAEG;IACG,gBAAgB,CAAC,WAAW,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAKtE;IAED;;OAEG;IACG,OAAO,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAQpF;IAED;;OAEG;IACG,SAAS,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAQ5G;CACJ"}
@@ -0,0 +1,89 @@
1
+ /**
2
+ * Redis Step Class
3
+ *
4
+ * Reusable step sequences for Redis client operations.
5
+ * Wraps common key-value and pub/sub patterns for test reuse.
6
+ */
7
+ import { test, expect } from '../index.js';
8
+ export class RedisSteps {
9
+ redisClient;
10
+ constructor(redisClient) {
11
+ this.redisClient = redisClient;
12
+ }
13
+ /**
14
+ * Sets a key-value pair with optional TTL.
15
+ */
16
+ async set(description, key, value, ttl) {
17
+ await test.step(`Step: ${description}`, async () => {
18
+ await this.redisClient.set(key, value, ttl);
19
+ });
20
+ }
21
+ /**
22
+ * Gets a value by key and returns it.
23
+ */
24
+ async get(description, key) {
25
+ let result = null;
26
+ await test.step(`Step: ${description}`, async () => {
27
+ result = await this.redisClient.get(key);
28
+ });
29
+ return result;
30
+ }
31
+ /**
32
+ * Gets a value and asserts it equals expected.
33
+ */
34
+ async getExpectValue(description, key, expected) {
35
+ await test.step(`Step: ${description}`, async () => {
36
+ const value = await this.redisClient.get(key);
37
+ expect(value).toBe(expected);
38
+ });
39
+ }
40
+ /**
41
+ * Gets a value and asserts it is null.
42
+ */
43
+ async getExpectNull(description, key) {
44
+ await test.step(`Step: ${description}`, async () => {
45
+ const value = await this.redisClient.get(key);
46
+ expect(value).toBeNull();
47
+ });
48
+ }
49
+ /**
50
+ * Deletes a key and returns the count of removed keys.
51
+ */
52
+ async del(description, key) {
53
+ let removed = 0;
54
+ await test.step(`Step: ${description}`, async () => {
55
+ removed = await this.redisClient.del(key);
56
+ });
57
+ return removed;
58
+ }
59
+ /**
60
+ * Deletes a key and asserts exactly one key was removed.
61
+ */
62
+ async delExpectRemoved(description, key) {
63
+ await test.step(`Step: ${description}`, async () => {
64
+ const removed = await this.redisClient.del(key);
65
+ expect(removed).toBe(1);
66
+ });
67
+ }
68
+ /**
69
+ * Publishes a message to a channel and returns the receiver count.
70
+ */
71
+ async publish(description, channel, message) {
72
+ let receivers = 0;
73
+ await test.step(`Step: ${description}`, async () => {
74
+ receivers = await this.redisClient.publish(channel, message);
75
+ });
76
+ return receivers;
77
+ }
78
+ /**
79
+ * Subscribes to a channel and returns the received message.
80
+ */
81
+ async subscribe(description, channel, options) {
82
+ let received = null;
83
+ await test.step(`Step: ${description}`, async () => {
84
+ received = await this.redisClient.subscribe(channel, options);
85
+ });
86
+ return received;
87
+ }
88
+ }
89
+ //# sourceMappingURL=redis.steps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"redis.steps.js","sourceRoot":"","sources":["../../../src/steps/redis.steps.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAU3C,MAAM,OAAO,UAAU;IACC,WAAW;IAA/B,YAAoB,WAAwB;2BAAxB,WAAW;IAAgB,CAAC;IAEhD;;OAEG;IACH,KAAK,CAAC,GAAG,CAAC,WAAmB,EAAE,GAAW,EAAE,KAAa,EAAE,GAAY;QACnE,MAAM,IAAI,CAAC,IAAI,CAAC,SAAS,WAAW,EAAE,EAAE,KAAK,IAAI,EAAE;YAC/C,MAAM,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,EAAE,GAAG,CAAC,CAAC;QAChD,CAAC,CAAC,CAAC;IACP,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,GAAG,CAAC,WAAmB,EAAE,GAAW;QACtC,IAAI,MAAM,GAAkB,IAAI,CAAC;QAEjC,MAAM,IAAI,CAAC,IAAI,CAAC,SAAS,WAAW,EAAE,EAAE,KAAK,IAAI,EAAE;YAC/C,MAAM,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAC7C,CAAC,CAAC,CAAC;QAEH,OAAO,MAAM,CAAC;IAClB,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,cAAc,CAAC,WAAmB,EAAE,GAAW,EAAE,QAAgB;QACnE,MAAM,IAAI,CAAC,IAAI,CAAC,SAAS,WAAW,EAAE,EAAE,KAAK,IAAI,EAAE;YAC/C,MAAM,KAAK,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;YAC9C,MAAM,CAAC,K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YAC/C,SAAS,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QACjE,CAAC,CAAC,CAAC;QAEH,OAAO,SAAS,CAAC;IACrB,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,SAAS,CAAC,WAAmB,EAAE,OAAe,EAAE,OAA8B;QAChF,IAAI,QAAQ,GAAkB,IAAI,CAAC;QAEnC,MAAM,IAAI,CAAC,IAAI,CAAC,SAAS,WAAW,EAAE,EAAE,KAAK,IAAI,EAAE;YAC/C,QAAQ,GAAG,MAAM,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;QAClE,CAAC,CAAC,CAAC;QAEH,OAAO,QAAQ,CAAC;IACpB,CAAC;CACJ"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Search Step Class
3
+ *
4
+ * Reusable steps for Elasticsearch / OpenSearch (`SearchSteps`). Each method
5
+ * runs inside `test.step()`, so it shows up as one step in reports and traces.
6
+ */
7
+ import type { IndexOptions, IndexResult, SearchClient, SearchHit, SearchOptions, SearchQuery, SearchResult, SearchWaitOptions } from '../fixtures/search.fixture.js';
8
+ export type { SearchClient, SearchHit, SearchResult } from '../fixtures/search.fixture.js';
9
+ export declare class SearchSteps {
10
+ private searchClient;
11
+ constructor(searchClient: SearchClient);
12
+ /** Indexes a document (searchable at once, undone after the test). */
13
+ index<T extends Record<string, unknown>>(description: string, index: string, doc: T, options?: IndexOptions): Promise<IndexResult>;
14
+ /** Waits until a document matches the query and returns it. */
15
+ expectDocument<T = Record<string, unknown>>(description: string, index: string, query?: SearchQuery, options?: SearchWaitOptions & SearchOptions): Promise<SearchHit<T>>;
16
+ /** Waits for a matching document and checks its source contains `expected` (toMatchObject). */
17
+ expectDocumentMatching<T = Record<string, unknown>>(description: string, index: string, query: SearchQuery, expected: Record<string, unknown>, options?: SearchWaitOptions): Promise<SearchHit<T>>;
18
+ /** Waits until exactly `count` documents match (e.g. 0 after a delete). */
19
+ expectCount(description: string, index: string, query: SearchQuery | undefined, count: number, options?: SearchWaitOptions): Promise<void>;
20
+ /** Searches and checks the IDs of the hits, in order (e.g. a relevance ranking). */
21
+ expectRanking(description: string, index: string, query: SearchQuery, ids: string[], options?: SearchOptions): Promise<SearchResult<Record<string, unknown>>>;
22
+ }
23
+ //# sourceMappingURL=search.steps.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search.steps.d.ts","sourceRoot":"","sources":["../../../src/steps/search.steps.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,WAAW,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAErK,YAAY,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAE3F,qBAAa,WAAW;IACR,OAAO,CAAC,YAAY;IAAhC,YAAoB,YAAY,EAAE,YAAY,EAAI;IAElD,sEAAsE;IAChE,KAAK,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,WAAW,CAAC,CAMvI;IAED,+DAA+D;IACzD,cAAc,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,iBAAiB,GAAG,aAAa,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAM7K;IAED,+FAA+F;IACzF,sBAAsB,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,OAAO,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAOvM;IAED,2EAA2E;IACrE,WAAW,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,GAAG,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAI/I;IAED,oFAAoF;IAC9E,aAAa,CAAC,WAAW,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,MAAM,EAAE,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,OAAO,CAAC,YAAY,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC,CAOlK;CACJ"}
@@ -0,0 +1,54 @@
1
+ /**
2
+ * Search Step Class
3
+ *
4
+ * Reusable steps for Elasticsearch / OpenSearch (`SearchSteps`). Each method
5
+ * runs inside `test.step()`, so it shows up as one step in reports and traces.
6
+ */
7
+ import { test, expect } from '../index.js';
8
+ export class SearchSteps {
9
+ searchClient;
10
+ constructor(searchClient) {
11
+ this.searchClient = searchClient;
12
+ }
13
+ /** Indexes a document (searchable at once, undone after the test). */
14
+ async index(description, index, doc, options) {
15
+ let result;
16
+ await test.step(`Step: ${description}`, async () => {
17
+ result = await this.searchClient.index(index, doc, options);
18
+ });
19
+ return result;
20
+ }
21
+ /** Waits until a document matches the query and returns it. */
22
+ async expectDocument(description, index, query, options) {
23
+ let hit;
24
+ await test.step(`Step: ${description}`, async () => {
25
+ hit = await this.searchClient.waitForDocument(index, query, options);
26
+ });
27
+ return hit;
28
+ }
29
+ /** Waits for a matching document and checks its source contains `expected` (toMatchObject). */
30
+ async expectDocumentMatching(description, index, query, expected, options) {
31
+ let hit;
32
+ await test.step(`Step: ${description}`, async () => {
33
+ hit = await this.searchClient.waitForDocument(index, query, options);
34
+ expect(hit.source, `source of ${index}/${hit.id}`).toMatchObject(expected);
35
+ });
36
+ return hit;
37
+ }
38
+ /** Waits until exactly `count` documents match (e.g. 0 after a delete). */
39
+ async expectCount(description, index, query, count, options) {
40
+ await test.step(`Step: ${description}`, async () => {
41
+ await this.searchClient.waitForCount(index, query, count, options);
42
+ });
43
+ }
44
+ /** Searches and checks the IDs of the hits, in order (e.g. a relevance ranking). */
45
+ async expectRanking(description, index, query, ids, options) {
46
+ let result;
47
+ await test.step(`Step: ${description}`, async () => {
48
+ result = await this.searchClient.search(index, query, { size: ids.length, ...options });
49
+ expect(result.hits.map((h) => h.id), `hits for ${JSON.stringify(query)} in ${index}`).toEqual(ids);
50
+ });
51
+ return result;
52
+ }
53
+ }
54
+ //# sourceMappingURL=search.steps.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"search.steps.js","sourceRoot":"","sources":["../../../src/steps/search.steps.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAK3C,MAAM,OAAO,WAAW;IACA,YAAY;IAAhC,YAAoB,YAA0B;4BAA1B,YAAY;IAAiB,CAAC;IAElD,sEAAsE;IACtE,KAAK,CAAC,KAAK,CAAoC,WAAmB,EAAE,KAAa,EAAE,GAAM,EAAE,OAAsB;QAC7G,IAAI,MAAoB,CAAC;QACzB,MAAM,IAAI,CAAC,IAAI,CAAC,SAAS,WAAW,EAAE,EAAE,KAAK,IAAI,EAAE;YAC/C,MAAM,GAAG,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC;QAChE,CAAC,CAAC,CAAC;QACH,OAAO,MAAM,CAAC;IAClB,CAAC;IAED,+D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