Browse Source

test(ui): Update jest dsn (#70099)

Scott Cooper 10 months ago
parent
commit
e8726c5955
1 changed files with 4 additions and 2 deletions
  1. 4 2
      jest.config.ts

+ 4 - 2
jest.config.ts

@@ -279,11 +279,13 @@ const config: Config.InitialOptions = {
     sentryConfig: {
       init: {
         // jest project under Sentry organization (dev productivity team)
-        dsn: 'https://3fe1dce93e3a4267979ebad67f3de327@sentry.io/4857230',
+        dsn: CI
+          ? 'https://3fe1dce93e3a4267979ebad67f3de327@o1.ingest.us.sentry.io/4857230'
+          : false,
         // Use production env to reduce sampling of commits on master
         environment: CI ? (IS_MASTER_BRANCH ? 'ci:master' : 'ci:pull_request') : 'local',
         tracesSampleRate: CI ? 1 : 0.5,
-        profilesSampleRate: 0.1,
+        profilesSampleRate: CI ? 0.1 : 0,
         transportOptions: {keepAlive: true},
       },
       transactionOptions: {