Skip to content

Commit 86c82c3

Browse files
authored
Fix typos and enhance README content
Corrected typos and improved clarity in the README.
1 parent a3faba9 commit 86c82c3

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ The base class of this package is:
1414

1515
## Motivation 💥
1616

17-
When running tests in playwright, sometimes you want to mock all network requests. Especially when running tests in a CI environment. This package provides an easy and type safe way to mock network requests for a whole API.
17+
When running tests in playwright, sometimes you want to mock all network requests. Especially when running tests in a CI environment. This package provides an easy and type-safe way to mock network requests for a whole API.
1818

1919
## Features 🔥
2020

@@ -30,11 +30,11 @@ When running tests in playwright, sometimes you want to mock all network request
3030

3131
✅ Supports EventSource & ndjson
3232

33-
✅ Supports WebSockets (beta)
33+
✅ Supports WebSockets
3434

3535
✅ No production dependencies (You need to have playwright installed, of course)
3636

37-
✅ ESM & CJS exports
37+
✅ ESM exports
3838

3939
The primary use case for this package is to create a mock server for your tests so that they do not need real network requests.
4040

@@ -129,6 +129,11 @@ srh.send('World');
129129
srh.close();
130130
```
131131

132+
## Execution order
133+
134+
When two registered stubs match a request URL, the latest stub (registered last) is used to respond.
135+
136+
132137
## Contributing 🧑🏻‍💻
133138

134139
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.

0 commit comments

Comments
 (0)