getsentry / sentry-javascript

Official Sentry SDKs for JavaScript
https://sentry.io
MIT License
7.97k stars 1.57k forks source link

Sentry-Testkit is broken with version 5+ #1993

Closed zivl closed 5 years ago

zivl commented 5 years ago

Package + Version

Version:

5.0.3

Description

I've upgraded Sentry to latest version but my tests using sentry-testkit are broken. I didn't see any documentation regarding the breaking changes...

here is a code example to reproduce: https://codesandbox.io/s/4rok4z5vl4

HazAT commented 5 years ago

Hey, I am sure it's about the transport, we renamed captureEvent to sendEvent The release notes say it https://github.com/getsentry/sentry-javascript/releases/tag/5.0.0

Can you try this?

zivl commented 5 years ago

Yeah I will give it a try

zivl commented 5 years ago

yep... added another function sendEvent to be exported in transport so now I'm supporting both versions of Sentry

HazAT commented 5 years ago

Cool, thanks 🎉 And btw great stuff with the sentry-testkit 🥇