How to test Sentry's capture Exception in jest? #7189
Unanswered
martinkwan
asked this question in
Q&A
Replies: 1 comment
-
|
Hey @martinkwan - I think https://github.com/wix/sentry-testkit can help you here, it helps a lot with these integration style tests you are trying to do. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm looking at testing that captureException is sending data that is ran through my
beforeSendfunction and obfuscates the data before sending.I'm mocking
fetchandXMLHttpRequestbut It is not working. Is there a recommended way to usejest.spyOnto check the request payload is being obfuscated?Beta Was this translation helpful? Give feedback.
All reactions