@rstest/browser 0.11.0 → 0.11.2
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/js/{328.37af068e21.js → 117.3da95caa39.js} +1006 -1006
- package/dist/browser-container/container-static/js/117.3da95caa39.js.LICENSE.txt +1 -0
- package/dist/browser-container/container-static/js/{index.c8fe4ff310.js → index.6e4da8c9ab.js} +9 -9
- package/dist/browser-container/index.html +1 -1
- package/dist/browserExecutor.d.ts +11 -0
- package/dist/configValidation.d.ts +6 -1
- package/dist/hostController.d.ts +2 -6
- package/dist/index.d.ts +4 -3
- package/dist/index.js +539 -292
- package/dist/protocol.d.ts +2 -2
- package/package.json +5 -5
- package/src/AGENTS.md +17 -1
- package/src/browserExecutor.ts +138 -0
- package/src/client/AGENTS.md +20 -13
- package/src/client/entry.ts +62 -2
- package/src/client/snapshot.ts +1 -2
- package/src/concurrency.ts +42 -25
- package/src/configValidation.ts +182 -1
- package/src/hostController.ts +476 -337
- package/src/index.ts +9 -5
- package/src/protocol.ts +2 -2
- package/dist/browser-container/container-static/js/328.37af068e21.js.LICENSE.txt +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/*! LICENSE: 117.3da95caa39.js.LICENSE.txt */
|
package/dist/browser-container/container-static/js/{index.c8fe4ff310.js → index.6e4da8c9ab.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
(()=>{
|
|
2
2
|
"use strict";
|
|
3
3
|
var e, t, s, l, r, o, a = {
|
|
4
|
-
|
|
4
|
+
1086 (e, t, s) {
|
|
5
5
|
var l = s(9793);
|
|
6
6
|
let r = "__rstest_dispatch_response__";
|
|
7
7
|
var o = s(9968), a = s(7311), i = s(7125), n = s(405), c = s(7541);
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
})
|
|
16
16
|
});
|
|
17
17
|
};
|
|
18
|
-
var u = s(5314), p = s(4068), h = s(
|
|
18
|
+
var u = s(5314), p = s(4068), h = s(7708), f = s(9439), x = s(2865);
|
|
19
19
|
let m = (e, t)=>{
|
|
20
20
|
if (!t) return e;
|
|
21
21
|
let s = t.endsWith("/") ? t.slice(0, -1) : t;
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
}
|
|
33
33
|
}, "*"), fetch(`/__open-in-editor?file=${encodeURIComponent(e)}`).catch(()=>{});
|
|
34
34
|
};
|
|
35
|
-
var j = s(
|
|
35
|
+
var j = s(973), v = s(1061), y = s(5631), _ = s(3255), C = s(4870);
|
|
36
36
|
let w = {
|
|
37
37
|
idle: {
|
|
38
38
|
label: "Idle",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
})
|
|
79
79
|
}
|
|
80
80
|
};
|
|
81
|
-
var k = s(5665), S = s(9669), F = s(7707), N = s(
|
|
81
|
+
var k = s(5665), S = s(9669), F = s(7707), N = s(9322), A = s(4867), P = s(2888), M = s(9365), z = s(5433);
|
|
82
82
|
let R = {
|
|
83
83
|
iPhoneSE: {
|
|
84
84
|
width: 375,
|
|
@@ -567,7 +567,7 @@
|
|
|
567
567
|
children: t
|
|
568
568
|
});
|
|
569
569
|
};
|
|
570
|
-
var L = s(
|
|
570
|
+
var L = s(2004), q = s(9422), H = s(4967), J = (e)=>(0, l.jsxs)("svg", {
|
|
571
571
|
xmlns: "http://www.w3.org/2000/svg",
|
|
572
572
|
fill: "none",
|
|
573
573
|
viewBox: "0 0 217 200",
|
|
@@ -1585,7 +1585,7 @@
|
|
|
1585
1585
|
]
|
|
1586
1586
|
});
|
|
1587
1587
|
};
|
|
1588
|
-
var X = s(4385), K = s(
|
|
1588
|
+
var X = s(4385), K = s(8880), Y = s(7151), Q = s(2880), ee = s(6732), et = s(4778);
|
|
1589
1589
|
let es = (0, n.memo)((e)=>{
|
|
1590
1590
|
let { counts: t, isRunning: s } = e, r = s && 0 === t.running;
|
|
1591
1591
|
return (0, l.jsx)("div", {
|
|
@@ -1725,7 +1725,7 @@
|
|
|
1725
1725
|
]
|
|
1726
1726
|
});
|
|
1727
1727
|
};
|
|
1728
|
-
var er = s(9573), eo = s(585), ea = s(
|
|
1728
|
+
var er = s(9573), eo = s(585), ea = s(2876), ei = s(2022), en = s(3004);
|
|
1729
1729
|
let ec = (e)=>`__project__${e}`, ed = (e, t)=>`${e}::suite::${t.join("::")}`, eu = (e, t)=>{
|
|
1730
1730
|
let s = e;
|
|
1731
1731
|
for(let e = 1; e <= t.length; e++)s = ed(s, t.slice(0, e));
|
|
@@ -3047,7 +3047,7 @@
|
|
|
3047
3047
|
}, (o = self.rspackChunk_rstest_browser_ui = self.rspackChunk_rstest_browser_ui || []).forEach(r.bind(null, 0)), o.push = r.bind(null, o.push.bind(o));
|
|
3048
3048
|
var c = n.O(void 0, [
|
|
3049
3049
|
"783",
|
|
3050
|
-
"
|
|
3051
|
-
], ()=>n(
|
|
3050
|
+
"117"
|
|
3051
|
+
], ()=>n(1086));
|
|
3052
3052
|
c = n.O(c);
|
|
3053
3053
|
})();
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
<script>
|
|
13
13
|
window.__RSTEST_BROWSER_OPTIONS__ = __RSTEST_OPTIONS_PLACEHOLDER__;
|
|
14
14
|
</script>
|
|
15
|
-
<script defer src="/container-static/js/lib-react.62b27a21db.js"></script><script defer src="/container-static/js/
|
|
15
|
+
<script defer src="/container-static/js/lib-react.62b27a21db.js"></script><script defer src="/container-static/js/117.3da95caa39.js"></script><script defer src="/container-static/js/index.6e4da8c9ab.js"></script><link href="/container-static/css/index.0521ff95b1.css" rel="stylesheet"></head>
|
|
16
16
|
<body>
|
|
17
17
|
<div id="root"></div>
|
|
18
18
|
</body>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { type BrowserTestExecutor, type CreateBrowserExecutorOptions, type RstestContext } from '@rstest/core/internal/browser';
|
|
2
|
+
/**
|
|
3
|
+
* The browser side of the {@link TestExecutor} seam. It delegates into the
|
|
4
|
+
* existing `hostController` in place (no file split this phase) and adapts the
|
|
5
|
+
* host's `BrowserTestRunResult` into the shared `ExecutorCycleOutcome` — the
|
|
6
|
+
* former `toBrowserOutcome` core adapter is folded in here and deleted.
|
|
7
|
+
*
|
|
8
|
+
* Only used in non-watch runs (the shared executor loop); browser watch stays
|
|
9
|
+
* host-driven and self-finalizing until Phase 6, so `runCycle` maps directly
|
|
10
|
+
* onto one `runBrowserController` invocation and its coverage/close semantics.
|
|
11
|
+
*/ export declare function createBrowserExecutor(context: RstestContext, options: CreateBrowserExecutorOptions): Promise<BrowserTestExecutor>;
|
|
@@ -1,2 +1,7 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { type RstestContext, type RuntimeConfig } from '@rstest/core/internal/browser';
|
|
2
|
+
/**
|
|
3
|
+
* Every browser-ignored RuntimeConfig key this module checks — the union of the
|
|
4
|
+
* warn descriptors and the specially-handled keys. Exported for the lockstep
|
|
5
|
+
* test that asserts it covers {@link browserIgnoredRuntimeConfigKeys}.
|
|
6
|
+
*/ export declare const browserValidatedIgnoredKeys: (keyof RuntimeConfig)[];
|
|
2
7
|
export declare const validateBrowserConfig: (context: RstestContext) => void;
|
package/dist/hostController.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type BrowserTestRunOptions, type BrowserTestRunResult, type ListCommandResult, type RstestContext } from '@rstest/core/internal/browser';
|
|
1
|
+
import { type BrowserTestRunOptions, type BrowserTestRunResult, type ListBrowserTestsOptions, type ListCommandResult, type RstestContext } from '@rstest/core/internal/browser';
|
|
2
2
|
type LazyCompilationModule = {
|
|
3
3
|
nameForCondition?: () => string | null | undefined;
|
|
4
4
|
};
|
|
@@ -61,9 +61,5 @@ export declare const runBrowserController: (context: RstestContext, options?: Br
|
|
|
61
61
|
* Collect test metadata from browser mode projects without running them.
|
|
62
62
|
* This function creates a headless browser runtime, loads test files,
|
|
63
63
|
* and collects their test structure (describe/test declarations).
|
|
64
|
-
*/ export declare const listBrowserTests: (context: RstestContext, options?:
|
|
65
|
-
shardedEntries?: Map<string, {
|
|
66
|
-
entries: Record<string, string>;
|
|
67
|
-
}>;
|
|
68
|
-
}) => Promise<ListBrowserTestsResult>;
|
|
64
|
+
*/ export declare const listBrowserTests: (context: RstestContext, options?: ListBrowserTestsOptions) => Promise<ListBrowserTestsResult>;
|
|
69
65
|
export { };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import type { BrowserTestRunOptions, BrowserTestRunResult, RstestContext } from '@rstest/core/internal/browser';
|
|
1
|
+
import type { BrowserTestRunOptions, BrowserTestRunResult, ListBrowserTestsOptions, RstestContext } from '@rstest/core/internal/browser';
|
|
2
|
+
import { createBrowserExecutor } from './browserExecutor.js';
|
|
2
3
|
import { validateBrowserConfig } from './configValidation.js';
|
|
3
4
|
import { type ListBrowserTestsResult } from './hostController.js';
|
|
4
|
-
export { validateBrowserConfig };
|
|
5
|
+
export { createBrowserExecutor, validateBrowserConfig };
|
|
5
6
|
export declare function runBrowserTests(context: RstestContext, options?: BrowserTestRunOptions): Promise<BrowserTestRunResult | void>;
|
|
6
|
-
export declare function listBrowserTests(context: RstestContext, options?:
|
|
7
|
+
export declare function listBrowserTests(context: RstestContext, options?: ListBrowserTestsOptions): Promise<ListBrowserTestsResult>;
|
|
7
8
|
export type { BrowserTestRunOptions, BrowserTestRunResult, ListBrowserTestsResult };
|