QUnit's noglobals
setting catches __SENTRY__
#9933
-
I like to use QUnit's After upgrading Sentry, some of my tests are failing due to the introducion of a There doesn't appear to be a way in QUnit to specify globals to ignore. Any ideas of the best course of action? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Can you just not enable Sentry/use Sentry methods in test environments? That should make sure no Sentry global is added. |
Beta Was this translation helpful? Give feedback.
-
Hi, so Sentry is already disabled in the test environment. As in, But the app code may still do something like I don't want to have to wrap that in an 🤔 |
Beta Was this translation helpful? Give feedback.
-
Yeh that'll do it, thanks I am little bit curious how |
Beta Was this translation helpful? Give feedback.
Yeah I agree that is not ideal, but we have to use rely on the global for our Sentry APIs.
Is there a workaround by adding the
__SENTRY__
global before the test starts?