Слушайте и четете неограничено

Открийте безкрайна вселена от истории

  • Над 500,000 заглавия на 6 езика
  • Детски режим - безопасна зона за деца
  • Нови книги всяка седмица и ексклузивни заглавия
  • Офлайн режим
Пробвайте Storytel
BG - Details page - Device banner - 894x1036
Cover for Testing Vue.js Components with Jest: A concise guide to testing Vue.js components using Jest and the official Vue Test Utils library

Testing Vue.js Components with Jest: A concise guide to testing Vue.js components using Jest and the official Vue Test Utils library

Езици
Английски
Формат
Категория

Документални

Unit test your Vue. js components with this fully-featured JavaScript testing framework

Key Features • Understand the various testing styles and their purpose

• Gain insight into how to test methods by avoiding dependencies

• Explore snapshot testing and its applications

Book Description

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.

What you will learn • Set up a Vue-test project to get started with Jest

• Unit test your components using techniques such as shallow rendering

• Gain insights into how to test the reactive parts in the logic of the Vue. js components

• Explore how to test deeply rendered Vue. js components

• Perform easy and quick tests with module dependency mocking, module aliasing, and more

• Know-how and when to use snapshot testing

Who this book is for

If you are a programmer looking to make your development process smooth and bug-free, this is an ideal book for you. Prior knowledge and experience of JavaScript will help you quickly and easily grasp the concepts explained in this book.

Alex Jover Morales is a Vue. js core team partner. He co-organizes Alicante Frontend and Vue Day. He is an instructor at Alligatorio and is interested in web performance, PWA, code quality, and the human side of code.

© 2019 Packt Publishing (Е-книга): 9781839211683

Дата на излизане

Е-книга: 18 октомври 2019 г.

Тагове

Другите харесаха също...

Избери своя абонамент:

  • Над 500,000 заглавия на 6 езика

  • Нови книги всяка седмица и ексклузивни заглавия

  • Детски режим - безопасна зона за деца

  • Офлайн режим

Най-популярен

Unlimited

Най-добрият избор. Открийте хиляди незабравими истории.

8.69 € | 16.99 лв. /30 дни

60% отстъпка
  • Избирайте от хиляди заглавия

  • Слушайте и четете неограничено

  • Прекратете по всяко време

Пробвайте сега

Unlimited Годишен

33% отстъпка от месечния абонамент. Избирайте от хиляди заглавия.

69.53 € | 135.99 лв. /година

12 месеца на цената на 8
  • Избирайте от хиляди заглавия

  • Слушайте и четете неограничено

  • Прекратете по всяко време

Пробвайте 7 дни безплатно

Family 2 профила

Споделете историите със семейството или приятелите си.

12.78 € | 24.99 лв. /30 дни

  • Потопете се заедно в света на историите

  • Слушайте и четете неограничено

  • Прекратете по всяко време

Пробвайте 7 дни безплатно

Family 3 профила

Споделете историите със семейството или приятелите си.

14.99 € | 29.32 лв. /30 дни

  • Потопете се заедно в света на историите

  • Слушайте и четете неограничено

  • Прекратете по всяко време

Пробвайте 7 дни безплатно