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:
- PLC i TIA Portal. Kurs video. Techniki programowania SIMATIC S7-1200 200,00 zł, (10,00 zł -95%)
- Google Cloud. Kurs video. Zostań administratorem systemów IT 142,86 zł, (10,00 zł -93%)
- Instalacja i konfiguracja baz danych. Kurs video. Przygotowanie do egzaminu 70-765 Provisioning SQL Databases 285,57 zł, (19,99 zł -93%)
- Excel w HR. Kurs video. Od teorii do praktyki 222,11 zł, (19,99 zł -91%)
- Figma. Kurs video. Wejd 90,91 zł, (10,00 zł -89%)
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