Hlustaðu og lestu

Stígðu inn í heim af óteljandi sögum

  • Lestu og hlustaðu eins mikið og þú vilt
  • Þúsundir titla
  • Getur sagt upp hvenær sem er
  • Engin skuldbinding
Prófa frítt
is Device Banner Block 894x1036

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

Tungumál
enska
Format
Flokkur

Óskáldað efni

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 (Rafbók): 9781839211683

Útgáfudagur

Rafbók: 18 oktober 2019

Aðrir höfðu einnig áhuga á...

  1. Coders at Work: Reflections on the Craft of Programming Peter Seibel
  2. Clean Code: A Handbook of Agile Software Craftsmanship Robert C. Martin
  3. Programming Interviews For Dummies Eric Butow
  4. The Innovators: How a Group of Hackers, Geniuses, and Geeks Created the Digital Revolution Walter Isaacson
  5. Monolith to Microservices: Evolutionary Patterns to Transform Your Monolith Sam Newman
  6. Building Microservices: Designing Fine-Grained Systems Sam Newman
  7. Google Cloud Cookbook: Practical Solutions for Building and Deploying Cloud Services, 1st Edition Rui Costa
  8. The Clean Coder: A Code of Conduct for Professional Programmers Robert C. Martin
  9. Fundamentals of Software Architecture: An Engineering Approach Neal Ford
  10. Scrum Master Certification Preparation: Tips and Tactics for Passing Scrum Master Assessments Jimmy Mathew
  11. Javascript: Ultimate Beginners Guide Leonardo Gorman
  12. 97 Principles for Software Architects: Axioms for software architecture and development written by industry practitioners Multiple Authors
  13. Once Upon an Algorithm: How Stories Explain Computing Martin Erwig
  14. Social Engineering: The Science of Human Hacking 2nd Edition Christopher Hadnagy
  15. Permanent Record: A Memoir of a Reluctant Whistleblower Edward Snowden
  16. AI and Machine Learning for Coders: A Programmer's Guide to Artificial Intelligence Laurence Moroney
  17. AI for beginners: Begin your AI developer journey in 2024 Et Tu Code
  18. Docker Unboxed: Mastering Modern Infrastructure with Container Technology Sophia Bell
  19. Life on the Edge - The Coming of Age of Quantum Biology Johnjoe McFadden
  20. Laws of UX: Using Psychology to Design Better Products & Services Jon Yablonski
  21. Ultimate Penetration Testing with Nmap Travis DeForge
  22. Infrastructure Attack Strategies for Ethical Hacking Himanshu Sharma
  23. The Science of Storytelling Will Storr
  24. Security Chaos Engineering: Sustaining Resilience in Software and Systems Aaron Rinehart
  25. Spying Blind: The CIA, the FBI, and the Origins of 9/11 Amy B. Zegart
  26. The DevSecOps Playbook: Deliver Continuous Security at Speed Sean D. Mack
  27. Habits of a Happy Brain: Retrain Your Brain to Boost Your Serotonin, Dopamine, Oxytocin, & Endorphin Levels Loretta Graziano Breuning
  28. Quantum Computing For Dummies whurley
  29. The Software Developer's Career Handbook: A Guide to Navigating the Unpredictable Michael Lopp
  30. UX Design: A Field Guide To Process And Methodology For Timeless User Experience Steven Miller
  31. Eat That Frog! Third Edition: 21 Great Ways to Stop Procrastinating and Get More Done in Less Time Brian Tracy
  32. The Art of Attack: Attacker Mindset for Security Professionals Maxie Reynolds
  33. Certified Information Security Manager CISM Study Guide Mike Chapple, PhD, CISM
  34. Cryptography: The Key to Digital Security, How It Works, and Why It Matters Keith Martin
  35. A Spy in Plain Sight: The Inside Story of the FBI and Robert Hanssen―America’s Most Damaging Russian Spy Lis Wiehl
  36. Hyperfocus: How to Work Less and Achieve More Chris Bailey
  37. In The Blink of An Eye: Winner of the Theakstons Crime Novel of the Year and the CWA New Blood Dagger Jo Callaghan
  38. Talk Like TED: The 9 Public Speaking Secrets of the World's Top Minds Carmine Gallo
  39. Arguing with Idiots: How to Stop Small Minds and Big Government Glenn Beck
  40. Stoicism: Learning about Stoicism, Skepticism, and Existentialism Hector Janssen
  41. Buddha and the Quantum: Hearing the Voice of Every Cell Samuel Avery
  42. Insight: The Power of Self-Awareness in a Self-Deluded World Tasha Eurich
  43. Existentialism: Figuring out the Meaning of Life and Ethics with the Great Philosophers Hector Janssen
  44. The Quantum Revelation: A Radical Synthesis of Science and Spirituality Paul Levy
  45. Designing Data-Intensive Applications: The Big Ideas Behind Reliable, Scalable, and Maintainable Systems Martin Kleppmann

Veldu áskrift

  • Yfir 900.000 hljóð- og rafbækur

  • Yfir 400 titlar frá Storytel Original

  • Barnvænt viðmót með Kids Mode

  • Vistaðu bækurnar fyrir ferðalögin

Vinsælast

Unlimited

Besti valkosturinn fyrir einn notanda

3290 kr /mánuði
3 dagar frítt
  • 1 aðgangur

  • Ótakmörkuð hlustun

  • Yfir 900.000 hljóð- og rafbækur

  • Engin skuldbinding

  • Getur sagt upp hvenær sem er

Prófaðu frítt

Family

Fyrir þau sem vilja deila sögum með fjölskyldu og vinum.

Frá 3990 kr/mánuði
3 dagar frítt
  • 2-6 aðgangar

  • 100 klst/mán fyrir hvern aðgang

  • Yfir 900.000 hljóð- og rafbækur

  • ‎Engin skuldbinding

  • Getur sagt upp hvenær sem er

2 aðgangar

3990 kr /á mánuði
Prófaðu frítt