@rstest/browser 0.10.4 → 0.10.5
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.
- package/dist/browser-container/container-static/css/index.0521ff95b1.css +1 -0
- package/dist/browser-container/container-static/js/{3.d3d6c6e4cf.js → 854.c59f71483d.js} +5690 -5718
- package/dist/browser-container/container-static/js/854.c59f71483d.js.LICENSE.txt +1 -0
- package/dist/browser-container/container-static/js/{index.8fb1588e4a.js → index.fedc31dff3.js} +9 -9
- package/dist/browser-container/index.html +1 -1
- package/dist/browserRpcRegistry.d.ts +1 -2
- package/dist/client/api.d.ts +1 -1
- package/dist/client/dispatchTransport.d.ts +3 -5
- package/dist/client/locator.d.ts +2 -3
- package/dist/concurrency.d.ts +2 -0
- package/dist/dispatchCapabilities.d.ts +2 -2
- package/dist/dispatchRouter.d.ts +2 -3
- package/dist/headedSerialTaskQueue.d.ts +5 -5
- package/dist/headlessLatestRerunScheduler.d.ts +2 -3
- package/dist/headlessTransport.d.ts +2 -3
- package/dist/hostController.d.ts +10 -7
- package/dist/index.d.ts +1 -1
- package/dist/protocol.d.ts +42 -46
- package/dist/providers/index.d.ts +11 -20
- package/dist/providers/playwright/dispatchBrowserRpc.d.ts +5 -3
- package/dist/providers/playwright/expectUtils.d.ts +2 -3
- package/dist/providers/playwright/implementation.d.ts +1 -1
- package/dist/providers/playwright/runtime.d.ts +1 -1
- package/dist/rpcProtocol.d.ts +9 -16
- package/dist/runSession.d.ts +3 -5
- package/dist/sessionRegistry.d.ts +2 -3
- package/dist/sourceMap/sourceMapLoader.d.ts +2 -2
- package/dist/viewportPresets.d.ts +2 -3
- package/dist/watchCliShortcuts.d.ts +1 -1
- package/dist/watchRerunPlanner.d.ts +2 -2
- package/package.json +6 -8
- package/src/browserRpcRegistry.ts +2 -2
- package/src/concurrency.ts +1 -1
- package/src/headedSerialTaskQueue.ts +5 -1
- package/src/hostController.ts +9 -1
- package/dist/browser-container/container-static/css/index.5c72297783.css +0 -1
- package/dist/browser-container/container-static/js/3.d3d6c6e4cf.js.LICENSE.txt +0 -1
- package/dist/client/entry.d.ts +0 -4
- package/dist/client/fakeTimersStub.d.ts +0 -25
- package/dist/client/public.d.ts +0 -9
- package/dist/client/snapshot.d.ts +0 -29
- package/dist/client/sourceMapSupport.d.ts +0 -42
|
@@ -17,8 +17,7 @@ type RunnerSessionInput = Omit<RunnerSessionRecord, 'id' | 'createdAt'> & {
|
|
|
17
17
|
/**
|
|
18
18
|
* Execution target index for host scheduling.
|
|
19
19
|
* Provides lookup by session id, test file, and run token without coupling to UI topology.
|
|
20
|
-
*/
|
|
21
|
-
export declare class RunnerSessionRegistry {
|
|
20
|
+
*/ export declare class RunnerSessionRegistry {
|
|
22
21
|
private nextId;
|
|
23
22
|
private sessionsById;
|
|
24
23
|
private sessionIdByTestFile;
|
|
@@ -31,4 +30,4 @@ export declare class RunnerSessionRegistry {
|
|
|
31
30
|
deleteByTestFile(testFile: string): boolean;
|
|
32
31
|
clear(): void;
|
|
33
32
|
}
|
|
34
|
-
export {};
|
|
33
|
+
export { };
|
|
@@ -4,11 +4,11 @@ type Fetcher = typeof fetch;
|
|
|
4
4
|
export declare const normalizeJavaScriptUrl: (value: string, options?: {
|
|
5
5
|
origin?: string;
|
|
6
6
|
}) => string | null;
|
|
7
|
-
export declare const loadSourceMapWithCache: ({ jsUrl, cache, force, origin, fetcher
|
|
7
|
+
export declare const loadSourceMapWithCache: ({ jsUrl, cache, force, origin, fetcher }: {
|
|
8
8
|
jsUrl: string;
|
|
9
9
|
cache: Map<string, SourceMapPayload | null>;
|
|
10
10
|
force?: boolean;
|
|
11
11
|
origin?: string;
|
|
12
12
|
fetcher?: Fetcher;
|
|
13
13
|
}) => Promise<SourceMapPayload | null>;
|
|
14
|
-
export {};
|
|
14
|
+
export { };
|
|
@@ -9,8 +9,7 @@
|
|
|
9
9
|
* device list — mirror each device's `screen.vertical` `{ width, height }`:
|
|
10
10
|
* https://github.com/ChromeDevTools/devtools-frontend/blob/main/front_end/models/emulation/EmulatedDevices.ts
|
|
11
11
|
* Last verified in sync (all 17): 2026-04-22, devtools-frontend commit abaac05e.
|
|
12
|
-
*/
|
|
13
|
-
export declare const BROWSER_VIEWPORT_PRESET_IDS: readonly ['iPhoneSE', 'iPhoneXR', 'iPhone12Pro', 'iPhone14ProMax', 'Pixel7', 'SamsungGalaxyS8Plus', 'SamsungGalaxyS20Ultra', 'iPadMini', 'iPadAir', 'iPadPro', 'SurfacePro7', 'SurfaceDuo', 'GalaxyZFold5', 'AsusZenbookFold', 'SamsungGalaxyA51A71', 'NestHub', 'NestHubMax'];
|
|
12
|
+
*/ export declare const BROWSER_VIEWPORT_PRESET_IDS: readonly ['iPhoneSE', 'iPhoneXR', 'iPhone12Pro', 'iPhone14ProMax', 'Pixel7', 'SamsungGalaxyS8Plus', 'SamsungGalaxyS20Ultra', 'iPadMini', 'iPadAir', 'iPadPro', 'SurfacePro7', 'SurfaceDuo', 'GalaxyZFold5', 'AsusZenbookFold', 'SamsungGalaxyA51A71', 'NestHub', 'NestHubMax'];
|
|
14
13
|
type BrowserViewportPresetId = (typeof BROWSER_VIEWPORT_PRESET_IDS)[number];
|
|
15
14
|
type BrowserViewportSize = {
|
|
16
15
|
width: number;
|
|
@@ -18,4 +17,4 @@ type BrowserViewportSize = {
|
|
|
18
17
|
};
|
|
19
18
|
export declare const BROWSER_VIEWPORT_PRESET_DIMENSIONS: Record<BrowserViewportPresetId, BrowserViewportSize>;
|
|
20
19
|
export declare const resolveBrowserViewportPreset: (presetId: string) => BrowserViewportSize | null;
|
|
21
|
-
export {};
|
|
20
|
+
export { };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const isBrowserWatchCliShortcutsEnabled: () => boolean;
|
|
2
2
|
export declare const getBrowserWatchCliShortcutsHintMessage: () => string;
|
|
3
3
|
export declare const logBrowserWatchReadyMessage: (enableCliShortcuts: boolean) => void;
|
|
4
|
-
export declare function setupBrowserWatchCliShortcuts({ close
|
|
4
|
+
export declare function setupBrowserWatchCliShortcuts({ close }: {
|
|
5
5
|
close: () => Promise<void>;
|
|
6
6
|
}): Promise<() => void>;
|
|
@@ -17,5 +17,5 @@ type WatchRerunPlan = {
|
|
|
17
17
|
affectedTestFiles: TestFileInfo[];
|
|
18
18
|
};
|
|
19
19
|
export declare const collectWatchTestFiles: (projectEntries: WatchPlannerProjectEntry[]) => TestFileInfo[];
|
|
20
|
-
export declare const planWatchRerun: ({ projectEntries, previousTestFiles, affectedTestFiles
|
|
21
|
-
export {};
|
|
20
|
+
export declare const planWatchRerun: ({ projectEntries, previousTestFiles, affectedTestFiles }: WatchRerunPlannerInput) => WatchRerunPlan;
|
|
21
|
+
export { };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rstest/browser",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.5",
|
|
4
4
|
"description": "Browser mode support for Rstest testing framework.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rstest",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"repository": {
|
|
16
16
|
"type": "git",
|
|
17
|
-
"url": "https://github.com/web-infra-dev/rstest",
|
|
17
|
+
"url": "git+https://github.com/web-infra-dev/rstest.git",
|
|
18
18
|
"directory": "packages/browser"
|
|
19
19
|
},
|
|
20
20
|
"license": "MIT",
|
|
@@ -48,22 +48,21 @@
|
|
|
48
48
|
"ws": "^8.21.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@rslib/core": "0.22.
|
|
51
|
+
"@rslib/core": "0.22.1",
|
|
52
52
|
"@types/convert-source-map": "^2.0.3",
|
|
53
53
|
"@types/picomatch": "^4.0.3",
|
|
54
54
|
"@types/ws": "^8.18.1",
|
|
55
|
-
"@typescript/native-preview": "7.0.0-dev.20260608.1",
|
|
56
55
|
"@vitest/snapshot": "^3.2.6",
|
|
57
56
|
"birpc": "^4.0.0",
|
|
58
57
|
"picomatch": "^4.0.4",
|
|
59
58
|
"playwright": "^1.60.0",
|
|
60
|
-
"@rstest/core": "0.10.4",
|
|
61
59
|
"@rstest/browser-ui": "0.0.0",
|
|
60
|
+
"@rstest/core": "0.10.5",
|
|
62
61
|
"@rstest/tsconfig": "0.0.1"
|
|
63
62
|
},
|
|
64
63
|
"peerDependencies": {
|
|
65
64
|
"playwright": "^1.49.1",
|
|
66
|
-
"@rstest/core": "^0.10.
|
|
65
|
+
"@rstest/core": "^0.10.5"
|
|
67
66
|
},
|
|
68
67
|
"peerDependenciesMeta": {
|
|
69
68
|
"playwright": {
|
|
@@ -79,7 +78,6 @@
|
|
|
79
78
|
},
|
|
80
79
|
"scripts": {
|
|
81
80
|
"build": "rslib build",
|
|
82
|
-
"dev": "rslib build --watch"
|
|
83
|
-
"typecheck": "pnpm -w exec tsc --noEmit -p packages/browser/tsconfig.json"
|
|
81
|
+
"dev": "rslib build --watch"
|
|
84
82
|
}
|
|
85
83
|
}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* - Artifacts intentionally excluded for now: screenshot/toMatchScreenshot/
|
|
15
15
|
* trace/video
|
|
16
16
|
*/
|
|
17
|
-
export const supportedLocatorActions = new Set
|
|
17
|
+
export const supportedLocatorActions: Set<string> = new Set([
|
|
18
18
|
'click',
|
|
19
19
|
'dblclick',
|
|
20
20
|
'fill',
|
|
@@ -32,7 +32,7 @@ export const supportedLocatorActions = new Set<string>([
|
|
|
32
32
|
'setInputFiles',
|
|
33
33
|
]);
|
|
34
34
|
|
|
35
|
-
export const supportedExpectElementMatchers = new Set
|
|
35
|
+
export const supportedExpectElementMatchers: Set<string> = new Set([
|
|
36
36
|
'toBeVisible',
|
|
37
37
|
'toBeHidden',
|
|
38
38
|
'toBeEnabled',
|
package/src/concurrency.ts
CHANGED
|
@@ -19,7 +19,7 @@ type HeadlessConcurrencyContext = Pick<Rstest, 'command'> & {
|
|
|
19
19
|
|
|
20
20
|
export const resolveDefaultHeadlessWorkers = (
|
|
21
21
|
command: HeadlessConcurrencyContext['command'],
|
|
22
|
-
numCpus = getNumCpus(),
|
|
22
|
+
numCpus: number = getNumCpus(),
|
|
23
23
|
): number => {
|
|
24
24
|
const baseWorkers = Math.max(
|
|
25
25
|
Math.min(DEFAULT_MAX_HEADLESS_WORKERS, numCpus - 1),
|
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
type HeadedSerialTask = () => Promise<void>;
|
|
2
2
|
|
|
3
|
+
type HeadedSerialTaskQueue = {
|
|
4
|
+
enqueue: (task: HeadedSerialTask) => Promise<void>;
|
|
5
|
+
};
|
|
6
|
+
|
|
3
7
|
/**
|
|
4
8
|
* Serializes headed browser file execution so only one task runs at a time.
|
|
5
9
|
* The queue keeps draining even if an earlier task rejects.
|
|
6
10
|
*/
|
|
7
|
-
export const createHeadedSerialTaskQueue = () => {
|
|
11
|
+
export const createHeadedSerialTaskQueue = (): HeadedSerialTaskQueue => {
|
|
8
12
|
let queue: Promise<void> = Promise.resolve();
|
|
9
13
|
|
|
10
14
|
const enqueue = (task: HeadedSerialTask): Promise<void> => {
|
package/src/hostController.ts
CHANGED
|
@@ -600,7 +600,15 @@ export const createBrowserLazyCompilationConfig = (
|
|
|
600
600
|
};
|
|
601
601
|
};
|
|
602
602
|
|
|
603
|
-
export const createBrowserRsbuildDevConfig = (
|
|
603
|
+
export const createBrowserRsbuildDevConfig = (
|
|
604
|
+
_isWatchMode: boolean,
|
|
605
|
+
): {
|
|
606
|
+
writeToDisk: boolean;
|
|
607
|
+
hmr: boolean;
|
|
608
|
+
client: {
|
|
609
|
+
logLevel: 'error';
|
|
610
|
+
};
|
|
611
|
+
} => {
|
|
604
612
|
return {
|
|
605
613
|
writeToDisk: isDebug(),
|
|
606
614
|
// Keep HMR enabled in browser mode even for one-shot runs.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
@import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap";@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-space-y-reverse:0;--tw-border-style:solid;--tw-leading:initial;--tw-font-weight:initial;--tw-tracking:initial;--tw-ordinal:initial;--tw-slashed-zero:initial;--tw-numeric-figure:initial;--tw-numeric-spacing:initial;--tw-numeric-fraction:initial;--tw-duration:initial;--tw-ease:initial}}}@layer theme{:root,:host{--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--color-zinc-950:#09090b;--color-black:#000;--color-white:#fff;--spacing:.25rem;--text-xs:.75rem;--text-xs--line-height:calc(1 / .75);--text-sm:.875rem;--text-sm--line-height:calc(1.25 / .875);--font-weight-light:300;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--tracking-tight:-.025em;--tracking-wider:.05em;--tracking-widest:.1em;--radius-md:.375rem;--animate-spin:spin 1s linear infinite;--animate-pulse:pulse 2s cubic-bezier(.4, 0, .6, 1) infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1)}@supports (color:lab(0% 0 0)){:root,:host{--color-zinc-950:lab(2.51107% .242703 -.886115)}}}@layer base,components;@layer utilities{.visible{visibility:visible}.absolute{position:absolute}.relative{position:relative}.inset-0{inset:calc(var(--spacing) * 0)}.inset-x-0{inset-inline:calc(var(--spacing) * 0)}.inset-y-0{inset-block:calc(var(--spacing) * 0)}.bottom-0{bottom:calc(var(--spacing) * 0)}.left-0{left:calc(var(--spacing) * 0)}.z-10{z-index:10}.container{width:100%}@media (min-width:40rem){.container{max-width:40rem}}@media (min-width:48rem){.container{max-width:48rem}}@media (min-width:64rem){.container{max-width:64rem}}@media (min-width:80rem){.container{max-width:80rem}}@media (min-width:96rem){.container{max-width:96rem}}.m-0{margin:calc(var(--spacing) * 0)}.mt-3{margin-top:calc(var(--spacing) * 3)}.ml-1{margin-left:calc(var(--spacing) * 1)}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.inline{display:inline}.inline-flex{display:inline-flex}.h-2{height:calc(var(--spacing) * 2)}.h-4{height:calc(var(--spacing) * 4)}.h-5{height:calc(var(--spacing) * 5)}.h-6{height:calc(var(--spacing) * 6)}.h-7{height:calc(var(--spacing) * 7)}.h-8{height:calc(var(--spacing) * 8)}.h-\[1px\]{height:1px}.h-\[48px\]{height:48px}.h-full{height:100%}.h-screen{height:100vh}.min-h-0{min-height:calc(var(--spacing) * 0)}.w-2{width:calc(var(--spacing) * 2)}.w-4{width:calc(var(--spacing) * 4)}.w-5{width:calc(var(--spacing) * 5)}.w-7{width:calc(var(--spacing) * 7)}.w-8{width:calc(var(--spacing) * 8)}.w-\[16px\]{width:16px}.w-\[120px\]{width:120px}.w-\[280px\]{width:280px}.w-full{width:100%}.max-w-\[400px\]{max-width:400px}.flex-1{flex:1}.shrink-0{flex-shrink:0}.animate-pulse{animation:var(--animate-pulse)}.animate-spin{animation:var(--animate-spin)}.cursor-default{cursor:default}.resize{resize:both}.grid-cols-\[auto_minmax\(0\,1fr\)_auto\]{grid-template-columns:auto minmax(0,1fr) auto}.flex-col{flex-direction:column}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-between{justify-content:space-between}.justify-center{justify-content:center}.gap-1{gap:calc(var(--spacing) * 1)}.gap-1\.5{gap:calc(var(--spacing) * 1.5)}.gap-2{gap:calc(var(--spacing) * 2)}.gap-3{gap:calc(var(--spacing) * 3)}:where(.space-y-2>:not(:last-child)){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing) * 2) * var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing) * 2) * calc(1 - var(--tw-space-y-reverse)))}.truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-hidden{overflow-x:hidden}.overflow-y-auto{overflow-y:auto}.rounded-full{border-radius:3.40282e38px}.rounded-md{border-radius:var(--radius-md)}.border{border-style:var(--tw-border-style);border-width:1px}.border-0{border-style:var(--tw-border-style);border-width:0}.bg-black\/\[0\.02\]{background-color:#00000005}@supports (color:color-mix(in lab, red, red)){.bg-black\/\[0\.02\]{background-color:color-mix(in oklab, var(--color-black) 2%, transparent)}}.bg-transparent{background-color:#0000}.bg-zinc-950{background-color:var(--color-zinc-950)}.p-0{padding:calc(var(--spacing) * 0)}.p-3{padding:calc(var(--spacing) * 3)}.p-4{padding:calc(var(--spacing) * 4)}.px-2{padding-inline:calc(var(--spacing) * 2)}.px-4{padding-inline:calc(var(--spacing) * 4)}.py-0{padding-block:calc(var(--spacing) * 0)}.py-0\.5{padding-block:calc(var(--spacing) * .5)}.py-1\.5{padding-block:calc(var(--spacing) * 1.5)}.py-3{padding-block:calc(var(--spacing) * 3)}.font-mono{font-family:var(--font-mono)}.text-sm{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xs{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-\[9px\]{font-size:9px}.text-\[10px\]{font-size:10px}.text-\[12px\]{font-size:12px}.text-\[13px\]{font-size:13px}.leading-none{--tw-leading:1;line-height:1}.font-bold{--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-light{--tw-font-weight:var(--font-weight-light);font-weight:var(--font-weight-light)}.font-medium{--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold{--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.tracking-tight{--tw-tracking:var(--tracking-tight);letter-spacing:var(--tracking-tight)}.tracking-wider{--tw-tracking:var(--tracking-wider);letter-spacing:var(--tracking-wider)}.tracking-widest{--tw-tracking:var(--tracking-widest);letter-spacing:var(--tracking-widest)}.text-\(--accents-3\){color:var(--accents-3)}.text-\(--accents-4\){color:var(--accents-4)}.text-\(--accents-5\){color:var(--accents-5)}.text-\(--accents-6\){color:var(--accents-6)}.text-\(--accents-7\){color:var(--accents-7)}.text-\(--muted-foreground\){color:var(--muted-foreground)}.text-\(--warning\){color:var(--warning)}.text-white{color:var(--color-white)}.uppercase{text-transform:uppercase}.tabular-nums{--tw-numeric-spacing:tabular-nums;font-variant-numeric:var(--tw-ordinal, ) var(--tw-slashed-zero, ) var(--tw-numeric-figure, ) var(--tw-numeric-spacing, ) var(--tw-numeric-fraction, )}.opacity-0{opacity:0}.opacity-40{opacity:.4}.opacity-70{opacity:.7}.opacity-80{opacity:.8}.opacity-90{opacity:.9}.transition-all{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity{transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-200{--tw-duration:.2s;transition-duration:.2s}.duration-500{--tw-duration:.5s;transition-duration:.5s}.ease-\[cubic-bezier\(0\.4\,0\,0\.2\,1\)\]{--tw-ease:cubic-bezier(.4,0,.2,1);transition-timing-function:cubic-bezier(.4,0,.2,1)}.select-none{-webkit-user-select:none;user-select:none}@media (hover:hover){.group-hover\:opacity-100:is(:where(.group):hover *){opacity:1}.hover\:bg-\(--accents-1\):hover{background-color:var(--accents-1)}.hover\:text-\(--accents-6\):hover{color:var(--accents-6)}}}.ant-typography.font-mono{font-family:var(--font-mono)}:root{--font-mono:"JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--background:#fff;--foreground:#000;--ds-gray-100:#fafafa;--ds-gray-200:#eaeaea;--ds-gray-300:#999;--ds-gray-400:#888;--ds-gray-500:#666;--ds-gray-600:#444;--ds-gray-700:#333;--ds-gray-800:#111;--ds-gray-900:#000;--ds-gray-1000:#000;--ds-red-100:#fff0f0;--ds-red-200:#ffebeb;--ds-red-300:#ffe6e6;--ds-red-700:#e5484d;--ds-red-800:#da2f35;--ds-red-900:#cb2a2f;--ds-green-100:#effbef;--ds-green-200:#ebfaeb;--ds-green-300:#daf6da;--ds-green-700:#45a557;--ds-green-800:#398e4a;--ds-green-900:#297a3a;--ds-amber-100:#fff6e6;--ds-amber-200:#fff4d6;--ds-amber-300:#fef0cd;--ds-amber-700:#ffb224;--ds-amber-800:#ff990a;--ds-amber-900:#a35200;--ds-blue-700:#0070f3;--accents-1:var(--ds-gray-100);--accents-2:var(--ds-gray-200);--accents-3:var(--ds-gray-300);--accents-4:var(--ds-gray-400);--accents-5:var(--ds-gray-500);--accents-6:var(--ds-gray-600);--accents-7:var(--ds-gray-700);--accents-8:var(--ds-gray-800);--border:var(--accents-2);--muted:var(--accents-1);--muted-foreground:var(--accents-5);--primary:var(--foreground);--success:var(--ds-green-700);--error:var(--ds-red-800);--warning:var(--ds-amber-700);--lightningcss-light:initial;--lightningcss-dark: ;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light}[data-theme=dark]{--background:#000;--foreground:#fff;--ds-gray-100:#111;--ds-gray-200:#333;--ds-gray-300:#444;--ds-gray-400:#666;--ds-gray-500:#888;--ds-gray-600:#999;--ds-gray-700:#eaeaea;--ds-gray-800:#fafafa;--ds-gray-900:#fff;--ds-gray-1000:#fff;--ds-red-100:#2a1314;--ds-red-200:#3c1618;--ds-red-300:#561a1e;--ds-red-700:#e5484d;--ds-red-800:#d93036;--ds-red-900:#ff6166;--ds-green-100:#0b2212;--ds-green-200:#0f2e18;--ds-green-300:#12361b;--ds-green-700:#45a557;--ds-green-800:#398e4a;--ds-green-900:#62c073;--ds-amber-100:#291800;--ds-amber-200:#331b00;--ds-amber-300:#4d2a00;--ds-amber-700:#ffb224;--ds-amber-800:#ff990a;--ds-amber-900:#f2a20d;--ds-blue-700:#0070f3;--accents-1:var(--ds-gray-100);--accents-2:var(--ds-gray-200);--accents-3:var(--ds-gray-300);--accents-4:var(--ds-gray-400);--accents-5:var(--ds-gray-500);--accents-6:var(--ds-gray-600);--accents-7:var(--ds-gray-700);--accents-8:var(--ds-gray-800);--border:var(--accents-2);--muted:var(--accents-1);--muted-foreground:var(--accents-5);--primary:var(--foreground);--success:var(--ds-green-700);--error:var(--ds-red-800);--warning:var(--ds-amber-700);--lightningcss-light: ;--lightningcss-dark:initial;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark}*{box-sizing:border-box}body{background:var(--background);min-height:100vh;color:var(--foreground);margin:0;font-family:Inter,system-ui,-apple-system,sans-serif;overflow:hidden}.ant-input-affix-wrapper:focus,.ant-input-affix-wrapper-focused{border-color:var(--foreground);box-shadow:0 0 0 1px var(--foreground)}.ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected{transition:none}@keyframes status-flash{0%{filter:brightness()}5%{filter:brightness(2.5)}15%{filter:brightness(1.8)}40%{filter:brightness(1.3)}to{filter:brightness()}}.status-icon-flash{animation:1.5s ease-out status-flash}@keyframes progress-segment-flash{0%{filter:brightness();box-shadow:none}10%{filter:brightness(2.5);box-shadow:0 0 8px 1px}to{filter:brightness();box-shadow:none}}.progress-flash-active{animation:1s cubic-bezier(.4,0,.2,1) progress-segment-flash}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-tracking{syntax:"*";inherits:false}@property --tw-ordinal{syntax:"*";inherits:false}@property --tw-slashed-zero{syntax:"*";inherits:false}@property --tw-numeric-figure{syntax:"*";inherits:false}@property --tw-numeric-spacing{syntax:"*";inherits:false}@property --tw-numeric-fraction{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse{50%{opacity:.5}}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! LICENSE: 3.d3d6c6e4cf.js.LICENSE.txt */
|
package/dist/client/entry.d.ts
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export type FakeTimerInstallOpts = Record<string, unknown>;
|
|
2
|
-
export type FakeTimerWithContext = {
|
|
3
|
-
timers: Record<string, unknown>;
|
|
4
|
-
};
|
|
5
|
-
export type InstalledClock = {
|
|
6
|
-
now: number;
|
|
7
|
-
reset: () => void;
|
|
8
|
-
uninstall: () => void;
|
|
9
|
-
runAll: () => void;
|
|
10
|
-
runAllAsync: () => Promise<void>;
|
|
11
|
-
runToLast: () => void;
|
|
12
|
-
runToLastAsync: () => Promise<void>;
|
|
13
|
-
tick: (ms: number) => void;
|
|
14
|
-
tickAsync: (ms: number) => Promise<void>;
|
|
15
|
-
next: () => void;
|
|
16
|
-
nextAsync: () => Promise<void>;
|
|
17
|
-
runToFrame: () => void;
|
|
18
|
-
runMicrotasks: () => void;
|
|
19
|
-
setSystemTime: (now?: number | Date) => void;
|
|
20
|
-
countTimers: () => number;
|
|
21
|
-
};
|
|
22
|
-
export declare const withGlobal: (_global: typeof globalThis) => {
|
|
23
|
-
timers: {};
|
|
24
|
-
install: (_config?: FakeTimerInstallOpts) => InstalledClock;
|
|
25
|
-
};
|
package/dist/client/public.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Re-export runtime API from @rstest/core/internal/browser-runtime for browser use.
|
|
3
|
-
* This file is used as an alias target for '@rstest/core' in browser mode.
|
|
4
|
-
*
|
|
5
|
-
* Uses @rstest/core/internal/browser-runtime which only exports the test APIs
|
|
6
|
-
* (describe, it, expect, etc.) without any Node.js dependencies.
|
|
7
|
-
*/
|
|
8
|
-
export type { Assertion, Mock } from '@rstest/core';
|
|
9
|
-
export * from '@rstest/core/internal/browser-runtime';
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Browser snapshot environment that proxies file operations to the host
|
|
3
|
-
* via postMessage RPC through the container.
|
|
4
|
-
*/
|
|
5
|
-
export declare class BrowserSnapshotEnvironment {
|
|
6
|
-
getVersion(): string;
|
|
7
|
-
getHeader(): string;
|
|
8
|
-
resolveRawPath(_testPath: string, rawPath: string): Promise<string>;
|
|
9
|
-
resolvePath(filepath: string): Promise<string>;
|
|
10
|
-
prepareDirectory(): Promise<void>;
|
|
11
|
-
saveSnapshotFile(filepath: string, snapshot: string): Promise<void>;
|
|
12
|
-
readSnapshotFile(filepath: string): Promise<string | null>;
|
|
13
|
-
removeSnapshotFile(filepath: string): Promise<void>;
|
|
14
|
-
/**
|
|
15
|
-
* Process stack trace for inline snapshots.
|
|
16
|
-
* Maps bundled URLs back to original source file paths.
|
|
17
|
-
*/
|
|
18
|
-
processStackTrace(stack: {
|
|
19
|
-
file: string;
|
|
20
|
-
line: number;
|
|
21
|
-
column: number;
|
|
22
|
-
method: string;
|
|
23
|
-
}): {
|
|
24
|
-
file: string;
|
|
25
|
-
line: number;
|
|
26
|
-
column: number;
|
|
27
|
-
method: string;
|
|
28
|
-
};
|
|
29
|
-
}
|
|
@@ -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 {};
|