Category: frontend development

  • Testing React Components with MSW

    Testing React Components with MSW

    Introduction One of the best practices in testing React components is to test them in a way that closely mimics real user interactions. This ensures that the tests are more reliable and realistic, as they reflect how the user would interact with the application. However, relying heavily on mocks can introduce issues. Overusing mocks can…

  • Implementing MVVM with React to improve your tests

    Implementing MVVM with React to improve your tests

    MVVM (Model-View-ViewModel) architecture is a powerful paradigm for separating concerns and enhancing testability in your front-end applications. One of its key benefits lies in its ability to isolate the view layer, allowing for independent testing and abstraction of UI-specific concerns. With MVVM, testing your views becomes a breeze as you can focus solely on the…