From 275f566383a2923dbb44f65e7605a40f3938b548 Mon Sep 17 00:00:00 2001 From: Nicolas MASSART Date: Tue, 27 Feb 2024 19:28:14 +0100 Subject: [PATCH] added comment --- app/core/Analytics/index.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/app/core/Analytics/index.ts b/app/core/Analytics/index.ts index 68d5e94a5592..9efa0466560e 100644 --- a/app/core/Analytics/index.ts +++ b/app/core/Analytics/index.ts @@ -21,5 +21,19 @@ export { export type { IMetaMetricsEvent }; +/** + * >[!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 };