© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
A. LibbyPractical Next.js for E-Commercehttps://doi.org/10.1007/978-1-4842-9612-7_9

9. Testing the Site

Alex Libby1  
(1)
BELPER, UK
 

Until now, we’ve concentrated on building our site, and it appears to be working as we expect – is this the case, though, or are there any tweaks we need to perform? Over these pages, we will explore how to perform unit testing. It will be very much with an e-commerce theme, but ultimately help guide the reader through some of the steps they should work through to ensure our site works as expected and is optimized before release.

We’ll focus on the setup of our testing suite and start to create some tests – the latter will include ...

Get Practical Next.js for E-Commerce: Create E-Commerce Sites with the Next.js Framework now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.