Skip to content

Commit 618cd6f

Browse files
committed
Add a note about running frontend with test fixture data
1 parent 3d6a007 commit 618cd6f

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,18 @@ yarn run start:staging
2828
This will run a local frontend using the staging backend (hosted on Heroku at
2929
[staging-crates-io.herokuapp.com](https://staging-crates-io.herokuapp.com)).
3030

31-
If you'd like to run the frontend with a specific backend endpoint, you can
32-
specify arguments to `yarn start`. For example you can set the proxy to
33-
`https://crates.io/` to use the production version.
31+
If you want to set up a particular situation, you can edit the fixture data used
32+
for tests in `app/mirage/fixtures`. Note that the fixture data does not contain
33+
JSON needed to support every page, so some pages might not load correctly. To
34+
run the frontend and use that data, don't specify any backend:
35+
36+
```bash
37+
yarn run start
38+
```
39+
40+
If you'd like to run the frontend with a specific backend endpoint, you can
41+
specify arguments to `yarn start`. For example you can set the proxy to
42+
`https://crates.io/` to use the production version.
3443

3544
**Note: it is also possible to make changes to the production data**
3645

0 commit comments

Comments
 (0)