Skip to content

Commit

Permalink
chore(README.md): updating docs with mock configuration steps
Browse files Browse the repository at this point in the history
  • Loading branch information
willmendesneto committed Dec 17, 2023
1 parent eb7063f commit 91270b7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions README.md
Expand Up @@ -79,6 +79,7 @@ Here is a selection of the interesting parts:
│ ├── utils
├── test
│ ├── fixtures
├── mock
</pre>

#### `src/components`
Expand Down Expand Up @@ -122,6 +123,14 @@ A subset of files with methods and functions used on the tests as helpers. Mocks
A list of useful fixtures to be used in our tests, supporting types/interfaces


#### `mock`

A folder with files used on json-server configuration for API mocking purposes.

E.G: by adding `products.json` inside this folder, the endpoint `http://localhost:5173/api/products` will be available on the app.

> For more details on supported HTTP methods and such, please check https://github.com/alextim/vite-plugin-simple-json-server/tree/main/packages/vite-plugin-simple-json-server#readme
### Run the project

```bash
Expand Down

0 comments on commit 91270b7

Please sign in to comment.