npm package to get an http server parsing your nextJS app to link endpoint with handler
github.com/mtbrault/nextjs-http-supertest
mtbrault/nextjs-http-supertest