mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Report errors in tests to test-metamask
Sentry project (#7924)
Previously, all errors encountered during testing or production were sent to the primary `metamask` Sentry project, whereas development errors were sent to `test-metamask` instead. This change ensures that errors encountered during tests are sent to `test-metamask` as well.
This commit is contained in:
parent
cc78378b8e
commit
b8cdc928f6
@ -16,7 +16,7 @@ function setupSentry (opts) {
|
||||
// detect brave
|
||||
const isBrave = Boolean(window.chrome.ipcRenderer)
|
||||
|
||||
if (METAMASK_DEBUG) {
|
||||
if (METAMASK_DEBUG || process.env.IN_TEST) {
|
||||
console.log('Setting up Sentry Remote Error Reporting: SENTRY_DSN_DEV')
|
||||
sentryTarget = SENTRY_DSN_DEV
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user