Skip to content

Commit

Permalink
Update index.mdx (#10767)
Browse files Browse the repository at this point in the history
  • Loading branch information
matejminar authored Jul 17, 2024
1 parent 9e1c50d commit a5a65df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion develop-docs/frontend/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ Reflux implements the unidirectional data flow pattern outlined by [Flux](https:

Note: Your filename needs to be `.spec.tsx` for jest to run run it!

We have useful fixtures defined in [fixtures/js-stubs/](https://github.com/getsentry/sentry/tree/master/fixtures/js-stubs) Use these! If you are defining mock data in a repetitive way, it’s probably worth adding this these files. `routerContext` is a particularly useful one for providing the context object that most view are written to rely on.
We have useful fixtures defined in [tests/js/fixtures/](https://github.com/getsentry/sentry/tree/master/tests/js/fixtures) Use these! If you are defining mock data in a repetitive way, it’s probably worth adding this these files. `routerContext` is a particularly useful one for providing the context object that most view are written to rely on.

`Client.addMockResponse()` is the best way to mock API requests. it’s [our code](https://github.com/getsentry/sentry/blob/master/static/app/__mocks__/api.tsx) so if it’s confusing you, just put `console.log()` statements into its logic!

Expand Down

0 comments on commit a5a65df

Please sign in to comment.