Testing Vue.js Components with Jest. A concise guide to testing Vue.js components using Jest and the official Vue Test Utils library - Helion
Tytuł oryginału: Testing Vue.js Components with Jest. A concise guide to testing Vue.js components using Jest and the official Vue Test Utils library
ISBN: 9781839211683
stron: 88, Format: ebook
Data wydania: 2019-10-18
Księgarnia: Helion
Cena książki: 69,90 zł
Unit testing in modern component-based JavaScript frameworks is not straightforward. You need a test suite that is reliable and runs quickly. Components are connected to one another, and the browser adds a layer of UI, which makes everything inter-dependent while we test components in isolation. Jest is a fully-featured JavaScript testing framework that will do all your work for you.
This book shows you how to test Vue.js components easily and take advantage of the fully-featured Jest testing framework with the aid of practical examples. You'll learn the different testing styles and their structures. You'll also explore how your Vue.js components respond to various tests. You'll see how to apply techniques such as snapshot testing, shallow rendering, module dependency mocking, and module aliasing to make your tests smooth and clean.
By the end of this book, you'll know all about testing your components by utilizing the features of Jest.
Osoby które kupowały "Testing Vue.js Components with Jest. A concise guide to testing Vue.js components using Jest and the official Vue Test Utils library", wybierały także:
- Windows Media Center. Domowe centrum rozrywki 66,67 zł, (8,00 zł -88%)
- Ruby on Rails. Ćwiczenia 18,75 zł, (3,00 zł -84%)
- DevOps w praktyce. Kurs video. Jenkins, Ansible, Terraform i Docker 190,00 zł, (39,90 zł -79%)
- Przywództwo w świecie VUCA. Jak być skutecznym liderem w niepewnym środowisku 58,64 zł, (12,90 zł -78%)
- Scrum. O zwinnym zarządzaniu projektami. Wydanie II rozszerzone 58,64 zł, (12,90 zł -78%)
Spis treści
Testing Vue.js Components with Jest. A concise guide to testing Vue.js components using Jest and the official Vue Test Utils library eBook -- spis treści
- 1. Write the First Vue.js Component Unit Test in Jest
- 2. Test Deeply Rendered Vue.js Components
- 3. Test Styles and Structure
- 4. Test Properties and Custom Events
- 5. Test Computed Properties and Watchers
- 6. Test Methods and Mock Dependencies
- 7. Test Vue.js Slots
- 8. Enhance Jest Configuration with Module Aliases
- 9. Snapshot Testing