supertest-graphql
supertest-graphql copied to clipboard
How to get headers value ?
Hi, with supertest I can read headers from res.headers with this code
const supertest = require("supertest");
const request = supertest(process.env.URL);
request
.post(endpoint_public)
.send({
query: qGetJwt,
})
.expect(200)
.end((err: any, res: any) => {
expect(res.body).to.not.have.property("errors");
getJWTData = res.body.data.getJWT;
getJWTHeaders = res.headers;
done();
});
How can I read headers with your package ?
Thanks.