Chapter 19. Project: Checking passwords with Jest
This chapter covers
- Project structure and Webpack configuration
- The host HTML file
- Implementing a strong password module
- Creating Jest tests
- Implementing the Password component and UI
This project focuses on building a UI, working with modules, and testing with Jest, along with other React-related techniques such as component composition, ES6 syntax, state, properties, and so on. Recall that chapter 16 dealt with testing; you used a password widget as an example of unit testing and UI testing. In this project, you’ll build the widget itself to check, verify, and generate new passwords. Along the way, I’ll explain testing again, here and there, in an expanded format.
The widget has a ...