Skip to content

Commit b0c2073

Browse files
committed
update readme
1 parent 1c58bf0 commit b0c2073

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,27 @@ _This repository is a work in progress_
55
The main purpose of this repository is to visualize the differences between the
66
[Sentry JS SDK](https://github.com/getsentry/sentry-javascript) version 7 and version 8. Those
77
example applications can also be used as a reference for using the JS SDKs.
8+
9+
## How to test apps and save the payloads
10+
11+
1. Change the `APP` variable of `utils/event-proxy-server/src/event-proxy-server.ts` to the app
12+
folder name you want to test.
13+
- Example: `apps/express` -> `APP = 'express'`
14+
2. Make sure you have a folder named like the app in `utils/event-proxy-server/payload-files`.
15+
- Example: `apps/express` -> `utils/event-proxy-server/payload-files/express`
16+
3. Run `yarn start:proxy-server`.
17+
4. Run `yarn start:[app]` like `start:express`.
18+
5. Check the "Disable Cache" option in the DevTools Network tab of your browser.
19+
6. Open the following URLs in your browser.
20+
7. The json file will be generated.
21+
22+
### Test URLs
23+
24+
- http://localhost:3030/test-success
25+
- http://localhost:3030/test-error
26+
- http://localhost:3030/test-param-success/1337
27+
- http://localhost:3030/test-param-error/1337
28+
- http://localhost:3030/test-success-manual
29+
- http://localhost:3030/test-error-manual
30+
- http://localhost:3030/test-local-variables-caught
31+
- http://localhost:3030/test-local-variables-uncaught

0 commit comments

Comments
 (0)