Open iamgkstack opened 4 years ago
await request(app).post('api/v1/workspace').send(payload);
try adding a slash before API, maybe that's the issue
Also, if it helps anyone drifting in, the same ECONNREFUSED error comes up if you tried to request a fully-qualified URL from supertest. Just the path part is all you need.
This might be too obvious of a mistake, but I mocked the express app -- which also led to this error.
my app.js code is below:-
my workspace.test.js file code is below:-
My package.json file is below:-
Error code which I am getting