'how to use next.js path aliases with mocha
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?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
