Jest Unit Testing - Part 1
Next-auth, Prisma, and High-Order Functions
Feb 14, 20244 min read36
Search for a command to run...
Series
While unit-testing my app, I hit a few roadblocks while testing some external libraries. In this series, I will explain them and the solutions I came up with.
Next-auth, Prisma, and High-Order Functions
Route Handlers I created a simple route handler to retrieve latitude and longitude from an address, using Google's Geolocation API. Remember, route handlers in Next.js allow you to create custom request handlers for a given route, and they are always...