WordPress 5.0 introduced a new block-based post editor. The post editor is built with the “Gutenberg” UI system that can be used by plugin developers to make custom blocks or other interfaces. Gutenberg is built on top of React, which is great framework for test-driven development.
In this talk, I will cover the basics of testing in React and show why using testing makes React development faster and more joyful. This includes an overview of Jest and how to use it with react-testing-library and @wordpress/scripts and how to use them to develop components that can be used in blocks and in other React apps.