I have an application which uses NodeJs Cluster module to fork multiple processes of the app, each of these process send out post request to an endpoint which i want to nock.
Now i understand that nock works by overwriting the nodes process http.request methods, but since I am using Cluster.fork which in turn spawns a new NodeJs process which are independent of the parent NodeJs process.
Is there anyway i can nock out this request that my forked processes make ?