1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Use development metametrics project during tests (#9093)

e2e tests will now reference the development MetaMetrics project
instead of the production one. The metrics endpoint should be stubbed
out during e2e tests anyway, but this seemed like a better default
regardless.
This commit is contained in:
Mark Stacey 2020-07-28 16:09:20 -03:00 committed by GitHub
parent 99899b5df9
commit 1e0ef76524
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,7 +2,7 @@
import ethUtil from 'ethereumjs-util'
const inDevelopment = process.env.NODE_ENV === 'development'
const inDevelopment = process.env.METAMASK_DEBUG || process.env.IN_TEST
const METAMETRICS_BASE_URL = 'https://chromeextensionmm.innocraft.cloud/piwik.php'
const METAMETRICS_REQUIRED_PARAMS = `?idsite=${inDevelopment ? 1 : 2}&rec=1&apiv=1`