File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,14 +56,21 @@ module.exports = function (baseConfig) {
5656 const {
5757 resolver : { assetExts, sourceExts } ,
5858 } = defaultConfig ;
59+ // IS_PERFORMANCE_TEST opts out of E2E startup overhead (ReadOnlyNetworkStore,
60+ // command polling, Sentry mock) while keeping METAMASK_ENVIRONMENT='e2e' so
61+ // the build still works on feature branches with e2e signing/secrets.
62+ const isPerformanceTest = process . env . IS_PERFORMANCE_TEST === 'true' ;
5963 const isE2E =
60- process . env . IS_TEST === 'true' ||
61- process . env . METAMASK_ENVIRONMENT === 'e2e' ;
64+ ! isPerformanceTest &&
65+ ( process . env . IS_TEST === 'true' ||
66+ process . env . METAMASK_ENVIRONMENT === 'e2e' ) ;
6267
6368 /**
6469 * E2E Metro redirects under tests/module-mocking.
6570 * Enables both: seedless-onboarding-controller + OAuthLoginHandlers mocks.
6671 * True when IS_TEST / METAMASK_ENVIRONMENT=e2e OR E2E_MOCK_OAUTH.
72+ * Performance builds set E2E_MOCK_OAUTH=true to keep this mock active
73+ * even though isE2E is false (preventing real OAuth calls to production).
6774 */
6875 const isE2EMockOAuth = process . env . E2E_MOCK_OAUTH === 'true' ;
6976
You can’t perform that action at this time.
0 commit comments