AI-generated unit testing is changing how developers write tests. Learn a practical workflow for generating unit tests with tools like ChatGPT, Claude, and Copilot using React, TypeScript, and Vitest.
JSON Server to Mock API Servers: A Quick and Easy Solution
I have found myself in the following scenario many times throughout my career. Everyone is ready to get the project started. You know what you are going to be working on, and as the frontend developer, you get started right away. You get to the point that you are ready to test your code to see how the API calls work. Thereโs one major thing in your way, though. The APIs aren’t done yet.
You could just create some static JSON files and read them in, but that doesn’t really test out calling an API. Thatโs where JSON Server swoops in to save the day. In this post, Iโll walk through how to use JSON Server. Weโll set up our environment, serve a simple JSON file, and generate mock data.


