@rstest/browser 0.11.3 → 0.11.4
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/{949.7d935e2ac9.js → 243.a8eed2b9e7.js} +223 -223
- package/dist/browser-container/container-static/js/243.a8eed2b9e7.js.LICENSE.txt +1 -0
- package/dist/browser-container/container-static/js/{index.492a6c2f8b.js → index.84aaafaf21.js} +78 -73
- package/dist/browser-container/index.html +1 -1
- package/dist/index.js +232 -139
- package/package.json +7 -6
- package/src/browserExecutor.ts +5 -3
- package/src/configValidation.ts +6 -0
- package/src/hostController.ts +426 -116
- package/dist/browser-container/container-static/js/949.7d935e2ac9.js.LICENSE.txt +0 -1
- package/dist/watchCliShortcuts.d.ts +0 -6
- package/src/AGENTS.md +0 -150
- package/src/client/AGENTS.md +0 -89
- package/src/watchCliShortcuts.ts +0 -77
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rstest/browser",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.4",
|
|
4
4
|
"description": "Browser mode support for Rstest testing framework.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"rstest",
|
|
@@ -48,21 +48,21 @@
|
|
|
48
48
|
"ws": "^8.21.1"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@rslib/core": "0.
|
|
51
|
+
"@rslib/core": "1.0.0-beta.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
|
-
"@vitest/snapshot": "^
|
|
55
|
+
"@vitest/snapshot": "^4.1.10",
|
|
56
56
|
"birpc": "^4.0.0",
|
|
57
57
|
"picomatch": "^4.0.5",
|
|
58
58
|
"playwright": "^1.61.1",
|
|
59
|
-
"@rstest/core": "0.11.3",
|
|
60
59
|
"@rstest/browser-ui": "0.0.0",
|
|
60
|
+
"@rstest/core": "0.11.4",
|
|
61
61
|
"@rstest/tsconfig": "0.0.1"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
64
|
"playwright": "^1.49.1",
|
|
65
|
-
"@rstest/core": "^0.11.
|
|
65
|
+
"@rstest/core": "^0.11.4"
|
|
66
66
|
},
|
|
67
67
|
"peerDependenciesMeta": {
|
|
68
68
|
"playwright": {
|
|
@@ -78,6 +78,7 @@
|
|
|
78
78
|
},
|
|
79
79
|
"scripts": {
|
|
80
80
|
"build": "rslib build",
|
|
81
|
-
"dev": "rslib build --watch"
|
|
81
|
+
"dev": "rslib build --watch",
|
|
82
|
+
"lint": "rslint ."
|
|
82
83
|
}
|
|
83
84
|
}
|
package/src/browserExecutor.ts
CHANGED
|
@@ -36,6 +36,7 @@ export async function createBrowserExecutor(
|
|
|
36
36
|
const {
|
|
37
37
|
projects,
|
|
38
38
|
coverageProvider,
|
|
39
|
+
shardedEntries,
|
|
39
40
|
freezeShardedEntries,
|
|
40
41
|
filesOnly,
|
|
41
42
|
allowEmptyRun,
|
|
@@ -90,12 +91,13 @@ export async function createBrowserExecutor(
|
|
|
90
91
|
): Promise<ExecutorCycleOutcome> {
|
|
91
92
|
const cycle = runBrowserController(context, {
|
|
92
93
|
projects,
|
|
93
|
-
shardedEntries
|
|
94
|
+
shardedEntries,
|
|
94
95
|
freezeShardedEntries,
|
|
95
96
|
allowEmptyRun,
|
|
96
97
|
appliedModifyRstestConfigEnvironments,
|
|
97
98
|
onTraceEvents: opts.onTraceEvents,
|
|
98
99
|
env: opts.env,
|
|
100
|
+
updateSnapshot: opts.updateSnapshot,
|
|
99
101
|
});
|
|
100
102
|
inFlightCycle = cycle;
|
|
101
103
|
try {
|
|
@@ -108,10 +110,10 @@ export async function createBrowserExecutor(
|
|
|
108
110
|
inFlightCycle = undefined;
|
|
109
111
|
}
|
|
110
112
|
},
|
|
111
|
-
async collect(
|
|
113
|
+
async collect(): Promise<{ list: ListCommandResult[] }> {
|
|
112
114
|
const pending = listBrowserTests(context, {
|
|
113
115
|
projects,
|
|
114
|
-
shardedEntries
|
|
116
|
+
shardedEntries,
|
|
115
117
|
freezeShardedEntries,
|
|
116
118
|
filesOnly,
|
|
117
119
|
appliedModifyRstestConfigEnvironments,
|
package/src/configValidation.ts
CHANGED
|
@@ -45,6 +45,12 @@ const ignoredKeyWarnings: Partial<
|
|
|
45
45
|
'a fresh context.',
|
|
46
46
|
browserOnly: true,
|
|
47
47
|
},
|
|
48
|
+
federation: {
|
|
49
|
+
isNonDefault: (config) => config.federation === true,
|
|
50
|
+
message: () =>
|
|
51
|
+
'Ignoring federation in browser mode: it only applies to the Node runner.',
|
|
52
|
+
browserOnly: true,
|
|
53
|
+
},
|
|
48
54
|
detectAsyncLeaks: {
|
|
49
55
|
isNonDefault: (config) => config.detectAsyncLeaks === true,
|
|
50
56
|
message: () =>
|