Reader small image

You're reading from  Full Stack Quarkus and React

Product typeBook
Published inNov 2022
Reading LevelBeginner
PublisherPackt
ISBN-139781800562738
Edition1st Edition
Languages
Right arrow
Author (1)
Marc Nuri San Felix
Marc Nuri San Felix
author image
Marc Nuri San Felix

Marc started his career as a freelance web application developer, creating and maintaining software for the transportation/courier industry. A few years ago Marc started working as an employee for different companies where he has helped build scalable web applications for different industries (retail, procurement software, e-commerce, etc.). He is now a professional Open Source developer focused on the creation and maintenance of developer tools for Java developers and Kubernetes.
Read more about Marc Nuri San Felix

Right arrow

Testing the router

In the Adding routing section in Chapter 7, Bootstrapping the React Project, we included React Router in our project to provide a routing solution for our application. Then, in the Adding the task pages to the application router section in Chapter 9, Creating the Main Application, we configured the definitive routes for the task manager. Just like any of the application’s features, these routes should be tested to make sure they follow the specifications and that they don’t break in the future.

To be able to properly test the application routes, we’ll need to be able to render complete application pages that require a Redux store configuration and an MUI theme provider. Let us create some utilities that will allow us to provide these settings in our tests.

Testing helpers

To host the testing helper files in our project, we’ll create a new src/__tests__ directory that will allow us to clearly distinguish this code from the production...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Full Stack Quarkus and React
Published in: Nov 2022Publisher: PacktISBN-13: 9781800562738

Author (1)

author image
Marc Nuri San Felix

Marc started his career as a freelance web application developer, creating and maintaining software for the transportation/courier industry. A few years ago Marc started working as an employee for different companies where he has helped build scalable web applications for different industries (retail, procurement software, e-commerce, etc.). He is now a professional Open Source developer focused on the creation and maintenance of developer tools for Java developers and Kubernetes.
Read more about Marc Nuri San Felix