@ait-co/devtools 0.1.144 → 0.2.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 (182) hide show
  1. package/README.en.md +47 -218
  2. package/README.md +36 -246
  3. package/dist/in-app/auto.d.ts +1 -138
  4. package/dist/in-app/auto.js +28 -1102
  5. package/dist/in-app/auto.js.map +1 -1
  6. package/dist/in-app/index.d.ts +38 -547
  7. package/dist/in-app/index.d.ts.map +1 -1
  8. package/dist/in-app/index.js +62 -939
  9. package/dist/in-app/index.js.map +1 -1
  10. package/dist/mcp/cli.d.ts +1 -54
  11. package/dist/mcp/cli.js +33 -9720
  12. package/dist/mcp/cli.js.map +1 -1
  13. package/dist/mcp/server.d.ts +1 -88
  14. package/dist/mcp/server.js +36 -1076
  15. package/dist/mcp/server.js.map +1 -1
  16. package/dist/mock/index.d.ts +35 -21
  17. package/dist/mock/index.d.ts.map +1 -1
  18. package/dist/mock/index.js +81 -2
  19. package/dist/mock/index.js.map +1 -1
  20. package/dist/panel/index.js +80 -104
  21. package/dist/panel/index.js.map +1 -1
  22. package/dist/relay-url-store-CkVSQZMq.cjs +110 -0
  23. package/dist/relay-url-store-CkVSQZMq.cjs.map +1 -0
  24. package/dist/relay-url-store-dkII-DHD.js +109 -0
  25. package/dist/relay-url-store-dkII-DHD.js.map +1 -0
  26. package/dist/stubs/bin-devtools-mcp.js +58 -0
  27. package/dist/stubs/bin-devtools-mcp.js.map +1 -0
  28. package/dist/stubs/bin-devtools-test.d.ts +2 -0
  29. package/dist/stubs/bin-devtools-test.js +55 -0
  30. package/dist/stubs/bin-devtools-test.js.map +1 -0
  31. package/dist/test-runner/config.d.ts +1 -231
  32. package/dist/test-runner/config.js +41 -45
  33. package/dist/test-runner/config.js.map +1 -1
  34. package/dist/{tunnel-BGT9Curk.cjs → tunnel-BKZkOyQp.cjs} +1 -1
  35. package/dist/{tunnel-BGT9Curk.cjs.map → tunnel-BKZkOyQp.cjs.map} +1 -1
  36. package/dist/{tunnel-BOKmLzBO.js → tunnel-CqSCIrdU.js} +1 -1
  37. package/dist/{tunnel-BOKmLzBO.js.map → tunnel-CqSCIrdU.js.map} +1 -1
  38. package/dist/unplugin/index.cjs +9 -18
  39. package/dist/unplugin/index.cjs.map +1 -1
  40. package/dist/unplugin/index.d.cts +26 -5
  41. package/dist/unplugin/index.d.cts.map +1 -1
  42. package/dist/unplugin/index.d.ts +27 -6
  43. package/dist/unplugin/index.d.ts.map +1 -1
  44. package/dist/unplugin/index.js +10 -19
  45. package/dist/unplugin/index.js.map +1 -1
  46. package/package.json +10 -25
  47. package/dist/attach-orchestrator-0F0m_UqQ.js +0 -1845
  48. package/dist/attach-orchestrator-0F0m_UqQ.js.map +0 -1
  49. package/dist/attach-orchestrator-D65KxFy_.js +0 -1831
  50. package/dist/attach-orchestrator-D65KxFy_.js.map +0 -1
  51. package/dist/attach-orchestrator-DL3NQ9ca.js +0 -1846
  52. package/dist/attach-orchestrator-DL3NQ9ca.js.map +0 -1
  53. package/dist/bundle-C796JIwG.d.ts +0 -159
  54. package/dist/bundle-C796JIwG.d.ts.map +0 -1
  55. package/dist/capture-DsP525OZ.d.ts +0 -58
  56. package/dist/capture-DsP525OZ.d.ts.map +0 -1
  57. package/dist/cdp-connection-rP1WdnH5.d.ts +0 -287
  58. package/dist/cdp-connection-rP1WdnH5.d.ts.map +0 -1
  59. package/dist/cell-BaLvusOl.js +0 -68
  60. package/dist/cell-BaLvusOl.js.map +0 -1
  61. package/dist/cell-CBUS3-nT.js +0 -274
  62. package/dist/cell-CBUS3-nT.js.map +0 -1
  63. package/dist/cell-EBKKpAAT.js +0 -307
  64. package/dist/cell-EBKKpAAT.js.map +0 -1
  65. package/dist/chii-relay-B3ZhjGMi.js +0 -304
  66. package/dist/chii-relay-B3ZhjGMi.js.map +0 -1
  67. package/dist/chii-relay-CGMlePMd.cjs +0 -304
  68. package/dist/chii-relay-CGMlePMd.cjs.map +0 -1
  69. package/dist/debug-server-B3ABDrRI.js +0 -456
  70. package/dist/debug-server-B3ABDrRI.js.map +0 -1
  71. package/dist/debug-server-BWhwrVXa.js +0 -1158
  72. package/dist/debug-server-BWhwrVXa.js.map +0 -1
  73. package/dist/debug-server-CfQNxxGW.js +0 -600
  74. package/dist/debug-server-CfQNxxGW.js.map +0 -1
  75. package/dist/devtools-opener-3Drge_RJ.js +0 -75
  76. package/dist/devtools-opener-3Drge_RJ.js.map +0 -1
  77. package/dist/devtools-opener-CJpEsXXQ.js +0 -76
  78. package/dist/devtools-opener-CJpEsXXQ.js.map +0 -1
  79. package/dist/devtools-opener-CxtryS8c.js +0 -75
  80. package/dist/devtools-opener-CxtryS8c.js.map +0 -1
  81. package/dist/in-app/auto.d.ts.map +0 -1
  82. package/dist/mcp/cli.d.ts.map +0 -1
  83. package/dist/mcp/server.d.ts.map +0 -1
  84. package/dist/pool-DcaaOwUq.d.ts +0 -14761
  85. package/dist/pool-DcaaOwUq.d.ts.map +0 -1
  86. package/dist/qr-http-server-C_lqOrgc.js +0 -1644
  87. package/dist/qr-http-server-C_lqOrgc.js.map +0 -1
  88. package/dist/qr-http-server-CopuMbub.js +0 -1644
  89. package/dist/qr-http-server-CopuMbub.js.map +0 -1
  90. package/dist/qr-http-server-DrbIVDjO.js +0 -1645
  91. package/dist/qr-http-server-DrbIVDjO.js.map +0 -1
  92. package/dist/relay-factory-N9QobQxG.js +0 -206
  93. package/dist/relay-factory-N9QobQxG.js.map +0 -1
  94. package/dist/relay-secret-store-BR0YIkNv.cjs +0 -241
  95. package/dist/relay-secret-store-BR0YIkNv.cjs.map +0 -1
  96. package/dist/relay-secret-store-Bmyleu0A.js +0 -154
  97. package/dist/relay-secret-store-Bmyleu0A.js.map +0 -1
  98. package/dist/relay-secret-store-CQenfcSL.js +0 -154
  99. package/dist/relay-secret-store-CQenfcSL.js.map +0 -1
  100. package/dist/relay-secret-store-CYM8CBIF.js +0 -240
  101. package/dist/relay-secret-store-CYM8CBIF.js.map +0 -1
  102. package/dist/relay-secret-store-DKxs7zwq.js +0 -153
  103. package/dist/relay-secret-store-DKxs7zwq.js.map +0 -1
  104. package/dist/relay-secret-store-WJ8EGkIl.js +0 -153
  105. package/dist/relay-secret-store-WJ8EGkIl.js.map +0 -1
  106. package/dist/relay-url-store-BR2XodiO.js +0 -123
  107. package/dist/relay-url-store-BR2XodiO.js.map +0 -1
  108. package/dist/relay-url-store-C1as_m5G.cjs +0 -115
  109. package/dist/relay-url-store-C1as_m5G.cjs.map +0 -1
  110. package/dist/relay-url-store-CH63fVCm.js +0 -122
  111. package/dist/relay-url-store-CH63fVCm.js.map +0 -1
  112. package/dist/relay-url-store-CzFo_84F.js +0 -114
  113. package/dist/relay-url-store-CzFo_84F.js.map +0 -1
  114. package/dist/relay-url-store-DaY1QPes.js +0 -123
  115. package/dist/relay-url-store-DaY1QPes.js.map +0 -1
  116. package/dist/relay-url-store-xmUuTjXA.js +0 -122
  117. package/dist/relay-url-store-xmUuTjXA.js.map +0 -1
  118. package/dist/relay-worker-B5HKkGUY.js +0 -832
  119. package/dist/relay-worker-B5HKkGUY.js.map +0 -1
  120. package/dist/relay-worker-YdlpZQl9.d.ts +0 -214
  121. package/dist/relay-worker-YdlpZQl9.d.ts.map +0 -1
  122. package/dist/rolldown-runtime-DGkTqVfb.js +0 -15
  123. package/dist/rolldown-runtime-DUslC3ob.js +0 -14
  124. package/dist/runtime-kn9DxOeg.d.ts +0 -249
  125. package/dist/runtime-kn9DxOeg.d.ts.map +0 -1
  126. package/dist/test-runner/bin.js +0 -2584
  127. package/dist/test-runner/bin.js.map +0 -1
  128. package/dist/test-runner/bridge-stub.d.ts +0 -125
  129. package/dist/test-runner/bridge-stub.d.ts.map +0 -1
  130. package/dist/test-runner/bridge-stub.js +0 -92
  131. package/dist/test-runner/bridge-stub.js.map +0 -1
  132. package/dist/test-runner/bundle.d.ts +0 -2
  133. package/dist/test-runner/bundle.js +0 -439
  134. package/dist/test-runner/bundle.js.map +0 -1
  135. package/dist/test-runner/capture.d.ts +0 -2
  136. package/dist/test-runner/capture.js +0 -44
  137. package/dist/test-runner/capture.js.map +0 -1
  138. package/dist/test-runner/config.d.ts.map +0 -1
  139. package/dist/test-runner/method-pace.d.ts +0 -82
  140. package/dist/test-runner/method-pace.d.ts.map +0 -1
  141. package/dist/test-runner/method-pace.js +0 -120
  142. package/dist/test-runner/method-pace.js.map +0 -1
  143. package/dist/test-runner/pool.d.ts +0 -2
  144. package/dist/test-runner/pool.js +0 -136
  145. package/dist/test-runner/pool.js.map +0 -1
  146. package/dist/test-runner/relay-factory.d.ts +0 -11245
  147. package/dist/test-runner/relay-factory.d.ts.map +0 -1
  148. package/dist/test-runner/relay-factory.js +0 -206
  149. package/dist/test-runner/relay-factory.js.map +0 -1
  150. package/dist/test-runner/relay-worker.d.ts +0 -2
  151. package/dist/test-runner/relay-worker.js +0 -2
  152. package/dist/test-runner/report.d.ts +0 -163
  153. package/dist/test-runner/report.d.ts.map +0 -1
  154. package/dist/test-runner/report.js +0 -198
  155. package/dist/test-runner/report.js.map +0 -1
  156. package/dist/test-runner/rpc.d.ts +0 -56
  157. package/dist/test-runner/rpc.d.ts.map +0 -1
  158. package/dist/test-runner/rpc.js +0 -98
  159. package/dist/test-runner/rpc.js.map +0 -1
  160. package/dist/test-runner/runtime.d.ts +0 -2
  161. package/dist/test-runner/runtime.js +0 -659
  162. package/dist/test-runner/runtime.js.map +0 -1
  163. package/dist/test-runner/task-graph.d.ts +0 -38
  164. package/dist/test-runner/task-graph.d.ts.map +0 -1
  165. package/dist/test-runner/task-graph.js +0 -182
  166. package/dist/test-runner/task-graph.js.map +0 -1
  167. package/dist/throttle-DKKzX1qC.js +0 -59
  168. package/dist/throttle-DKKzX1qC.js.map +0 -1
  169. package/dist/totp-BqmCLSNA.js +0 -189
  170. package/dist/totp-BqmCLSNA.js.map +0 -1
  171. package/dist/totp-CMHR5lsW.cjs +0 -191
  172. package/dist/totp-CMHR5lsW.cjs.map +0 -1
  173. package/dist/totp-CZLLKfOC.js +0 -200
  174. package/dist/totp-CZLLKfOC.js.map +0 -1
  175. package/dist/totp-DAxys-r0.js +0 -199
  176. package/dist/totp-DAxys-r0.js.map +0 -1
  177. package/dist/totp-DfekTBk3.js +0 -211
  178. package/dist/totp-DfekTBk3.js.map +0 -1
  179. package/dist/totp-Dwft0Kz7.js +0 -3
  180. package/dist/totp-WY6l0ysP.js +0 -190
  181. package/dist/totp-WY6l0ysP.js.map +0 -1
  182. /package/dist/{test-runner/bin.d.ts → stubs/bin-devtools-mcp.d.ts} +0 -0
