I'm creating a next.js webapp and I want to unit test the API routes with mocha. however, mocha doesn't seem to like my path aliases.
(ex. import prisma from "@/lib/PrismaClient")
any suggestions?
I'm creating a next.js webapp and I want to unit test the API routes with mocha. however, mocha doesn't seem to like my path aliases.
(ex. import prisma from "@/lib/PrismaClient")
any suggestions?