Skip to content

Commit bb8873e

Browse files
committed
Update docs
1 parent e45cc83 commit bb8873e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# `@aryzing/bun-mock-fetch`
22

3-
Mock fetch requests in Bun. Particularly useful when running tests.
3+
Mock fetch requests in Bun. Great for tests.
44

55
```shell
66
bun add @aryzing/bun-mock-fetch
@@ -53,7 +53,7 @@ mockFetch(/.*example.*/, {
5353
});
5454
```
5555

56-
Example in tests,
56+
Test example:
5757

5858
```typescript
5959
afterEach(() => {
@@ -79,9 +79,9 @@ test("second test", async () => {
7979
});
8080
```
8181

82-
Each call to `mockFetch` defines a new mock. At most one mock is used,, with each mock taking precendece over previously defined mocks.
82+
Each call to `mockFetch` defines a new mock. At most one mock is used, with each mock taking precendece over previously defined mocks.
8383

84-
By default, requests that aren't matched against any mock definitions are forwarded to the native built-in fetch. This behavior can be modified using `setIsUsingBuiltInFetchFallback()`.
84+
By default, requests that aren't matched against any mock definitions are forwarded to the native built-in fetch. This behavior can be modified with `setIsUsingBuiltInFetchFallback()`.
8585

8686
To clear the mocks and restore original built-in fetch,
8787

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aryzing/bun-mock-fetch",
3-
"version": "0.2.1",
3+
"version": "0.2.2",
44
"author": "Eduard Bardají Puig <@aryzing>",
55
"type": "module",
66
"main": "dist/index.js",

0 commit comments

Comments
 (0)