Problem
Coming from Slack, this is a new feature handled by Callstack.
As the Expensify application continues to grow and evolve, it’s essential to ensure that new updates and changes don’t introduce unintended side effects or break existing functionality. However, it’s all too easy to inadvertently introduce performance regressions that would be caught in production when the app starts to run slowly.
Currently, the project implements automated end-to-end performance tests, which are more reliable than Reassure because they include both JS and native.The problem with these tests is that there are few of them, they take a long time to complete, and it’s hard for developers to add new tests.
Reassure should supplement these basic tests with a more extensive set of performance tests that work only in JS, focusing on problems arising from excessive re-renders and memoization errors.
Solution
Let's implement some simple component rendering tests using Reassure library as MVP and we can build more usecases on top of that. We will start with SidebarLinks test.
Problem
Coming from Slack, this is a new feature handled by Callstack.
As the Expensify application continues to grow and evolve, it’s essential to ensure that new updates and changes don’t introduce unintended side effects or break existing functionality. However, it’s all too easy to inadvertently introduce performance regressions that would be caught in production when the app starts to run slowly.
Currently, the project implements automated end-to-end performance tests, which are more reliable than Reassure because they include both JS and native.The problem with these tests is that there are few of them, they take a long time to complete, and it’s hard for developers to add new tests.
Reassure should supplement these basic tests with a more extensive set of performance tests that work only in JS, focusing on problems arising from excessive re-renders and memoization errors.
Solution
Let's implement some simple component rendering tests using Reassure library as MVP and we can build more usecases on top of that. We will start with SidebarLinks test.