Skip to content

Commit

Permalink
added comment
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasMassart committed Feb 27, 2024
1 parent 28fd4c1 commit 262a099
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions app/core/Analytics/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,19 @@ export {

export type { IMetaMetricsEvent };

/**
* ⚠️️ WARNING ⚠️ WARNING ⚠️ WARNING ⚠️ WARNING ⚠️ WARNING ⚠️
* this is a temporary export to allow the app/components/UI/Ramp/Views/OrdersList/OrdersList.test.tsx
* to run. This should be removed once the test/file under test is refactored to not rely on the store.
* This is totally not related to the Metametrics module and was here far before.
* And this is completely out of scope of the Segment migration but it's a blocker if tests do not pass.
* Removing the Analytics.js file and it's export here required to add the store export directly here.
*
* This issue is likely due to a circular dependency between the store and the module under test.
* How it is related to metrics is beyond me.
* Please help me fix this. You are my only hope 🙏
*
* TODO: remove this export once the test/file under test is refactored to not rely on the store.
*/
import { store } from '../../store';
export { store };

0 comments on commit 262a099

Please sign in to comment.