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
-
Hi,
I'm looking at testing that captureException is sending data that is ran through my
beforeSend
function and obfuscates the data before sending.I'm mocking
fetch
andXMLHttpRequest
but It is not working. Is there a recommended way to usejest.spyOn
to check the request payload is being obfuscated?Beta Was this translation helpful? Give feedback.
All reactions