mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-26 12:29:06 +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:
parent
2880fe6a07
commit
f7c7007d83
@ -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`
|
||||
|
Loading…
Reference in New Issue
Block a user