req-race 1.0.0 → 1.1.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 (44) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/LICENSE +21 -0
  3. package/README.md +107 -107
  4. package/bin/req-race.js +143 -103
  5. package/config.schema.json +16 -0
  6. package/dist/browser/req-race.global.js +1 -0
  7. package/dist/cjs/browser.cjs +843 -0
  8. package/dist/cjs/cypress.cjs +618 -0
  9. package/dist/cjs/index.cjs +1064 -0
  10. package/dist/cjs/package.json +3 -0
  11. package/dist/cjs/playwright.cjs +257 -0
  12. package/dist/cjs/puppeteer.cjs +257 -0
  13. package/dist/esm/browser.js +813 -0
  14. package/dist/esm/cypress.js +591 -0
  15. package/dist/esm/index.js +1002 -0
  16. package/dist/esm/playwright.js +221 -0
  17. package/dist/esm/puppeteer.js +221 -0
  18. package/dist/types/browser.d.cts +9 -0
  19. package/dist/types/browser.d.ts +9 -0
  20. package/dist/types/chaos.d.cts +25 -0
  21. package/dist/types/chaos.d.ts +25 -0
  22. package/dist/types/config.d.cts +3 -0
  23. package/dist/types/config.d.ts +3 -0
  24. package/dist/types/cypress.d.cts +1 -0
  25. package/dist/types/cypress.d.ts +1 -0
  26. package/dist/types/index.d.cts +7 -0
  27. package/dist/types/index.d.ts +7 -0
  28. package/dist/types/playwright.d.cts +82 -0
  29. package/dist/types/playwright.d.ts +82 -0
  30. package/dist/types/prng.d.cts +1 -0
  31. package/dist/types/prng.d.ts +1 -0
  32. package/dist/types/puppeteer.d.cts +2 -0
  33. package/dist/types/puppeteer.d.ts +2 -0
  34. package/dist/types/reporters.d.cts +33 -0
  35. package/dist/types/reporters.d.ts +33 -0
  36. package/dist/types/safe-fetch.d.cts +24 -0
  37. package/dist/types/safe-fetch.d.ts +24 -0
  38. package/dist/types/types.d.cts +215 -0
  39. package/dist/types/types.d.ts +215 -0
  40. package/package.json +127 -53
  41. package/src/index.d.ts +0 -56
  42. package/src/index.js +0 -373
  43. package/src/playwright.d.ts +0 -30
  44. package/src/playwright.js +0 -113
