Testing routing

Just like components, routes play an important role in the way our applications deliver an efficient user experience. As such, testing routes becomes paramount to ensuring a flawless performance. There are different things we can do with routing and we need to test for the different scenarios. These scenarios are:

  • Ensuring that the navigation targets the right route address
  • Ensuring that the correct parameters are made available so you can fetch the correct data for the component, or filter the dataset the component needs
  • Ensuring that a certain route ends up loading the intended component
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset