Open NicolasMassart opened 9 months ago
Can we add https://github.com/MetaMask/metamask-mobile/pull/8138 as part of the issue and acceptance criteria?
I'll leave two examples here, first:
Engine.ts
imports util/networks
https://github.com/MetaMask/metamask-mobile/blob/1232903b3dc98f428616c640810579020b40371a/app/core/Engine.ts#L127-L132util/networks
imports Engine.ts
https://github.com/MetaMask/metamask-mobile/blob/1232903b3dc98f428616c640810579020b40371a/app/util/networks/index.js#L24So here we see some utils are not pure and can be extracted as "Engine utils".
Second:
app/store/index.ts
imports app/reducers/index.ts
https://github.com/MetaMask/metamask-mobile/blob/1232903b3dc98f428616c640810579020b40371a/app/store/index.ts#L6app/reducers/index.ts
imports app/core/Engine.ts
https://github.com/MetaMask/metamask-mobile/blob/1232903b3dc98f428616c640810579020b40371a/app/reducers/index.ts#L23app/core/Engine.ts
imports app/store/index.ts
https://github.com/MetaMask/metamask-mobile/blob/1232903b3dc98f428616c640810579020b40371a/app/core/Engine.ts#L134
What is this about?
https://github.com/MetaMask/metamask-mobile/pull/8748/files#diff-60a04de3137b833473fa9964bfd0173a9607fc03abcf2b673b31d047ee305b27R23-R39
Scenario
No response
Design
No response
Technical Details
main
yarn setup
jest app/components/UI/Ramp/Views/OrdersList/OrdersList.test.tsx
app/core/Analytics/index.ts
// export { store };
jest app/components/UI/Ramp/Views/OrdersList/OrdersList.test.tsx
againNo reducer provided for key "fiatOrders"
Add lint rule for catching cir deps - https://github.com/import-js/eslint-plugin-import/blob/main/docs/rules/no-cycle.md
Threat Modeling Framework
No response
Acceptance Criteria
app/core/Analytics/index.ts
Stakeholder review needed before the work gets merged
References
https://github.com/MetaMask/metamask-mobile/pull/8748/files#diff-60a04de3137b833473fa9964bfd0173a9607fc03abcf2b673b31d047ee305b27R23-R39