Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
React Projects

You're reading from   React Projects Build 12 real-world applications from scratch using React, React Native, and React 360

Arrow left icon
Product type Paperback
Published in Dec 2019
Publisher Packt
ISBN-13 9781789954937
Length 474 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Roy Derks Roy Derks
Author Profile Icon Roy Derks
Roy Derks
Arrow right icon
View More author details
Toc

Table of Contents (14) Chapters Close

Preface 1. Creating a Movie List Application in React 2. Creating a Progressive Web Application with Reusable React Components FREE CHAPTER 3. Build a Dynamic Project Management Board with React and Suspense 4. Build a SSR-Based Community Feed Using React Router 5. Build a Personal Shopping List Application Using Context API and Hooks 6. Build an Application Exploring TDD Using Jest and Enzyme 7. Build a Full Stack E-Commerce Application with React Native and GraphQL 8. Build a House Listing Application with React Native and Expo 9. Build an Animated Game Using React Native and Expo 10. Creating a Real-Time Messaging Application with React Native and Expo 11. Build a Full Stack Social Media Application with React Native and GraphQL 12. Creating a Virtual Reality Application with React 360 13. Other Books You May Enjoy

Build an Application Exploring TDD Using Jest and Enzyme

To keep your application maintainable, it is good practice to have testing set up for your project. Where some developers hate writing tests and therefore try to avoid writing them, other developers like to make testing the core of their development process by implementing a test-driven development (TDD) strategy. There are many opinions about testing your applications and how to do this. Luckily, when building an application with React, many great libraries can help you with testing.

In this chapter, you'll use two libraries to unit test React applications. The first one is Jest, which is maintained by Facebook itself and ships with Create React App. The other tool is called Enzyme, which has more functionality than Jest and can be used to test entire life cycles within your components. Together, they are a great fit...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image