Skip to content

Commit

Permalink
Report errors in tests to test-metamask Sentry project (MetaMask#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 and yqrashawn committed Feb 10, 2020
1 parent 5b68d03 commit b6473a3
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 @@ -18,7 +18,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 b6473a3

Please sign in to comment.