mockaton 8.2.16 → 8.2.17
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/README.md +3 -3
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|

|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
_Mockaton_ is
|
|
7
|
+
_Mockaton_ is a mock server for developing and testing frontend apps.
|
|
8
8
|
|
|
9
9
|
With Mockaton, you don’t need to write code for wiring your mocks. Instead, it
|
|
10
10
|
scans a given directory for filenames following a convention similar to the
|
|
@@ -12,7 +12,7 @@ URL paths. For example, the following file will be served on `/api/user/1234`
|
|
|
12
12
|
```
|
|
13
13
|
my-mocks-dir/api/user/[user-id].GET.200.json
|
|
14
14
|
```
|
|
15
|
-
Also, you don’t need to mock everything.
|
|
15
|
+
Also, you don’t need to mock everything. Mockaton can request from your backend
|
|
16
16
|
the routes you don’t have mocks for. See `Config.proxyFallback` below.
|
|
17
17
|
|
|
18
18
|
By the way, [this browser
|
|
@@ -22,7 +22,7 @@ can create a TAR of your requests following that convention.
|
|
|
22
22
|
## Dashboard UI
|
|
23
23
|
|
|
24
24
|
In the dashboard, you can manually select which mock variant to serve for a particular
|
|
25
|
-
route.
|
|
25
|
+
route. So you can test different scenarios without changing code or the database state.
|
|
26
26
|
|
|
27
27
|
<picture>
|
|
28
28
|
<source media="(prefers-color-scheme: light)" srcset="./README-dashboard-light.png">
|
package/package.json
CHANGED