fix(serverless): Check if cloud event callback is a function (#9044)#11701
Conversation
6e4e95d to
f2d903b
Compare
AbhiPrasad
left a comment
There was a problem hiding this comment.
Thank you for a PR! Could you add a test to https://github.com/getsentry/sentry-javascript/blob/f2d903b1e034bd2c388fb0d8d63ce7fce8ef9ef9/packages/google-cloud-serverless/test/gcpfunction/cloud_event.test.ts about this?
f2d903b to
b176eb6
Compare
@AbhiPrasad Tests added! Thanks for the review 🙌 |
AbhiPrasad
left a comment
There was a problem hiding this comment.
Thank you for you contribution!
|
ah seems like theres some formatting issues. https://github.com/getsentry/sentry-javascript/actions/runs/8787015686/job/24111825459?pr=11701 Running |
|
FWIW I have been having build issues, apologies for the failed checks. Resolving those now! |
e18db31 to
9728041
Compare
|
@AbhiPrasad Thanks! Fixed that, and rebased 😄 |
9728041 to
f3d3c16
Compare
|
Thanks! |
Closes #9044
Adds relevant tests for testing handlers that return promises.
Before submitting a pull request, please take a look at our
Contributing guidelines and verify:
yarn lint) & (yarn test).