You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+30-9
Original file line number
Diff line number
Diff line change
@@ -19,16 +19,17 @@ npx expectations -h
19
19
Usage: expectations [options] [command]
20
20
21
21
Options:
22
-
-V, --version output the version number
23
-
-c, --config <path>set config path. defaults to './mockserver.config.json' (default: "./mockserver.config.json")
24
-
--concurrency <number>set number of concurrent requests. defaults to '10' (default: "10")
25
-
-h, --help display helpforcommand
22
+
-V, --version output the version number
23
+
-c, --config <path>set config path. defaults to './mockserver.config.json' (default: "./mockserver.config.json")
24
+
--concurrency <number>set number of concurrent requests. defaults to '10' (default: "10")
25
+
-h, --help display helpforcommand
26
26
27
27
Commands:
28
-
set<paths...> send prepared expectations up to the mockserver instance
29
-
clear <paths...> clear all expectations from the mockserver instance
30
-
reset resets everything in the running mockserver instance
31
-
help [command] display helpforcommand
28
+
set<paths...> send prepared expectations up to the mockserver instance
29
+
clear <paths...> clear all expectations from the mockserver instance
30
+
reset resets all expectations and request logs in the running mockserver instance
31
+
get-active [options] <paths...> get all active expectations from the mockserver instance
32
+
help [command] display helpforcommand
32
33
```
33
34
34
35
## Installation for development
@@ -65,12 +66,14 @@ File can be placed anywhere. If `-c` or `--config` option is not provided, progr
65
66
66
67
Concurrency of promises sets, how many promises many promises will be held in the queue at max to resolve. Defaults to `10`.
67
68
68
-
This limiting is applied for both `set`and `clear` commands.
69
+
This limiting is applied for both `set`, `clear`and `get-active` commands.
69
70
70
71
-`set` is limited for how many expectations requests to mock-server can be sent at once.
71
72
72
73
-`clear` is limited for how many `expectations.json` files can be processed at once. If the expectations array in the file contains multiple expectations, they will be processed one by one sequentially.
73
74
75
+
-`get-active` is limited for how many requests to mock-server regarding active expectations for the given expectation of the `.expectations.json` file can be sent at once.
76
+
74
77
Uses [p-queue](https://github.com/sindresorhus/p-queue) library under the hood.
0 commit comments