ReferenceError: Response is not defined in next js i don’t understand why?
I’m using Next.js version 13, and I’ve written a test for the backend endpoint. It’s been more than half a day, but I haven’t been able to figure out the error. I’ve searched a lot on Google, but couldn’t find a solution. The error I’m getting is that I created an endpoint and wrote a test for it using Jest, but as soon as I run npm run test, it says ReferenceError: Response is not defined. If anyone knows about this, please help me