@rstest/browser 0.10.4 → 0.10.6

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 (43) hide show
  1. package/dist/browser-container/container-static/css/index.0521ff95b1.css +1 -0
  2. package/dist/browser-container/container-static/js/{3.d3d6c6e4cf.js → 854.c59f71483d.js} +5690 -5718
  3. package/dist/browser-container/container-static/js/854.c59f71483d.js.LICENSE.txt +1 -0
  4. package/dist/browser-container/container-static/js/{index.8fb1588e4a.js → index.fedc31dff3.js} +9 -9
  5. package/dist/browser-container/index.html +1 -1
  6. package/dist/browserRpcRegistry.d.ts +1 -2
  7. package/dist/client/api.d.ts +1 -1
  8. package/dist/client/dispatchTransport.d.ts +3 -5
  9. package/dist/client/locator.d.ts +2 -3
  10. package/dist/concurrency.d.ts +2 -0
  11. package/dist/dispatchCapabilities.d.ts +2 -2
  12. package/dist/dispatchRouter.d.ts +2 -3
  13. package/dist/headedSerialTaskQueue.d.ts +5 -5
  14. package/dist/headlessLatestRerunScheduler.d.ts +2 -3
  15. package/dist/headlessTransport.d.ts +2 -3
  16. package/dist/hostController.d.ts +11 -7
  17. package/dist/index.d.ts +1 -1
  18. package/dist/index.js +71 -14
  19. package/dist/protocol.d.ts +42 -46
  20. package/dist/providers/index.d.ts +11 -20
  21. package/dist/providers/playwright/dispatchBrowserRpc.d.ts +5 -3
  22. package/dist/providers/playwright/expectUtils.d.ts +2 -3
  23. package/dist/providers/playwright/implementation.d.ts +1 -1
  24. package/dist/providers/playwright/runtime.d.ts +1 -1
  25. package/dist/rpcProtocol.d.ts +9 -16
  26. package/dist/runSession.d.ts +3 -5
  27. package/dist/sessionRegistry.d.ts +2 -3
  28. package/dist/sourceMap/sourceMapLoader.d.ts +2 -2
  29. package/dist/viewportPresets.d.ts +2 -3
  30. package/dist/watchCliShortcuts.d.ts +1 -1
  31. package/dist/watchRerunPlanner.d.ts +2 -2
  32. package/package.json +8 -10
  33. package/src/browserRpcRegistry.ts +2 -2
  34. package/src/concurrency.ts +1 -1
  35. package/src/headedSerialTaskQueue.ts +5 -1
  36. package/src/hostController.ts +184 -27
  37. package/dist/browser-container/container-static/css/index.5c72297783.css +0 -1
  38. package/dist/browser-container/container-static/js/3.d3d6c6e4cf.js.LICENSE.txt +0 -1
  39. package/dist/client/entry.d.ts +0 -4
  40. package/dist/client/fakeTimersStub.d.ts +0 -25
  41. package/dist/client/public.d.ts +0 -9
  42. package/dist/client/snapshot.d.ts +0 -29
  43. package/dist/client/sourceMapSupport.d.ts +0 -42
@@ -1,42 +0,0 @@
1
- /**
2
- * Get all script URLs currently on the page.
3
- * Used to detect newly loaded chunk scripts.
4
- */
5
- export declare const getScriptUrls: () => Set<string>;
6
- /**
7
- * Find the newly added script URL by comparing script sets.
8
- * Returns the first new script URL found, or null if none.
9
- */
10
- export declare const findNewScriptUrl: (beforeUrls: Set<string>, afterUrls: Set<string>) => string | null;
11
- /**
12
- * Preload source map for a test file's chunk URL.
13
- *
14
- * Always fetches fresh source map to handle file changes during watch mode.
15
- *
16
- * @param chunkUrl - The full URL of the chunk JS file
17
- */
18
- export declare const preloadTestFileSourceMap: (chunkUrl: string) => Promise<void>;
19
- /**
20
- * Preload source map for the runner.js file.
21
- *
22
- * This is essential for inline snapshot support because the snapshot code
23
- * runs in runner.js (which contains @rstest/core/internal/browser-runtime).
24
- * Without this, stack traces from inline snapshots cannot be mapped back
25
- * to the original source files.
26
- */
27
- export declare const preloadRunnerSourceMap: () => Promise<void>;
28
- /**
29
- * Stack frame interface matching @vitest/snapshot's format
30
- */
31
- interface StackFrame {
32
- file: string;
33
- line: number;
34
- column: number;
35
- method?: string;
36
- }
37
- /**
38
- * Map a stack frame from bundled URL to original source file.
39
- * This is used by BrowserSnapshotEnvironment.processStackTrace
40
- */
41
- export declare const mapStackFrame: (frame: StackFrame) => StackFrame;
42
- export {};