1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 18:00:18 +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
parent 2880fe6a07
commit f7c7007d83

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`