Skip to content

Commit

Permalink
Report errors in tests to test-metamask Sentry project (#7924)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Gudahtt authored Jan 29, 2020
1 parent cc78378 commit b8cdc92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/scripts/lib/setupSentry.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit b8cdc92

Please sign in to comment.