Svelte with Test-Driven Development
Svelte with Test-Driven Development is a guide to effective automated testing practices for building SvelteKit applications. It teaches the arrange, act, assert pattern, user-defined matchers, component mocks, the TDD workflow, behavior-driven development (BDD) style tests, and more for building efficient and resilient web applications.
Offered by
Difficulty Level
Intermediate
Completion Time
8h20m
Language
English
About Book
Who Is This Book For?
This book is an essential guide for Svelte developers seeking to enhance their development process by learning the TDD workflow and its application. Whether you are an experienced developer or new to automated testing, this book helps you gain a practical approach to improving your workflow. The examples are written in JavaScript, making them accessible to all developers, including TypeScript developers.
Svelte with Test-Driven Development
- About Book
- Who Is This Book For?
- Book Content
Book content
chapters • 8h20m total length
Setting up for Testing
Introducing the Red-Green-Refactor Workflow
Loading Data into a Route
Saving Form Data
Validating Form Data
Editing Form Data
Tidying up Test Suites
Creating Matchers to Simplify Tests
Extracting Logic Out of the Framework
Test-Driving API Endpoints
Replacing Behavior with a Side-By-Side Implementation
Using Component Mocks to Clarify Tests
Adding Cucumber Tests
Testing Authentication
Test-Driving Svelte Stores
Test-Driving Service Workers
Related Resources
Access Ready-to-Use Books for Free!
Get instant access to a library of pre-built books—free trial, no credit card required. Start training your team in minutes!