In this project we use ReactJS to build the user interface of the application. The project is based on the Vite with Typescript template.
React is only used as client-side rendering. For the server that has low CPU specs this performs better. This chosen to make the application easier and faster on low resourceful servers like a Raspberry Pi
Jest unit tests
In this project we use Jest to test the typescript code and the React components of the application.
We currently don't use snapshot testing.
We aim to achieve a code line unit test coverage of more than 90%
React Testing Library
React Testing Library is a popular testing library for React applications. It is designed to help developers test React components in a way that is similar to how users interact with the components in a real application. It focuses on testing the behavior of a component, rather than its implementation details. React Testing Library provides APIs for performing common testing tasks, like rendering components, querying elements, and simulating user events. By using this library, developers can write tests that are more focused on the user experience and less on implementation details, making their tests more maintainable and less prone to break with future changes.