Tag: JavaScript

White square with the Jest testing framework logo, featuring a maroon crown and connected dots above the word “Jest,” on a red geometric abstract background with the white 40Q logo in the bottom right corner.

Apr 3, 2024 / 4 min to read

Introduction to Unit Testing in JavaScript with Jest

Writing unit tests is really not as difficult as it seems. Let’s see how to do it in JavaScript using Jest. Set up Before we begin, let’s prepare everything we need. Inside a new folder, we’ll initialize npm. In this case, I’m passing the -y flag so it doesn’t ask questions and assigns all default […]

Abstract blue and green background with floating circles, featuring the WordPress logo on the left and the React logo on the right, both in white.

Jul 7, 2022 / 4 min to read

Building a React App Using WordPress as a Headless CMS

We are increasingly used to seeing complex, dynamic, and reactive interfaces. CMS platforms like WordPress make building these types of interfaces a bit harder with the tools they provide by default. This led to the emergence of the Headless CMS concept. In other words, using only the CMS content management tools and consuming an API […]