Trying to figure out how to test subdomain routes, mainly created by the subdomain middleware. Would love some input on how to accomplish this when doing supertest(app).
supertest(app)
Looks like the answer is .set('Host', 'subdomain.example.com') after your verb..
.set('Host', 'subdomain.example.com')
Most helpful comment
Looks like the answer is
.set('Host', 'subdomain.example.com')after your verb..