@wdio/repl 10.0.0-alpha.18 → 10.0.0
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/AGENTS.md +24 -0
- package/package.json +5 -5
package/AGENTS.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# @wdio/repl
|
|
2
|
+
|
|
3
|
+
In-process REPL used by standalone `browser.debug()` and extended by
|
|
4
|
+
`@wdio/local-runner`.
|
|
5
|
+
|
|
6
|
+
## Tests
|
|
7
|
+
|
|
8
|
+
`tests/repl.test.ts` is the only suite for this package. Assert observable
|
|
9
|
+
REPL behavior through `eval` and the options passed to `repl.start`:
|
|
10
|
+
|
|
11
|
+
- Static `browser`, `driver`, `$`, and `$$` results are not executed, including
|
|
12
|
+
a command that only matches after `trim`.
|
|
13
|
+
- A command returns the vm result, a vm exception is the same error the
|
|
14
|
+
callback receives, and a later command runs after success or failure.
|
|
15
|
+
- A second command is ignored while a promise is still running.
|
|
16
|
+
- Sync values, fulfilled promises, rejected promises (message, and no stack),
|
|
17
|
+
and both timeout paths each call back once and then accept another command.
|
|
18
|
+
- `start()` stays pending until the `exit` listener runs, a second `start()`
|
|
19
|
+
throws, and commands evaluate in the object passed to `start()`.
|
|
20
|
+
- A custom `eval` keeps the REPL server as `this` and receives that same object.
|
|
21
|
+
|
|
22
|
+
Do not stub private methods. Do not accept `expect.any(Object)` for the
|
|
23
|
+
context passed to `start()`. A test that stays green when that wrapper or the
|
|
24
|
+
`exit` listener is removed is not covering the contract.
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wdio/repl",
|
|
3
|
-
"version": "10.0.0
|
|
3
|
+
"version": "10.0.0",
|
|
4
4
|
"description": "A WDIO helper utility to provide a repl interface for WebdriverIO",
|
|
5
5
|
"author": "Christian Bromann <mail@bromann.dev>",
|
|
6
6
|
"homepage": "https://github.com/webdriverio/webdriverio/tree/main/packages/wdio-repl",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"engines": {
|
|
9
|
-
"node": ">=
|
|
9
|
+
"node": ">=22.19.0"
|
|
10
10
|
},
|
|
11
11
|
"repository": {
|
|
12
12
|
"type": "git",
|
|
@@ -30,12 +30,12 @@
|
|
|
30
30
|
"types": "./build/index.d.ts"
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
|
-
"typeScriptVersion": "
|
|
33
|
+
"typeScriptVersion": "6.0.3",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@types/node": "^20.
|
|
35
|
+
"@types/node": "^22.20.4"
|
|
36
36
|
},
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "38bd5ff4dccfaadccce4bd678286f00594623da2"
|
|
41
41
|
}
|