© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2022
A. LibbyPractical Sveltehttps://doi.org/10.1007/978-1-4842-7374-6_8

8. Unit Testing and Svelte

Alex Libby1  
(1)
BELPER, UK
 

So far, we’ve covered Svelte’s different elements as a framework and have steadily been creating our ecommerce front-end project. It’s now time to put it to the test – this is the scary part: does it all work as expected?

If we’ve done our homework correctly, then yes, but I’m sure there will be something there that will trip us up! Over these pages, we will explore how to perform unit testing for Svelte; we’ll understand how to set up a unit testing library specifically for Svelte and begin to test our site’s various elements and features. ...

Get Practical Svelte: Create Performant Applications with the Svelte Component 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.