Ariska Hidayattech.finlup.id·Mar 6, 2024Testing for API in NextJSimport { createMocks, RequestMethod } from 'node-mocks-http'; import type { NextApiRequest, NextApiResponse } from 'next'; import apiGetEnv from '../pages/api/get-env'; describe("test api", () => { function mockRequestResponse(method: RequestMet...Next.jsAdd a thoughtful commentNo comments yetBe the first to start the conversation.