Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Presentations / Attachments

Attachments

Minutes

  • Create-react-scripts app is currently used to bundle the app but it has been basically abandoned for a few years.

  • Create-react-scripts app could be replaced with Vite that is the most widely adopted one

  • change Change would be a good occasion to add automated front-end testing

    • Options:

      • JEST

      • VITEST

    • Frontend unit tests wouldn’t check more complex logic, but rather focus on confirming that base functionalities and views are not breaking.

    • Solutions for automated regression testing will be discussed during next deep dive meeting.

  • Frontend code standards:

    • We should opt for hooks wherever possible, class-based components are no longer preferred

    • On several openIMIS modules there is eslint attached (Example) which makes it easier to ensure standards. However, for older modules like claims and policies eslint check results in the files that are invalid as a whole an a lot of rework would be required. We could potentially exclude existing files from the check, it’d quicker but also require some effort.

Image RemovedImage Added

Conclusion

  • We should move to VITE

  • We should add basic unit tests to ensure that critical features don’t break

  • Testing framework is open. Vitest seems logical but nobody objects to Jest or others

  • We need more evidence that this is not breaking anything

  • What is the budget needed and who can fit it in their project?

  • Has to be done before next release

...