Skip to content

Commit

Permalink
remove the Sentry from this property as it's now implied by the par…
Browse files Browse the repository at this point in the history
…ent property
  • Loading branch information
HowardBraham committed Oct 1, 2024
1 parent 5639952 commit 0788633
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion app/scripts/lib/manifestFlags.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export type ManifestFlags = {
};
sentry?: {
tracesSampleRate?: number;
doNotForceSentryForThisTest?: boolean;
doNotForceForThisTest?: boolean;
};
};

Expand Down
4 changes: 2 additions & 2 deletions app/scripts/lib/setupSentry.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ function getSentryEnvironment() {

function getSentryTarget() {
if (
getManifestFlags().sentry?.doNotForceSentryForThisTest ||
getManifestFlags().sentry?.doNotForceForThisTest ||
(process.env.IN_TEST && !SENTRY_DSN_DEV)
) {
return SENTRY_DSN_FAKE;
Expand Down Expand Up @@ -272,7 +272,7 @@ async function getMetaMetricsEnabled() {

if (
METAMASK_BUILD_TYPE === 'mmi' ||
(flags.circleci && !flags.sentry?.doNotForceSentryForThisTest)
(flags.circleci && !flags.sentry?.doNotForceForThisTest)
) {
return true;
}
Expand Down
28 changes: 14 additions & 14 deletions test/e2e/tests/metrics/errors.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ describe('Sentry errors', function () {
title: this.test.fullTitle(),
testSpecificMock: mockSentryMigratorError,
manifestFlags: {
sentry: { doNotForceSentryForThisTest: true },
sentry: { doNotForceForThisTest: true },
},
},
async ({ driver, mockedEndpoint }) => {
Expand Down Expand Up @@ -278,7 +278,7 @@ describe('Sentry errors', function () {
title: this.test.fullTitle(),
testSpecificMock: mockSentryTestError,
manifestFlags: {
sentry: { doNotForceSentryForThisTest: true },
sentry: { doNotForceForThisTest: true },
},
},
async ({ driver, mockedEndpoint }) => {
Expand Down Expand Up @@ -319,7 +319,7 @@ describe('Sentry errors', function () {
title: this.test.fullTitle(),
testSpecificMock: mockSentryMigratorError,
manifestFlags: {
sentry: { doNotForceSentryForThisTest: true },
sentry: { doNotForceForThisTest: true },
},
},
async ({ driver, mockedEndpoint }) => {
Expand Down Expand Up @@ -365,7 +365,7 @@ describe('Sentry errors', function () {
title: this.test.fullTitle(),
testSpecificMock: mockSentryMigratorError,
manifestFlags: {
sentry: { doNotForceSentryForThisTest: true },
sentry: { doNotForceForThisTest: true },
},
},
async ({ driver, mockedEndpoint }) => {
Expand Down Expand Up @@ -426,7 +426,7 @@ describe('Sentry errors', function () {
title: this.test.fullTitle(),
testSpecificMock: mockSentryInvariantMigrationError,
manifestFlags: {
sentry: { doNotForceSentryForThisTest: true },
sentry: { doNotForceForThisTest: true },
},
},
async ({ driver, mockedEndpoint }) => {
Expand Down Expand Up @@ -475,7 +475,7 @@ describe('Sentry errors', function () {
testSpecificMock: mockSentryTestError,
ignoredConsoleErrors: ['TestError'],
manifestFlags: {
sentry: { doNotForceSentryForThisTest: true },
sentry: { doNotForceForThisTest: true },
},
},
async ({ driver, mockedEndpoint }) => {
Expand Down Expand Up @@ -521,7 +521,7 @@ describe('Sentry errors', function () {
testSpecificMock: mockSentryTestError,
ignoredConsoleErrors: ['TestError'],
manifestFlags: {
sentry: { doNotForceSentryForThisTest: true },
sentry: { doNotForceForThisTest: true },
},
},
async ({ driver, mockedEndpoint }) => {
Expand Down Expand Up @@ -585,7 +585,7 @@ describe('Sentry errors', function () {
title: this.test.fullTitle(),
testSpecificMock: mockSentryTestError,
manifestFlags: {
sentry: { doNotForceSentryForThisTest: true },
sentry: { doNotForceForThisTest: true },
},
},
async ({ driver, mockedEndpoint }) => {
Expand Down Expand Up @@ -621,7 +621,7 @@ describe('Sentry errors', function () {
testSpecificMock: mockSentryTestError,
ignoredConsoleErrors: ['TestError'],
manifestFlags: {
sentry: { doNotForceSentryForThisTest: true },
sentry: { doNotForceForThisTest: true },
},
},
async ({ driver, mockedEndpoint }) => {
Expand Down Expand Up @@ -656,7 +656,7 @@ describe('Sentry errors', function () {
title: this.test.fullTitle(),
testSpecificMock: mockSentryTestError,
manifestFlags: {
sentry: { doNotForceSentryForThisTest: true },
sentry: { doNotForceForThisTest: true },
},
},
async ({ driver, mockedEndpoint }) => {
Expand Down Expand Up @@ -702,7 +702,7 @@ describe('Sentry errors', function () {
title: this.test.fullTitle(),
testSpecificMock: mockSentryTestError,
manifestFlags: {
sentry: { doNotForceSentryForThisTest: true },
sentry: { doNotForceForThisTest: true },
},
},
async ({ driver, ganacheServer, mockedEndpoint }) => {
Expand Down Expand Up @@ -766,7 +766,7 @@ describe('Sentry errors', function () {
testSpecificMock: mockSentryTestError,
ignoredConsoleErrors: ['TestError'],
manifestFlags: {
sentry: { doNotForceSentryForThisTest: true },
sentry: { doNotForceForThisTest: true },
},
},
async ({ driver, mockedEndpoint }) => {
Expand Down Expand Up @@ -810,7 +810,7 @@ describe('Sentry errors', function () {
testSpecificMock: mockSentryTestError,
ignoredConsoleErrors: ['TestError'],
manifestFlags: {
sentry: { doNotForceSentryForThisTest: true },
sentry: { doNotForceForThisTest: true },
},
},
async ({ driver, ganacheServer, mockedEndpoint }) => {
Expand Down Expand Up @@ -898,7 +898,7 @@ describe('Sentry errors', function () {
ganacheOptions,
title: this.test.fullTitle(),
manifestFlags: {
sentry: { doNotForceSentryForThisTest: true },
sentry: { doNotForceForThisTest: true },
},
},
async ({ driver }) => {
Expand Down
4 changes: 2 additions & 2 deletions test/e2e/tests/metrics/sessions.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ describe('Sessions', function () {
title: this.test?.fullTitle(),
testSpecificMock: mockSentrySession,
manifestFlags: {
sentry: { doNotForceSentryForThisTest: true },
sentry: { doNotForceForThisTest: true },
},
},
async ({ driver, mockedEndpoint }) => {
Expand All @@ -60,7 +60,7 @@ describe('Sessions', function () {
title: this.test?.fullTitle(),
testSpecificMock: mockSentrySession,
manifestFlags: {
sentry: { doNotForceSentryForThisTest: true },
sentry: { doNotForceForThisTest: true },
},
},
async ({ driver, mockedEndpoint }) => {
Expand Down
8 changes: 4 additions & 4 deletions test/e2e/tests/metrics/traces.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ describe('Traces', function () {
title: this.test?.fullTitle(),
testSpecificMock: mockSentryCustomTrace,
manifestFlags: {
sentry: { doNotForceSentryForThisTest: true },
sentry: { doNotForceForThisTest: true },
},
},
async ({ driver, mockedEndpoint }) => {
Expand All @@ -73,7 +73,7 @@ describe('Traces', function () {
title: this.test?.fullTitle(),
testSpecificMock: mockSentryCustomTrace,
manifestFlags: {
sentry: { doNotForceSentryForThisTest: true },
sentry: { doNotForceForThisTest: true },
},
},
async ({ driver, mockedEndpoint }) => {
Expand All @@ -95,7 +95,7 @@ describe('Traces', function () {
title: this.test?.fullTitle(),
testSpecificMock: mockSentryAutomatedTrace,
manifestFlags: {
sentry: { doNotForceSentryForThisTest: true },
sentry: { doNotForceForThisTest: true },
},
},
async ({ driver, mockedEndpoint }) => {
Expand All @@ -117,7 +117,7 @@ describe('Traces', function () {
title: this.test?.fullTitle(),
testSpecificMock: mockSentryAutomatedTrace,
manifestFlags: {
sentry: { doNotForceSentryForThisTest: true },
sentry: { doNotForceForThisTest: true },
},
},
async ({ driver, mockedEndpoint }) => {
Expand Down

0 comments on commit 0788633

Please sign in to comment.