package/package.json CHANGED
@@ -1,53 +1,127 @@
1
- {
2
- "name": "req-race",
3
- "version": "1.0.0",
4
- "description": "Automated stale-fetch race condition, out-of-order response chaos, and double-submit mutation tester for browsers, Playwright, and CI.",
5
- "type": "module",
6
- "main": "./src/index.js",
7
- "types": "./src/index.d.ts",
8
- "exports": {
9
- ".": {
10
- "types": "./src/index.d.ts",
11
- "default": "./src/index.js"
12
- },
13
- "./playwright": {
14
- "types": "./src/playwright.d.ts",
15
- "default": "./src/playwright.js"
16
- }
17
- },
18
- "bin": {
19
- "req-race": "bin/req-race.js"
20
- },
21
- "files": [
22
- "bin",
23
- "src",
24
- "README.md"
25
- ],
26
- "scripts": {
27
- "test": "node --test test/*.test.js"
28
- },
29
- "keywords": [
30
- "fetch",
31
- "race-condition",
32
- "stale-fetch",
33
- "abortcontroller",
34
- "double-submit",
35
- "chaos-testing",
36
- "playwright",
37
- "testing",
38
- "cli"
39
- ],
40
- "author": "Prince Bhut",
41
- "license": "MIT",
42
- "engines": {
43
- "node": ">=18.0.0"
44
- },
45
- "peerDependencies": {
46
- "playwright": ">=1.40.0"
47
- },
48
- "peerDependenciesMeta": {
49
- "playwright": {
50
- "optional": true
51
- }
52
- }
53
- }
1
+ {
2
+ "name": "req-race",
3
+ "version": "1.1.1",
4
+ "description": "Automated stale-fetch race condition, out-of-order response chaos, timeout, and double-submit mutation tester for browsers, Playwright, Puppeteer, Cypress, and CI.",
5
+ "type": "module",
6
+ "sideEffects": false,
7
+ "main": "./dist/cjs/index.cjs",
8
+ "module": "./dist/esm/index.js",
9
+ "types": "./dist/types/index.d.ts",
10
+ "exports": {
11
+ ".": {
12
+ "import": {
13
+ "types": "./dist/types/index.d.ts",
14
+ "default": "./dist/esm/index.js"
15
+ },
16
+ "require": {
17
+ "types": "./dist/types/index.d.cts",
18
+ "default": "./dist/cjs/index.cjs"
19
+ }
20
+ },
21
+ "./playwright": {
22
+ "import": {
23
+ "types": "./dist/types/playwright.d.ts",
24
+ "default": "./dist/esm/playwright.js"
25
+ },
26
+ "require": {
27
+ "types": "./dist/types/playwright.d.cts",
28
+ "default": "./dist/cjs/playwright.cjs"
29
+ }
30
+ },
31
+ "./puppeteer": {
32
+ "import": {
33
+ "types": "./dist/types/puppeteer.d.ts",
34
+ "default": "./dist/esm/puppeteer.js"
35
+ },
36
+ "require": {
37
+ "types": "./dist/types/puppeteer.d.cts",
38
+ "default": "./dist/cjs/puppeteer.cjs"
39
+ }
40
+ },
41
+ "./cypress": {
42
+ "import": {
43
+ "types": "./dist/types/cypress.d.ts",
44
+ "default": "./dist/esm/cypress.js"
45
+ },
46
+ "require": {
47
+ "types": "./dist/types/cypress.d.cts",
48
+ "default": "./dist/cjs/cypress.cjs"
49
+ }
50
+ },
51
+ "./browser": {
52
+ "import": {
53
+ "types": "./dist/types/browser.d.ts",
54
+ "default": "./dist/esm/browser.js"
55
+ },
56
+ "require": {
57
+ "types": "./dist/types/browser.d.cts",
58
+ "default": "./dist/cjs/browser.cjs"
59
+ },
60
+ "default": "./dist/browser/req-race.global.js"
61
+ },
62
+ "./config.schema.json": "./config.schema.json",
63
+ "./package.json": "./package.json"
64
+ },
65
+ "bin": {
66
+ "req-race": "bin/req-race.js"
67
+ },
68
+ "files": [
69
+ "bin",
70
+ "dist",
71
+ "config.schema.json",
72
+ "README.md",
73
+ "docs",
74
+ "CHANGELOG.md",
75
+ "LICENSE"
76
+ ],
77
+ "scripts": {
78
+ "build": "node scripts/build.mjs",
79
+ "typecheck": "tsc --noEmit",
80
+ "test": "node --test test/*.test.js",
81
+ "test:coverage": "npx c8 --lines 100 --branches 100 --functions 100 --statements 100 node --test test/*.test.js",
82
+ "check:pkg": "npx publint --strict && npx attw --pack . --ignore-rules no-resolution",
83
+ "prepublishOnly": "npm run build && npm run typecheck && npm test"
84
+ },
85
+ "keywords": [
86
+ "fetch",
87
+ "race-condition",
88
+ "stale-fetch",
89
+ "abortcontroller",
90
+ "double-submit",
91
+ "chaos-testing",
92
+ "playwright",
93
+ "puppeteer",
94
+ "cypress",
95
+ "testing",
96
+ "cli"
97
+ ],
98
+ "author": "Prince Bhut",
99
+ "license": "MIT",
100
+ "engines": {
101
+ "node": ">=18.0.0"
102
+ },
103
+ "peerDependencies": {
104
+ "playwright": ">=1.40.0",
105
+ "puppeteer": ">=21.0.0",
106
+ "cypress": ">=12.0.0"
107
+ },
108
+ "peerDependenciesMeta": {
109
+ "playwright": {
110
+ "optional": true
111
+ },
112
+ "puppeteer": {
113
+ "optional": true
114
+ },
115
+ "cypress": {
116
+ "optional": true
117
+ }
118
+ },
119
+ "devDependencies": {
120
+ "@arethetypeswrong/cli": "^0.18.5",
121
+ "@types/node": "^26.6.11",
122
+ "c8": "^12.0.0",
123
+ "esbuild": "^0.28.2",
124
+ "publint": "^0.3.25",
125
+ "typescript": "^7.0.2"
126
+ }
127
+ }
package/src/index.d.ts DELETED
@@ -1,56 +0,0 @@
1
- export type ChaosMode = "reverse-order" | "jitter" | "throttle-mutations" | "timeout";
2
-
3
- export interface RaceStats {
4
- totalRequests: number;
5
- reorderedResponses: number;
6
- abortedCount: number;
7
- unabortedStaleCount: number;
8
- duplicateMutations: number;
9
- timeouts: number;
10
- }
11
-
12
- export interface RaceLogEntry {
13
- id: number;
14
- method: string;
15
- key: string;
16
- url: string;
17
- startedAt: number;
18
- finishedAt: number | null;
19
- aborted: boolean;
20
- delayedMs: number;
21
- staleRisk: boolean;
22
- }
23
-
24
- export interface RaceChaosOptions {
25
- target?: { fetch: typeof fetch };
26
- mode?: ChaosMode;
27
- delayMs?: number;
28
- timeoutMs?: number;
29
- minDelayMs?: number;
30
- maxDelayMs?: number;
31
- doubleSubmitWindowMs?: number;
32
- urlPattern?: string | RegExp | null;
33
- normalizeKey?: (url: string, method: string) => string;
34
- onRaceDetected?: (event: Record<string, unknown>) => void;
35
- }
36
-
37
- export interface RaceChaosController {
38
- disable: () => void;
39
- getStats: () => RaceStats;
40
- getLogs: () => RaceLogEntry[];
41
- resetStats: () => void;
42
- }
43
-
44
- export interface RaceSafeFetchOptions {
45
- normalizeKey?: (url: string, method: string) => string;
46
- dedupeMutations?: boolean;
47
- timeoutMs?: number;
48
- retries?: number;
49
- }
50
-
51
- export function enableFetchRaceChaos(options?: RaceChaosOptions): RaceChaosController;
52
- export function createRaceSafeFetch(
53
- fetchImpl?: typeof fetch,
54
- optionsOrNormalizeKey?: ((url: string, method: string) => string) | RaceSafeFetchOptions
55
- ): typeof fetch;
56
- export function formatRaceReport(stats: RaceStats): string;
package/src/index.js DELETED
@@ -1,373 +0,0 @@
1
- /**
2
- * req-race — Automated Stale-Fetch Race Condition & Double-Submit Tester.
3
- * Zero-dependency browser & Node-compatible core.
4
- */
5
-
6
- const MUTATION_METHODS = new Set(["POST", "PUT", "PATCH", "DELETE"]);
7
-
8
- function sleep(ms, signal) {
9
- return new Promise((resolve, reject) => {
10
- if (signal?.aborted) {
11
- reject(signal.reason ?? new DOMException("Aborted", "AbortError"));
12
- return;
13
- }
14
- const timer = setTimeout(() => {
15
- signal?.removeEventListener("abort", onAbort);
16
- resolve();
17
- }, ms);
18
- function onAbort() {
19
- clearTimeout(timer);
20
- reject(signal.reason ?? new DOMException("Aborted", "AbortError"));
21
- }
22
- signal?.addEventListener("abort", onAbort, { once: true });
23
- });
24
- }
25
-
26
- function defaultNormalizeKey(url, method) {
27
- try {
28
- const parsed = new URL(url, "http://localhost");
29
- return `${method}:${parsed.pathname}`;
30
- } catch {
31
- return `${method}:${String(url).split("?")[0]}`;
32
- }
33
- }
34
-
35
- function extractUrl(input) {
36
- if (typeof input === "string") return input;
37
- if (input && typeof input.url === "string") return input.url;
38
- return String(input);
39
- }
40
-
41
- /**
42
- * Enable fetch race-condition chaos and telemetry on a target (defaults to globalThis.fetch).
43
- * @param {object} [options]
44
- * @returns {{ disable: () => void, getStats: () => object, getLogs: () => Array, resetStats: () => void }}
45
- */
46
- export function enableFetchRaceChaos(options = {}) {
47
- const {
48
- target = typeof globalThis !== "undefined" ? globalThis : null,
49
- mode = "reverse-order",
50
- delayMs = 1000,
51
- timeoutMs = 1500,
52
- minDelayMs = 100,
53
- maxDelayMs = 900,
54
- doubleSubmitWindowMs = 500,
55
- urlPattern = null,
56
- normalizeKey = defaultNormalizeKey,
57
- onRaceDetected = null,
58
- } = options;
59
-
60
- if (!target || typeof target.fetch !== "function") {
61
- throw new Error("enableFetchRaceChaos requires a target with a fetch() function.");
62
- }
63
-
64
- const rawOriginalFetch = target.fetch;
65
- const originalFetch = rawOriginalFetch.bind(target);
66
- const inFlightByKey = new Map();
67
- const recentMutations = new Map();
68
- const logs = [];
69
-
70
- const stats = {
71
- totalRequests: 0,
72
- reorderedResponses: 0,
73
- abortedCount: 0,
74
- unabortedStaleCount: 0,
75
- duplicateMutations: 0,
76
- timeouts: 0,
77
- };
78
-
79
- let seq = 0;
80
-
81
- const matchesPattern = (url) => {
82
- if (!urlPattern) return true;
83
- if (urlPattern instanceof RegExp) return urlPattern.test(url);
84
- return url.includes(String(urlPattern));
85
- };
86
-
87
- target.fetch = async function reqRaceFetch(input, init = {}) {
88
- const url = extractUrl(input);
89
- const method = (init?.method || input?.method || "GET").toUpperCase();
90
-
91
- if (!matchesPattern(url)) {
92
- return originalFetch(input, init);
93
- }
94
-
95
- const id = ++seq;
96
- const key = normalizeKey(url, method);
97
- const startedAt = Date.now();
98
- const signal = init?.signal || input?.signal;
99
- stats.totalRequests++;
100
-
101
- // Detect duplicate mutations within doubleSubmitWindowMs
102
- if (MUTATION_METHODS.has(method)) {
103
- const prevTs = recentMutations.get(key);
104
- if (prevTs && startedAt - prevTs <= doubleSubmitWindowMs) {
105
- stats.duplicateMutations++;
106
- onRaceDetected?.({
107
- type: "duplicate-mutation",
108
- method,
109
- key,
110
- url,
111
- deltaMs: startedAt - prevTs,
112
- });
113
- }
114
- recentMutations.set(key, startedAt);
115
- }
116
-
117
- const entry = {
118
- id,
119
- method,
120
- key,
121
- url,
122
- startedAt,
123
- finishedAt: null,
124
- aborted: false,
125
- delayedMs: 0,
126
- staleRisk: false,
127
- signal,
128
- };
129
- logs.push(entry);
130
-
131
- const activeList = inFlightByKey.get(key) || [];
132
-
133
- // If an earlier request for this key is still in flight, flag unaborted stale risk
134
- for (const prev of activeList) {
135
- if (!prev.signal?.aborted && !MUTATION_METHODS.has(method)) {
136
- prev.staleRisk = true;
137
- stats.unabortedStaleCount++;
138
- onRaceDetected?.({
139
- type: "unaborted-overlap",
140
- method,
141
- key,
142
- earlierId: prev.id,
143
- newerId: id,
144
- });
145
- }
146
- }
147
-
148
- activeList.push(entry);
149
- inFlightByKey.set(key, activeList);
150
-
151
- let appliedDelay = 0;
152
- if (mode === "jitter") {
153
- appliedDelay = Math.floor(minDelayMs + Math.random() * Math.max(0, maxDelayMs - minDelayMs));
154
- } else if (mode === "throttle-mutations" && MUTATION_METHODS.has(method)) {
155
- appliedDelay = delayMs;
156
- }
157
-
158
- try {
159
- if (mode === "timeout") {
160
- await sleep(timeoutMs, signal);
161
- stats.timeouts++;
162
- onRaceDetected?.({ type: "timeout", method, key, url, timeoutMs });
163
- throw new DOMException(`Request timed out after ${timeoutMs}ms`, "TimeoutError");
164
- }
165
-
166
- const response = await originalFetch(input, init);
167
-
168
- // In reverse-order mode, if a newer request arrived while this one was in flight,
169
- // hold this earlier response so the newer one resolves first!
170
- const listNow = inFlightByKey.get(key) || [];
171
- const hasNewer = listNow.some((item) => item.id > id);
172
- if (mode === "reverse-order" && hasNewer && !signal?.aborted) {
173
- appliedDelay = delayMs;
174
- stats.reorderedResponses++;
175
- }
176
-
177
- if (appliedDelay > 0) {
178
- entry.delayedMs = appliedDelay;
179
- await sleep(appliedDelay, signal);
180
- }
181
-
182
- entry.finishedAt = Date.now();
183
- return response;
184
- } catch (err) {
185
- if (err?.name === "AbortError" || signal?.aborted) {
186
- entry.aborted = true;
187
- stats.abortedCount++;
188
- }
189
- entry.finishedAt = Date.now();
190
- throw err;
191
- } finally {
192
- const remaining = (inFlightByKey.get(key) || []).filter((item) => item.id !== id);
193
- if (remaining.length > 0) {
194
- inFlightByKey.set(key, remaining);
195
- } else {
196
- inFlightByKey.delete(key);
197
- }
198
- }
199
- };
200
-
201
- return {
202
- disable() {
203
- target.fetch = rawOriginalFetch;
204
- },
205
- getStats() {
206
- return { ...stats };
207
- },
208
- getLogs() {
209
- return logs.map((l) => ({
210
- id: l.id,
211
- method: l.method,
212
- key: l.key,
213
- url: l.url,
214
- startedAt: l.startedAt,
215
- finishedAt: l.finishedAt,
216
- aborted: l.aborted,
217
- delayedMs: l.delayedMs,
218
- staleRisk: l.staleRisk,
219
- }));
220
- },
221
- resetStats() {
222
- stats.totalRequests = 0;
223
- stats.reorderedResponses = 0;
224
- stats.abortedCount = 0;
225
- stats.unabortedStaleCount = 0;
226
- stats.duplicateMutations = 0;
227
- stats.timeouts = 0;
228
- logs.length = 0;
229
- recentMutations.clear();
230
- },
231
- };
232
- }
233
-
234
- /**
235
- * Create a race-safe fetch wrapper that automatically aborts previous in-flight
236
- * GET/HEAD requests for the same normalized key, and optionally deduplicates
237
- * concurrent identical mutations (POST/PUT/PATCH/DELETE).
238
- * @param {typeof fetch} [fetchImpl]
239
- * @param {((url: string, method: string) => string) | { normalizeKey?: (url: string, method: string) => string, dedupeMutations?: boolean }} [optionsOrNormalizeKey]
240
- */
241
- export function createRaceSafeFetch(
242
- fetchImpl = (...args) => globalThis.fetch(...args),
243
- optionsOrNormalizeKey = {}
244
- ) {
245
- const isFn = typeof optionsOrNormalizeKey === "function";
246
- const normalizeKey = isFn
247
- ? optionsOrNormalizeKey
248
- : optionsOrNormalizeKey.normalizeKey || defaultNormalizeKey;
249
- const dedupeMutations = isFn ? false : Boolean(optionsOrNormalizeKey.dedupeMutations);
250
- const timeoutMs = isFn ? 0 : Number(optionsOrNormalizeKey.timeoutMs || 0);
251
- const retries = isFn ? 0 : Number(optionsOrNormalizeKey.retries || 0);
252
-
253
- const controllers = new Map();
254
- const inFlightMutations = new Map();
255
-
256
- const runWithTimeout = async (input, init, externalSignal) => {
257
- if (!timeoutMs || timeoutMs <= 0) {
258
- return fetchImpl(input, init);
259
- }
260
- const timeoutController = new AbortController();
261
- const onExternalAbort = () => timeoutController.abort(externalSignal.reason);
262
- externalSignal?.addEventListener("abort", onExternalAbort, { once: true });
263
-
264
- let timedOut = false;
265
- const timer = setTimeout(() => {
266
- timedOut = true;
267
- timeoutController.abort(new DOMException(`Request timed out after ${timeoutMs}ms`, "TimeoutError"));
268
- }, timeoutMs);
269
-
270
- try {
271
- return await fetchImpl(input, { ...init, signal: timeoutController.signal });
272
- } catch (err) {
273
- if (timedOut) {
274
- throw new DOMException(`Request timed out after ${timeoutMs}ms`, "TimeoutError");
275
- }
276
- throw err;
277
- } finally {
278
- clearTimeout(timer);
279
- externalSignal?.removeEventListener("abort", onExternalAbort);
280
- }
281
- };
282
-
283
- return async function raceSafeFetch(input, init = {}) {
284
- const url = extractUrl(input);
285
- const method = (
286
- init?.method ||
287
- (typeof input === "object" && input?.method) ||
288
- "GET"
289
- ).toUpperCase();
290
- const key = normalizeKey(url, method);
291
-
292
- if (method === "GET" || method === "HEAD") {
293
- const prev = controllers.get(key);
294
- if (prev) {
295
- prev.abort(new DOMException("Superseded by newer request", "AbortError"));
296
- }
297
- const controller = new AbortController();
298
- controllers.set(key, controller);
299
-
300
- if (init?.signal) {
301
- if (init.signal.aborted) {
302
- controller.abort(init.signal.reason);
303
- } else {
304
- init.signal.addEventListener(
305
- "abort",
306
- () => controller.abort(init.signal.reason),
307
- { once: true }
308
- );
309
- }
310
- }
311
-
312
- try {
313
- let attempt = 0;
314
- while (true) {
315
- try {
316
- return await runWithTimeout(
317
- input,
318
- { ...init, signal: controller.signal },
319
- controller.signal
320
- );
321
- } catch (err) {
322
- const isUserAbort = err?.name === "AbortError" || controller.signal.aborted;
323
- if (isUserAbort || attempt >= retries) throw err;
324
- attempt++;
325
- await sleep(50 * attempt, controller.signal);
326
- }
327
- }
328
- } finally {
329
- if (controllers.get(key) === controller) {
330
- controllers.delete(key);
331
- }
332
- }
333
- }
334
-
335
- if (dedupeMutations && MUTATION_METHODS.has(method)) {
336
- const existing = inFlightMutations.get(key);
337
- if (existing) return existing;
338
-
339
- const promise = Promise.resolve(runWithTimeout(input, init, init?.signal)).finally(() => {
340
- if (inFlightMutations.get(key) === promise) {
341
- inFlightMutations.delete(key);
342
- }
343
- });
344
- inFlightMutations.set(key, promise);
345
- return promise;
346
- }
347
-
348
- return runWithTimeout(input, init, init?.signal);
349
- };
350
- }
351
-
352
- /**
353
- * Format race-chaos statistics into a readable terminal report.
354
- * @param {object} stats
355
- * @returns {string}
356
- */
357
- export function formatRaceReport(stats) {
358
- if (!stats) return "No req-race telemetry recorded.";
359
-
360
- const hasIssues = stats.unabortedStaleCount > 0 || stats.duplicateMutations > 0;
361
- const lines = [
362
- hasIssues
363
- ? `✖ req-race detected potential race conditions:`
364
- : `✔ req-race passed (${stats.totalRequests} requests monitored):`,
365
- ` ├─ Total requests: ${stats.totalRequests}`,
366
- ` ├─ Reordered responses: ${stats.reorderedResponses}`,
367
- ` ├─ Properly aborted: ${stats.abortedCount}`,
368
- ` ├─ Unaborted stale risks: ${stats.unabortedStaleCount}`,
369
- ` └─ Duplicate mutations: ${stats.duplicateMutations}`,
370
- ];
371
-
372
- return lines.join("\n");
373
- }
@@ -1,30 +0,0 @@
1
- import type { Page } from "playwright";
2
-
3
- export interface StaleRaceOptions {
4
- url: string | RegExp;
5
- trigger: () => Promise<void>;
6
- selector: string;
7
- expectedText: string;
8
- delayMs?: number;
9
- }
10
-
11
- export interface DoubleSubmitOptions {
12
- button: string;
13
- url: string | RegExp;
14
- maxRequests?: number;
15
- windowMs?: number;
16
- }
17
-
18
- export interface LoadingHangOptions {
19
- url: string | RegExp;
20
- trigger: () => Promise<void>;
21
- loadingSelector: string;
22
- timeoutMs?: number;
23
- }
24
-
25
- export function assertNoStaleRace(page: Page, options: StaleRaceOptions): Promise<void>;
26
- export function assertNoDoubleSubmit(
27
- page: Page,
28
- options: DoubleSubmitOptions
29
- ): Promise<{ mutationCount: number }>;
30
- export function assertNoLoadingHang(page: Page, options: LoadingHangOptions): Promise<void>;