@@ -1,249 +0,0 @@
1
- //#region src/test-runner/runtime.d.ts
2
- /**
3
- * Thin test runtime for WebView execution.
4
- *
5
- * This file is bundled by `bundle.ts` together with the user's test file
6
- * into a single IIFE injected into the WebView via `Runtime.evaluate`.
7
- * It MUST stay browser-compatible — no Node.js APIs allowed.
8
- *
9
- * Design: rather than shipping @vitest/runner verbatim into a WebView (where
10
- * its Node-side internals cause issues), this runtime provides a minimal
11
- * compatible API surface — describe/it/test/expect globals — collects results
12
- * into a plain JSON-safe object, and exports `runTestModule` as the entry point.
13
- *
14
- * @vitest/runner and @vitest/expect are listed as dependencies so that the
15
- * package's type contracts are available and so the browser-compatible subsets
16
- * can be referenced. The Vitest custom pool that drives this runtime through
17
- * Vitest's `PoolRunnerInitializer` lives in `pool.ts`.
18
- *
19
- * NOTE: this file is imported by type from Node-side code (rpc.ts / relay-worker.ts)
20
- * for the RunReport / TestResult type shapes. The runtime ITSELF is not imported
21
- * at runtime on the Node side — only the types are used.
22
- */
23
- /**
24
- * Result of a single test case.
25
- * All fields are JSON-serialisable.
26
- */
27
- interface TestResult {
28
- /** Full dot-joined test name including nested suite names. */
29
- name: string;
30
- /** `'pass'` or `'fail'`. `'skip'` for skipped tests. */
31
- status: 'pass' | 'fail' | 'skip';
32
- /** Duration in milliseconds. */
33
- duration: number;
34
- /** Error message (fail only). Does NOT include the expression/secret. */
35
- error?: string;
36
- /**
37
- * Optional note attached to a skip — populated when the test body itself
38
- * calls `ctx.skip(cond, note)` (devtools#746), mirroring the static
39
- * `it.skip`/`it.skipIf` path which has no note today. `'skip'` status only.
40
- */
41
- note?: string;
42
- /**
43
- * Number of throttle-aware re-executions of the test BODY (devtools#767) —
44
- * present only when at least one retry was attempted (`>= 1`); omitted
45
- * (never `0`) for every test that never hit `APP_BRIDGE_THROTTLED`, so
46
- * existing consumers (sdk-example's diff script) see byte-identical reports
47
- * for the common case. A test that eventually PASSES after retrying still
48
- * carries this field — it is provenance, not a failure flag.
49
- */
50
- throttleRetries?: number;
51
- }
52
- /** Aggregate report returned by `runTestModule`. */
53
- interface RunReport {
54
- /** ISO timestamp of when `runTestModule` was called. */
55
- startedAt: string;
56
- /** Total elapsed milliseconds (wall-clock). */
57
- duration: number;
58
- passed: number;
59
- failed: number;
60
- skipped: number;
61
- tests: TestResult[];
62
- }
63
- /**
64
- * Test-only override surface for `runTestModule`. Never populated by the
65
- * generated bundle — see that function's doc.
66
- */
67
- interface RunTestModuleOptions {
68
- /**
69
- * Overrides the backoff/pacing sleep implementation. Defaults to a real
70
- * `setTimeout`-backed sleep. Unit tests pass a fake (e.g. an
71
- * immediately-resolving spy) so retry/pacing tests don't take real
72
- * wall-clock seconds.
73
- */
74
- sleep?: (ms: number) => Promise<void>;
75
- }
76
- /**
77
- * Brand property that tags asymmetric matcher markers (`expect.any(String)`,
78
- * `expect.objectContaining(...)`, etc). A reserved string key is used as the
79
- * brand so the guard stays a plain own-property check — markers are only ever
80
- * compared in-process by reference, so no cross-realm Symbol coordination is
81
- * needed.
82
- */
83
- declare const ASYMMETRIC_BRAND: "$$asymmetricMatch";
84
- /**
85
- * An asymmetric matcher: a placeholder that, when found on the `expected` side
86
- * of a deep comparison, runs its own `asymmetricMatch(actual)` predicate
87
- * instead of being structurally compared as a plain object. This is what makes
88
- * `toMatchObject({ hash: expect.any(String) })` match any string `hash`.
89
- */
90
- interface AsymmetricMatcher {
91
- /** Brand discriminator — present only on asymmetric markers. */
92
- [ASYMMETRIC_BRAND]: true;
93
- /** Human-readable label used in failure messages. */
94
- toString(): string;
95
- /** Returns true when `actual` satisfies this matcher. */
96
- asymmetricMatch(actual: unknown): boolean;
97
- }
98
- /** The widest constructor type TypeScript allows without `any` (see toBeInstanceOf). */
99
- type AnyCtor = abstract new (...args: never) => unknown;
100
- /** Minimal expect builder compatible with Vitest's jest-style API. */
101
- declare class Expectation {
102
- #private;
103
- constructor(received: unknown);
104
- get not(): this;
105
- toBe(expected: unknown): void;
106
- toEqual(expected: unknown): void;
107
- toBeTruthy(): void;
108
- toBeFalsy(): void;
109
- toBeNull(): void;
110
- toBeUndefined(): void;
111
- toBeGreaterThan(n: number): void;
112
- toBeLessThan(n: number): void;
113
- toContain(sub: unknown): void;
114
- toThrow(msgFragment?: string): void;
115
- toMatchObject(expected: Record<string, unknown>): void;
116
- toHaveProperty(dotPath: string, ...rest: unknown[]): void;
117
- toBeInstanceOf(ctor: abstract new (...args: never) => unknown): void;
118
- toBeTypeOf(typeStr: string): void;
119
- toHaveLength(n: number): void;
120
- }
121
- /**
122
- * The `expect` callable plus its asymmetric-matcher static surface
123
- * (`expect.any`, `expect.objectContaining`, …). The user file accesses these as
124
- * `expect.any(String)`; the vitest redirect (`bundle.ts`) re-exports `expect` by
125
- * reading `globalThis.expect`, so attaching the statics to this function object
126
- * makes them reachable through the getter (a function's own properties survive
127
- * the getter that returns the function itself).
128
- */
129
- interface ExpectStatic {
130
- (received: unknown): Expectation;
131
- any(ctor: AnyCtor): AsymmetricMatcher;
132
- anything(): AsymmetricMatcher;
133
- objectContaining(expected: Record<string, unknown>): AsymmetricMatcher;
134
- arrayContaining(expected: unknown[]): AsymmetricMatcher;
135
- stringContaining(sub: string): AsymmetricMatcher;
136
- stringMatching(re: string | RegExp): AsymmetricMatcher;
137
- }
138
- /**
139
- * Minimal vitest-4-compatible task context passed as the first argument to a
140
- * test function, e.g. `it('...', async (ctx) => { ctx.skip(cond, note); })`.
141
- *
142
- * Real vitest's `TestContext` is much larger (`expect`, `onTestFailed`, …) —
143
- * this shim only implements what sdk-example's device-fixture suites actually
144
- * use: `ctx.skip` (vitest 4 semantics below) and a trivial `ctx.task.name`.
145
- */
146
- interface TestContext {
147
- /**
148
- * `ctx.skip()` (no args) unconditionally skips the remainder of the test
149
- * body. `ctx.skip(cond, note)` skips only when `cond` is truthy; when falsy,
150
- * this is a no-op and the body continues normally. Skipping throws an
151
- * internal sentinel — do not catch `InPageSkipSentinel` in user code.
152
- */
153
- skip(condition?: boolean, note?: string): void;
154
- /** Trivial task descriptor — nice-to-have, mirrors vitest's `ctx.task.name`. */
155
- task: {
156
- name: string;
157
- };
158
- }
159
- /** A test function as the user writes it — 0-arg or 1-arg (vitest task context). */
160
- type TestFn = (ctx: TestContext) => void | Promise<void>;
161
- /** Registers a suite scope; calls `fn` synchronously to collect inner tests. */
162
- declare function describe(name: string, fn: () => void): void;
163
- declare namespace describe {
164
- var skip: (name: string, _fn: () => void) => void;
165
- var skipIf: (cond: unknown) => DescribeRegistrar;
166
- var runIf: (cond: unknown) => DescribeRegistrar;
167
- }
168
- /** Registers a test. */
169
- declare function it(name: string, fn: TestFn): void;
170
- declare namespace it {
171
- var skip: (name: string, _fn?: TestFn) => void;
172
- var skipIf: (cond: unknown) => ItRegistrar;
173
- var runIf: (cond: unknown) => ItRegistrar;
174
- }
175
- /**
176
- * `it.skipIf(cond)(name, fn)` / `it.runIf(cond)(name, fn)` — conditional test
177
- * registration. `skipIf` skips when `cond` is truthy; `runIf` runs only when
178
- * `cond` is truthy (skips otherwise). sdk-example uses
179
- * `it.skipIf(cell.platform === 'mock')(...)` to skip real-SDK-only cases in env1.
180
- */
181
- type ItRegistrar = (name: string, fn: TestFn) => void;
182
- /**
183
- * `describe.skipIf(cond)(name, fn)` / `describe.runIf(cond)(name, fn)`.
184
- * When skipped, the suite body still runs to register its tests but every test
185
- * inside is marked skipped (collected via a temporary skip flag is overkill —
186
- * a skipped describe simply does not invoke its body, mirroring `describe.skip`).
187
- */
188
- type DescribeRegistrar = (name: string, fn: () => void) => void;
189
- declare function beforeAll(fn: () => void | Promise<void>): void;
190
- declare function afterAll(fn: () => void | Promise<void>): void;
191
- declare function beforeEach(fn: () => void | Promise<void>): void;
192
- declare function afterEach(fn: () => void | Promise<void>): void;
193
- interface SpyCall {
194
- args: unknown[];
195
- returnValue: unknown;
196
- }
197
- interface MockFn<T extends unknown[], R> {
198
- (...args: T): R;
199
- mock: {
200
- calls: SpyCall[];
201
- };
202
- mockImplementation(fn: (...args: T) => R): this;
203
- mockReturnValue(value: R): this;
204
- mockRestore(): void;
205
- }
206
- /**
207
- * Runtime globals object — exported for direct use in unit tests so that
208
- * test factories can reference runtime's own `it`/`expect`/`beforeAll`/etc.
209
- * without depending on `globalThis` injection.
210
- *
211
- * In a real WebView bundle these are accessed via globals installed by
212
- * `runTestModule`; in Node tests, import from here directly.
213
- */
214
- declare const runtimeGlobals: {
215
- readonly describe: typeof describe;
216
- readonly it: typeof it;
217
- readonly test: typeof it;
218
- readonly expect: ExpectStatic;
219
- readonly beforeAll: typeof beforeAll;
220
- readonly afterAll: typeof afterAll;
221
- readonly beforeEach: typeof beforeEach;
222
- readonly afterEach: typeof afterEach;
223
- readonly vi: {
224
- /** Creates a spy on `obj[method]`, replacing it with a mock function. */spyOn<T extends Record<string, unknown>, K extends keyof T>(obj: T, method: K): MockFn<unknown[], unknown>; /** Creates a standalone mock function, optionally wrapping `impl`. */
225
- fn<T extends unknown[], R>(impl?: (...args: T) => R): MockFn<T, R>; /** Restores all spies created via `vi.spyOn` to their original values. */
226
- restoreAllMocks(): void;
227
- };
228
- };
229
- /**
230
- * Installs describe/it/test/expect/afterAll/afterEach/beforeAll/beforeEach/vi
231
- * as globals, invokes `moduleFactory` to register the user's tests, then
232
- * executes them and returns a RunReport.
233
- *
234
- * This function is exported as `__testBundle.runTestModule` by the IIFE wrapper
235
- * that bundle.ts generates. The Node-side rpc.ts calls it via `Runtime.evaluate`.
236
- *
237
- * @param moduleFactory - A zero-argument function that contains the user's
238
- * top-level test code (describe/it/test calls). The bundler wraps the entire
239
- * test module so that its top-level statements become the body of this factory.
240
- * @param opts - Test-only overrides (see {@link RunTestModuleOptions}). Never
241
- * passed by the generated bundle (`rpc.ts#buildRunTestsExpression` calls
242
- * `runTestModule(__userFactory)` with exactly one argument) — this second
243
- * parameter exists so unit tests can inject a fake sleep and assert the
244
- * THROTTLED-retry timing without real delays.
245
- */
246
- declare function runTestModule(moduleFactory?: () => void | Promise<void>, opts?: RunTestModuleOptions): Promise<RunReport>;
247
- //#endregion
248
- export { runTestModule as a, TestResult as i, RunTestModuleOptions as n, runtimeGlobals as o, TestContext as r, RunReport as t };
249
- //# sourceMappingURL=runtime-kn9DxOeg.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"runtime-kn9DxOeg.d.ts","names":[],"sources":["../src/test-runner/runtime.ts"],"mappings":";;AAgCA;;;;;;;;;;;;AA2BA;;;;;;;;;;;;UA3BiB,UAAA;EAwDA;EAtDf,IAAA;;EAEA,MAAA;EA2DA;EAzDA,QAAA;EAyDwB;EAvDxB,KAAA;EAuD+B;AAChC;;;;EAlDC,IAAA;EA8FQ;;;;;;;;EArFR,eAAA;AAAA;AA2F+B;AAAA,UAvFhB,SAAA;;EAEf,SAAA;EAmGkC;EAjGlC,QAAA;EACA,MAAA;EACA,MAAA;EACA,OAAA;EACA,KAAA,EAAO,UAAA;AAAA;;;;;UAqBQ,oBAAA;EAwTP;;;;;;EAjTR,KAAA,IAAS,EAAA,aAAe,OAAA;AAAA;;;;;;;;cAqCpB,gBAAA;;;;;;;UAQI,iBAAA;EAiXG;EAAA,CA/WV,gBAAA;EAwXY;EAtXb,QAAA;EAsXsB;EApXtB,eAAA,CAAgB,MAAA;AAAA;;KAcb,OAAA,oBAA2B,IAAA;;cAoN1B,WAAA;EAAA;cAIQ,QAAA;EAAA,IAIR,GAAA,CAAA;EAaJ,IAAA,CAAK,QAAA;EAOL,OAAA,CAAQ,QAAA;EAOR,UAAA,CAAA;EA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