@inluxc/propmaster 0.0.0-stage → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +379 -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,75 @@
1
+ /**
2
+ * Kafka integration fixture for Playwright tests.
3
+ *
4
+ * Provides a KafkaClient with produce() and consume() methods,
5
+ * managing producer and consumer lifecycle per test with unique
6
+ * consumer group IDs for message isolation.
7
+ *
8
+ * Runs on kafkajs (the default) or, with `driver: 'confluent'` /
9
+ * PW_KAFKA_DRIVER=confluent, on Confluent's @confluentinc/kafka-javascript
10
+ * (librdkafka). Both behave the same here; see kafka-driver.ts.
11
+ */
12
+ import { type ContainerManager } from '../containers/container-manager.js';
13
+ import { KafkaFixtureConfig } from '../config/schema.js';
14
+ import { type KafkaLike } from './kafka-driver.js';
15
+ /**
16
+ * A single Kafka message with metadata.
17
+ */
18
+ export interface KafkaMessage {
19
+ key: string | null;
20
+ value: string | Buffer;
21
+ topic: string;
22
+ partition: number;
23
+ offset: string;
24
+ }
25
+ /**
26
+ * Options for consuming messages from a topic.
27
+ */
28
+ export interface ConsumeOptions {
29
+ /** Maximum time to wait for messages in ms (default: 30000). */
30
+ timeout?: number;
31
+ /** Maximum number of messages to consume. */
32
+ count?: number;
33
+ /** Whether to consume from the beginning of the topic. */
34
+ fromBeginning?: boolean;
35
+ }
36
+ /**
37
+ * Client interface exposed to tests for Kafka interactions.
38
+ */
39
+ export interface KafkaClient {
40
+ produce(topic: string, messages: Array<{
41
+ key?: string | null;
42
+ value: string | Buffer;
43
+ }>): Promise<void>;
44
+ consume(topic: string, options?: ConsumeOptions): Promise<KafkaMessage[]>;
45
+ disconnect(): Promise<void>;
46
+ /** The library underneath: `kafkajs` or `confluent`. */
47
+ readonly driver: KafkaLike['driver'];
48
+ }
49
+ /**
50
+ * Generates a unique consumer group ID for test isolation.
51
+ */
52
+ export declare function generateGroupId(testId: string): string;
53
+ /**
54
+ * Builds the client on a connection. Connects the producer and an admin
55
+ * client (for topic lookups); each consume() call connects a consumer in the
56
+ * test's group, so committed offsets carry over from one call to the next.
57
+ */
58
+ export declare function createKafkaClient(kafka: KafkaLike, config: KafkaFixtureConfig, groupId: string): Promise<KafkaClient>;
59
+ /**
60
+ * Kafka fixture definition for use with Playwright's test.extend().
61
+ *
62
+ * Lifecycle:
63
+ * 1. Setup: connect the producer and an admin client on the configured driver
64
+ * 2. Provide KafkaClient to test via `use()`; consume() connects a consumer in the test's own group
65
+ * 3. Teardown: disconnect everything (within 5s, then give up)
66
+ */
67
+ export declare const kafkaFixture: {
68
+ kafkaClient: ({ kafka: kafkaConfig, stagehandContainers }: {
69
+ kafka: KafkaFixtureConfig | undefined;
70
+ stagehandContainers: ContainerManager;
71
+ }, use: (client: KafkaClient) => Promise<void>, testInfo: {
72
+ testId: string;
73
+ }) => Promise<void>;
74
+ };
75
+ //# sourceMappingURL=kafka.fixture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kafka.fixture.d.ts","sourceRoot":"","sources":["../../../src/fixtures/kafka.fixture.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAqB,KAAK,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC9F,OAAO,EAAE,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAEzD,OAAO,EAA2E,KAAK,SAAS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kB,GAAG,SAAS,CAAC;QAAC,mBAAmB,EAAE,gBAAgB,CAAA;KAAE,OACxH,CAAC,MAAM,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,YACjC;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE;CAmBnC,CAAC"}
@@ -0,0 +1,188 @@
1
+ /**
2
+ * Kafka integration fixture for Playwright tests.
3
+ *
4
+ * Provides a KafkaClient with produce() and consume() methods,
5
+ * managing producer and consumer lifecycle per test with unique
6
+ * consumer group IDs for message isolation.
7
+ *
8
+ * Runs on kafkajs (the default) or, with `driver: 'confluent'` /
9
+ * PW_KAFKA_DRIVER=confluent, on Confluent's @confluentinc/kafka-javascript
10
+ * (librdkafka). Both behave the same here; see kafka-driver.ts.
11
+ */
12
+ import { parseContainerEnv } from '../containers/container-manager.js';
13
+ import { FixtureInitError, FixtureOperationError } from '../errors.js';
14
+ import { createKafka, kafkaDriverOf } from './kafka-driver.js';
15
+ /**
16
+ * Generates a unique consumer group ID for test isolation.
17
+ */
18
+ export function generateGroupId(testId) {
19
+ return `test-${testId}-${Date.now()}`;
20
+ }
21
+ const reasonOf = (error) => (error instanceof Error ? error.message : String(error));
22
+ /**
23
+ * Builds the client on a connection. Connects the producer and an admin
24
+ * client (for topic lookups); each consume() call connects a consumer in the
25
+ * test's group, so committed offsets carry over from one call to the next.
26
+ */
27
+ export async function createKafkaClient(kafka, config, groupId) {
28
+ const disconnectTimeout = config.disconnectTimeout ?? 5000;
29
+ const brokerAddress = config.brokers.join(',');
30
+ const producer = kafka.producer();
31
+ const admin = kafka.admin();
32
+ const consumers = new Set();
33
+ try {
34
+ await producer.connect();
35
+ await admin.connect();
36
+ }
37
+ catch (error) {
38
+ await Promise.allSettled([producer.disconnect(), admin.disconnect()]);
39
+ throw new FixtureInitError('kafka', 'connect', { brokerAddress, driver: kafka.driver, reason: reasonOf(error) }, error instanceof Error ? error : undefined);
40
+ }
41
+ const closeConsumer = async (consumer) => {
42
+ consumers.delete(consumer);
43
+ await consumer.stop().catch(() => undefined);
44
+ await consumer.disconnect().catch(() => undefined);
45
+ };
46
+ return {
47
+ driver: kafka.driver,
48
+ /**
49
+ * Produce messages to a Kafka topic.
50
+ * Throws FixtureOperationError with topic on failure.
51
+ */
52
+ async produce(topic, messages) {
53
+ try {
54
+ await producer.send({ topic, messages: messages.map((msg) => ({ key: msg.key ?? null, value: msg.value })) });
55
+ }
56
+ catch (error) {
57
+ throw new FixtureOperationError('kafka', 'produce', { topic, reason: reasonOf(error) }, error instanceof Error ? error : undefined);
58
+ }
59
+ },
60
+ /**
61
+ * Consume messages from a Kafka topic.
62
+ * Returns an empty array if the topic doesn't exist or the timeout expires with no messages received.
63
+ */
64
+ async consume(topic, options) {
65
+ const timeout = options?.timeout ?? 30000;
66
+ const maxCount = options?.count;
67
+ const messages = [];
68
+ // A topic that doesn't exist has no messages: return at once instead of waiting out the timeout.
69
+ const topics = await admin.listTopics().catch(() => undefined);
70
+ if (topics && !topics.includes(topic))
71
+ return [];
72
+ // Offsets are committed by hand, for the messages returned only: both libraries fetch
73
+ // ahead, and an auto-commit would also cover messages read after `count` was reached.
74
+ const consumer = kafka.consumer({ groupId, fromBeginning: options?.fromBeginning ?? false, autoCommit: false });
75
+ consumers.add(consumer);
76
+ try {
77
+ await consumer.connect();
78
+ await consumer.subscribe({ topic });
79
+ }
80
+ catch (error) {
81
+ await closeConsumer(consumer);
82
+ if (!topics)
83
+ return []; // metadata unavailable: same as an unknown topic
84
+ throw new FixtureOperationError('kafka', 'consume', { topic, reason: reasonOf(error) }, error instanceof Error ? error : undefined);
85
+ }
86
+ await new Promise((resolve) => {
87
+ let resolved = false;
88
+ const finish = () => {
89
+ if (resolved)
90
+ return;
91
+ resolved = true;
92
+ clearTimeout(timeoutHandle);
93
+ resolve();
94
+ };
95
+ const timeoutHandle = setTimeout(finish, timeout);
96
+ consumer.run({
97
+ eachMessage: async ({ topic: msgTopic, partition, message }) => {
98
+ if (resolved || (maxCount !== undefined && messages.length >= maxCount))
99
+ return;
100
+ messages.push({
101
+ key: message.key ? message.key.toString() : null,
102
+ value: message.value ? message.value.toString() : '',
103
+ topic: msgTopic,
104
+ partition,
105
+ offset: message.offset,
106
+ });
107
+ if (maxCount !== undefined && messages.length >= maxCount)
108
+ finish();
109
+ },
110
+ }).catch(finish);
111
+ });
112
+ // Commit what was returned, so the next consume() in this test goes on from there.
113
+ const next = new Map();
114
+ for (const m of messages)
115
+ next.set(m.partition, Math.max(next.get(m.partition) ?? 0, Number(m.offset) + 1));
116
+ if (next.size) {
117
+ await consumer.commitOffsets([...next].map(([partition, offset]) => ({ topic, partition, offset: String(offset) }))).catch(() => undefined);
118
+ }
119
+ await closeConsumer(consumer);
120
+ return maxCount !== undefined ? messages.slice(0, maxCount) : messages;
121
+ },
122
+ /**
123
+ * Disconnect producer, admin and any consumer still open, within the disconnect timeout.
124
+ */
125
+ async disconnect() {
126
+ await withTimeout(async () => {
127
+ await Promise.allSettled([...consumers].map(closeConsumer));
128
+ await Promise.allSettled([producer.disconnect(), admin.disconnect()]);
129
+ }, disconnectTimeout);
130
+ },
131
+ };
132
+ }
133
+ /** Runs `work`, giving up (without failing) after `timeout` ms. */
134
+ async function withTimeout(work, timeout) {
135
+ let timer;
136
+ await Promise.race([work(), new Promise((resolve) => { timer = setTimeout(resolve, timeout); })]);
137
+ clearTimeout(timer);
138
+ }
139
+ /**
140
+ * Kafka fixture definition for use with Playwright's test.extend().
141
+ *
142
+ * Lifecycle:
143
+ * 1. Setup: connect the producer and an admin client on the configured driver
144
+ * 2. Provide KafkaClient to test via `use()`; consume() connects a consumer in the test's own group
145
+ * 3. Teardown: disconnect everything (within 5s, then give up)
146
+ */
147
+ export const kafkaFixture = {
148
+ kafkaClient: async ({ kafka: kafkaConfig, stagehandContainers }, use, testInfo) => {
149
+ // Use config from project `use` block if provided, otherwise fall back to env vars
150
+ // With `container` set, start (or reuse) this worker's Kafka broker.
151
+ const config = await stagehandContainers.kafka(kafkaConfig ?? getKafkaConfig());
152
+ let kafka;
153
+ try {
154
+ kafka = await createKafka(config, { clientId: config.clientId ?? 'playwright-test' });
155
+ }
156
+ catch (error) {
157
+ if (error.name === 'MissingPackageError')
158
+ throw error;
159
+ throw new FixtureInitError('kafka', 'connect', { brokerAddress: config.brokers.join(','), reason: reasonOf(error) }, error instanceof Error ? error : undefined);
160
+ }
161
+ const client = await createKafkaClient(kafka, config, generateGroupId(testInfo.testId));
162
+ try {
163
+ await use(client);
164
+ }
165
+ finally {
166
+ await client.disconnect();
167
+ }
168
+ },
169
+ };
170
+ /**
171
+ * Reads Kafka configuration from environment variables or returns defaults.
172
+ */
173
+ function getKafkaConfig() {
174
+ const brokersEnv = process.env.PW_KAFKA_BROKERS;
175
+ const brokers = brokersEnv ? brokersEnv.split(',').map((b) => b.trim()) : ['localhost:9092'];
176
+ const config = {
177
+ brokers,
178
+ clientId: process.env.PW_KAFKA_CLIENT_ID ?? 'playwright-test',
179
+ ssl: process.env.PW_KAFKA_SSL === 'true',
180
+ disconnectTimeout: process.env.PW_KAFKA_DISCONNECT_TIMEOUT
181
+ ? parseInt(process.env.PW_KAFKA_DISCONNECT_TIMEOUT, 10)
182
+ : 5000,
183
+ container: process.env.PW_KAFKA_CONTAINER ? parseContainerEnv(process.env.PW_KAFKA_CONTAINER) : undefined,
184
+ ...(process.env.PW_KAFKA_DRIVER ? { driver: kafkaDriverOf({}, process.env) } : {}),
185
+ };
186
+ return config;
187
+ }
188
+ //# sourceMappingURL=kafka.fixture.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"kafka.fixture.js","sourceRoot":"","sources":["../../../src/fixtures/kafka.fixture.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,iBAAiB,EAAyB,MAAM,oCAAoC,CAAC;AAE9F,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,aAAa,EAAuF,MAAM,mBAAmB,CAAC;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B,CAAC,CAAC;IAE7F,MAAM,MAAM,GAAuB;QAC/B,OAAO;QACP,QAAQ,EAAE,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,iBAAiB;QAC7D,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,YAAY,KAAK,MAAM;QACxC,iBAAiB,EAAE,OAAO,CAAC,GAAG,CAAC,2BAA2B;YACtD,CAAC,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,2BAA2B,EAAE,EAAE,CAAC;YACvD,CAAC,CAAC,IAAI;QACV,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC,CAAC,iBAAiB,CAAC,OAAO,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC,SAAS;QACzG,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,aAAa,CAAC,EAAE,EAAE,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACrF,CAAC;IAEF,OAAO,MAAM,CAAC;AAClB,CAAC"}
@@ -0,0 +1,142 @@
1
+ /**
2
+ * Mock-server fixture: stub the third-party APIs your backend calls (payment
3
+ * providers, email APIs, partner services) and check the calls it made.
4
+ *
5
+ * Backed by WireMock (https://wiremock.org/) through its admin API, with
6
+ * Node's built-in fetch, so it needs no package. Point the application under
7
+ * test at WireMock's URL instead of the real provider.
8
+ *
9
+ * Isolation: stubs live on a shared server. Each test's stubs are tagged with
10
+ * the test's ID and removed when it ends, and `requests()`/`verify()` only
11
+ * see calls made since the test started. Two parallel tests that stub the
12
+ * same request with different answers still clash; match on a value unique to
13
+ * the test (an order ID, an email) or run those tests serially.
14
+ */
15
+ import type { MockServerConfig } from '../config/schema.js';
16
+ type Matcher = string | RegExp;
17
+ /** Which requests a stub answers, or which recorded requests to look for. */
18
+ export interface RequestMatch {
19
+ /** HTTP method (default: any). */
20
+ method?: string;
21
+ /** Exact path, without the query string, e.g. `/v1/charges`. */
22
+ path?: string;
23
+ /**
24
+ * Path pattern. A RegExp matches anywhere in the path, as in JavaScript;
25
+ * a string is a WireMock regex that must match the whole path.
26
+ */
27
+ pathPattern?: Matcher;
28
+ /** Query parameters: exact value, or a RegExp (matches anywhere in the value, flags `i`/`s` honoured). */
29
+ query?: Record<string, Matcher>;
30
+ /** Headers: exact value, or a RegExp. */
31
+ headers?: Record<string, Matcher>;
32
+ /** JSON the body must contain (extra fields and array order are ignored). */
33
+ body?: unknown;
34
+ /** A substring the raw body must contain. */
35
+ bodyContains?: string;
36
+ }
37
+ export interface StubResponse {
38
+ status?: number;
39
+ /** JSON body; sets `Content-Type: application/json`. */
40
+ json?: unknown;
41
+ /** Raw body. */
42
+ body?: string;
43
+ headers?: Record<string, string>;
44
+ /** Delay before responding, in ms. */
45
+ delayMs?: number;
46
+ /** Simulate a broken connection instead of responding. */
47
+ fault?: 'CONNECTION_RESET_BY_PEER' | 'EMPTY_RESPONSE' | 'MALFORMED_RESPONSE_CHUNK' | 'RANDOM_DATA_THEN_CLOSE';
48
+ }
49
+ export interface Stub {
50
+ id: string;
51
+ /** Removes the stub now (it's removed at the end of the test anyway). */
52
+ remove(): Promise<void>;
53
+ }
54
+ export interface RecordedRequest {
55
+ method: string;
56
+ /** Path and query string, e.g. `/v1/charges?expand=customer`. */
57
+ url: string;
58
+ path: string;
59
+ query: Record<string, string>;
60
+ headers: Record<string, string>;
61
+ body: string;
62
+ /** The body parsed as JSON, or undefined when it isn't JSON. */
63
+ json: unknown;
64
+ date: Date;
65
+ /** Whether a stub answered it. */
66
+ matched: boolean;
67
+ }
68
+ /** Client exposed to tests as `mockServer`. */
69
+ export interface MockServer {
70
+ /** Base URL to give the application under test, e.g. `http://localhost:8089`. */
71
+ readonly url: string;
72
+ /** Answers matching requests with `response` until the test ends. */
73
+ stub(match: RequestMatch, response: StubResponse): Promise<Stub>;
74
+ /** Answers matching requests with each response in turn, then keeps repeating the last one (e.g. fail twice, then succeed). */
75
+ stubSequence(match: RequestMatch, responses: StubResponse[]): Promise<Stub>;
76
+ /** Requests received since the test started, oldest first, optionally filtered. */
77
+ requests(match?: RequestMatch): Promise<RecordedRequest[]>;
78
+ /**
79
+ * Checks how many matching requests arrived since the test started
80
+ * (`times`, default: at least one). Fails with the closest requests that
81
+ * didn't match.
82
+ */
83
+ verify(match: RequestMatch, options?: {
84
+ times?: number;
85
+ atLeast?: number;
86
+ }): Promise<RecordedRequest[]>;
87
+ }
88
+ /**
89
+ * WireMock (Java) regexes must match the whole value; a JavaScript RegExp
90
+ * matches anywhere. Wrap RegExps so they keep their JavaScript meaning
91
+ * (anchors still work: `.*` can be empty). Strings are passed as-is.
92
+ */
93
+ export declare function toJavaRegex(m: RegExp | string): string;
94
+ /** Translates a RequestMatch into a WireMock request pattern. */
95
+ export declare function toWireMockPattern(match: RequestMatch): Record<string, unknown>;
96
+ /** Translates a StubResponse into a WireMock response definition. */
97
+ export declare function toWireMockResponse(response: StubResponse): Record<string, unknown>;
98
+ type WireMockLoggedRequest = {
99
+ method: string;
100
+ url: string;
101
+ headers?: Record<string, string | string[]>;
102
+ body?: string;
103
+ loggedDate: number;
104
+ };
105
+ export declare function toRecordedRequest(r: WireMockLoggedRequest, matched: boolean): RecordedRequest;
106
+ export declare function describeMatch(match: RequestMatch): string;
107
+ /**
108
+ * How close a recorded request is to what was expected, for failure messages:
109
+ * method, path closeness, query keys, and expected body values found in it.
110
+ * On a shared server this puts the test's own near-miss ahead of other tests' calls.
111
+ */
112
+ export declare function similarity(request: RecordedRequest, match: RequestMatch): number;
113
+ /** WireMock's admin API (`/__admin`). */
114
+ export declare class WireMockAdmin {
115
+ private readonly admin;
116
+ constructor(adminUrl: string);
117
+ private call;
118
+ /** Checks the server is up and returns its clock, so journal times can be compared without clock skew. */
119
+ health(): Promise<Date>;
120
+ addMapping(mapping: Record<string, unknown>): Promise<string>;
121
+ removeMapping(id: string): Promise<void>;
122
+ removeByMetadata(path: string, value: string): Promise<void>;
123
+ findRequests(pattern: Record<string, unknown>): Promise<WireMockLoggedRequest[]>;
124
+ unmatchedUrls(): Promise<Set<string>>;
125
+ }
126
+ /** Builds the test-facing client. `testTag` marks this test's stubs; `since` scopes the journal. */
127
+ export declare function createMockServer(admin: WireMockAdmin, baseUrl: string, testTag: string, since: Date): MockServer;
128
+ /**
129
+ * Playwright fixture: `mockServer`. Checks WireMock is up, gives the test a
130
+ * client, and removes the test's stubs when it ends.
131
+ */
132
+ export declare const mockServerFixture: {
133
+ mockServer: ({ mockConfig }: {
134
+ mockConfig: MockServerConfig;
135
+ }, use: (server: MockServer) => Promise<void>, testInfo: {
136
+ testId: string;
137
+ repeatEachIndex: number;
138
+ retry: number;
139
+ }) => Promise<void>;
140
+ };
141
+ export {};
142
+ //# sourceMappingURL=mock-server.fixture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mock-server.fixture.d.ts","sourceRoot":"","sources":["../../../src/fixtures/mock-server.fixture.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAGH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAK5D,KAAK,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAE/B,6EAA6E;AAC7E,MAAM,WAAW,YAAY;IACzB,kCAAkC;IAClC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gEAAgE;IAChE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,0GAA0G;IAC1G,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,yCAAyC;IACzC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAClC,6EAA6E;IAC7E,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,6CAA6C;IAC7C,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,M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